AP Calculus AB · Topic 3.6 · Reading guide, about 4 min

Second and higher derivatives

Second and higher derivatives, patterns in repeated derivatives, and finding d2y/dx2 implicitly, with a worked example.

In one minute

Differentiating a derivative gives a new function that measures how fast the slope itself is changing. This is the second derivative, written f′′(x)f''(x) or d2ydx2\frac{d^2y}{dx^2}. Keep going and you get the third derivative, the fourth, and so on.

The second derivative has a physical meaning: if ff is a position, then f′f' is velocity and f′′f'' is acceleration. It also controls the bending of a graph, which you will use heavily in Unit 5.

Key terms

Second derivative
The derivative of the derivative, written f′′(x)=ddx[f′(x)]f''(x)=\frac{d}{dx}\left[f'(x)\right] or d2ydx2\frac{d^2y}{dx^2}.
Higher derivative
A derivative taken repeatedly, written f′′′(x)f'''(x) or f(n)(x)f^{(n)}(x) for the nnth derivative.
Rate of change of the rate
A way to say what f′′f'' measures: how quickly the slope f′f' is increasing or decreasing.
Acceleration
The derivative of velocity, which is the second derivative of position.
Notation d2y/dx2
Read as "d two y, d x squared." The 2 on top is an order, and dx2dx^2 means (dx)2(dx)^2, not a derivative of x2x^2.
Cycle of derivatives
A repeating pattern, such as sine and cosine, whose derivatives return to the start every four steps.
Implicit second derivative
The second derivative on a curve like x2+y2=25x^2+y^2=25, found by differentiating dydx\frac{dy}{dx} and substituting for dydx\frac{dy}{dx}.

Taking derivatives repeatedly

Nothing new is needed: apply the same rules again to the result. For f(x)=x4−3x2f(x)=x^4-3x^2, f′(x)=4x3−6xf'(x)=4x^3-6x, then f′′(x)=12x2−6f''(x)=12x^2-6, then f′′′(x)=24xf'''(x)=24x, then f(4)(x)=24f^{(4)}(x)=24. A polynomial of degree nn becomes a constant after nn derivatives and 0 after that.

Rules compound as you go. For y=xsin⁡xy=x\sin x, y′=sin⁡x+xcos⁡xy'=\sin x+x\cos x by the product rule. Differentiating again, ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x]=\cos x and ddx[xcos⁡x]=cos⁡x−xsin⁡x\frac{d}{dx}[x\cos x]=\cos x-x\sin x, so y′′=2cos⁡x−xsin⁡xy''=2\cos x-x\sin x. Simplify between steps when you can, since an untidy first derivative grows quickly.

What the second derivative measures

If f′(x)f'(x) is positive and f′′(x)f''(x) is positive, the function is rising and getting steeper. If f′(x)f'(x) is positive and f′′(x)f''(x) is negative, it is still rising but flattening. For a particle with position s(t)s(t), velocity is s′(t)s'(t) and acceleration is s′′(t)s''(t), so s′′>0s''>0 means velocity is increasing.

Concavity ties in here as well: a positive f′′f'' means the graph curves upward like a cup, and a negative f′′f'' means it curves downward like a cap. We will use that fully in unit 5, but it explains why the sign of f′′f'' matters so much.

Be careful with the vocabulary. The value of the function, its rate of change, and the rate of change of that rate are three different things, with three different units. If ss is in meters and tt in seconds, then s′s' is in meters per second and s′′s'' is in meters per second per second.

Repeated derivatives of familiar functions
FunctionFirstSecondThirdFourth
sin⁡x\sin xcos⁡x\cos x−sin⁡x-\sin x−cos⁡x-\cos xsin⁡x\sin x
cos⁡x\cos x−sin⁡x-\sin x−cos⁡x-\cos xsin⁡x\sin xcos⁡x\cos x
e2xe^{2x}2e2x2e^{2x}4e2x4e^{2x}8e2x8e^{2x}16e2x16e^{2x}
x3x^33x23x^26x6x60

Patterns in repeated derivatives

Sine and cosine cycle with period four. To find a high derivative, divide the order by 4 and use the remainder. For f(x)=sin⁡xf(x)=\sin x, the tenth derivative has order 10=4⋅2+210=4\cdot 2+2, so it matches the second derivative, −sin⁡x-\sin x. The exponential ekxe^{kx} gains a factor of kk with every derivative, so its nnth derivative is knekxk^n e^{kx}. Spotting a pattern is quicker than computing ten derivatives. Polynomials follow a different pattern: the derivatives of xnx^n shrink the exponent by one each time, and the coefficients accumulate into n!n! at the last nonzero step, as with d3dx3x3=6\frac{d^3}{dx^3}x^3=6.

Implicit second derivatives and a worked example

Find d2ydx2\frac{d^2y}{dx^2} for x2+y2=25x^2+y^2=25 at the point (3,4)(3,4).

Step 1: find the first derivative. Differentiating gives 2x+2ydydx=02x+2y\frac{dy}{dx}=0, so dydx=−xy\frac{dy}{dx}=-\frac{x}{y}.

Step 2: differentiate again with the quotient rule. d2ydx2=−1⋅y−xdydxy2\frac{d^2y}{dx^2}=-\frac{1\cdot y-x\frac{dy}{dx}}{y^2}.

Step 3: substitute for dydx\frac{dy}{dx}. The numerator becomes y−x(−xy)=y+x2y=y2+x2yy-x\left(-\frac{x}{y}\right)=y+\frac{x^2}{y}=\frac{y^2+x^2}{y}. So d2ydx2=−y2+x2y3\frac{d^2y}{dx^2}=-\frac{y^2+x^2}{y^3}.

Step 4: use the original equation. Since x2+y2=25x^2+y^2=25, this is −25y3-\frac{25}{y^3}. At (3,4)(3,4), the value is −2564-\frac{25}{64}.

Check the sign: at (3,4)(3,4) the circle is the upper half, which is concave down, so a negative second derivative fits.

How it connects

  • Back to 2.2: the derivative notation you learned there extends directly to higher derivatives.
  • Back to 3.2: finding an implicit second derivative reuses the method and always ends with a substitution for dydx\frac{dy}{dx}.
  • Forward to 4.2: acceleration is the second derivative of position, and comparing its sign with the sign of velocity tells whether a particle is speeding up or slowing down.
  • Forward to 5.6 and 5.7: the sign of f′′f'' gives concavity and classifies critical points.
  • Forward to 5.12: concavity on implicit curves uses this topic's method.

Common mistakes

  • **Confusing f′′(x)f''(x) with f(x)2f(x)^2 or [f′(x)]2[f'(x)]^2.** The notation d2ydx2\frac{d^2y}{dx^2} means taking the derivative twice, not squaring anything.
  • **Forgetting to substitute dydx\frac{dy}{dx} in an implicit second derivative.** The final answer should not contain dydx\frac{dy}{dx}, only xx and yy.
  • Mixing up the units. The units of f′′f'' are output units per input unit per input unit, not the same as the units of f′f'.
  • Stopping the cycle early. For sine and cosine, count carefully with the remainder after dividing by 4.

How it shows up on the exam

  • Free-response parts give a function or a table and ask for f′′(x)f''(x), often as a stepping stone to concavity or to the acceleration of a particle.
  • Implicit problems ask for d2ydx2\frac{d^2y}{dx^2} at a point on a curve, where you must show how dydx\frac{dy}{dx} was substituted.
  • Context items ask what f′′(a)f''(a) means in words with units, such as "the rate at which the velocity is changing."

Check yourself

  1. If f(x)=x5f(x)=x^5, what is f(5)(x)f^{(5)}(x), and what is f(6)(x)f^{(6)}(x)?
  2. What is the 27th derivative of cos⁡x\cos x? Use the cycle of four.
  3. If a car's velocity, in meters per second, is positive and increasing, what are the units and the sign of its acceleration?
  4. Why does the final answer of an implicit second derivative contain no dydx\frac{dy}{dx}?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.