Mathematical-Reasoning ยท Unit 23 ยท Video 5 ยท Interactive Practice

What an Injective or Surjective Composite Reveals

IKey Formulas

StatementNameWhy it holds
f,gf, g injections โ‡’gโˆ˜f\Rightarrow g \circ f injection; the same for surjections and for bijectionsComposition keeps the typeFrom g(f(x))=g(f(y))g(f(x)) = g(f(y)), strip gg (it is an injection), then strip ff
gโˆ˜fg \circ f injection โ‡’f\Rightarrow f injectionThe inner function is forcedApply gg to f(x)=f(y)f(x) = f(y); every function allows that
gโˆ˜fg \circ f surjection โ‡’g\Rightarrow g surjectionThe outer function is forcedFor cโˆˆCc \in C pick xx with g(f(x))=cg(f(x)) = c and set b=f(x)b = f(x)
A={1}A = \{1\}, B={p,q}B = \{p, q\}, C={s}C = \{s\}, f(1)=pf(1) = p, g(p)=g(q)=sg(p) = g(q) = sCounterexamplegโˆ˜fg \circ f is a bijection, yet ff is not a surjection and gg is not an injection

Key Insight: The composite only ever applies gg to outputs of ff. An element of BB that ff misses, like qq, is invisible to gโˆ˜fg \circ f, so whatever gg does there cannot be detected.

IIVisualization 1 โ€” What Does the Composite Force?

Which properties of ff and gg does a given composite gโˆ˜fg \circ f actually force, and which can fail?

ff (inner)gg (outer)gโˆ˜fg \circ f
injection
surjection

๐Ÿ’ก When โˆฃAโˆฃ=โˆฃBโˆฃ|A| = |B| is finite, an injective ff reaches all of BB, so no element like qq is left over, and an injective gโˆ˜fg \circ f then forces gg to be an injection as well.

IIIVisualization 2 โ€” The Proof That gg Is a Surjection

