The maximum value of the function \(f(x)=-x^2+2x-1\) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → 0
The function is a perfect square with a minus sign:
\(f(x) = -\left(x^2-2x+1\right)\)
\(= -(x-1)^2\)
Since \((x-1)^2 \ge 0\), \(f(x) \le 0\) for every x, and \(f(1) = 0\).
So the maximum value is 0, at x = 1.
The same result by derivatives: \(f'(x) = -2x+2 = 0\) gives x = 1, and \(f''(x) = -2 \lt 0\), so x = 1 is a point of maximum.