Local extrema versus maximum and minimum

A local extremum and a maximum or minimum are different things1. We see the difference with f(x)=x42x2f(x) = x^4 - 2x^2.

Finding the extrema

Since f(x)=4x34x=4x(x1)(x+1)f'(x) = 4x^3 - 4x = 4x(x - 1)(x + 1), there are three points where f=0f' = 0.

xx\cdots1-1\cdots00\cdots11\cdots
f(x)f'(x)-00++00-00++
f(x)f(x)decreasinglocal min 1-1increasinglocal max 00decreasinglocal min 1-1increasing

The local maximum is 00 and the local minimum is 1-1.

A local maximum is not a maximum

The important point here is that the local maximum is not the greatest value of the whole graph. Since ff \to \infty as x±x \to \pm\infty, this function has no maximum at all. The point (0,0)(0, 0) is merely the highest in its own neighborhood.

A minimum, on the other hand, does exist. Both local minima equal 1-1, and that is the lowest value anywhere, so the minimum is 1-1. There is no harm in two different values of xx attaining it.

ItemLocal extremumMaximum and minimum
Range compared againsta neighborhood of the pointthe whole domain, or an interval
Values for this functionlocal max 00, local min 1-1no maximum, minimum 1-1

A local extremum is a comparison made nearby; a maximum or minimum is a comparison made overall. That is why finding a maximum or minimum means examining not only the points with f=0f' = 0 but also the ends of the interval and the behavior at infinity.

Restricting the interval changes the answer

On 0x20 \leq x \leq 2 the answer is different.

Candidatexxf(x)f(x)
Local minimum111-1
Left end of the interval0000
Right end of the interval2288

The maximum is 88 and the minimum is 1-1. The point x=2x = 2 is not an extremum, but as an end of the interval it is a candidate for the maximum.

The shape of the graph

Factoring f(x)=x2(x22)f(x) = x^2(x^2 - 2) shows that the graph meets the xx-axis at x=0x = 0 and x=±2x = \pm\sqrt{2}. Since x=0x = 0 is a double root, the curve touches the axis at the origin without crossing. On 0<x<20 < |x| < \sqrt{2} we have f<0f < 0, so the graph dips below the axis.

The shape is a W. Being even it is symmetric about the yy-axis, with a small hill at the origin and two valleys at x=±1x = \pm 1.

The quartic on the graph is y=x42x2y = x^4 - 2x^2, the cubic is the derivative, and the large dots are the local minima (1,1)(-1, -1) and (1,1)(1, -1) together with the local maximum (0,0)(0, 0).

  1. Maximum and minimum, Wikipedia