Worked example 1
Check endpoints and stationary points
Find the greatest and least values of f(x) = x² − 4x + 1 on 0 ≤ x ≤ 5.
- Solve f'(x) = 2x − 4 = 0, giving x = 2.
- Evaluate f(0), f(2) and f(5)
- Compare 1, −3 and 6.
Answer: Least value −3 at x = 2; greatest value 6 at x = 5