190 likes | 331 Views
Today’s topics:. Proof that a given function is injective or surjective. Composite functions Properties of the composite functions. Inverse functions. Proofs with functions. . Let A =R {1} and f : A A be defined by the formula:.
E N D
Today’s topics: • Proof that a given function is injective or surjective. • Composite functions • Properties of the composite functions. • Inverse functions. • Proofs with functions.
Let A =R{1} and f : A A be defined by the formula: Prove that f is injective and surjective. 1) injective: Let xand y be arbitrary elements of A such that f (x) = f (y ), (1). We must show that (1) implies x = y by assumption since (x1)0 and (y1)0 by algebra
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
B C f g A a f (a)=b g (b)=c gf Composition of functions (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 compositionof f and g as relations defines a function gf : A C, such that gf (a)= g(f(a)).
B C f g A a f (a)=b g (b)=c gf 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 ]
b1 g c1 f a b2 c2 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. Thus, (gf )(a)= c= g (b) =g (f (a)).
g f f g g g f f • • Properties of the composite function • How the injective (surjective) property of gf depends • on properties of f and g
B g C f A a1 f (a1) g(f (a1))=g(f (a2)). a2 f (a2) 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.
C B A g f c b a gf 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. g surjective: c, b (g(b)=c) f surjective: b, a (f (a)=b)
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?
(gf )(x) x g x y f (gf )(y) y 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, yA 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. g( f (x))= g( f (y)) gf injective f injective
g f What about gf injective g injective? This implication can be disproved by the following counterexample: g is not injective, but gf is! If fwas surjective, then we would not be able to disprove that gf injective g injective!
g(y) = sin(y): [0, ] [0, 1] gf =sin(x/2): [0, ] [0, 1] Example: f : [0, ] [0, ], f (x)=x/2. g : [0, ] [0, 1], g (y)=sin(y), not injective gf =sin(x/2): [0, ] [0, 1], is injective, but g is not.
gf z x 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. y=f (x) Thus, for any zC there exists y B such that g(y)= z. Than means that g is surjective.
g f 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 !
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
R-1 R R is a function 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-1is not a function. Why?
R R-1 R is a function R-1is 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.
Proof. Since f : A Bis 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 : BAsuch 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.