Each cโˆˆCc \in C gets its preimage b=f(x)b = f(x) under gg from the composite, with no need for ff to be onto.

    IVQuiz Questions

    Problem 1 ยท What an Injective Composite Guarantees

    Given: nonempty sets AA, BB, CC and functions f:Aโ†’Bf : A \to B, g:Bโ†’Cg : B \to C such that gโˆ˜fg \circ f is an injection. Which statement must be true?

    โœ… Correct! An injective composite forces the inner function ff to be an injection, and nothing more.
    โŒ Not quite. In the example A={1}A = \{1\}, B={p,q}B = \{p, q\}, C={s}C = \{s\}, f(1)=pf(1) = p, g(p)=g(q)=sg(p) = g(q) = s, the composite is an injection but g(p)=g(q)g(p) = g(q) with pโ‰ qp \ne q.
    โŒ Not quite. Injectivity of gโˆ˜fg \circ f says nothing about reaching all of BB: in the example f(1)=pf(1) = p, nothing goes to qq, yet gโˆ˜fg \circ f is an injection.
    โŒ This is the common guess. It claims too much: ff must be an injection, but the example with g(p)=g(q)=sg(p) = g(q) = s has an injective composite and a non-injective gg.
    Show solution

    Let x,yโˆˆAx, y \in A with f(x)=f(y)f(x) = f(y). Since gg is a function, applying it to equal inputs gives equal outputs:

    g(f(x))=g(f(y)),thatย is,(gโˆ˜f)(x)=(gโˆ˜f)(y).g(f(x)) = g(f(y)), \quad\text{that is,}\quad (g \circ f)(x) = (g \circ f)(y).

    Since gโˆ˜fg \circ f is an injection, x=yx = y. So ff is an injection. The proof used nothing about gg.

    The other options fail for A={1}A = \{1\}, B={p,q}B = \{p, q\}, C={s}C = \{s\}, f(1)=pf(1) = p, g(p)=g(q)=sg(p) = g(q) = s: here gโˆ˜fg \circ f is an injection, gg is not an injection, and ff is not a surjection.

    Problem 2 ยท A Collision the Composite Never Sees

    Given: A={1,2}A = \{1, 2\}, B={p,q,r}B = \{p, q, r\}, C={s,t}C = \{s, t\}, with f(1)=qf(1) = q, f(2)=rf(2) = r and g(p)=sg(p) = s, g(q)=sg(q) = s, g(r)=tg(r) = t. Which statement is true?

    โœ… Correct! (gโˆ˜f)(1)=s(g \circ f)(1) = s and (gโˆ˜f)(2)=t(g \circ f)(2) = t, so the composite is a bijection, while g(p)=g(q)g(p) = g(q) happens at pp, which ff never reaches.
    โŒ Not quite. The composite applies gg only to f(1)=qf(1) = q and f(2)=rf(2) = r. Their images ss and tt are different, so the collision at pp never enters gโˆ˜fg \circ f.
    โŒ Wrong function. A surjective composite forces the outer function gg to be a surjection. Here ff misses pp.
    โŒ Wrong function. An injective composite forces the inner function ff to be an injection. Here g(p)=g(q)=sg(p) = g(q) = s with pโ‰ qp \ne q.
    Show solution

    Compute the composite: (gโˆ˜f)(1)=g(q)=s(g \circ f)(1) = g(q) = s and (gโˆ˜f)(2)=g(r)=t(g \circ f)(2) = g(r) = t. Its two inputs have different outputs, and both elements of CC are reached, so gโˆ˜f:Aโ†’Cg \circ f : A \to C is a bijection.

    The parts: ff is an injection (qโ‰ rq \ne r) but not a surjection (nothing goes to pp); gg is a surjection but not an injection (g(p)=g(q)=sg(p) = g(q) = s). Both failures happen at pp, the element of BB outside the range of ff, which is why the composite cannot detect them.

    Problem 3 ยท Compose, Then Diagnose

    Given: A={1,2,3}A = \{1, 2, 3\}, B={p,q,r,s}B = \{p, q, r, s\}, C={u,v,w}C = \{u, v, w\}, with f(1)=qf(1) = q, f(2)=sf(2) = s, f(3)=pf(3) = p and g(p)=wg(p) = w, g(q)=ug(q) = u, g(r)=ug(r) = u, g(s)=vg(s) = v.

    What is (gโˆ˜f)(3)(g \circ f)(3)?

    Which description is correct?

    โœ… Correct! gโˆ˜fg \circ f sends 1โ†ฆu1 \mapsto u, 2โ†ฆv2 \mapsto v, 3โ†ฆw3 \mapsto w, and as the theorem promises, ff is an injection and gg is a surjection.
    โŒ Follow both arrows. First f(3)=pf(3) = p, then g(p)=wg(p) = w.
    โŒ That is only halfway. f(3)=pf(3) = p is an element of BB; the composite continues with g(p)=wโˆˆCg(p) = w \in C.
    โŒ The converse fails. ff misses rr, so it is not a surjection, and g(q)=g(r)g(q) = g(r), so gg is not an injection.
    โŒ Not quite. The composite applies gg only to f(1)=qf(1) = q, f(2)=sf(2) = s, f(3)=pf(3) = p; the element rr is never an output of ff, so g(r)=ug(r) = u never enters gโˆ˜fg \circ f.
    โŒ Swapped. ff has three different outputs q,s,pq, s, p but misses rr; gg reaches u,v,wu, v, w but sends qq and rr to the same uu.
    Show solution

    (gโˆ˜f)(1)=g(q)=u,(gโˆ˜f)(2)=g(s)=v,(gโˆ˜f)(3)=g(p)=w.(g \circ f)(1) = g(q) = u, \quad (g \circ f)(2) = g(s) = v, \quad (g \circ f)(3) = g(p) = w.

    The three outputs are different and cover CC, so gโˆ˜f:Aโ†’Cg \circ f : A \to C is a bijection.

    ff: its outputs q,s,pq, s, p are different, so ff is an injection; nothing goes to rr, so ff is not a surjection.

    gg: it reaches u,v,wu, v, w, so it is a surjection; g(q)=g(r)=ug(q) = g(r) = u with qโ‰ rq \ne r, so it is not an injection.

    This matches the theorem: an injective composite forces ff injective, a surjective composite forces gg surjective, and the other two properties fail, both at rr.

    Problem 4 ยท An Infinite Version of the Counterexample

    Given: T={xโˆˆRโˆฃxโ‰ฅ0}T = \{x \in \mathbb{R} \mid x \ge 0\}, f:Tโ†’Rf : T \to \mathbb{R} with f(x)=xf(x) = x, and g:Rโ†’Tg : \mathbb{R} \to T with g(x)=x2g(x) = x^2. Then gโˆ˜f:Tโ†’Tg \circ f : T \to T. Which statement is true?

    โœ… Correct! Both failures happen at negative numbers, which ff never outputs, so the composite xโ†ฆx2x \mapsto x^2 on TT cannot see them.
    โŒ Not quite. The composite applies gg only to outputs of ff, which are all โ‰ฅ0\ge 0; the input โˆ’1-1 is never one of them. For a,bโˆˆTa, b \in T, a2=b2a^2 = b^2 gives a=ba = b.
    โŒ The converse fails. โˆ’1โˆˆR-1 \in \mathbb{R} is not f(x)f(x) for any xโˆˆTx \in T, and g(โˆ’1)=g(1)=1g(-1) = g(1) = 1 with โˆ’1โ‰ 1-1 \ne 1.
    โŒ Check the codomain. The codomain of gโˆ˜fg \circ f is TT, which has no negative numbers to miss; every cโˆˆTc \in T equals (gโˆ˜f)(c)(g \circ f)(\sqrt{c}).
    Show solution

    For xโˆˆTx \in T, (gโˆ˜f)(x)=g(x)=x2(g \circ f)(x) = g(x) = x^2.

    Injection: if a,bโˆˆTa, b \in T and a2=b2a^2 = b^2, then (aโˆ’b)(a+b)=0(a - b)(a + b) = 0. If a+b=0a + b = 0 then a=b=0a = b = 0, because both are โ‰ฅ0\ge 0; otherwise a=ba = b.

    Surjection: for cโˆˆTc \in T, the number cโˆˆT\sqrt{c} \in T satisfies (gโˆ˜f)(c)=c(g \circ f)(\sqrt{c}) = c.

    So gโˆ˜fg \circ f is a bijection, and by the theorem ff is an injection and gg is a surjection. But ff is not a surjection (โˆ’1-1 is never an output) and gg is not an injection (g(โˆ’1)=g(1)=1g(-1) = g(1) = 1). Both failures sit at negative numbers, outside the range of ff.

    Solved: 0 / 4