Skip to content
Henry, founder and creator of Calculus Solver

Henry

Founder & Creator of Calculus Solver

About Henry

Hi, I'm Henry, the founder and creator of Calculus Solver. I'm passionate about mathematics, technology, and building educational tools that make complex mathematical concepts easier to understand.

Through Calculus Solver, my goal is to help students, teachers, and independent learners solve calculus problems with clear, step-by-step explanations. I focus on creating simple, reliable, and accessible tools that make learning mathematics easier and more effective.

I believe every complex problem becomes easier when you understand it one step at a time.

My Expertise

  • Website Development & Technology
  • Online Calculator Development
  • Educational Tools & Resources
  • User Experience & Interface Design

My Mission

My mission is to make mathematics easier to understand through accessible online tools, clear explanations, and step-by-step learning experiences.

My Philosophy

Learn step by step. Understand every rule. Solve with confidence.

Search Calculus Solver

Calculators

TutorialDerivatives

How to Find Critical Points and Classify Them (First and Second Derivative Test)

Critical points are where a function can turn around: the tops of hills, the bottoms of valleys, and a few places that only look like turning points. This guide shows how to find every critical point of a function, then how to decide what each one is with the first derivative test and the second derivative test. Six fully worked examples follow, including the cases where the second derivative test fails.

By Calculus Solver teamPublished 11 min read
Worked examples verified
maxmin+−+f′(x) = 0
On this page
  1. What is a critical point?
  2. How to find critical points, step by step
  3. Classifying critical points with the first derivative test
  4. Classifying critical points with the second derivative test
  5. First or second derivative test: which should you use?
  6. Critical points on a closed interval (absolute extrema)
  7. Common mistakes to avoid
  8. Worked examples
  9. Questions about this topic
A curve with a flat horizontal tangent at a hilltop, at a valley and at a level shelf, marking three critical points
All three marked points have f′(x) = 0: a local maximum, a local minimum, and a flat point that is neither, because the curve keeps rising through it.

What is a critical point?

A critical point of a function f is a number c in the domain of f where the derivative is either zero or does not exist:

f′(c)=0orf′(c) does not exist,c∈dom⁡ff'(c) = 0 \qquad \text{or} \qquad f'(c) \text{ does not exist}, \qquad c \in \operatorname{dom} f

Where f′(c) = 0, the tangent line is horizontal. Where f′(c) does not exist, the graph has a sharp corner, a cusp or a vertical tangent. Both kinds matter, because a function can reach a maximum or minimum at either.

The reason critical points are so useful is Fermat's theorem: if f has a local maximum or local minimum at an interior point c, then c is a critical point. So to find all the peaks and valleys of a graph, you only need to look at the critical points. The reverse is not true, though. A critical point can be neither a maximum nor a minimum, which is why every critical point has to be classified.

How to find critical points, step by step

This four-step process finds every critical point of a function of one variable:

  • Step 1: Find the domain of f. Note any values excluded by division by zero, square roots of negatives or logarithms of non-positive numbers.
  • Step 2: Find f′(x) and simplify it into a single fraction, factored as far as possible.
  • Step 3: Solve f′(x) = 0. For a fraction, this means setting the numerator equal to zero.
  • Step 4: Find where f′(x) is undefined, usually where its denominator is zero. Keep only the values that are in the domain of f.

Every value from Steps 3 and 4 that lies in the domain of f is a critical point. To report the point on the graph, also compute f(c), so the critical point at x = c is the point (c, f(c)).

Step 2 does most of the work. Factoring f′ completely makes Step 3 easy and also tells you the sign of f′ on each interval, which you will need for the first derivative test. If you need a refresher on differentiating, see how to find the derivative of a function.

Tip: Factor f′ completely before solving. The factored form gives you the critical points and the signs for the first derivative test at the same time.

Classifying critical points with the first derivative test

The first derivative test looks at the sign of f′ just to the left and just to the right of a critical point c. Since f′ > 0 means f is increasing and f′ < 0 means f is decreasing, a change of sign tells you the graph turned around:

The first derivative test at a critical point c
Sign of f′ left of cSign of f′ right of cc is a
++−-local maximum\text{local maximum}
−-++local minimum\text{local minimum}
++++neither (still increasing)\text{neither (still increasing)}
−-−-neither (still decreasing)\text{neither (still decreasing)}

