Find the maximum of f(x) = -x^2 + 4x + 1.

Find the maximum of f(x) = -x^2 + 4x + 1.

Approach: Set derivative to zero.

5. f'(x) = -2x + 4. x = 2. f(2) = -4 + 8 + 1 = 5.

Follow-up: Is this a local or global maximum?

Key concepts: optimization.