Understanding Stationary Points and Extrema in Functions