Example 1: If f(x) = x 4 − 8 x 2, determine all local extrema for the function.
f(x) has critical points at x = −2, 0, 2. Because f'(x)changes from negative to positive around −2 and 2, f has a local minimum at (−2,−16) and (2,−16). Also, f'(x) changes from positive to negative around 0, and hence, f has a local maximum at (0,0).
Example 2: If f(x) = sin x + cos x on [0, 2π], determine all local extrema for the function.
f(x) has critical points at x = π/4 and 5π/4. Because f′(x) changes from positive to negative around π/4, f has a local maximum at
. Also f′(x) changes from negative to positive around 5π/4, and hence, fhas a local minimum at 
. Also f′(x) changes from negative to positive around 5π/4, and hence, fhas a local minimum at 

