A = {−1, 0, 1} and f = {(x, x2) : x ∈ A}
Given, f(x) = x2
Injectivity:
f(1) = 12=1 and
f(-1)=(-1)2=1
1 and -1 have the same images.
So, f is not one-one.
Surjectivity:
Co-domain of f = {-1, 0, 1}
f(1) = 12 = 1,
f(-1) = (-1)2 = 1 and
f(0) = 0
Range of f = {0, 1}
So, both are not same.
Hence, f is not onto.