Skip to main content
Mathovia

Calculus / Calculus 1 · Applications of Derivatives

First Derivative Test

The first derivative test classifies critical points. If the derivative changes from positive to negative, the function rises then falls, so it has a local maximum. From negative to positive, it has a local minimum. No change, no extreme.

Practice Problems
Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

The critical points of a function are the only places where it can have a local maximum or minimum, but not every critical point is one. The first derivative test sorts them out. It watches the sign of the derivative as you pass through each critical point: if the function switches from rising to falling, you’ve found a peak; from falling to rising, a valley; and if it keeps going the same way, neither. It’s the standard way to find local max and min values, and it also gives you the intervals where the function increases and decreases.

If f prime changes from positive to negative, local max. If f prime changes from negative to positive, local min
The first derivative test in one line

Increasing, Decreasing and the Sign of f′

The derivative is the slope of the tangent line, so its sign tells you which way the graph is heading:

  • If on an interval, is increasing there.
  • If on an interval, is decreasing there.

This isn’t just a picture. It follows from the mean value theorem: for , for some between them, so whenever is positive. You may have found increasing and decreasing intervals from a graph before; the derivative lets you find them from the equation.

The First Derivative Test

First derivative test. Let be a critical point of a function that is continuous at .

  • If changes from positive to negative at , then has a local maximum at .
  • If changes from negative to positive at , then has a local minimum at .
  • If has the same sign on both sides of , then has no local extremum at .
Three small graphs with a horizontal tangent at the middle point. Where f prime goes from plus to minus the graph is a peak, a local maximum. Where f prime goes from minus to plus the graph is a valley, a local minimum. Where f prime stays plus the graph rises through a flat spot, neither
The three patterns: rising then falling, falling then rising, or no change

The reason is simple. If rises up to and falls after it, then is higher than every nearby value. That’s what a local maximum means.

How to Use the First Derivative Test

  1. Find and factor it as far as you can.
  2. Find the critical points: where or is undefined, with in the domain of .
  3. Make a sign chart. Mark the critical points (and any points outside the domain) on a number line. They split it into intervals.
  4. Test one point in each interval to find the sign of there.
  5. Read the chart. + to − is a local max, − to + is a local min, no change is neither. Evaluate at each extremum to get the value.

The test points can be any numbers inside each interval. Pick easy ones.

Example 1: A Cubic

Find the local maximum and minimum of , and the intervals where is increasing and decreasing.

Step 1 — derivative.

Step 2 — critical points. at and .

Steps 3 and 4 — sign chart. Test , and :

IntervalTest point
increasing
decreasing
increasing
Graph of f of x equals x cubed minus 3 x squared minus 9 x plus 5, green where increasing and red where decreasing, with a local maximum at (minus 1, 10) and a local minimum at (3, minus 22). Below it, a sign chart of f prime shows plus signs before minus 1, minus signs between minus 1 and 3, and plus signs after 3
The sign chart of f′ lines up with where the graph rises and falls

Step 5 — read the chart.

  • At , changes from + to −: local maximum .
  • At , changes from − to +: local minimum .

is increasing on and , and decreasing on .

Example 2: A Critical Point That Isn’t an Extremum

Classify the critical points of .

The critical points are and . The factor is never negative, so the sign of comes from :

Interval
Sign of −−+
  • At the sign stays −, so there is no extremum. The graph flattens out for an instant and keeps falling.
  • At the sign changes from − to +, so there’s a local minimum .

A squared factor like in is a warning sign: the derivative touches zero there without changing sign.

Example 3: A Critical Point Where f′ Is Undefined

Find the local extrema of .

when , so . is undefined at , which is in the domain of . So the critical points are 0 and 1. Test , and :

IntervalTest point
  • At , − to +: local minimum . The graph has a sharp cusp there, not a flat bottom.
  • At , + to −: local maximum .

This is where the first derivative test beats the second derivative test: doesn’t exist, but the sign chart still works.

Example 4: A Function With a Gap in Its Domain

Find the local extrema of .

The critical points are . isn’t in the domain, so it isn’t a critical point, but it still goes on the sign chart because can change sign there.

Interval
Sign of +−−+
  • At : local maximum .
  • At : local minimum .

The local maximum is smaller than the local minimum. That’s fine: “local” only compares a point with its neighbors, and the two branches of this graph are separated by the asymptote at .

Example 5: A Trig Function

Find the local extrema of on .

when , so or . Test , and :

  • At : local maximum .
  • At : local minimum .

Example 6: Reading the Graph of f′

