Skip to content
Glacius
CalculusConcept reference

Second derivatives

The second derivative is the derivative of the first derivative.

On this page 7 sections
  1. Overview
  2. The first derivative is itself a function
  3. For f(x)=2x^3-3x^2, the first derivative is 6x^2-6x
  4. A nonzero first derivative can have zero derivative
  5. Key takeaway
  6. Sources & further reading
  7. Concept connections

01The first derivative is itself a function#

The first derivative is itself a function. Its derivative is the second derivative: it measures how the first rate changes with the input.

f=(f)f\prime\prime=(f\prime)\prime

For f(x)=x3+2x2f(x)=x^3+2x^2, differentiate every term once, then differentiate the resulting function.

For f=x³+2x², f′=3x²+4x and f″=6x+4. At x=0 the tangent slope is 0; at x=1 it is 7. On [0,1], f″ is positive, so the slope increases.For f=x³+2x², f′=3x²+4x and f″=6x+4. At x=0 the tangent slope is 0; at x=1 it is 7. On [0,1], f″ is positive, so the slope increases.
Figure 1For f=x³+2x², f′=3x²+4x and f″=6x+4. At x=0 the tangent slope is 0; at x=1 it is 7. On [0,1], f″ is positive, so the slope increases.
Link to this figure ↗Download SVGDownload PNG
Check your reasoning

f(x)=x4f(x)=x^{4}. Find f(x)f\prime\prime(x).

  1. A4x34x^{3}
  2. B12x212x^{2}
  3. C16x616x^{6}
Show answer and explanation
12x212x^{2}

Differentiate once to get 4x34x^{3}, then again to get 12x212x^{2}.

02For f(x)=2x^3-3x^2, the first derivative is 6x^2-6x#

For f(x)=2x33x2f(x)=2x^3-3x^2, the first derivative is 6x26x6x^2-6x. Keep those coefficients in the second step.

f(x)=12x6f\prime\prime(x)=12x-6

At x=2x=2, the second derivative is 1818. Differentiate first, then evaluate.

If s(x)s(x) is position and xx is time, s(x)s\prime(x) is velocity and s(x)s\prime\prime(x) is acceleration. With meters and seconds, their units are meters per second and meters per second squared.

Check your reasoning

Position in meters is s(x)=x3+2xs(x)=x^{3}+2x, where xx is time in seconds. Acceleration is s(x)s\prime\prime(x). Find acceleration at x=2x=2, in m/s2\mathrm{m/s^2}.

Show answer and explanation
12

Differentiate position twice: s(x)=6xs\prime\prime(x)=6x. At 22, this is 1212.

03A nonzero first derivative can have zero derivative#

A nonzero first derivative can have zero derivative. For f(x)=4x7f(x)=4x-7, the first derivative is the constant 44, so the second derivative is 00.

Two primes mean differentiate twice. They do not mean (f)2(f\prime)^2.

Check your reasoning

f(x)=5x+3f(x)=5x+3. A learner squares the first derivative. Repair f(x)f\prime\prime(x).

  1. A55
  2. B2525
  3. C00
Show answer and explanation
00

Differentiate once to get 55, then again to get 00.

Key takeaway

Find the first derivative, then differentiate that function again.

  • Compute the second derivative of a scalar function.

Sources & further reading

  1. [1]

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Second derivatives.” Math behind ML. /learn/c-second