Example 1: A global maximum on an interval
Find the greatest value of f(x) = x e⁻ˣ for 0 ≤ x ≤ 3.
f′(x) = (1 − x)e⁻ˣf′(x) = 0givesx = 1, andf″(1) = −e⁻¹ < 0, so it is a maximumf(1) = 1/e ≈ 0.368- End points:
f(0) = 0,f(3) = 3e⁻³ ≈ 0.149
Answer: The greatest value is 1/e, at x = 1.