Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
FUNCTIONS
1.2
1.2.1
11
Functions
What is a Function?
1.2.2
1.2. FUNCTIONS
13
2 2
x 7 ! sin x
! [ 1; 1]
2 2
x 7 ! sin x
Remark 35 We restrict functions to a smaller domain when we wish the function to have certain properties it does not have on the larger domain. In the
example above, you will recall from calculus that though sin x is dened for all
real numbers, it is not invertible becauseh it doesinot pass the horizontal line test.
However, if we restrict its domain to
; , the function is invertible and
2 2
we havent lost any information because on that interval, sin x takes on all its
values. You may recall that sin x is periodic
(see
h
i denition below if you have
forgotten what it means). The interval
;
corresponds to one period.
2 2
Instead of restricting the denition of a function to a smaller set, we can also
do the opposite. Sometimes, it is useful to extend the denition of a function to
a larger set. Let g be a function from A into B, and let D2 be a set containing
A. We can dene a new function g2 with domain D2 by:
g2 (x)
g2 (x)
g (x) 8x 2 A
1
sin x
x
if
x=0
if
x 6= 0
1.2.3
Operations on Functions
g) (x) = f (x)
g, is dened by:
g (x)
f
, is dened by:
g
f
f (x)
(x) =
g
g (x)
The domain of
f
is the set fx : x 2 D (f ) and x 2 D (g) with g (x) 6= 0g.
g
1.2. FUNCTIONS
15
1, nd f + g, f
g, f g,
f
,
g
nd their domain.
We nd these functions by dening how they act on elements. Since both f and
g are polynomials, D (f ) and D (g) are the set of real numbers.
(f + g) (x) = f (x) + g (x) = x + 1 + x
the set of real numbers.
1) = 2. The domain of f
(x
1) = x2
g is
f (x)
x+1
f
f
(x) =
=
. The domain of is the set of real numbers except
g
g (x)
x 1
g
1.
Composition
Once again, let f be a function from A into B and g be a function from B into
C. The composition of f and g, denoted g f , is the function dened by:
(g f ) (x) = g (f (x))
We can also dene the composition of two functions in terms of ordered
pairs. let f be a function from A into B and g be a function from B into C.
Then,
g f
=
=
f(a; c) 2 A
f(a; c) 2 A
g) (x) = f (g (x))
= f x2 + 1
p
x2 + 1
(g f ) (x) = g (f (x))
p
=g x
p 2
=
x +1
=x+1
The domain of g f is fx 2 R : x
0g.
g 6= g f
p
Example 42 Find functions f and g such that (f g) (x) = x 1
It is important to notice that when we write (f
p g) (x), the function g is applied
rst, then the function f . When we write x 1, rst, we have to evaluate
x 1, then
p we take the square root. This suggests that g (x) = x 1, and
f (x) = x. If we verify, we get
(f
g) (x) = f (g (x))
= f (x
p
x 1
1)
1.2.4
1.2. FUNCTIONS
17
is surjective.
Denition 47 (injection) Let f be a function from A into B. f is said to
be injective, or an injection, or one-to-one if one of the three equivalent
conditions below is satised.
1. f (a) = f (b) ) a = b
2. a 6= b ) f (a) 6= f (b)
3. (a; c) 2 f and (b; c) 2 f ) a = b
To put it simply, a mapping from A into B is an injection if dierent inputs
produce dierent outputs.
Example 48 The function
f : R ! [ 1; 1]
x 7 ! sin x
is
i injection, f (0) = f (2 ) for example. However, its restriction to
h not an
;
is an injection.
2 2
Proposition 49 (horizontal line test) The graph of a function is the graph
of an injective function if it passes the horizontal line test, that is if no horizontal
line can intersect the graph in more than one point.
Denition 50 A function which is both an injection (one-to-one) and a surjection (onto) is called a bijection.
1.2.5
Inverse Functions
1. D (f ) = R f
, R (f ) = D f
2. y = f (x) () x = f
1
3. f
4. f
You may recall from previous mathematics classes that to nd the inverse
of a function given by a formula y = f (x), the following steps can be followed:
1. Make sure the function has an inverse (i.e. it is one-to-one).
2. In the relation y = f (x), switch x and y.
3. Solve for y in the relation you obtained above.
4. The new relation you obtained for y is the inverse function.
Example 53 Find the inverse of y = f (x) = 5x + 2.
This is a straight line which is not horizontal, so it passes the horizontal line
test. Hence it is one-to-one. If we switch x and y, we obtain
x = 5y + 2
Next, we solve for y.
x
5y + 2 () x
x 2
y=
5
()
2 = 5y
Therefore
f
1.2.6
(x) =
2
5
Let f be a function from A into B. Let E and G be two sets such that E
and G B.
A,
(G) = fx 2 A : f (x) 2 Gg
1.2. FUNCTIONS
19
Remark 56 The above denition does not require that f be injective or have
an inverse. f 1 (G) is simply the notation for the inverse image of G. The
reader should never think we are talking about the inverse of f .
Remark 57 If should be clear to the reader that f (E)
range of f . Therefore, f (A) = B () f is a surjection.
(G)
A.
1.
=
=
F then f (E)
2. f (E \ F )
f (F )
f (E) \ f (F )
3. f (E [ F ) = f (E) [ f (F )
4. f (E n F )
f (E)
Proof. We only prove some of these items. For the remaining ones, see the
problems at the end of this section.
1. Let y 2 f (E). Then, there exists x 2 E such that y = f (x). Because
E F , x is also in F , therefore, y = f (x) is in f (F ).
2. see problems
3. We need to show the inclusion both ways.
Remark 61 To prove part 4 of the above theorem, we can also use part 1 and
the fact that E n F E.
Theorem 62 Let f be a function with domain in A and range in B. Let G
and H be subsets of B. The following is true:
1. If G
H then f
(G)
(H)
2. f
(G \ H) = f
(G) \ f
(H)
3. f
(G [ H) = f
(G) [ f
(H)
4. f
(G n H) = f
(G) n f
(H)
Proof. We only prove some of these items. For the remaining ones, see the
problems at the end of this section.
1. see problems
2. We need to show the inclusion both ways.
First, we show that f 1 (G \ H) f 1 (G)\f 1 (H). Since G\H
G, by part 1, f 1 (G \ H)
f 1 (G). Similarly, f 1 (G \ H)
1
1
f (H). Thus, f (G \ H) f 1 (G) \ f 1 (H).
3. see problems
4. see problems
1.2. FUNCTIONS
1.2.7
21
General Properties
In this section, we remind the reader of some denitions. Theorems about these
properties will be proven later in the chapter.
Denition 63 Let f : D ! R be a real-valued function. f is said to be:
1. Increasing, if 8a; b 2 D (a
b =) f (a)
f (b))
2. Decreasing, if 8a; b 2 D (a
b =) f (a)
f (b))
x 2 D and f ( x) = f (x)
x 2 D and f ( x) =
f (x)
x+T 2D
and f (x + T ) =
x T 2D
f (x). The smallest such T is called the period of the function.
12. Periodic, if 9T 6= 0 2 R : 8x 2 D
13. Lipschitz, if 9k > 0 2 R : 8a; b 2 D
jf (a)
f (b)j
k ja
bj
1.2.8
Exercises
1
for x 2 R and x 6= 1 and
1
f (E) \ f (F ).
(b) Give an example which shows why the two sets are not equal.
(c) When do you think the two sets are equal, why?
6. Let f be a function with domain in A and range in B. Let G and H be
subsets of B.
H then f
(G [ H) = f
(G
H) = f
(H)
(G) [ f
(H)
(G)
(G)
(H)
(d) k = f(x; y) : y = 2x + 3; x 2 Ag
1.2. FUNCTIONS
23
(a) f1; 2; 3; 4g
(b) f1; 3; 5; 7g
(c) N
(A).
11. For each of the following real-valued functions, nd the range of the functions f and determine if the function is one-to-one. If f is one-to-one, nd
the inverse function f 1 and specify the domain of f 1 .
(a) f (x) = 3x
2, D (f ) = R.
g.