Example 1: The end-point trap
Find the greatest and least values of f(x) = x e⁻ˣ for 0 ≤ x ≤ 3.
f′(x) = (1 − x)e⁻ˣ = 0givesx = 1f(1) = 1/e ≈ 0.368- End points:
f(0) = 0,f(3) = 3e⁻³ ≈ 0.149 - Compare the three values
Answer: Greatest 1/e at x = 1; least 0 at x = 0