First Derivative Test

Classify critical points as local maxima or minima by checking whether the derivative changes sign before and after the point.

f changes +    local max at cf' \text{ changes } + \to - \implies \text{local max at } c

Solve a problem with First Derivative Test

Type the problem. The solver will use First Derivative Test where First Derivative Test is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What First Derivative Test takes
ff
cc
First Derivative Test
SymbolMeaning
ffThe function you are analyzing; you examine the sign of its derivative ff' on either side of a critical point to classify whether the function reaches a peak, a valley, or neither at that point.
ccThe critical point where f(c)=0f'(c) = 0 or ff' is undefined; the test determines whether ff has a local maximum or minimum there by observing whether ff' changes sign at cc.

When to use it

Use the First Derivative Test when you have found critical points and need to determine whether each is a local maximum, local minimum, or neither.

Level

Usually taught in: Calculus I

Worked examples

1. Classify extrema of a cubic polynomial

Problem

Find the local extrema of f(x)=x33xf(x) = x^3 - 3x using the First Derivative Test.
  1. f(x)=3x23f'(x) = 3x^2 - 3

    Differentiate the function using the power rule on each term: the derivative of x3x^3 is 3x23x^2 and the derivative of 3x-3x is 3-3.

  2. 3x23=03x^2 - 3 = 0

    Set f(x)=0f'(x) = 0 to find critical points where the derivative is zero.

  3. 3x2=33x^2 = 3

    Add 3 to both sides.

  4. x2=1x^2 = 1

    Divide both sides by 3.

  5. x=±1x = \pm 1

    Take the square root of both sides, giving x=1x = -1 or x=1x = 1.

  6. f(2)=3(2)23=123=9>0f'(-2) = 3(-2)^2 - 3 = 12 - 3 = 9 > 0

    Test the sign of ff' at x=2x = -2 (to the left of x=1x = -1); this shows ff is increasing there.

  7. f(0)=3(0)23=3<0f'(0) = 3(0)^2 - 3 = -3 < 0

    Test the sign of ff' at x=0x = 0 (between 1-1 and 11); this shows ff is decreasing there.

  8. f(2)=3(2)23=123=9>0f'(2) = 3(2)^2 - 3 = 12 - 3 = 9 > 0

    Test the sign of ff' at x=2x = 2 (to the right of x=1x = 1); this shows ff is increasing there.

Answer: Local maximum at x=1; local minimum at x=1\text{Local maximum at } x = -1 \text{; local minimum at } x = 1

At x=1x = -1, the derivative changes from ++ to -, indicating the function switches from increasing to decreasing—this is a local maximum. At x=1x = 1, the derivative changes from - to ++, indicating the function switches from decreasing to increasing—this is a local minimum. This illustrates the core of the First Derivative Test.

2. Classify extrema with negative leading coefficient and fraction test points

Problem

Determine the local extrema of h(x)=2x3+9x212x+2h(x) = -2x^3 + 9x^2 - 12x + 2 using the First Derivative Test.
  1. h(x)=6x2+18x12h'(x) = -6x^2 + 18x - 12

    Differentiate using the power rule: the derivative of 2x3-2x^3 is 6x2-6x^2, of 9x29x^2 is 18x18x, and of 12x-12x is 12-12.

  2. 6x2+18x12=0-6x^2 + 18x - 12 = 0

    Set h(x)=0h'(x) = 0 to find critical points.

  3. x23x+2=0x^2 - 3x + 2 = 0

    Divide both sides by 6-6 to simplify the equation.

  4. (x1)(x2)=0(x - 1)(x - 2) = 0

    Factor the quadratic trinomial into two linear factors.

  5. x=1 or x=2x = 1 \text{ or } x = 2

    Apply the zero product property to identify the critical points.

  6. h(0)=6(0)2+18(0)12=12<0h'(0) = -6(0)^2 + 18(0) - 12 = -12 < 0

    Test the sign of hh' at x=0x = 0 (to the left of x=1x = 1); the derivative is negative.

  7. h(1.5)=6(2.25)+18(1.5)12=13.5+2712=1.5>0h'(1.5) = -6(2.25) + 18(1.5) - 12 = -13.5 + 27 - 12 = 1.5 > 0

    Test the sign of hh' at x=1.5x = 1.5 (between 11 and 22); note that (1.5)2=2.25(1.5)^2 = 2.25 and the derivative is positive.

  8. h(3)=6(9)+18(3)12=54+5412=12<0h'(3) = -6(9) + 18(3) - 12 = -54 + 54 - 12 = -12 < 0

    Test the sign of hh' at x=3x = 3 (to the right of x=2x = 2); the derivative is negative.

Answer: Local minimum at x=1; local maximum at x=2\text{Local minimum at } x = 1 \text{; local maximum at } x = 2

Even though the leading coefficient is negative and we needed to handle fractional test points, the First Derivative Test applies exactly as before. At x=1x = 1, the derivative changes from - to ++ (local minimum). At x=2x = 2, the derivative changes from ++ to - (local maximum). This shows the test works universally regardless of polynomial form.

3. Optimize speed on a highway leg of a road trip

Problem

