AP Calculus AB and BC

Higher-Order Derivatives: Notation and What They Mean

The second derivative f''(x) is the derivative of f'(x), and differentiating again gives higher-order derivatives. It measures how fast the slope is changing: positive means concave up, negative means concave down. For a position function, the first derivative is velocity and the second is acceleration.

Differentiate, then differentiate again

A derivative is itself a function, so it can be differentiated. The derivative of f′f' is the second derivative f′′f'', the derivative of f′′f'' is the third derivative f′′′f''', and the process continues for as long as the derivatives exist. This is Topic 3.6, Calculating Higher-Order Derivatives.

No new rules are involved. Each step uses the same power, product, quotient, and chain rules as a first derivative. For f(x)=x4−2x3f(x) = x^4 - 2x^3:

f′(x)=4x3−6x2f′′(x)=12x2−12xf′′′(x)=24x−12f(4)(x)=24f'(x) = 4x^3 - 6x^2 \qquad f''(x) = 12x^2 - 12x \qquad f'''(x) = 24x - 12 \qquad f^{(4)}(x) = 24

The fifth derivative, and every one after it, is 00.

Notation

Both notations from first derivatives extend to higher orders.

OrderPrime notationLeibniz notation
Firstf′(x)f'(x) or y′y'dydx\frac{dy}{dx}
Secondf′′(x)f''(x) or y′′y''d2ydx2\frac{d^2y}{dx^2}
Thirdf′′′(x)f'''(x) or y′′′y'''d3ydx3\frac{d^3y}{dx^3}
Fourthf(4)(x)f^{(4)}(x) or y(4)y^{(4)}d4ydx4\frac{d^4y}{dx^4}
nnthf(n)(x)f^{(n)}(x) or y(n)y^{(n)}dnydxn\frac{d^ny}{dx^n}

Beyond the third derivative, primes get hard to count, so the order goes in parentheses. The parentheses matter: f(4)(x)f^{(4)}(x) is the fourth derivative, while f4(x)f^4(x) would mean f(x)f(x) raised to the fourth power.

In Leibniz notation the 22 sits in different places on top and bottom because d2ydx2\frac{d^2y}{dx^2} abbreviates applying the operator ddx\frac{d}{dx} twice: ddx[dydx]\frac{d}{dx}\left[\frac{dy}{dx}\right]. Nothing is being squared.

What the second derivative tells you

The first derivative is the rate of change of ff. The second derivative is the rate of change of f′f', so it tells you how the slope itself is changing.

  • If f′′(x)>0f''(x) > 0 on an interval, the slopes are increasing there and the graph of ff is concave up.
  • If f′′(x)<0f''(x) < 0 on an interval, the slopes are decreasing there and the graph of ff is concave down.

Concavity is taken up in Topic 5.6, Determining Concavity of Functions over Their Domains. The sign of f′′f'' says nothing about whether ff is rising or falling. That comes from the sign of f′f'. A graph can be increasing and concave down at the same time, like y=xy = \sqrt{x}.

For motion along a line, Topic 4.2, Straight-Line Motion: Connecting Position, Velocity, and Acceleration, attaches names to the derivatives. If s(t)s(t) is position, then velocity is v(t)=s′(t)v(t) = s'(t) and acceleration is a(t)=v′(t)=s′′(t)a(t) = v'(t) = s''(t). The units follow the same pattern: with position in meters and time in seconds, velocity is in meters per second and acceleration is in meters per second per second.

Patterns in repeated derivatives

Some functions fall into a pattern when differentiated repeatedly, which lets you write a high-order derivative without computing every step.

  • Polynomials shrink. Each derivative lowers the degree by one, so a polynomial of degree nn has a constant nnth derivative, and every derivative after that is 00.
  • exe^x never changes: every derivative of exe^x is exe^x. For ekxe^{kx}, each derivative brings out another factor of kk, so the nnth derivative is knekxk^n e^{kx}.
  • Sine and cosine cycle with period four: sin⁡x→cos⁡x→−sin⁡x→−cos⁡x→sin⁡x\sin x \to \cos x \to -\sin x \to -\cos x \to \sin x. To find a high-order derivative, divide the order by 44 and use the remainder to find the position in the cycle.

Using the cycle

For the 2727th derivative of sin⁡x\sin x, divide 2727 by 44 to get a remainder of 33. The third derivative of sin⁡x\sin x is −cos⁡x-\cos x, so the 2727th derivative is −cos⁡x-\cos x as well.

Where students lose points

  • Squaring the first derivative. f′′(x)f''(x) is the derivative of f′(x)f'(x). It is unrelated to (f′(x))2\left(f'(x)\right)^2.
  • Forgetting that a first derivative can be a product. If f′(x)f'(x) contains a product or a quotient, the second pass needs the product or quotient rule again.
  • Dropping chain rule factors on the second pass. Each differentiation of cos⁡(3x)\cos(3x) or e2xe^{2x} produces another inner-derivative factor.
  • Reading concavity as direction. f′′(x)>0f''(x) > 0 means concave up. Whether ff is increasing depends on f′f'. See increasing vs concave up.
  • Not simplifying f′f' before differentiating again. A cleaner first derivative makes the second one shorter and less error-prone.

