Functions - Part 2 Supartha Podder One-to-One and Onto Functions A - - PowerPoint PPT Presentation

functions part 2
SMART_READER_LITE
LIVE PREVIEW

Functions - Part 2 Supartha Podder One-to-One and Onto Functions A - - PowerPoint PPT Presentation

Functions - Part 2 Supartha Podder One-to-One and Onto Functions A function f : A B is said to be one-to-one, or an injunction, if and only if f ( a ) = f ( b ) implies that a = b for all a , b A . A function is said to be injective if it


slide-1
SLIDE 1

Functions - Part 2

Supartha Podder

slide-2
SLIDE 2

One-to-One and Onto Functions

A function f : A → B is said to be one-to-one, or an injunction, if and only if f (a) = f (b) implies that a = b for all a, b ∈ A. A function is said to be injective if it is one-to-one. ∀a ∈ A, ∀b ∈ A (f (a) = f (b) → a = b)

1/15

slide-3
SLIDE 3

Onto Functions

Onto

A function f from A to B is called onto, or a surjection, if and only if for every element b ∈ B there is an element a ∈ A with f (a) = b. A function f is called surjective if it is onto. ∀y ∈ B ∃x ∈ A (f (x) = y)

2/15

slide-4
SLIDE 4

Example

3/15

slide-5
SLIDE 5

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Injectivity

4/15

slide-6
SLIDE 6

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Injectivity

Let (a, b), (c, d) ∈ R+ × R+ be arbitrary elements of f ’s domain.

4/15

slide-7
SLIDE 7

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Injectivity

Let (a, b), (c, d) ∈ R+ × R+ be arbitrary elements of f ’s domain. Assume f (a, b) = f (c, d) (Goal is to prove (a, b) = (c, d).)

4/15

slide-8
SLIDE 8

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Injectivity

Let (a, b), (c, d) ∈ R+ × R+ be arbitrary elements of f ’s domain. Assume f (a, b) = f (c, d) (Goal is to prove (a, b) = (c, d).) Then, (2a, ab) = (2c, cd) ⇒ 2a = 2c and ab = cd.

4/15

slide-9
SLIDE 9

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Injectivity

Let (a, b), (c, d) ∈ R+ × R+ be arbitrary elements of f ’s domain. Assume f (a, b) = f (c, d) (Goal is to prove (a, b) = (c, d).) Then, (2a, ab) = (2c, cd) ⇒ 2a = 2c and ab = cd. For two ordered pairs to be equal, both their 1st and 2nd coordinates must be equal.

4/15

slide-10
SLIDE 10

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Injectivity

Let (a, b), (c, d) ∈ R+ × R+ be arbitrary elements of f ’s domain. Assume f (a, b) = f (c, d) (Goal is to prove (a, b) = (c, d).) Then, (2a, ab) = (2c, cd) ⇒ 2a = 2c and ab = cd. For two ordered pairs to be equal, both their 1st and 2nd coordinates must be equal. Thus, a = c and ab − cd = 0. ⇒ ab − ad = 0 since a = c ⇒ a(b − d) = 0.

4/15

slide-11
SLIDE 11

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Injectivity

Let (a, b), (c, d) ∈ R+ × R+ be arbitrary elements of f ’s domain. Assume f (a, b) = f (c, d) (Goal is to prove (a, b) = (c, d).) Then, (2a, ab) = (2c, cd) ⇒ 2a = 2c and ab = cd. For two ordered pairs to be equal, both their 1st and 2nd coordinates must be equal. Thus, a = c and ab − cd = 0. ⇒ ab − ad = 0 since a = c ⇒ a(b − d) = 0. So, a = 0 or b = d. Now a = 0 is not possible because of the domain. So b = d. Hence f is injective.

4/15

slide-12
SLIDE 12

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

5/15

slide-13
SLIDE 13

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

Let (u, v) ∈ R+ × R+ be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ R+ × R+ (in f ’s domain) such that f (r, s) = (u, v).

5/15

slide-14
SLIDE 14

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

Let (u, v) ∈ R+ × R+ be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ R+ × R+ (in f ’s domain) such that f (r, s) = (u, v). Well, f (r, s) = (u, v) ⇔ (2r, rs) = (u, v)

5/15

slide-15
SLIDE 15

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

Let (u, v) ∈ R+ × R+ be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ R+ × R+ (in f ’s domain) such that f (r, s) = (u, v). Well, f (r, s) = (u, v) ⇔ (2r, rs) = (u, v) ⇔ 2r = u and rs = v.