During a road trip with a highway leg and a city leg, a driver's speed (in mph) on the highway is modeled by v(t)=12t2+5tv(t) = -\frac{1}{2}t^2 + 5t for 0t100 \leq t \leq 10 hours. Use the First Derivative Test to find when the speed reaches a maximum on this highway leg.
  1. v(t)=t+5v'(t) = -t + 5

    Differentiate the function using the power rule: the derivative of 12t2-\frac{1}{2}t^2 is t-t and the derivative of 5t5t is 55.

  2. t+5=0-t + 5 = 0

    Set v(t)=0v'(t) = 0 to find when the rate of change of speed is zero, indicating a critical point.

  3. t=5t = 5

    Solve for tt by subtracting 5 from both sides and multiplying by 1-1.

  4. v(2)=2+5=3>0v'(2) = -2 + 5 = 3 > 0

    Test the sign of vv' at t=2t = 2 (before t=5t = 5); the positive value means speed is increasing.

  5. v(7)=7+5=2<0v'(7) = -7 + 5 = -2 < 0

    Test the sign of vv' at t=7t = 7 (after t=5t = 5); the negative value means speed is decreasing.

Answer: t=5 hourst = 5 \text{ hours}

At t=5t = 5, the derivative changes from ++ to -, so the speed reaches a local maximum at exactly 5 hours into the highway leg. Before this point, the driver accelerates; after this point, the driver decelerates. This application of the First Derivative Test helps the driver understand their driving pattern and when peak speed is achieved.

Common mistakes

Where First Derivative Test usually goes wrong
Answer came out wrong
Finding f(x)=0f'(x) = 0 and concluding 'x=2x = 2 is a local maximum' without testing the sign of ff' on either side.
After finding critical points, always test ff' at two nearby points: one slightly left and one slightly right of the critical point, then compare their signs to apply the test.
Testing ff' at only one point near the critical point, such as writing 'f(1.1)>0f'(1.1) > 0, so x=1x = 1 is a local minimum.'
Always evaluate ff' at test points on both the left and right of the critical point, then compare the signs to see if there is a sign change.
Concluding 'there are no local extrema' when a critical point is found and ff' has the same sign on both sides.
Recognize that when ff' does not change sign at a critical point (for example, positive on both sides), the test is successful and correctly identifies that point as neither a local maximum nor a local minimum.
The mistakeWhy it is wrongThe fix
Finding f(x)=0f'(x) = 0 and concluding 'x=2x = 2 is a local maximum' without testing the sign of ff' on either side.Finding where f(x)=0f'(x) = 0 locates critical points, but critical points can be local maxima, local minima, or neither—the First Derivative Test requires you to check the sign change of ff' to determine which.After finding critical points, always test ff' at two nearby points: one slightly left and one slightly right of the critical point, then compare their signs to apply the test.
Testing ff' at only one point near the critical point, such as writing 'f(1.1)>0f'(1.1) > 0, so x=1x = 1 is a local minimum.'The First Derivative Test requires you to know the sign of ff' on both sides of the critical point; testing only one side gives incomplete information and may lead to a wrong conclusion.Always evaluate ff' at test points on both the left and right of the critical point, then compare the signs to see if there is a sign change.
Concluding 'there are no local extrema' when a critical point is found and ff' has the same sign on both sides.This is actually correct reasoning—if the derivative does not change sign at a critical point, then the First Derivative Test shows there is no local extremum there. However, students sometimes think they have failed to apply the test rather than successfully determining that no extremum exists at that point.Recognize that when ff' does not change sign at a critical point (for example, positive on both sides), the test is successful and correctly identifies that point as neither a local maximum nor a local minimum.

Tips and when to use something else

  • Always find all critical points first by solving f(x)=0f'(x) = 0 and identifying where f(x)f'(x) is undefined; you can only apply the First Derivative Test where ff' is defined in an interval around the critical point.
  • Use the Second Derivative Test instead if f(c)0f''(c) \neq 0; it is often faster because you only evaluate one derivative at the critical point, rather than testing an interval.
  • Remember that the First Derivative Test tells you about local extrema only, not global maxima or minima on a given interval; you must also check endpoints and behavior at infinity.
  • If ff' does not change sign at a critical point, that point is not a local extremum (it may be a saddle point or inflection point); the test has successfully classified it as neither a peak nor a valley.

Frequently asked questions

Does the First Derivative Test always work at every critical point?
No—the test requires ff' to change sign at the critical point. If ff' is positive on both sides (or negative on both sides) of a critical point, the test is inconclusive for that point, and there is no local extremum there. The test works, but it tells you that no extremum exists in this case.
Can I apply the First Derivative Test if ff' is undefined at the critical point?
Yes, as long as ff' exists in some open interval around cc (except possibly at cc itself). The test checks sign changes in that interval. For example, if f(x)=x3f'(x) = \sqrt[3]{x}, then ff' is undefined at x=0x = 0, but you can still test the sign of ff' just to the left and right of zero.
How is the First Derivative Test different from the Second Derivative Test?
The First Derivative Test checks whether ff' changes sign by evaluating ff' at two nearby points, while the Second Derivative Test evaluates f(c)f''(c) directly at the critical point—if f(c)>0f''(c) > 0 then cc is a local minimum, if f(c)<0f''(c) < 0 then cc is a local maximum. The FDT is more robust because it works even when f(c)=0f''(c) = 0, whereas the Second Derivative Test is inconclusive in that case.
What if the critical point is at the boundary of the domain?
You can still apply the First Derivative Test if the function is defined on an open or half-open interval; test the sign of ff' on whichever side of the critical point lies within the domain. For example, if the domain is [0,10][0, 10] and a critical point is at x=0x = 0, test ff' for x>0x > 0 to determine if there is a local extremum at the boundary.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18