The easiest way to apply it is a sign chart. Mark every critical point, and every point where f itself is undefined, on a number line. These split the line into intervals. In each interval, pick any test value and substitute it into the factored f′; only the sign matters, not the size. Then read off the pattern of signs around each critical point.

The first derivative test always gives an answer, and it works at points where f′ does not exist, such as corners and cusps. That makes it the more reliable of the two tests.

Classifying critical points with the second derivative test

The second derivative test uses concavity instead of a sign chart. If the graph is concave up (shaped like a cup) at a point with a horizontal tangent, that point must be the bottom of a valley; if it is concave down (shaped like a cap), it must be the top of a hill. For a critical point c with f′(c) = 0:

The second derivative test at a point where f′(c) = 0
Value of f″(c)Shape of the graphc is a
f′′(c)>0f''(c) > 0concave up\text{concave up}local minimum\text{local minimum}
f′′(c)<0f''(c) < 0concave down\text{concave down}local maximum\text{local maximum}
f′′(c)=0f''(c) = 0unknown\text{unknown}inconclusive: use the first derivative test\text{inconclusive: use the first derivative test}

To apply it, find f″(x), substitute each critical point and look only at the sign of the result. It is usually faster than a sign chart, especially when there are many critical points or when f′ is hard to factor.

The test has two limits. It only applies where f′(c) = 0, so it cannot classify a corner or cusp where f′ does not exist. And when f″(c) = 0, it says nothing at all: x⁴, −x⁴ and x³ all have f′(0) = f″(0) = 0, yet x = 0 is a minimum, a maximum and neither, respectively.

Note: f″(c) = 0 does not mean “neither”. It only means this test cannot decide, so switch to the first derivative test.

First or second derivative test: which should you use?

Comparing the first and second derivative tests
First derivative testSecond derivative test
What you need\text{What you need}the sign of f′ near c\text{the sign of } f' \text{ near } cthe value of f′′(c)\text{the value of } f''(c)
Works where f′ is undefined\text{Works where } f' \text{ is undefined}yes\text{yes}no\text{no}
Can be inconclusive\text{Can be inconclusive}never\text{never}when f′′(c)=0\text{when } f''(c) = 0
Best when\text{Best when}f′ factors easilyf' \text{ factors easily}f′′ is easy to computef'' \text{ is easy to compute}

A good habit: try the second derivative test first, because it is quick. If f″(c) = 0 or f′(c) does not exist, switch to the first derivative test for that point. The critical points calculator follows exactly this rule.

Critical points on a closed interval (absolute extrema)

The two tests find local maxima and minima. To find the absolute maximum and minimum of a continuous function on a closed interval [a, b], use the closed interval method instead. No classification is needed:

  • Step 1: Find the critical points of f that lie inside (a, b).
  • Step 2: Evaluate f at each of those critical points and at both endpoints a and b.
  • Step 3: The largest value is the absolute maximum, and the smallest is the absolute minimum.

For example, take f(x) = x³ − 3x on [0, 3]. Here f′(x) = 3x² − 3 = 3(x − 1)(x + 1), and only x = 1 lies in the interval. Comparing f(0) = 0, f(1) = −2 and f(3) = 18, the absolute minimum is −2 at x = 1 and the absolute maximum is 18 at the endpoint x = 3. Note that the maximum is at an endpoint, not a critical point.

Tip: On a closed interval, always check the endpoints. The absolute maximum or minimum is often there, not at a critical point.

Common mistakes to avoid

  • Forgetting points where f′ is undefined. Always check the denominator of f′ as well as the numerator.
  • Including values outside the domain. For f(x) = 1/x, f′ is undefined at 0, but 0 is not in the domain, so it is not a critical point.
  • Reading f″(c) = 0 as “neither”. It means the second derivative test failed, not that there is no extremum.
  • Dividing both sides of f′(x) = 0 by a factor containing x. In 4x³ − 12x² = 0, dividing by x² loses the critical point x = 0. Factor instead.
  • Substituting into f instead of f′ (or f″) when testing signs. The sign chart uses f′; the second derivative test uses f″.
  • Reporting only the x-value when the question asks for the point. A critical point on the graph is (c, f(c)).

