Docsity

Composition and Inverses of Functions, Lecture notes of Calculus

Toggle sidebar
bg1
6.4 Composition and Inverses
Definition
If f:A→Band g:B→Care functions the we define the composite
function,gā—¦f:A→Cby (gā—¦f)(a) = g(f(a)) for each a∈A.
Example 78
(1)
AB
1
2
3
4
a
b
c
f
C
a
b
g
g
So
gā—¦f(1) = g(f(1)) = g(b) = γ,
gā—¦f(2) = g(f(2)) = g(b) = γ,
gā—¦f(3) = g(f(3)) = g(a) = β,
gā—¦f(4) = g(f(4)) = g(c) = α.
(2) Define f:R→R, x 7→ x2āˆ’1 and g:R→R, x 7→ x+ 1.Then
(gā—¦f)(x) = g(f(x)) = g(x2āˆ’1) = (x2āˆ’1) + 1 = x2
and
(fā—¦g)(x) = f(g(x)) = f(x+ 1) = (x+ 1)2āˆ’1 = x2+ 2x.
Note that gā—¦f(1) = 12= 1 while fā—¦g(1) = 12+ 2 = 3 and so gā—¦f(1) 6=
fā—¦g(1) and thus gā—¦f6=fā—¦g. Hence composition of functions need not
be commutative.
1
pf3
pf4

Partial preview of the text

Download Composition and Inverses of Functions and more Lecture notes Calculus in PDF only on Docsity!

6.4 Composition and Inverses

Definition If f : A → B and g : B → C are functions the we define the composite function, g ā—¦ f : A → C by (g ā—¦ f )(a) = g(f (a)) for each a ∈ A.

Example 78 (1)

A^ B 1

2 3

4

a

b

c

f

C a

b

g

g

So

g ā—¦ f (1) = g (f (1)) = g (b) = γ, g ā—¦ f (2) = g (f (2)) = g (b) = γ, g ā—¦ f (3) = g (f (3)) = g (a) = β, g ā—¦ f (4) = g (f (4)) = g (c) = α.

(2) Define f : R → R, x 7 → x^2 āˆ’ 1 and g : R → R, x 7 → x + 1. Then

(g ā—¦ f )(x) = g(f (x)) = g(x^2 āˆ’ 1) = (x^2 āˆ’ 1) + 1 = x^2

and

(f ā—¦ g)(x) = f (g(x)) = f (x + 1) = (x + 1)^2 āˆ’ 1 = x^2 + 2x.

Note that g ā—¦ f (1) = 1^2 = 1 while f ā—¦ g(1) = 1^2 + 2 = 3 and so g ā—¦ f (1) 6 = f ā—¦ g(1) and thus g ā—¦ f 6 = f ā—¦ g. Hence composition of functions need not be commutative.

Definition The identity function, 1A, on a set A satisfies 1A(a) = a for all a ∈ A.

Definition A function f : A → B has an inverse function if, and only if, there exists a function g : B → A such that both g ā—¦ f, which maps from A → B → A, i.e. from A → A, is the identity function on A and f ā—¦ g, which maps from B → A → B, i.e. from B → B, is the identity function on B. That is g ā—¦ f = 1A and f ā—¦ g = 1B. If the inverse function exists we label it as f āˆ’^1.

Result: If f has an inverse then f is a bijection.

*Proof (not for examination) Assume f : A → B has an inverse.

(i) Given b ∈ B, take a = f āˆ’^1 (b) then

f (a) = f (f āˆ’^1 (b)) = (f ā—¦ f āˆ’^1 )(b) = 1B (b) = b.

Thus f maps onto b. This is true for all b ∈ B, so f maps onto B, i.e. f is an onto function.

(ii) By definition of f āˆ’^1 we have

(f āˆ’^1 ā—¦ f )(a) = 1A(a) = a āˆ€a ∈ A. Assume

f (a 1 ) = f (a 2 ).

Apply f āˆ’^1 to both sides. Then

f āˆ’^1 (f (a 1 )) = f āˆ’^1 (f (a 2 )) i.e (f āˆ’^1 ā—¦ f )(a 1 ) = (f āˆ’^1 ā—¦ f )(a 2 ) i.e. (^1) A(a 1 ) = 1A(a 2 ) hence a 1 = a 2.

Thus f (a 1 ) = f (a 2 ) ⇒ a 1 = a 2.

Therefore f is 1–1.

So, if f : A → B has an inverse we can conclude that f is a bijection. In other words, only bijections have inverses.

To check that f ā—¦ g = 1Z we again have two cases though this time they are n ≄ 0 and n < 0. In the first case

f ā—¦ g(n) = f (g(n)) = f (2n + 1), since n ≄ 0 , = (2n^ + 1)^ āˆ’^1 2

, since 2n + 1 is odd, = n.

In the second case, when n < 0 we get

f ā—¦ g(n) = f (g(n)) = f (āˆ’ 2 n), since n < 0 , = āˆ’ (āˆ’^2 n) 2

, since āˆ’ 2 n is even, = n.

Thus f ā—¦ g(n) = n for all n ∈ Z and so f ā—¦ g = 1Z.

Example 80 (c.f. Example 77(5)) The function

f : R → R, x 7 → 2 x^ āˆ’^1 3 has inverse

g : R → R, x 7 →

3 x + 1

Check:

(g ā—¦ f )(x) = g(f (x)) = g

2 x āˆ’ 1 3

( (^2) xāˆ’ 1 3

(2x āˆ’ 1) + 1 2 =^ x^ = 1R(x) and

(f ā—¦ g)(x) = f (g(x)) = f

3 x + 1 2

( (^3) x+ 2

= (3x^ + 1)^ āˆ’^1 3

= x = 1R(x).