How to Find Local Minima and Maxima in Calculus

What Local Minima and Maxima Actually Are

Local minima and maxima are points where a function reaches its highest or lowest value relative to nearby points. That's the key phrase—"local" means you're not looking at the entire function. You're looking at a neighborhood around the point.

A local maximum is where the function tops out temporarily before going back down. A local minimum is where it bottoms out before going back up.

These points matter because they tell you where a function changes direction. Engineers use them to find optimal designs. Economists use them to find cost minima. You'll use them to pass your exam.

The Foundation: Critical Points

Before you can find minima or maxima, you need to find critical points. These are where the magic happens.

A critical point occurs when:

That's it. Those are your only two options. If the derivative doesn't exist at a point, it's critical. If the derivative equals zero, it's critical.

Important: Not every critical point is a minimum or maximum. Some are just flat spots called inflection points or saddle points. You have to test them.

Two Methods to Find Them

You have two main tools in your toolkit. Both work. Neither is universally better. Use the one that fits your problem.

The First Derivative Test

This test looks at what happens around the critical point.

Pick a number slightly less than your critical point. Pick another slightly greater. Plug both into the derivative.

The Second Derivative Test

This test is faster when it works. You plug the critical point directly into the second derivative.

The second derivative test has one major limitation: it fails when the second derivative equals zero. When that happens, you know nothing. Use the first derivative test instead.

First Derivative vs. Second Derivative: When to Use What

Situation Use This Test Why
f''(x) is easy to compute Second Derivative Test Faster, one calculation
f''(x) = 0 at critical point First Derivative Test Second test tells you nothing
Function is piecewise First Derivative Test More reliable for tricky functions
f''(x) is complicated First Derivative Test Avoid unnecessary algebra
Graph shape matters First Derivative Test Shows behavior on both sides

How to Find Local Minima and Maxima: Step by Step

Here's the process that works every time:

Step 1: Find the First Derivative

Take the derivative of your function. Simplify it if needed.

Step 2: Find Critical Points

Set f'(x) = 0 and solve. Also check where f'(x) is undefined. Write down every x-value you find.

Step 3: Test Each Critical Point

Use either the first or second derivative test. If the second derivative test fails, switch methods.

Step 4: Classify and Report

Label each critical point as a local max, local min, or neither. If asked for the value, plug the x-value back into the original f(x).

Worked Example

Find the local extrema of f(x) = x³ - 3x² - 9x + 4.

Step 1: f'(x) = 3x² - 6x - 9

Step 2: Set f'(x) = 0

3x² - 6x - 9 = 0
Divide by 3: x² - 2x - 3 = 0
Factor: (x - 3)(x + 1) = 0
x = 3 or x = -1

Step 3: Test with the second derivative.

f''(x) = 6x - 6

At x = -1: f''(-1) = 6(-1) - 6 = -12 < 0 → Local maximum

At x = 3: f''(3) = 6(3) - 6 = 12 > 0 → Local minimum

Step 4: Find the actual values.

f(-1) = (-1)³ - 3(-1)² - 9(-1) + 4 = -1 - 3 + 9 + 4 = 9
f(3) = 27 - 27 - 27 + 4 = -23

Local maximum at (-1, 9). Local minimum at (3, -23).

Common Mistakes That Cost You Points

Absolute vs. Local: Don't Mix These Up

Local extrema are points where a function peaks or valleys relative to nearby values. Absolute extrema are the single highest or lowest point on the entire function.

A function can have multiple local extrema but only one absolute maximum and one absolute minimum (unless it's constant).

When You'll Actually Use This

Beyond exams, local minima and maxima show up everywhere:

The calculus is the same. The context changes.