Second Derivative Calculator

The second derivative f″(x) is the derivative of the derivative, and it measures concavity. For f(x) = x³ − 6x² + 9x, f′(x) = 3x² − 12x + 9 and f″(x) = 6x − 12, so at x = 1 the second derivative is −6 and the curve bends downward.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is the Second Derivative?

The first derivative f′(x) tells you the slope of a curve, how fast it is rising or falling. The second derivative f″(x) tells you how the slope itself is changing. It describes the curvature, the way the graph bends.

If f″(x) > 0, the slope is increasing and the curve is concave up, like a cup that holds water. If f″(x) < 0, the slope is decreasing and the curve is concave down, like an upside-down cup. If f is position, then f′ is velocity and f″ is acceleration.

What the Sign Tells You

f″(x)ConcavityShapeAt a critical point (f′ = 0)
PositiveConcave upSmile (∪)Local minimum
NegativeConcave downFrown (∩)Local maximum
ZeroMay changePossible inflectionTest is inconclusive

Second Derivative Rules

f″(x) = d/dx [ f′(x) ] For f(x) = aₙxⁿ + … : f″(x) = n(n − 1)aₙxⁿ⁻² + …
  • Differentiate once to get f′(x), then differentiate the result again.
  • Each term axⁿ becomes n(n − 1)a·xⁿ⁻² after two applications of the power rule.
  • Constants and linear terms vanish after two differentiations.
  • An inflection point is where f″ changes sign, so the concavity switches.

The first step is covered in the polynomial derivative calculator. The tangent line at a point is in the tangent line calculator.

Worked Example: f(x) = x³ − 6x² + 9x

  1. First derivative: f′(x) = 3x² − 12x + 9.
  2. Second derivative: f″(x) = 6x − 12.
  3. At x = 1: f′(1) = 3 − 12 + 9 = 0 and f″(1) = 6 − 12 = −6.
  4. Because f′ = 0 and f″ < 0, x = 1 is a local maximum, with f(1) = 4. The concavity there is concave down.

The Full Picture

xf(x)f′(x)f″(x)Conclusion
140−6Local maximum
22−30Inflection point
3006Local minimum

The sign of f″ changes at x = 2, from negative to positive, so the point (2, 2) is where the curve switches from bending down to bending up.

Acceleration

If s(t) = t³ − 6t² + 9t is a position in metres, then velocity is v(t) = 3t² − 12t + 9 and acceleration is a(t) = 6t − 12. At t = 1 s the acceleration is −6 m/s², meaning the object is slowing down in the positive direction.

A Second-Order Approximation

The second derivative improves the tangent-line approximation. Near x = 1, f(x) ≈ f(1) + f′(1)(x − 1) + ½f″(1)(x − 1)². With f(1) = 4, f′(1) = 0 and f″(1) = −6, this gives f(1.2) ≈ 4 − 3(0.04) = 3.88, very close to the exact value f(1.2) = 3.888.

Higher Derivatives of a Cubic

Differentiating x³ − 6x² + 9x three times gives f‴(x) = 6, a constant, and a fourth differentiation gives 0. In general, a polynomial of degree n has an (n + 1)th derivative equal to zero, which is why polynomials are so easy to analyse.

How to Use This Second Derivative Calculator

  1. Type your polynomial, for example x^3 - 6x^2 + 9x.
  2. Enter the point x at which to evaluate.
  3. Read f′(x), f″(x), the value f″ at your point, the concavity and f′ at your point.
  4. Try x = 2 in this example to see an inflection point flagged.

Where the Second Derivative Is Used

  • Optimisation: the second derivative test classifies maxima and minima.
  • Physics: acceleration is the second derivative of position with respect to time.
  • Economics: diminishing returns correspond to a negative second derivative of a production function.
  • Engineering: the curvature of a beam is related to the second derivative of its deflection.
  • Machine learning: second derivatives (the Hessian) describe the shape of a loss surface.

A Graph-Sketching Checklist

  1. Solve f′(x) = 0 for the critical points.
  2. Use the sign of f″ at each to label maxima and minima.
  3. Solve f″(x) = 0 for possible inflection points.
  4. Mark the intervals where f″ is positive (concave up) and negative (concave down).

In economics, a production function such as f(x) = −x² + 10x has f″(x) = −2 < 0 everywhere, which captures diminishing returns: each extra unit of input adds less output than the one before.

What Are the Most Common Mistakes With the Second Derivative Calculator?

  • Confusing f″(x) with [f′(x)]². The second derivative is differentiating twice, not squaring.
  • Using the test when f″ = 0. It is inconclusive. A point with f′ = 0 and f″ = 0 could be a max, a min or neither.
  • Assuming f″ = 0 always means inflection. The sign of f″ must actually change.
  • Mixing up concave up and down. Positive f″ means concave up.
  • Forgetting to evaluate. The sign at the critical point matters, not just the formula.
  • Applying it to non-polynomials. This calculator handles polynomials.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is the second derivative?

The derivative of the first derivative. It measures how the slope is changing and describes the concavity of the curve.

What does a positive second derivative mean?

The curve is concave up (bending upward), and a critical point there is a local minimum.

What is an inflection point?

A point where the concavity changes, which happens where f″ changes sign. For x³ − 6x² + 9x it is at x = 2.

How do I use the second derivative test?

At a critical point where f′ = 0, a positive f″ means a local minimum, a negative f″ means a local maximum, and f″ = 0 is inconclusive.

What is the second derivative of position?

Acceleration. First derivative gives velocity, and the second gives acceleration.

What is the second derivative of x³ − 6x² + 9x?

f″(x) = 6x − 12.