Given, A = {-1, 1}
f(x)= x2, g(x) = sin πx/2
One-one/many-one : f : A → A, f(x) = x2
f(-1) = f(1) = 1
⇒ Image of – 1 and 1 is same.
So, f is not one-one.
Onto/into : Elements of co-domain unpaired with any element of domain.
So ‘f’ is not onto.
So, f is neither one-one nor onto.
Hence, ‘f-1‘ does not exist.
Thus, for g(x) = sin πx/2
One-one/many-one : Let x1, x2 ∈ A, such that

Hence, function in one-one.
Let y ∈ R (co-domain), if possible then pre image is x in R, then

Since, pre-image of each value of y exist in domain R, then g(x) is onto function.
Hence, g(x) is one-one onto function, so g-1 exist.
