How do you find the local extrema of a function?

First find the critical numbers. $c$ is a critical number for $f$ if and only if $c$ is in the domain of $f$ and either $f ' \left(c\right) = 0$ or $f ' \left(c\right)$ does not exist.