Question:

Show that a function \(f : R \to R\) defined as \(f(x) = x^{2} + x + 1\) is neither one-one nor onto. Also, find all the values of \(x\) for which \(f(x) = 3\).

Show Hint

f(0) = f(-1) = 1 shows it is not one-one. f(x) is at least 3/4, so it is not onto. Solve x^2 + x - 2 = 0.
Updated On: Nov 20, 2026
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Show f is not one-one:
We need two different inputs with the same output.
\(f(0) = 0 + 0 + 1 = 1\) and \(f(-1) = 1 - 1 + 1 = 1\).
So \(f(0) = f(-1)\) but \(0 \ne -1\). Hence \(f\) is not one-one.

Step 2: Show f is not onto:
Complete the square: \(f(x) = \left(x + \dfrac{1}{2}\right)^{2} + \dfrac{3}{4}\).
A square is never negative, so \(f(x) \ge \dfrac{3}{4}\) for every real \(x\).
The range is \(\left[\dfrac{3}{4}, \infty\right)\), which is smaller than the codomain \(R\).
For example, \(0\) has no pre-image. Hence \(f\) is not onto.

Step 3: Solve f(x) = 3:
\(x^{2} + x + 1 = 3\) gives \(x^{2} + x - 2 = 0\).
Factorise: \((x + 2)(x - 1) = 0\), so \(x = -2\) or \(x = 1\).

Final Answer:
\(f\) is neither one-one nor onto, and \(f(x) = 3\) for \(x = 1\) and \(x = -2\).
\[ \boxed{x = 1,\ -2} \]
Was this answer helpful?
0
0