When yy is defined implicitly, the second derivative takes one extra substitution step. That case is covered under implicit second derivative.

Worked examples

Worked example

A second derivative that needs the product rule

Find f′′(x)f''(x) for f(x)=x2ln⁡xf(x) = x^2 \ln x.

  1. First derivative, by the product rule: f′(x)=2x⋅ln⁡x+x2⋅1x=2xln⁡x+xf'(x) = 2x \cdot \ln x + x^2 \cdot \frac{1}{x} = 2x \ln x + x.
  2. Differentiate again. The term 2xln⁡x2x \ln x is a product: its derivative is 2⋅ln⁡x+2x⋅1x=2ln⁡x+22 \cdot \ln x + 2x \cdot \frac{1}{x} = 2\ln x + 2.
  3. The term xx has derivative 11.
  4. Add the pieces: f′′(x)=2ln⁡x+2+1f''(x) = 2\ln x + 2 + 1.

f′′(x)=2ln⁡x+3f''(x) = 2\ln x + 3

Worked example

Velocity and acceleration from position

A particle moves along a line with position s(t)=2t3−9t2+12ts(t) = 2t^3 - 9t^2 + 12t meters at time tt seconds. Find the velocity and acceleration functions, the acceleration at t=3t = 3, and the time when the acceleration is zero.

  1. Velocity is the first derivative: v(t)=s′(t)=6t2−18t+12v(t) = s'(t) = 6t^2 - 18t + 12.
  2. Acceleration is the second derivative: a(t)=v′(t)=12t−18a(t) = v'(t) = 12t - 18.
  3. Evaluate at t=3t = 3: a(3)=36−18=18a(3) = 36 - 18 = 18.
  4. Set the acceleration equal to zero: 12t−18=012t - 18 = 0 gives t=32t = \frac{3}{2}.

v(t)=6t2−18t+12v(t) = 6t^2 - 18t + 12 and a(t)=12t−18a(t) = 12t - 18. The acceleration at t=3t = 3 is 1818 meters per second per second, and the acceleration is zero at t=32t = \frac{3}{2} seconds.

Worked example

A high-order derivative from a pattern

Find the tenth derivative of f(x)=cos⁡(3x)f(x) = \cos(3x).

  1. Compute the first four derivatives. Each one brings out a factor of 33 from the chain rule: f′(x)=−3sin⁡(3x)f'(x) = -3\sin(3x), f′′(x)=−9cos⁡(3x)f''(x) = -9\cos(3x), f′′′(x)=27sin⁡(3x)f'''(x) = 27\sin(3x), f(4)(x)=81cos⁡(3x)f^{(4)}(x) = 81\cos(3x).
  2. Read the pattern. The nnth derivative has the coefficient 3n3^n, and the trig part cycles through −sin⁡-\sin, −cos⁡-\cos, sin⁡\sin, cos⁡\cos with period four.
  3. Locate the tenth derivative in the cycle: 1010 divided by 44 leaves a remainder of 22, so it has the same trig part as the second derivative, −cos⁡(3x)-\cos(3x).
  4. Attach the coefficient: 310=590493^{10} = 59049.

f(10)(x)=−59049cos⁡(3x)f^{(10)}(x) = -59049\cos(3x)

Frequently asked questions

What does the second derivative tell you about a graph?

It tells you the concavity. Where f′′(x)>0f''(x) > 0 the graph is concave up, bending like a cup, and where f′′(x)<0f''(x) < 0 it is concave down. A point where the concavity changes is an inflection point.

Is d2ydx2\frac{d^2y}{dx^2} the same as (dydx)2\left(\frac{dy}{dx}\right)^2?

No. d2ydx2\frac{d^2y}{dx^2} is the second derivative, the derivative of dydx\frac{dy}{dx}. (dydx)2\left(\frac{dy}{dx}\right)^2 is the first derivative multiplied by itself. For y=x3y = x^3, the second derivative is 6x6x while the square of the first derivative is 9x49x^4.

How many times can you differentiate a function?

It depends on the function. Polynomials, exe^x, sin⁡x\sin x, and cos⁡x\cos x can be differentiated as many times as you like; for a polynomial the results are eventually all 00. Other functions run out. For example, f(x)=x4/3f(x) = x^{4/3} has the first derivative 43x1/3\frac{4}{3}x^{1/3} everywhere, but its second derivative 49x−2/3\frac{4}{9}x^{-2/3} does not exist at x=0x = 0.

Where this shows up outside calculus class