The function is given by:
\( f(x) = -2x^2 + 4x + 1 \)
To find the maximum or minimum, we take the derivative of \( f(x) \): \[ f'(x) = \frac{d}{dx}(-2x^2 + 4x + 1) \] \[ f'(x) = -4x + 4 \] Set the derivative equal to 0 to find the critical point: \[ -4x + 4 = 0 \] \[ -4x = -4 \] \[ x = 1 \]
Since the coefficient of \( x^2 \) in the quadratic function is negative (-2), the parabola opens downwards, and the critical point represents a maximum.
The maximum value of the function occurs at \( \boxed{x = 1} \).