02.06.2013 Views

Discrete Mathematics Demystified

Discrete Mathematics Demystified

Discrete Mathematics Demystified

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

CHAPTER 4 Functions and Relations 63<br />

Let f : {x ∈ R : x ≥ 0} →R be given by f (x) = x 3 . Then f is one-to-one but<br />

f is not onto. There certainly is a function g : R →{x ∈ R : x ≥ 0} such that<br />

(g ◦ f )(x) = x for all x ∈{x ∈ R : x ≥ 0} [namely g(x) = 3√ |x|]. But there is no<br />

function h : R →{x ∈ R : x ≥ 0} such that ( f ◦ h)(x) = x for all x. <br />

We have established that if f : S → T has an inverse then f must be one-toone<br />

and onto. The converse is true too, and we leave the details for you to verify.<br />

A function f : S → T that is one-to-one and onto (and therefore invertible) is<br />

sometimes called a set-theoretic isomorphism or a bijection. It is also common to<br />

use the terminology one-to-one correspondence.<br />

EXAMPLE 4.19<br />

The function f : R → R that is given by f (x) = x 3 is a bijection. You should<br />

check the details of this assertion for yourself. The inverse of this function f is the<br />

function g : R → R given by g(x) = x 1/3 . <br />

We leave it as an exercise for you to verify that the composition of two bijections<br />

(when the composition makes sense) is a bijection.<br />

4.5 Types of Functions<br />

The most elementary and easiest understood type of function is the polynomial<br />

function. A polynomial has the form<br />

p(x) = a0 + a1x + a2x 2 + a3x 3 +···+akx k<br />

We call a0 the constant coefficient, a1 the linear coefficient, a2 the quadratic coefficient,<br />

a j the jth-degree coefficient, and ak the top-order coefficient.<br />

A polynomial is easy to understand because we can calculate its value at any<br />

point x by simply plugging in x and then multiplying and adding. A computer can<br />

calculate values of a polynomial very rapidly and easily.<br />

Another important type of function is the exponential function. For example,<br />

g(x) = 2 x is an exponential function. This function is easy to calculate when x<br />

is an integer; for example, f (4) = 2 4 = 2 · 2 · 2 · 2 = 16. It is more difficult to<br />

calculate when x is a noninteger; some approximation procedure would probably<br />

be needed (this is how your calculator effects the computation).<br />

You probably know that, when you put money in the bank, and it earns interest,<br />

then it grows according to a rule given by an exponential function. For example,<br />

suppose that you put $1000 in the bank and it earns interest annually at the rate of<br />

5%. Then we have

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

Saved successfully!

Ooh no, something went wrong!