Calculus calculator

Second Derivative Calculator

Find the first and second derivatives with readable steps, exact mathematical notation, point evaluation, concavity interpretation, and a clear function graph.

Use ^ for powers. Supported examples include sin(x), sqrt(x), ln(x), and e^(x).

Examples
Exact result

Derivative sequence

✓ Verified
Function
f(x)=x3−3⋅x2+2f(x)={x}^{3} - 3 \cdot {x}^{2} + 2
First derivative
f′(x)=3⋅x2−6⋅xf'(x)=3 \cdot {x}^{2} - 6 \cdot x
Second derivative
f′′(x)=6⋅x−6f''(x)=6 \cdot x - 6
x = 1Test inconclusive

A zero second derivative does not prove an inflection point; check for a sign change.

f′(1)
-3
f″(1)
0
Your input
d2dx2(x3−3⋅x2+2)\frac{d^2}{dx^2}\left({x}^{3} - 3 \cdot {x}^{2} + 2\right)

Solution

Find the first derivative

Differentiate the original function once. Apply each rule to the corresponding part of the expression.

Power rule. Bring the exponent down, reduce it by one, then multiply by the inner derivative.

x3  ⟶  3⋅x2{x}^{3}\;\longrightarrow\;3 \cdot {x}^{2}

Power rule. Bring the exponent down, reduce it by one, then multiply by the inner derivative.

x2  ⟶  2⋅x{x}^{2}\;\longrightarrow\;2 \cdot x

Product rule. Use (uv)' = u'v + uv'.

3⋅x2  ⟶  6⋅x3 \cdot {x}^{2}\;\longrightarrow\;6 \cdot x

Difference rule. Differentiate each term independently and preserve its sign.

x3−3⋅x2  ⟶  3⋅x2−6⋅x{x}^{3} - 3 \cdot {x}^{2}\;\longrightarrow\;3 \cdot {x}^{2} - 6 \cdot x

Sum rule. Differentiate each term independently and preserve its sign.

x3−3⋅x2+2  ⟶  3⋅x2−6⋅x{x}^{3} - 3 \cdot {x}^{2} + 2\;\longrightarrow\;3 \cdot {x}^{2} - 6 \cdot x
Thus,
f′(x)=3⋅x2−6⋅xf'(x)=3 \cdot {x}^{2} - 6 \cdot x

Differentiate again

Now treat f′(x) as the new function and differentiate it once more.

Power rule. Bring the exponent down, reduce it by one, then multiply by the inner derivative.

x2  ⟶  2⋅x{x}^{2}\;\longrightarrow\;2 \cdot x

Product rule. Use (uv)' = u'v + uv'.

3⋅x2  ⟶  6⋅x3 \cdot {x}^{2}\;\longrightarrow\;6 \cdot x

Product rule. Use (uv)' = u'v + uv'.

6⋅x  ⟶  66 \cdot x\;\longrightarrow\;6

Difference rule. Differentiate each term independently and preserve its sign.

3⋅x2−6⋅x  ⟶  6⋅x−63 \cdot {x}^{2} - 6 \cdot x\;\longrightarrow\;6 \cdot x - 6
Therefore,
f′′(x)=6⋅x−6f''(x)=6 \cdot x - 6
Answer
f′′(x)=6⋅x−6\boxed{f''(x)=6 \cdot x - 6}

Concavity change in the visible interval: (1, 0).

Interactive visual

Function and derivative graph

concave up concave down
-6-336-119.2363281-59.6181640659.61816406119.2363281inflectionxy
Currently showing: f(x)

The curve shows the original function. Green areas are concave up, orange areas are concave down, and purple points mark verified changes in concavity.

Definition

What Is the Second Derivative?

The second derivative is the derivative of the first derivative. It measures how a function’s slope changes and is written as f″(x), y″, or d²y/dx². The first derivative answers “how fast is the function changing?” The second derivative answers “how fast is that rate of change changing?”

