Download presentation
Presentation is loading. Please wait.
Published byMarja-Leena Mäkinen Modified over 5 years ago
1
Today’s topics: Proof that a given function is injective or surjective. Composite functions Properties of the composite functions. Inverse functions. Proofs with functions.
2
Let A =R{1} and f : A A be defined by the formula:
Prove that f is injective and surjective. 1) injective: Let x and y be arbitrary elements of A such that f (x) = f (y ), (1). We must show that (1) implies x = y by assumption since (x 1)0 and (y 1)0 by algebra
3
2) surjective: for any y there exists x A , such that
f (x)=y . Take arbitrary y A and find x A from f (x)=y
4
Composition of functions
a A f B f (a)=b g C g (b)=c gf (Note, that in the context of function composition, the order in which the functions appear is backward, i. e. the rightmost function is applied first) Theorem. Let f : AB and g: BC be two functions. The composition of f and g as relations defines a function gf : A C, such that gf (a)= g(f(a)).
5
Proof. We need to prove that composite relation gf is a function.
For this we must prove two things: 1) the composition gf relates each element aA to some c C. 2) an element c C assigned to a by gf is unique, so we can denote it c= g(f (a)). 1) existence: Let b=f (a) B. Let c=g(b) C. So, by the definition of composition of relations, (a, c)gf . Thus, cC [(a, c)gf ] a A g C g (b)=c f B f (a)=b gf
6
2) uniqueness: Suppose (a, c1)gf and (a, c2)gf .
Then by the definition of composition, b1B, such that (a, b1)f and (b1, c1)g, and b2B, such that (a, b2)f and (b2, c2)g. Since f is a function, there may be only one b B, such that (a, b)f, so b1= b2. Since g is a function, (b, c1)g and (b, c2)g imply that c1= c2. a c1 c2 b1 f g b2 Thus, (gf )(a)= c= g (b) = g (f (a)).
7
Properties of the composite function
How the injective (surjective) property of gf depends on properties of f and g f g g f • g f • f g
8
Theorem. Consider functions f : AB and g: B C, and
the composition gf : AC. a) If both f and g are injective, then gf is injective. b) If both f and g are surjective, then gf is surjective. c) If both f and g are bijective, then gf is bijective. Proof. a) Let a1 and a2 be arbitrary elements of A such that (gf )(a1) = (gf )(a2). By the previous Theorem, it implies that g (f (a1)) = g (f (a2)). Since g is injective it implies that f (a1) = f (a2), and since f is injective by assumption, a1 = a2. a1 a2 g(f (a1))=g(f (a2)). f g f (a1) f (a2) A B C
9
b) Take an arbitrary element cC.
Since g is surjective, there exists bB such that g(b)=c. Similarly, since f is surjective,there exists aA such that f (a)=b. Then (gf )(a) = g(f(a)) = g(b) = c. So, gf is surjective. C c g B b f A a gf g surjective: c, b (g(b)=c) f surjective: b, a (f (a)=b)
10
c) If both f and g are bijective, then both f and g are injective and
surjective. By parts a) and b) gf is injective and surjective, so gf is bijective. So, injective (surjective) properties of two functions, f and g are sufficient condition for injective (surjective) property of the composite function. The question arises whether both conditions are necessary as well. Let f : AB and g: B C be two functions and the composition gf : AC is injective. What properties of of f and g can be implied? What properties of f and g can be implied if gf is surjective?
11
Example. Let f : AB and g: B C be two functions such that
the composite function gf : AC is injective. Prove or disprove that both f and g are injective. Injective property of gf : AC implies if (gf )(x)=(gf )(y), then x = y. Let’s prove by contradiction that f must be injective. For this assume that gf is injective, but f is not injective. Then we can find x, y A such that x y and f (x)=f (y). By taking composite function for these x and y we have that g(f (x)) = g(f (y)) while x y. But this results to contradiction with injective property of composite function. (gf )(x) x y f g x y g( f (x))= g( f (y)) (gf )(y) gf injective f injective
12
What about gf injective g injective ?
This implication can be disproved by the following counterexample: f g g is not injective, but gf is! If f was surjective, then we would not be able to disprove that gf injective g injective!
13
Example: f : [0, ] [0, ], f (x)=x/2.
g : [0, ] [0, 1], g (y)=sin(y), not injective g(y) = sin(y): [0, ] [0, 1] gf =sin(x/2): [0, ] [0, 1] gf =sin(x/2): [0, ] [0, 1], is injective, but g is not.
14
Example. Let f : AB and g: B C be two functions such that
the composite function gf : AC is surjective. Prove or disprove that both f and g are surjective. Let’s prove that if gf is surjective then g is surjective. Surjective property of gf implies that for any zC there exists x A such that (gf )(x)=z. It means that g(f (x))=z. Since f is a function, there exists a unique element y B such that y=f (x). But g(f (x))= g(y)= z. z x gf y=f (x) Thus, for any zC there exists y B such that g(y)= z. Than means that g is surjective.
15
/ The following example shows that gf is surjective f is surjective
If we knew that g were injective, we could prove that gf is surjective f is surjective !
16
Example. Let f : RR, and g : RR denote two functions,
where R is the set of real numbers. Suppose gf (x)=2x+1 for all x R ( i. e. the composite function is both surjective and injective). a) Prove that the function f is injection. Let f (x)= f (y), we need to show that x = y. Since g is a function on a set of real numbers, f (x)= f (y) implies g(f (x))= g (f (y)), i. e. 2x+1 = 2y+1 (by assumption gf (x)=2x+1). So, it yields x = y . QED. b) Prove the function g is a surjection. Take arbitrary z R, we need to show that y R such that g(y)=z. But for any z R there always exist x, y R, x = (z1)/2 and y=f (x), so that g(y) = g (f (x)) = 2(z1)/2+1=z
17
Inverse function. Suppose the relation R A B is a function.
The inverse relation was defined as: R-1 = { (b, a) | (a, b) R } BA Is R-1 a function? R-1 R R is a function R-1 is not a function. Why?
18
Theorem. Let f : A B be a bijection. Then the inverse relation
R R is a function R-1 R-1 is not a function. Why? Theorem. Let f : A B be a bijection. Then the inverse relation of f , defined from B to A as {(b, a)| bB, aA and f (a)=b}, is a function from B to A such that gf (a)=a for all a A and fg (b)=b for all b B. The function g is called the inverse function of f and is denoted f –1.
19
Proof. Since f : A B is a bijection, for each bB there exists
one and only one element aA such that f (a) =b . Thus, the relation from B to A, relating bB to its pre-image aA under f , is a function. That is we defined a function g : BA such that for any bB, g(b) =a iff f (a)=b. Thus, gf (a)= g(f (a)) = a Similarly, fg (b)=f (g (b))=b.
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.