Second Derivative Calculator

Find f''(x) instantly and see how it reveals concavity and inflection behavior.

Second Derivative Calculator

What Is a Second Derivative?

The second derivative, written f''(x) or d²y/dx², is the derivative of the derivative — it measures how the rate of change itself is changing. If f(x) is position, f'(x) is velocity, and f''(x) is acceleration: it tells you not just whether you're speeding up or slowing down, but how sharply. In purely graphical terms, the second derivative describes concavity: where f''(x) is positive, the graph of f curves upward like a cup (concave up); where f''(x) is negative, it curves downward like a dome (concave down).

Second derivatives are the key tool behind the second derivative test for classifying local extrema, and behind identifying inflection points — the exact locations where a curve switches from concave up to concave down or vice versa.

How to Use This Calculator

Enter any function of x. The calculator differentiates it twice in sequence — first computing f'(x) using the standard differentiation rules, then differentiating that result again to get f''(x) — and simplifies both. If you provide an x-value, it also evaluates f'(x) and f''(x) at that point and tells you what the sign of f''(x) implies about concavity there. The graph plots f, f', and f'' together so you can see, for example, that f is concave up exactly where the f'' curve sits above the x-axis.

The Second Derivative Test

Condition at critical point x = cConclusion
f'(c) = 0 and f''(c) > 0Local minimum at x = c (concave up)
f'(c) = 0 and f''(c) < 0Local maximum at x = c (concave down)
f'(c) = 0 and f''(c) = 0Test is inconclusive — use the first derivative test instead

For a full search over critical points with automatic classification, see the Critical Points & Extrema Calculator.

Worked Example

Let f(x) = x⁴ − 4x³. First derivative: f'(x) = 4x³ − 12x². Differentiating again with the power rule: f''(x) = 12x² − 24x. At x = 3 (a critical point, since f'(3) = 4(27) − 12(9) = 0), f''(3) = 12(9) − 24(3) = 108 − 72 = 36 > 0, so x = 3 is a local minimum. Try entering x^4 - 4x^3 with evaluation point 3 above to confirm.

Common Mistakes to Avoid

  • Confusing f''(x) = 0 with an inflection point. f''(c) = 0 is only a candidate inflection point — concavity must actually change sign around c for it to count. See the Inflection Point Calculator for that check.
  • Stopping after one differentiation. A surprisingly common error under time pressure is reporting f'(x) when f''(x) was asked for.
  • Sign mistakes compounding. Since f'' depends on differentiating f' correctly, a sign error in the first derivative carries through — double-check f'(x) first if f''(x) looks wrong.

Real-World Applications of the Second Derivative

The clearest physical meaning of a second derivative is acceleration: if s(t) describes an object's position, s'(t) is velocity and s''(t) is acceleration — the rate at which velocity itself is changing. This is precisely what Newton's second law, F = ma, depends on: force is mass times acceleration, and acceleration is a second derivative of position with respect to time. Anywhere motion is analyzed rigorously — vehicle braking distances, projectile trajectories, the swing of a pendulum, orbital mechanics — the second derivative is doing the physical work.

Second derivatives also drive decision-making in economics and finance through the idea of concavity. A revenue function that's concave down (negative second derivative) signals diminishing returns — each additional unit of investment or production adds less than the one before, which is exactly the information a business needs to know when to stop scaling up. In finance, "convexity" (related to the second derivative of a bond's price with respect to interest rates) measures how sensitive a bond's price sensitivity itself is to rate changes, a key risk metric for portfolio managers. In manufacturing and quality control, the second derivative of a process measurement over time can flag when a process is not just off-target, but accelerating away from target — catching problems earlier than watching the first derivative (rate of change) alone would.

Frequently Asked Questions

What does a positive second derivative mean?

f''(x) > 0 means the function is concave up at that point — its slope is increasing, and the graph curves like the inside of a bowl. If that point is also a critical point (f'(x) = 0), it's a local minimum.

How is the second derivative different from the first derivative?

The first derivative, f'(x), gives the slope of the tangent line — whether the function is increasing or decreasing. The second derivative, f''(x), gives the rate of change of that slope — whether the function is curving upward or downward. See the Derivative Calculator for first derivatives alone.

Can the second derivative be used to find inflection points?

Yes — inflection points occur where f''(x) changes sign, typically (but not always) where f''(x) = 0. The Inflection Point & Concavity Calculator automates that search and confirms the sign change.

What notation is used for the second derivative?

Common notations include f''(x) (prime notation), d²y/dx² (Leibniz notation), and y'' if y = f(x). This calculator displays results using prime notation.

Why is my second derivative result more complex than expected?

Differentiating twice compounds the chain, product, and quotient rules, so second derivatives of anything beyond simple polynomials often produce longer expressions. That's expected — the calculator's simplifier reduces obviously redundant terms but doesn't rewrite trig identities.

Is the second derivative always the acceleration?

Only when the original function represents position with respect to time. More generally, the second derivative is just "the rate of change of the rate of change" of whatever quantity f(x) represents — it's called acceleration specifically in the position-time context, but the same mathematical object shows up under different names (marginal marginal cost, curvature information, and so on) in other fields.

Can I find a third derivative or higher with this tool?

This calculator reports the first and second derivatives directly. To go further, you can feed the second derivative result back into the Derivative Calculator to get the third derivative (sometimes called the "jerk" in a position-time context), and repeat as needed for even higher orders.