Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/discrete-mathematics-continuous-mathematics-and-probability-resit/1/a/solution

The image of a function is
The function is surjective, or onto, exactly when every equals for at least one , equivalently . It is injective, or one-to-one, exactly when
Thus surjectivity concerns whether the entire codomain is reached; injectivity concerns whether distinct inputs have distinct outputs.

New to topics? Read the docs here!