An injective function satisfies for all . A surjective function satisfies: for every , some has . The following arguments apply to function composition with the stated domains and codomains.
Let . Since is surjective, choose with . Since is surjective, choose with . Then . Thus every element of has a preimage, proving that is surjective.
Suppose . The injectivity of implies , and the injectivity of then implies . Hence is injective.
If , applying gives . The injectivity of implies , so is injective.
For any , the surjectivity of supplies with . Therefore is a preimage of under , proving surjectivity of .
For the requested counterexample, take , , , and . The function composition is the identity bijection of the singleton, but is not surjective and is not injective.

Articles by others on the same topic (0)

There are currently no matching articles.