Practice

Worked examples

Each example is checked automatically against the solver. Try it by hand first, then compare.

Example 1

A cubic, classified with the second derivative test

f(x)=2x3−9x2+12x−4f(x) = 2x^{3} - 9x^{2} + 12x - 4
  1. The domain is all real numbers. Differentiate and factor:

    f′(x)=6x2−18x+12=6(x−1)(x−2)f'(x) = 6x^{2} - 18x + 12 = 6(x - 1)(x - 2)
  2. f′ is never undefined, so the critical points are x = 1 and x = 2. Find the second derivative and substitute:

    f′′(x)=12x−18⇒f′′(1)=−6<0,f′′(2)=6>0f''(x) = 12x - 18 \quad\Rightarrow\quad f''(1) = -6 < 0,\qquad f''(2) = 6 > 0
  3. Function values: f(1) = 2 − 9 + 12 − 4 = 1 and f(2) = 16 − 36 + 24 − 4 = 0.

Answer

(1, 1) local max,(2, 0) local min(1,\ 1)\ \text{local max},\qquad (2,\ 0)\ \text{local min}

Example 2

When the second derivative test is inconclusive

f(x)=x4−4x3f(x) = x^{4} - 4x^{3}
  1. Differentiate and factor completely. Do not divide by x²:

    f′(x)=4x3−12x2=4x2(x−3)f'(x) = 4x^{3} - 12x^{2} = 4x^{2}(x - 3)
  2. The critical points are x = 0 and x = 3. Try the second derivative test:

    f′′(x)=12x2−24x⇒f′′(0)=0,f′′(3)=36>0f''(x) = 12x^{2} - 24x \quad\Rightarrow\quad f''(0) = 0,\qquad f''(3) = 36 > 0
  3. So x = 3 is a local minimum, with f(3) = 81 − 108 = −27. At x = 0 the test is inconclusive, so use the first derivative test: 4x² ≥ 0 and x − 3 < 0 near 0, so f′ is negative on both sides.

Answer

(3, −27) local min,x=0 neither (f keeps decreasing)(3,\ -27)\ \text{local min},\qquad x = 0\ \text{neither (}f\text{ keeps decreasing)}

Example 3

A rational function, classified with a sign chart

f(x)=xx2+1f(x) = \frac{x}{x^{2} + 1}
  1. The denominator is never zero, so the domain is all real numbers. Quotient rule:

    f′(x)=(x2+1)−x⋅2x(x2+1)2=(1−x)(1+x)(x2+1)2f'(x) = \frac{(x^{2} + 1) - x\cdot 2x}{(x^{2} + 1)^{2}} = \frac{(1 - x)(1 + x)}{(x^{2} + 1)^{2}}
  2. f′ = 0 at x = ±1 and is never undefined. The denominator is always positive, so the sign of f′ is the sign of (1 − x)(1 + x): negative on (−∞, −1), positive on (−1, 1), negative on (1, ∞).

  3. f′ goes − to + at x = −1 and + to − at x = 1. Function values: f(−1) = −1/2 and f(1) = 1/2.

Answer

(−1, −12) local min,(1, 12) local max\left(-1,\ -\tfrac{1}{2}\right)\ \text{local min},\qquad \left(1,\ \tfrac{1}{2}\right)\ \text{local max}

Example 4

Critical points where f′ does not exist

