For a function f: X → Y
f is one-one (or injective), if distinct
elements of X have distinct images in Y.
i.e., for every x1,x2∈X,
x1≠x2⇒f(x1)≠f(x2)
f(x1)=f(x2)⇒x1=x2
Here, f(x)=cosx ∀x∈R
ƒ(−π2)=cos(−π2)=0
Also, f(π2) =cos (π2)
⇒(−π2) = f(−π2)
But π2≠π2∴f(x) is not one-one
Solution:
Now, checking if the function is onto.
For that finding range of the function.
f(x)=cosx∀x∈Rwheref:R→R
Range of cosx=[−1,1]
And Co-domain = R
Since range ≠co-domain
So, the given function is not onto.
∴ Given function is neither one-one nor onto.
Hence proved.