Introduction to Local Maxima and Local Minima

In many practical applications, we need to find the maximum or minimum values of a varying quantity. For a continuous function, the peaks and valleys on its graph represent the maximum and minimum values respectively within a certain neighborhood.

Local Maximum

A point x=cx=c is a point of local maximum if there is an interval (ch,c+h)(c-h, c+h) around cc such that f(c)f(x)f(c) \ge f(x) for all xx in that interval. The value f(c)f(c) is called the local maximum value.

Local Minimum

A point x=cx=c is a point of local minimum if there is an interval (ch,c+h)(c-h, c+h) around cc such that f(c)f(x)f(c) \le f(x) for all xx in that interval. The value f(c)f(c) is called the local minimum value.

Extreme Values

The local maximum and local minimum values of a function are collectively known as local extreme values.

These are called local because the comparison is made only with nearby points, not necessarily with all points in the entire domain.


Critical Points and Turning Points

Before applying derivative tests, we need to identify candidate points where a maximum or minimum could occur.

Critical Point

A point cc in the domain of a function ff at which either f(c)=0f'(c) = 0 or ff is not differentiable is called a critical point of ff.

Turning Point

A point where the graph of a continuous function changes its nature from strictly increasing to strictly decreasing or vice versa.

Important Note: Every point of local maximum or local minimum must be a critical point, but not every critical point gives a local extremum. Some critical points are neither maxima nor minima; for example, they may be stationary points where the curve continues to increase on both sides, or points of inflection.

First Derivative Test

Let ff be a function defined on an open interval II. Let ff be continuous at a critical point cc in II. Then:

1.Local Maximum

If f(x)f'(x) changes sign from positive to negative as xx increases through cc (that is, f(x)>0f'(x) > 0 for xx slightly less than cc, and f(x)<0f'(x) < 0 for xx slightly greater than cc), then cc is a point of local maximum.

2.Local Minimum

If f(x)f'(x) changes sign from negative to positive as xx increases through cc (that is, f(x)<0f'(x) < 0 for x<cx < c, and f(x)>0f'(x) > 0 for x>cx > c), then cc is a point of local minimum.

3.Neither Maximum nor Minimum

If f(x)f'(x) does not change sign as xx increases through cc, then cc is neither a point of local maximum nor a point of local minimum.

Sometimes such a point may be a point of inflection, but that requires an additional change in concavity; it is not automatic merely because f(x)f'(x) does not change sign.


Second Derivative Test

This test is often quicker than the First Derivative Test when the second derivative is easy to compute.

Let ff be a function defined on an interval II and let cIc \in I. Suppose ff is twice differentiable at cc. Then:

1.Local Maximum

x=cx=c is a point of local maximum if f(c)=0f'(c) = 0 and f(c)<0f''(c) < 0. In this case, the curve is concave downward at cc.

2.Local Minimum

x=cx=c is a point of local minimum if f(c)=0f'(c) = 0 and f(c)>0f''(c) > 0. In this case, the curve is concave upward at cc.

3. Test Fails

If f(c)=0f'(c) = 0 and f(c)=0f''(c) = 0, then the test is inconclusive. In that case, we must use the First Derivative Test or some other method.

So, the second derivative test is a shortcut, but it does not always decide the nature of a critical point.


Solved Examples

Example 1: Local Maxima and Minima of a Polynomial

Find all points of local maxima and local minima of the function f(x)=x33x+3f(x) = x^3 - 3x + 3.

Solution: Step 1: Find the first derivative f(x)f'(x). f(x)=3x23=3(x21)=3(x1)(x+1).f'(x) = 3x^2 - 3 = 3(x^2 - 1) = 3(x - 1)(x + 1).

Step 2: Find the critical points by setting f(x)=0f'(x) = 0. 3(x1)(x+1)=0    x=1,  x=1.3(x - 1)(x + 1) = 0 \implies x = 1,\; x = -1. So the possible points of local extrema are x=1x=1 and x=1x=-1.

Step 3: Find the second derivative. f(x)=ddx(3x23)=6x.f''(x) = \frac{d}{dx}(3x^2 - 3) = 6x.

Step 4: Test each critical point.

  • At x=1x=1: f(1)=6>0.f''(1)=6>0. Therefore the graph is concave upward there, so x=1x=1 is a point of local minimum. The local minimum value is f(1)=133(1)+3=1.f(1)=1^3-3(1)+3=1.
  • At x=1x=-1: f(1)=6<0.f''(-1)=-6<0. Therefore the graph is concave downward there, so x=1x=-1 is a point of local maximum. The local maximum value is f(1)=(1)33(1)+3=1+3+3=5.f(-1)=(-1)^3-3(-1)+3=-1+3+3=5.

