Question
Question: A mapping is defined as \(f:R \to R,f\left( x \right) = \cos x\), show that it is neither one-one no...
A mapping is defined as f:R→R,f(x)=cosx, show that it is neither one-one nor surjective.
Solution
To solve this question, we have to remember that a function f:A→B is a bijection if it is one-one as well as onto (surjection).
(i) one-one i.e. f(x)=f(y)⇒x=y∀x,y∈A
(ii) onto i.e. for all y∈B, there exists X∈A such that f(x)=y
Complete step-by-step answer:
Given that,
f:R→R,f(x)=cosx
We have to show that the given function is neither one-one nor onto (surjection).
So,
First, let us check for one-one.
Let x and y be two arbitrary elements of R (domain of f) such that f(x)=f(y)
Then,
⇒cosx=cosy
We know that, f(0)=cos0=1 and f(2π)=cos2π=1,
i.e. f(0)=f(2π), but 0=2π
hence, different elements in R may have the same image. So, it is not a one-one function.
Now, for surjection (onto).
Let y be an arbitrary element of R.
Then,
⇒f(x)=y
Since, the value of cos x lies between -1 and 1, it follows that the range of f(x) is not equal to its co-domain.
So, f is not a surjection.
Hence, we can say that the mapping f:R→R,f(x)=cosx is neither one-one nor surjective.
Note: In this type of questions, we have to observe the properties of the given function such as its domain, co-domain and range. Using these properties, we can easily identify that either the given function is an injection, surjective or bijection. Through this, we will get the answer.