Top: the graph of f prime crosses the x-axis from above to below at x equals minus 2, touches the axis at x equals 1 without crossing, and crosses from below to above at x equals 3. Bottom: the graph of f has a local maximum at x equals minus 2, a flat point that is not an extremum at x equals 1, and a local minimum at x equals 3
Where the graph of f′ crosses the axis, f has a local extremum. Where it only touches, f doesn't

AP calculus questions often show the graph of , not . Then the sign chart is already drawn for you: is positive where its graph is above the x-axis and negative where it’s below.

In the top graph, is zero at , and .

  • At , the graph of crosses from above to below: + to −, so has a local maximum.
  • At , it touches the axis and stays below: − to −, so neither.
  • At , it crosses from below to above: − to +, so has a local minimum.

Don’t confuse the two graphs. The peaks and valleys of the graph of are not the extremes of ; they’re where changes concavity.

Can Endpoints Be Local Extrema?

In most calculus textbooks, a local maximum at means for all in some open interval around . An endpoint has no open interval around it inside the domain, so endpoints are never local extrema under that definition. Instead, you check them as candidates for the absolute maximum and minimum, using the closed interval method from the extreme value theorem lesson.

Some courses define relative extrema so that endpoints can count. If your teacher or textbook does, a sign chart still tells you: if is decreasing just after a left endpoint, that endpoint is a relative maximum.

First Derivative Test vs Second Derivative Test

First derivative testSecond derivative test
What you checkSign of on both sides of Sign of at the point
Local max changes + to −
Local min changes − to +
When it failsnever, if is continuous at when or doesn’t exist
Extra informationincreasing and decreasing intervalsconcavity at

The second derivative test, covered next, is faster when is easy to compute. When it gives no answer, fall back on the first derivative test.

Common Mistakes

  • Using the sign of instead of . The chart is for the derivative. Whether is positive or negative doesn’t matter here.
  • Forgetting critical points where is undefined, like in Example 3.
  • Leaving domain gaps off the sign chart. In Example 4, could change sign at even though it isn’t a critical point.
  • Calling every critical point an extremum. In Example 2, is neither.
  • Giving only the x-value. The local maximum value is ; the maximum occurs at .

Practice Problems

Try each one before opening the answer. The practice set has 12 more with instant checking.

Problem 1. Find the local extremum of .

Show answer

is negative for and positive for . That’s − to +, a local minimum.

Answer: local minimum

Problem 2. Find the local maximum and minimum of .

Show answer

The sign of is + on , − on and + on .

Answer: local maximum , local minimum

Problem 3. Does have any local extrema?

Show answer

for every . There are no critical points and is always increasing.

Answer: no local extrema

Problem 4. Find the local extremum of .

Show answer

By the product rule, . Since , the sign comes from : − before , + after.

Answer: local minimum

Problem 5. Classify the critical points of .

Show answer

at , and is undefined at . The denominator is positive, so the sign comes from : + for , − for .

Interval
Sign of +−−+

Answer: local maximum , local minimum , and is neither

Problem 6. Suppose . Where does have local extrema?

Show answer

, so the sign of is the sign of : − on both sides of , and − to + at 2.

Answer: a local minimum at ; is neither

The first derivative test reads the sign of . Next, the second derivative test classifies critical points in one step using the sign of .

Frequently Asked Questions

What is the first derivative test?+

The first derivative test classifies a critical point of a continuous function by looking at the sign of on each side. If changes from positive to negative at , has a local maximum there. If it changes from negative to positive, has a local minimum. If the sign doesn't change, there's no local extremum at .

How do you find local max and min with the first derivative?+

Find , find the critical points where or is undefined, mark them on a number line, and test the sign of in each interval. A + to − change marks a local maximum, a − to + change a local minimum. Plug each one into to get the max or min value.

What does the first derivative test tell you?+

It tells you where is increasing (where ), where it's decreasing (where ), and whether each critical point is a local maximum, a local minimum or neither. It does not tell you about concavity; that comes from the second derivative.

What is the difference between the first and second derivative tests?+

The first derivative test checks the sign of on both sides of a critical point. The second derivative test checks the sign of at the point itself: negative means a local max, positive a local min. The second derivative test is quicker when is easy, but it fails when or doesn't exist, and the first derivative test always works.

Can endpoints be local extrema?+

It depends on the definition your course uses. In most calculus textbooks a local maximum needs an open interval around , so endpoints are never local extrema; they're checked as candidates for absolute extrema instead. Some courses, including some AP materials, do call endpoints relative extrema. Follow your teacher's convention.

Does every critical point give a local max or min?+

No. If the derivative has the same sign on both sides, the point is neither. For , , but on both sides, so the graph keeps rising through a flat spot.

Related lessons