Lecture 2 Part A
Lecture 2 Part A
Lecture 2 Part A
1
Functions
Function - Mapping
2
Example : Let X = {a, b, c, d}
، Y = {x, y, z} and f : X Y
such that
f is function
D(g) = {x R: 2 - x ≥ 0}
= {x R: 2 ≥ x} = (- ∞, 2]
D(f + g) = D(f) D(g) = [0, ∞) (- ∞, 2]
= [0, 2] 0 2
Her where
D(h) = {x : 2x - 3 ≥ 0}
={x : x ≥ 3/2} = [3/2, ∞)
D(g) =
Z(g) = {x: x2 – 5x + 4 = 0}
= {x: (x – 4)(x – 1) = 0} = {1, 4}
3/2
polynomials.
Z(g) = {x R: x2 – 9 = 0}
= {x R : (x – 3)(x + 3) = 0} = {3, -3}
8
Function composition
9
Example :
1) Let f: X Y , g: Y Z are define as
then (g o f) : X Z where
(gof)(a) = g(f(a)) = g(y) = t
10
Example :
Let f: R R, f(x) = x2 and g: R R, g(x) = x - 3. Then
(fog)(2) = f(g(2)) = f(-1) = 1
(gof)(2) = g(f(2)) = g(4) = 1
Note that f o g g o f
11
Example:
Let f: R R, f(x) = sin x and g: R R, g(x) = x2.
1) Show that f o g g o f.
2) Find (fog)(/2) and (gof)(/3)
(fog)(x) = f(g(x)) = f(x2) = sin x2
(gof)(x) = g(f(x)) = g(sin x) = (sin x)2
So, f o g g o f.
(fog)(/2) = f(g(/2)) = f(/4) = sin (/4) = 1/2
(gof)(/3) = g(f(/3)) = g(sin (/3)) = (sin /3)2 = ¾.
12
Inverse function
Let f: X Y and g :Y X be two functions. If f(g(y)) = y and
g(f(x)) = x, then g is called the inverse of f and f is the inverse of g.
In this case f is called invertible with inverse g = f-1. Not all
functions have an inverse.
13
Example: Use the graph the following
functions to determine whether or not they
have inverses.
1) f(x) = (x - 3) x2.
There is a horizontal line that hits the graph more
than once. f does not have an inverse.
15
Example Find f-1(x) where f(x) = x3 + 2
Step 1 y = x3 + 2.
Step 2 x = y3 + 2.
Step 3 x - 2 = y3 = y.
Step 4 f-1(x) =
16
Example Find f -1(x) where f(x) =
Step 1 y=
Step 2 x=
Step 3 x2 = y - 3 y = x2 + 3.
Step 4 f-1(x) = x2 + 3.
(fof -1)(x) = f(f -1(x)) = f(x2+ 3) = =x
(f -1o f)(x) = f -1 (f(x)) = f -1 ( )=( )2 + 3 = x
17
18