Mathematics, Discrete Mathematics, Programming.
equal. If you input any number the output will also be the same, meaning that no two different numbers can have the same output. If we prove that it is surjective we should see what input of x will be equal to y. This is as easy as inputting y into f(x). Define x as x = y f(y) = y Thus our function