Which of the following functions is onto?
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(f: R \rightarrow R,\ f(x) = 2x + 1\)
A function f: R → R is onto when every real number y is the image of some real x, that is, when the range equals the codomain R.
For f(x) = 2x + 1, take any real y and solve f(x) = y:
\(2x + 1 = y\)
\(\displaystyle x = \frac{y - 1}{2}\)
This x is a real number for every real y, and \(f\left(\frac{y - 1}{2}\right) = y\). So f is onto.