5/15

slide-16
SLIDE 16

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

Let (u, v) ∈ R+ × R+ be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ R+ × R+ (in f ’s domain) such that f (r, s) = (u, v). Well, f (r, s) = (u, v) ⇔ (2r, rs) = (u, v) ⇔ 2r = u and rs = v. ⇔ r = u

2 and s = v r .

5/15

slide-17
SLIDE 17

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

Let (u, v) ∈ R+ × R+ be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ R+ × R+ (in f ’s domain) such that f (r, s) = (u, v). Well, f (r, s) = (u, v) ⇔ (2r, rs) = (u, v) ⇔ 2r = u and rs = v. ⇔ r = u

2 and s = v r .

Thus, s =

v ( u

2 ) = 2v

u .

Now we need to make sure that (r, s) = ( u

2, 2v u ) ∈ R+ × R+.

5/15

slide-18
SLIDE 18

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

Let (u, v) ∈ R+ × R+ be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ R+ × R+ (in f ’s domain) such that f (r, s) = (u, v). Well, f (r, s) = (u, v) ⇔ (2r, rs) = (u, v) ⇔ 2r = u and rs = v. ⇔ r = u

2 and s = v r .

Thus, s =

v ( u

2 ) = 2v

u .

Now we need to make sure that (r, s) = ( u

2, 2v u ) ∈ R+ × R+.

Since u ∈ R+, so is u

2 and since u, v ∈ R+ so is 2u v .

5/15

slide-19
SLIDE 19

Example of Bijective Function

Let f : (R+ × R+) → (R+ × R+) be the function defined by f (r, s) = (2r, rs). Proof that f is bijective.

Proof of Surjectivity

Let (u, v) ∈ R+ × R+ be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ R+ × R+ (in f ’s domain) such that f (r, s) = (u, v). Well, f (r, s) = (u, v) ⇔ (2r, rs) = (u, v) ⇔ 2r = u and rs = v. ⇔ r = u

2 and s = v r .

Thus, s =

v ( u

2 ) = 2v

u .

Now we need to make sure that (r, s) = ( u

2, 2v u ) ∈ R+ × R+.

Since u ∈ R+, so is u

2 and since u, v ∈ R+ so is 2u v .

Thus f ( u

2, 2v u ) = (r, s) and f is surjective.

5/15

slide-20
SLIDE 20

Inverse Functions

Let f be a one-to-one correspondence from the set A to the set B. The inverse function of f , f −1 is the function that assigns to an element b belonging to B the unique element a in A such that f (a) = b. The inverse function of f is denoted by f −1. Hence, f −1(b) = a whenf (a) = b.. Bijectivity = Injectivity + Surjectivity.

6/15

slide-21
SLIDE 21

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain.

7/15

slide-22
SLIDE 22

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).)

7/15

slide-23
SLIDE 23

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).) Then, (p − q, −p) = (r − s, −r)

7/15

slide-24
SLIDE 24

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).) Then, (p − q, −p) = (r − s, −r) ⇒ p = r and q = s

7/15

slide-25
SLIDE 25

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).) Then, (p − q, −p) = (r − s, −r) ⇒ p = r and q = s thus, (p, q) = (r, s).

7/15

slide-26
SLIDE 26

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).) Then, (p − q, −p) = (r − s, −r) ⇒ p = r and q = s thus, (p, q) = (r, s).

Surjectivity:

Let (u, v) ∈ Z × Z be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ Z × Z (in f ’s domain) such that f (r, s) = (u, v).

7/15

slide-27
SLIDE 27

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).) Then, (p − q, −p) = (r − s, −r) ⇒ p = r and q = s thus, (p, q) = (r, s).

Surjectivity:

Let (u, v) ∈ Z × Z be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ Z × Z (in f ’s domain) such that f (r, s) = (u, v). By definition of f , (u, v) = (r − s, −r), thus v = −r and u = r − s.

7/15

slide-28
SLIDE 28

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).) Then, (p − q, −p) = (r − s, −r) ⇒ p = r and q = s thus, (p, q) = (r, s).

Surjectivity:

Let (u, v) ∈ Z × Z be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ Z × Z (in f ’s domain) such that f (r, s) = (u, v). By definition of f , (u, v) = (r − s, −r), thus v = −r and u = r − s. ⇒ r = −v and s = −(u + v). And since (u, v) ∈ Z × Z, (r, s) ∈ Z × Z,