f(x)=∣x2−4∣f(x) = \left|x^{2} - 4\right|
  1. The domain is all real numbers. Away from x = ±2, where x² − 4 changes sign, the absolute value can be removed piece by piece:

    f′(x)={2x,∣x∣>2−2x,∣x∣<2f'(x) = \begin{cases} 2x, & |x| > 2 \\ -2x, & |x| < 2 \end{cases}
  2. f′(x) = 0 only at x = 0 (from −2x = 0). At x = ±2 the graph has sharp corners, where the left and right slopes differ (−4 and 4 at x = 2), so f′ does not exist. All three are in the domain, so all three are critical points.

  3. The second derivative test cannot be used at the corners, so use a sign chart: f′ is − on (−∞, −2), + on (−2, 0), − on (0, 2) and + on (2, ∞). Function values: f(±2) = 0 and f(0) = 4.

Answer

(−2, 0) and (2, 0) local min (corners),(0, 4) local max(-2,\ 0)\ \text{and}\ (2,\ 0)\ \text{local min (corners)},\qquad (0,\ 4)\ \text{local max}

Example 5

An exponential function

f(x)=x2e−xf(x) = x^{2}e^{-x}
  1. Product rule, then factor out the common terms:

    f′(x)=2xe−x−x2e−x=xe−x(2−x)f'(x) = 2xe^{-x} - x^{2}e^{-x} = xe^{-x}(2 - x)
  2. Since e^(−x) is never zero, f′ = 0 only at x = 0 and x = 2. Differentiate again and simplify:

    f′′(x)=e−x(x2−4x+2)⇒f′′(0)=2>0,f′′(2)=−2e2<0f''(x) = e^{-x}\left(x^{2} - 4x + 2\right) \quad\Rightarrow\quad f''(0) = 2 > 0,\qquad f''(2) = -\frac{2}{e^{2}} < 0
  3. Function values: f(0) = 0 and f(2) = 4/e² ≈ 0.541.

Answer

(0, 0) local min,(2, 4e2) local max(0,\ 0)\ \text{local min},\qquad \left(2,\ \tfrac{4}{e^{2}}\right)\ \text{local max}

Example 6

A logarithmic function with a restricted domain

f(x)=ln⁡xxf(x) = \frac{\ln x}{x}
  1. The domain is x > 0. Quotient rule:

    f′(x)=1x⋅x−ln⁡xx2=1−ln⁡xx2f'(x) = \frac{\frac{1}{x}\cdot x - \ln x}{x^{2}} = \frac{1 - \ln x}{x^{2}}
  2. The denominator is zero only at x = 0, which is outside the domain, so it is not a critical point. The numerator is zero when ln x = 1, that is x = e.

  3. For 0 < x < e, ln x < 1 so f′ > 0; for x > e, f′ < 0. f′ goes + to −, and f(e) = 1/e.

Answer

(e, 1e) local max (also the absolute max)\left(e,\ \tfrac{1}{e}\right)\ \text{local max (also the absolute max)}

Put it into practice

About the author

Calculus Solver team

We build free, private calculus tools that show every step. Our articles are written to be read alongside the calculators, and every worked example in them is checked automatically against the solver before it is published.

About Calculus SolverHow answers are verified

FAQ

Questions about this topic

What is the difference between a critical point and a stationary point?

A stationary point is a point where f′(x) = 0. A critical point includes those and also the points where f′ does not exist but f is defined, such as the corner of |x| at x = 0. Every stationary point is a critical point, but not the other way round.

Is every critical point a maximum or a minimum?

No. A critical point can be neither. For f(x) = x³, f′(0) = 0, but f′ is positive on both sides of 0, so the graph keeps rising. Points like this are often inflection points with a horizontal tangent.

What does it mean if the second derivative is zero at a critical point?

The second derivative test is inconclusive. The point could be a minimum (x⁴ at 0), a maximum (−x⁴ at 0) or neither (x³ at 0). Use the first derivative test to decide.

Can a function have no critical points?

Yes. f(x) = eˣ and f(x) = x³ + x have derivatives that are always positive, so they are never zero and never undefined. Such functions are always increasing and have no local maxima or minima.

Are endpoints of an interval critical points?

No. Critical points are interior points where f′ is zero or undefined. Endpoints are checked separately when you look for absolute extrema on a closed interval, and the absolute maximum or minimum often occurs there.

Keep reading

  • xⁿf · gf / gf ∘ gddx

    Study guideDerivatives

    Derivative Rules: A Complete Guide with Examples

    Learn every core derivative rule with clear explanations, a reference table, and worked examples, plus a step-by-step strategy for differentiating any function.

    4 min read
  • ∫u-substitutionby partstrig identitiespartial fractions

    Study guideIntegrals

    Integration Techniques: How to Choose the Right Method

    A practical guide to choosing an integration technique: basic forms, u-substitution, integration by parts, trig identities and partial fractions, with worked examples.

    4 min read

All study guides All blog posts

Practice what you learned

Try the worked examples above in the calculator and compare each step with your own. You can also use the main Calculus Solver for every operation in one place.

Find and classify critical points with the Critical Points Calculator