A function f:A→B, where A={x:−1≤x≤1} and B={y:1≤y≤2} is defined by the rule y=f(x)=1+x2. Which of the following statement is true?
A={x:−1≤x≤1} and B={y:1≤y≤2}.
For x=−1,
y=f(−1)
=1+(−1)2
=2
For x=1,
y=f(1)
=1+(1)2
=2
Therefore, f(−1)=f(1) but −1≠1, so the function is not injective.
Since, for every B, there is a preimage, therefore, the function is surjective.