7/15

slide-29
SLIDE 29

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Injective:

Let (p, q), (r, s) ∈ Z × Z be arbitrary elements of f ’s domain. Assume f (p, q) = f (r, s) (Goal is to prove (p, q) = (r, s).) Then, (p − q, −p) = (r − s, −r) ⇒ p = r and q = s thus, (p, q) = (r, s).

Surjectivity:

Let (u, v) ∈ Z × Z be an arbitrary element of f ’s co-domain. We want to find at least one element (r, s) ∈ Z × Z (in f ’s domain) such that f (r, s) = (u, v). By definition of f , (u, v) = (r − s, −r), thus v = −r and u = r − s. ⇒ r = −v and s = −(u + v). And since (u, v) ∈ Z × Z, (r, s) ∈ Z × Z, and f (r, s) = (u, v).

7/15

slide-30
SLIDE 30

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Inverse

Now that we have proven bijectivity. Let us find f −1.

8/15

slide-31
SLIDE 31

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Inverse

Now that we have proven bijectivity. Let us find f −1. We know that f (x, y) = (r, s) hence we need to design the inverse, f −1(r, s) = (x, y).

8/15

slide-32
SLIDE 32

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Inverse

Now that we have proven bijectivity. Let us find f −1. We know that f (x, y) = (r, s) hence we need to design the inverse, f −1(r, s) = (x, y). Accordin to f , f (x, y) = (x − y, −x) = (r, s). thus x − y = r and −x = s. ⇒ x = −s and y = −s − r.

8/15

slide-33
SLIDE 33

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Inverse

Now that we have proven bijectivity. Let us find f −1. We know that f (x, y) = (r, s) hence we need to design the inverse, f −1(r, s) = (x, y). Accordin to f , f (x, y) = (x − y, −x) = (r, s). thus x − y = r and −x = s. ⇒ x = −s and y = −s − r. Hence, f −1(r, s) = (−s, −s − r).

8/15

slide-34
SLIDE 34

Example of Inverse

Is f : Z2 → Z2 defined by f (x, y) = (x − y, −x) invertible?

Inverse

Now that we have proven bijectivity. Let us find f −1. We know that f (x, y) = (r, s) hence we need to design the inverse, f −1(r, s) = (x, y). Accordin to f , f (x, y) = (x − y, −x) = (r, s). thus x − y = r and −x = s. ⇒ x = −s and y = −s − r. Hence, f −1(r, s) = (−s, −s − r). f −1(x − y, −x) = (x, x − x + y) = (x, y).

8/15

slide-35
SLIDE 35

Function Composition

Function Composition

Let g be a function from the set A to the set B and let f be a function from the set B to the set C. The composition of the functions f and g, denoted for all a ∈ A by f ◦ g, is defined by (f ◦ g)(a) = f (g(a))

9/15

slide-36
SLIDE 36

Function Composition Example

Question

Let f and g be the functions from the set of integers to the set of integers defined by f (x) = 2x + 3 and g(x) = 3x + 2. What is the composition of f and g?

10/15

slide-37
SLIDE 37

Function Composition Example

Question

Let f and g be the functions from the set of integers to the set of integers defined by f (x) = 2x + 3 and g(x) = 3x + 2. What is the composition of f and g? (f ◦ g)(x) = f (g(x)) = f (3x + 2) = 2(3x + 2) = 6x + 7.

10/15

slide-38
SLIDE 38

Function Composition Example

Let f and g be functions defined as f : Q2 → Q2, g : Q → Q2 such that f (q, r) = (q + r, 2q) and g(x) = (3x, 5 − x).

Does f ◦ g exist?

11/15

slide-39
SLIDE 39

Function Composition Example

Let f and g be functions defined as f : Q2 → Q2, g : Q → Q2 such that f (q, r) = (q + r, 2q) and g(x) = (3x, 5 − x).

Does f ◦ g exist?

Yes, f ◦ g : Q → Q2. f ◦ g(x) = f (g(x)).

11/15

slide-40
SLIDE 40

Function Composition Example

Let f and g be functions defined as f : Q2 → Q2, g : Q → Q2 such that f (q, r) = (q + r, 2q) and g(x) = (3x, 5 − x).

Does f ◦ g exist?

Yes, f ◦ g : Q → Q2. f ◦ g(x) = f (g(x)). = f (3x, 5 − x)

