06.09.2021 Views

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

Discrete Mathematics- An Open Introduction - 3rd Edition, 2016a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

40 0. <strong>Introduction</strong> and Preliminaries<br />

function is the same as f defined above. It is absolutely not.<br />

Even though the rule is the same, the domain and codomain<br />

are different, so these are two different functions.<br />

Example 0.4.2<br />

Just because you can describe a rule in the same way you would<br />

write a function, does not mean that the rule is a function. The<br />

following are NOT functions.<br />

1. f : N → N defined by f (n) n 2<br />

. The reason this is not a<br />

function is because not every input has an output. Where<br />

does f send 3? The rule says that f (3) 3 2 , but 3 2<br />

is not an<br />

element of the codomain.<br />

2. Consider the rule that matches each person to their phone<br />

number. If you think of the set of people as the domain and<br />

the set of phone numbers as the codomain, then this is not a<br />

function, since some people have two phone numbers. Switching<br />

the domain and codomain sets doesn’t help either, since<br />

some phone numbers belong to multiple people (assuming<br />

some households still have landlines when you are reading<br />

this).<br />

Describing Functions<br />

It is worth making a distinction between a function and its description.<br />

The function is the abstract mathematical object that in some way exists<br />

whether or not anyone ever talks about it. But when we do want to talk<br />

about the function, we need a way to describe it. A particular function can<br />

be described in multiple ways.<br />

Some calculus textbooks talk about the Rule of Four, that every function<br />

can be described in four ways: algebraically (a formula), numerically (a<br />

table), graphically, or in words. In discrete math, we can still use any of<br />

these to describe functions, but we can also be more specific since we are<br />

primarily concerned with functions that have N or a finite subset of N as<br />

their domain.<br />

Describing a function graphically usually means drawing the graph of<br />

the function: plotting the points on the plane. We can do this, and might<br />

get a graph like the following for a function f : {1, 2, 3} → {1, 2, 3}.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!