Answer: Local maximum at x=1x=-1 with value 55; local minimum at x=1x=1 with value 11.


Example 2: Critical Point Which Is Not an Extremum

Find all points of local maxima and local minima of the function f(x)=2x36x2+6x+5f(x) = 2x^3 - 6x^2 + 6x + 5.

Solution: Step 1: Find the first derivative. f(x)=6x212x+6=6(x22x+1)=6(x1)2.f'(x) = 6x^2 - 12x + 6 = 6(x^2 - 2x + 1) = 6(x - 1)^2.

Step 2: Find the critical points. 6(x1)2=0    x=1.6(x-1)^2=0 \implies x=1. So the only critical point is x=1x=1.

Step 3: Try the second derivative test. f(x)=12(x1).f''(x)=12(x-1). At x=1x=1, f(1)=0.f''(1)=0. So the second derivative test fails.

Step 4: Use the first derivative test. Observe that f(x)=6(x1)20f'(x)=6(x-1)^2 \ge 0 for all real xx, and in fact it is positive for all x1x\ne 1. Thus:

  • for x<1x<1, f(x)>0f'(x)>0,
  • for x>1x>1, f(x)>0f'(x)>0.

Step 5: Conclude. Since the derivative does not change sign at x=1x=1, the function is increasing on both sides of x=1x=1. Therefore, x=1x=1 is neither a point of local maximum nor a point of local minimum. In this case, it is a stationary point of inflection.

Answer: The function has no local maximum and no local minimum. The critical point x=1x=1 is a stationary point of inflection.


Example 3: A Function with No Maxima or Minima

Find the local maxima and local minima, if any, for the function f(x)=exf(x) = e^x.

Solution: Step 1: Differentiate the function. f(x)=ex.f'(x)=e^x.

Step 2: Find critical points by solving f(x)=0f'(x)=0. That gives ex=0.e^x=0. But this equation has no real solution because ex>0e^x>0 for every real number xx.

Step 3: Conclude. Since the derivative is never zero and is never undefined, the function has no critical points. Without any critical points, the function cannot have a local maximum or a local minimum. Also, because f(x)>0f'(x)>0 for all xx, the function is strictly increasing everywhere.

Answer: The function has no local maxima and no local minima.


Example 4: Rational Function Maxima and Minima

Find the local maximum and local minimum values of the function f(x)=x+1xf(x) = x + \frac{1}{x}, x0x \ne 0.

Solution: Step 1: Differentiate the function. f(x)=11x2.f'(x)=1-\frac{1}{x^2}.

Step 2: Find critical points. Set f(x)=0f'(x)=0: 11x2=0    1=1x2    x2=1    x=1,1.1-\frac{1}{x^2}=0 \implies 1=\frac{1}{x^2} \implies x^2=1 \implies x=1, -1.

Step 3: Find the second derivative. f(x)=ddx(1x2)=2x3=2x3.f''(x)=\frac{d}{dx}\left(1-x^{-2}\right)=2x^{-3}=\frac{2}{x^3}.

Step 4: Test each critical point.

  • At x=1x=1: f(1)=2>0,f''(1)=2>0, so x=1x=1 is a point of local minimum. The local minimum value is f(1)=1+1=2.f(1)=1+1=2.
  • At x=1x=-1: f(1)=2<0,f''(-1)=-2<0, so x=1x=-1 is a point of local maximum. The local maximum value is f(1)=11=2.f(-1)=-1-1=-2.

Because the function is defined on two separate intervals (,0)(-\infty,0) and (0,)(0,\infty), it is completely possible that the local maximum value 2-2 is numerically less than the local minimum value 22.

Answer: Local maximum value is 2-2 at x=1x=-1. Local minimum value is 22 at x=1x=1.


Example 5: Trigonometric Function

Find the local maximum and minimum values of f(x)=sinxcosxf(x) = \sin x - \cos x, where 0<x<2π0 < x < 2\pi.

Solution: Step 1: Differentiate the function. f(x)=cosx+sinx.f'(x)=\cos x+\sin x.

Step 2: Find critical points by setting f(x)=0f'(x)=0. cosx+sinx=0    sinx=cosx    tanx=1.\cos x+\sin x=0 \implies \sin x=-\cos x \implies \tan x=-1. In the interval (0,2π)(0,2\pi), this happens at x=3π4,x=7π4.x=\frac{3\pi}{4}, \quad x=\frac{7\pi}{4}.

Step 3: Find the second derivative. f(x)=sinx+cosx.f''(x)=-\sin x+\cos x.

