If g and f are onto, then f∘g is onto.
- User
If g and f are onto, then f∘g is onto.
- Assistant
To determine whether the composition of two onto functions, ( f ) and ( g ), is also onto, let's define what it means for a function to be onto:
An onto function (also known as a surjective function) from a set ( A ) to a set ( B ) means that every element in ( B ) has at least one pre-image in ( A ). In other words, for every element ( b \in B ), there exists at least one element ( a \in A ) such that ( f(a) = b ).
Given:
- ( g: X \to Y ) is onto
- ( f: Y \to Z ) is onto
We need to show that the composition ( f \circ g: X \to Z ) is onto. Let's see how this works:
-
Since ( f: Y \to Z ) is onto, for every ( z \in Z ), there exists some ( y \in Y ) such that ( f(y) = z ).
-
Since ( g: X \to Y ) is onto, for that ( y \in Y ), there exists some ( x \in X ) such that ( g(x) = y ).
Now, if you take any ( z \in Z ), you can find:
- A ( y \in Y ) such that ( f(y) = z ) because ( f ) is onto.
- Then, a ( x \in X ) such that ( g(x) = y ) because ( g ) is onto.