11/15

slide-41
SLIDE 41

Function Composition Example

Let f and g be functions defined as f : Q2 → Q2, g : Q → Q2 such that f (q, r) = (q + r, 2q) and g(x) = (3x, 5 − x).

Does f ◦ g exist?

Yes, f ◦ g : Q → Q2. f ◦ g(x) = f (g(x)). = f (3x, 5 − x)= (3x + 5 − x, 2(3x))

11/15

slide-42
SLIDE 42

Function Composition Example

Let f and g be functions defined as f : Q2 → Q2, g : Q → Q2 such that f (q, r) = (q + r, 2q) and g(x) = (3x, 5 − x).

Does f ◦ g exist?

Yes, f ◦ g : Q → Q2. f ◦ g(x) = f (g(x)). = f (3x, 5 − x)= (3x + 5 − x, 2(3x)) = (2x + 5, 6x). f ◦ g(x) = (2x + 5, 6x).

11/15

slide-43
SLIDE 43

Function Composition Example

Let f and g be functions defined as f : Q2 → Q2, g : Q → Q2 such that f (q, r) = (q + r, 2q) and g(x) = (3x, 5 − x).

Does f ◦ g exist?

Yes, f ◦ g : Q → Q2. f ◦ g(x) = f (g(x)). = f (3x, 5 − x)= (3x + 5 − x, 2(3x)) = (2x + 5, 6x). f ◦ g(x) = (2x + 5, 6x).

Does g ◦ f exist?

11/15

slide-44
SLIDE 44

Function Composition Example

Let f and g be functions defined as f : Q2 → Q2, g : Q → Q2 such that f (q, r) = (q + r, 2q) and g(x) = (3x, 5 − x).

Does f ◦ g exist?

Yes, f ◦ g : Q → Q2. f ◦ g(x) = f (g(x)). = f (3x, 5 − x)= (3x + 5 − x, 2(3x)) = (2x + 5, 6x). f ◦ g(x) = (2x + 5, 6x).

Does g ◦ f exist?

  • No. Because co-domain of f is Q2 but the domain of g is Q.

11/15

slide-45
SLIDE 45

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

12/15

slide-46
SLIDE 46

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

Assume that both f and g are surjective.

12/15

slide-47
SLIDE 47

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

Assume that both f and g are surjective. Then,

1 For each b ∈ B there exists an element a ∈ A such that f (a) = b

because f is surjective.

12/15

slide-48
SLIDE 48

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

Assume that both f and g are surjective. Then,

1 For each b ∈ B there exists an element a ∈ A such that f (a) = b

because f is surjective.

2 For each c ∈ C there exists an element b ∈ B such that g(b) = c

because g is surjective.

12/15

slide-49
SLIDE 49

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

Assume that both f and g are surjective. Then,

1 For each b ∈ B there exists an element a ∈ A such that f (a) = b

because f is surjective.

2 For each c ∈ C there exists an element b ∈ B such that g(b) = c

because g is surjective. Note that g ◦ f : A → C.

12/15

slide-50
SLIDE 50

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

Assume that both f and g are surjective. Then,

1 For each b ∈ B there exists an element a ∈ A such that f (a) = b

because f is surjective.

2 For each c ∈ C there exists an element b ∈ B such that g(b) = c

because g is surjective. Note that g ◦ f : A → C. Now, take c ∈ C, then g ◦ f (a) = g(f (a))

12/15

slide-51
SLIDE 51

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

Assume that both f and g are surjective. Then,

1 For each b ∈ B there exists an element a ∈ A such that f (a) = b

because f is surjective.

2 For each c ∈ C there exists an element b ∈ B such that g(b) = c

because g is surjective. Note that g ◦ f : A → C. Now, take c ∈ C, then g ◦ f (a) = g(f (a))= g(b) (by (1))

12/15

slide-52
SLIDE 52

Composition

Let A, B and C be sets, and let f : A → B and g : B → C be two

  • functions. Prove that if f and g are both surjective, then g ◦ f is surjective.

Assume that both f and g are surjective. Then,

1 For each b ∈ B there exists an element a ∈ A such that f (a) = b

because f is surjective.

2 For each c ∈ C there exists an element b ∈ B such that g(b) = c

because g is surjective. Note that g ◦ f : A → C. Now, take c ∈ C, then g ◦ f (a) = g(f (a))= g(b) (by (1)) = c (by (2)). Thus, g ◦ f is surjective.