Step 4: Test the critical points.

  • At x=3π4x=\frac{3\pi}{4}: f(3π4)=1212=2<0.f''\left(\frac{3\pi}{4}\right)=-\frac{1}{\sqrt{2}}-\frac{1}{\sqrt{2}}=-\sqrt{2}<0. So this is a local maximum. The maximum value is f(3π4)=12(12)=2.f\left(\frac{3\pi}{4}\right)=\frac{1}{\sqrt{2}}-\left(-\frac{1}{\sqrt{2}}\right)=\sqrt{2}.
  • At x=7π4x=\frac{7\pi}{4}: f(7π4)=12+12=2>0.f''\left(\frac{7\pi}{4}\right)=\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{2}}=\sqrt{2}>0. So this is a local minimum. The minimum value is f(7π4)=1212=2.f\left(\frac{7\pi}{4}\right)=-\frac{1}{\sqrt{2}}-\frac{1}{\sqrt{2}}=-\sqrt{2}.

Answer: Local maximum value is 2\sqrt{2} at x=3π4x=\frac{3\pi}{4}; local minimum value is 2-\sqrt{2} at x=7π4x=\frac{7\pi}{4}.


Example 6: First Derivative Test Where Second Derivative Test Fails

Find local maxima and minima for f(x)=x4f(x) = x^4.

Solution: Step 1: Find the first derivative. f(x)=4x3.f'(x)=4x^3.

Step 2: Find the critical points. 4x3=0    x=0.4x^3=0 \implies x=0.

Step 3: Try the second derivative test. f(x)=12x2.f''(x)=12x^2. At x=0x=0, f(0)=0.f''(0)=0. So the second derivative test is inconclusive.

Step 4: Use the first derivative test.

  • For x<0x<0, say x=0.1x=-0.1, f(x)=4x3<0.f'(x)=4x^3<0.
  • For x>0x>0, say x=0.1x=0.1, f(x)=4x3>0.f'(x)=4x^3>0. The derivative changes from negative to positive as we pass through 0.

Step 5: Conclude. Therefore x=0x=0 is a point of local minimum. The local minimum value is f(0)=0.f(0)=0. There is no local maximum.

Answer: Local minimum at x=0x=0 with value 00.


Example 7: Non-Differentiable Critical Point

Find all points of local maxima and local minima of the function f(x)=xf(x) = |x|.

Solution: Step 1: Note that f(x)=xf(x)=|x| is not differentiable at x=0x=0. Hence x=0x=0 is a critical point.

Step 2: Since the derivative does not exist at x=0x=0, derivative tests are not directly applicable there. So we use the basic definition of local extrema.

Step 3: Compare nearby values. f(0)=0=0.f(0)=|0|=0. For every x0x\ne 0, f(x)=x>0.f(x)=|x|>0. Thus, in every neighborhood of 0, f(x)f(0).f(x) \ge f(0).

Step 4: Conclude. So x=0x=0 is a point of local minimum, and the local minimum value is 0. There is no local maximum because the function increases away from 0 on both sides.

Answer: Local minimum at x=0x=0 with value 00; no local maximum.


Example 8: Finding Maximum Profit

A company's profit function is given by P(x)=4124x18x2P(x) = 41 - 24x - 18x^2. Find the maximum profit that the company can make.

Solution: Step 1: Differentiate the profit function. P(x)=2436x.P'(x)=-24-36x.

Step 2: Find the critical point. 2436x=0    36x=24    x=23.-24-36x=0 \implies -36x=24 \implies x=-\frac{2}{3}.

Step 3: Check the second derivative. P(x)=36<0.P''(x)=-36<0. So mathematically the parabola opens downward and attains its greatest value at x=23.x=-\frac{2}{3}. The corresponding value is P(23)=4124(23)18(23)2=41+168=49.P\left(-\frac{2}{3}\right)=41-24\left(-\frac{2}{3}\right)-18\left(-\frac{2}{3}\right)^2=41+16-8=49.

Step 4: Interpret the practical meaning. In a real profit problem, xx usually represents number of units, so negative values of xx are not meaningful. Therefore, for the practical domain x0x \ge 0, the function is decreasing because P(x)=2436x<0for all x0.P'(x)=-24-36x<0 \quad \text{for all } x\ge 0. Hence the maximum practical profit occurs at the left endpoint x=0x=0: P(0)=41.P(0)=41.

Answer: Mathematically, the maximum value of the function is 4949 at x=23x=-\frac{2}{3}. Practically, if xx denotes number of units produced and hence x0x \ge 0, the maximum profit is 4141 at x=0x=0.