f′′(x)=ddx(f′(x))=d2fdx2f''(x)=\frac{d}{dx}\left(f'(x)\right)=\frac{d^2f}{dx^2}

For a position function s(t), the first derivative s′(t) is velocity and the second derivative s″(t) is acceleration. For an ordinary graph y = f(x), the sign of f″ describes local bending, or concavity.

Method

How to Find a Second Derivative

  1. 1

    Differentiate the original function

    Apply the power, product, quotient, chain, exponential, logarithmic, or trigonometric rules needed to obtain f′(x).

  2. 2

    Simplify the first derivative

    Combine constant factors and like terms without discarding restrictions inherited from the original function.

  3. 3

    Differentiate the result again

    Treat f′(x) as a new function. Its derivative is f″(x).

  4. 4

    Interpret the sign carefully

    Positive means concave up, negative means concave down, and zero requires additional sign analysis.

Graph meaning

Concavity and Inflection Points

Second derivativeWhat the slope doesGraph behavior
f″(x) > 0f′(x) is increasingConcave up
f″(x) < 0f′(x) is decreasingConcave down
f″(x) = 0Needs a sign checkPossible, not guaranteed, inflection point

An inflection point is where the function is continuous and its concavity changes. Solving f″(x) = 0 produces candidates, but the sign must switch. For f(x) = x⁴, f″(x) = 12x² is zero at x = 0 and positive on both sides, so the origin is not an inflection point.

Critical points

The Second Derivative Test

First find a critical point c where f′(c) = 0. Then evaluate the second derivative at that same input.

  • f″(c) > 0: the graph is concave up at the stationary point, so f has a local minimum there.
  • f″(c) < 0: the graph is concave down at the stationary point, so f has a local maximum there.
  • f″(c) = 0 or undefined: the test is inconclusive. Use the first derivative test or another valid argument.

The test classifies a critical point; it does not locate critical points by itself. That is why this calculator reports a maximum or minimum only when the entered point also makes f′ equal to zero.

Worked examples

Second Derivative Examples

Example 1: Find the second derivative of f(x) = x³ − 3x² + 2.

Working: f′(x) = 3x² − 6x; then f″(x) = 6x − 6

Answer: f″(x) = 6x − 6

The graph is concave down for x < 1 and concave up for x > 1, so its concavity changes at x = 1.

Example 2: Find f″(x) for sin(2x).

Working: f′(x) = 2cos(2x)

Answer: f″(x) = −4sin(2x)

Both differentiations require the chain rule.

Example 3: Find f″(x) for x⁴.

Working: f′(x) = 4x³

Answer: f″(x) = 12x²

Although f″(0) = 0, the second derivative is nonnegative on both sides, so x = 0 is not an inflection point.

Example 4: Find acceleration when s(t) = t³ − 6t².

Working: v(t) = 3t² − 12t

Answer: a(t) = 6t − 12

Position differentiated twice with respect to time gives acceleration.

Accuracy checklist

Common Second-Derivative Mistakes

  • Stopping after the first derivative.
  • Forgetting the chain rule during the second differentiation.
  • Calling every solution of f″(x) = 0 an inflection point without checking for a sign change.
  • Using the second derivative test without first verifying that f′(c) = 0.
  • Ignoring points excluded from the original function’s domain.
Questions answered

Second Derivative Calculator FAQ

How do I calculate a second derivative?

Differentiate f(x) to obtain f′(x), simplify it, and differentiate that result once more to obtain f″(x).

What does a positive second derivative mean?

At that input the slope is increasing and the graph is locally concave up. At a critical point, a positive second derivative identifies a local minimum.

What does a negative second derivative mean?

At that input the slope is decreasing and the graph is locally concave down. At a critical point, a negative second derivative identifies a local maximum.

Does f″(x) = 0 always give an inflection point?

No. Concavity must change across the point. For f(x) = x⁴, f″(0) = 0 but f″ remains nonnegative on both sides, so there is no inflection point at zero.

Can this calculator evaluate f″ at a point?

Yes. Enter a numerical point or a constant expression such as pi/4. The result is evaluated from the symbolic second derivative.

What is the second derivative in physics?

If a function gives position with respect to time, its first derivative is velocity and its second derivative is acceleration.

Mathematical sources

References

Continue calculating

Related Calculators