12/15

slide-53
SLIDE 53

Composition

Show that if g ◦ f is surjective then g is surjective.

13/15

slide-54
SLIDE 54

Composition

Show that if g ◦ f is surjective then g is surjective. Suppose that g ◦ f is surjective.

13/15

slide-55
SLIDE 55

Composition

Show that if g ◦ f is surjective then g is surjective. Suppose that g ◦ f is surjective. Let z ∈ C. Then since g ◦ f is surjective, there exists x ∈ A such that (g ◦ f )(x) = g(f (x)) = z.

13/15

slide-56
SLIDE 56

Composition

Show that if g ◦ f is surjective then g is surjective. Suppose that g ◦ f is surjective. Let z ∈ C. Then since g ◦ f is surjective, there exists x ∈ A such that (g ◦ f )(x) = g(f (x)) = z. Therefore if we let y = f (x) ∈ B, then g(y) = z.

13/15

slide-57
SLIDE 57

Composition

Show that if g ◦ f is surjective then g is surjective. Suppose that g ◦ f is surjective. Let z ∈ C. Then since g ◦ f is surjective, there exists x ∈ A such that (g ◦ f )(x) = g(f (x)) = z. Therefore if we let y = f (x) ∈ B, then g(y) = z. Thus g is surjective.

13/15

slide-58
SLIDE 58

Composition

In each part of the exercise, give examples of sets A, B, C and functions f : A → B and g : B → C satisfying the indicated properties. (a) g is not injective but g ◦ f is injective. (b) f is not surjective but g ◦ f is surjective.

14/15

slide-59
SLIDE 59

Composition

In each part of the exercise, give examples of sets A, B, C and functions f : A → B and g : B → C satisfying the indicated properties. (a) g is not injective but g ◦ f is injective. (b) f is not surjective but g ◦ f is surjective. The same example works for both. Let A = {1}, B = {1, 2}, C = {1}, and f : A → B by f (1) = 1 and g : B → C by g(1) = g(2) = 1.

14/15

slide-60
SLIDE 60

Composition

In each part of the exercise, give examples of sets A, B, C and functions f : A → B and g : B → C satisfying the indicated properties. (a) g is not injective but g ◦ f is injective. (b) f is not surjective but g ◦ f is surjective. The same example works for both. Let A = {1}, B = {1, 2}, C = {1}, and f : A → B by f (1) = 1 and g : B → C by g(1) = g(2) = 1. Then g ◦ f : A → C is defined by (g ◦ f )(1) = 1.

14/15

slide-61
SLIDE 61

Composition

In each part of the exercise, give examples of sets A, B, C and functions f : A → B and g : B → C satisfying the indicated properties. (a) g is not injective but g ◦ f is injective. (b) f is not surjective but g ◦ f is surjective. The same example works for both. Let A = {1}, B = {1, 2}, C = {1}, and f : A → B by f (1) = 1 and g : B → C by g(1) = g(2) = 1. Then g ◦ f : A → C is defined by (g ◦ f )(1) = 1. This map is a bijection from A = {1} to C = {1}, so is injective and surjective.

14/15

slide-62
SLIDE 62

Composition

In each part of the exercise, give examples of sets A, B, C and functions f : A → B and g : B → C satisfying the indicated properties. (a) g is not injective but g ◦ f is injective. (b) f is not surjective but g ◦ f is surjective. The same example works for both. Let A = {1}, B = {1, 2}, C = {1}, and f : A → B by f (1) = 1 and g : B → C by g(1) = g(2) = 1. Then g ◦ f : A → C is defined by (g ◦ f )(1) = 1. This map is a bijection from A = {1} to C = {1}, so is injective and surjective. However, g is not injective, since g(1) = g(2) = 1, and f is not surjective, since 2 / ∈ f (A) = 1.

14/15

slide-63
SLIDE 63

Composition

Define functions f and g from Z to Z such that f is not surjective and yet g ◦ f is surjective.

15/15

slide-64
SLIDE 64

Composition

Define functions f and g from Z to Z such that f is not surjective and yet g ◦ f is surjective. Let, The map f is not surjective: the image is the set of even integers. However, g ◦ f is surjective, since (g ◦ f )(n) = g(f (n)) = g(2n)) = (2n)/2 = n so in fact g ◦ f is the identity map on Z.

15/15

slide-65
SLIDE 65

Thank you for your attention!!