Second-order derivatives

Differentiate a function once and you learn its rate of change. Differentiate it again and you learn how that rate of change is itself changing — the second-order derivative, written d2ydx2\dfrac{d^2y}{dx^2} or y′′y''. It closes out the Continuity and Differentiability chapter by asking you to reuse every tool built earlier — the chain rule, implicit differentiation, logarithmic differentiation, parametric differentiation — one extra time. The computation is mechanically simple: differentiate, then differentiate the result. What takes practice is doing this correctly when yy is not written as a bare formula in xx — when it is tangled up in an implicit relation, or split across a parameter tt. This article walks through all three settings: explicit, implicit, and parametric, with one fully-solved example in each style that you can use as a template.

The core insight

The second-order derivative d2ydx2=ddx(dydx)\dfrac{d^2y}{dx^2} = \dfrac{d}{dx}\left(\dfrac{dy}{dx}\right) is found by differentiating a function's first derivative a second time, with the exact technique — direct, implicit, or via a parameter — matching however yy was originally given.

The core idea

Given y=f(x)y = f(x), call the first derivative y′=dydxy' = \dfrac{dy}{dx}. The second-order derivative is what you get by differentiating y′y' once more with respect to xx:

d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)

where: yy is the original function, dydx\dfrac{dy}{dx} is its first derivative (itself a function of xx), and d2ydx2\dfrac{d^2y}{dx^2} is the derivative of that derivative. The syllabus asks you to compute this in three settings, and the technique changes with the setting.

Explicit functions. If y=f(x)y = f(x) directly, there is nothing new: differentiate f(x)f(x) to get f′(x)f'(x), then differentiate f′(x)f'(x) again to get f′′(x)f''(x). Every differentiation rule you already know — power, product, quotient, chain — applies at each stage independently.

Implicit relations. When xx and yy are tangled together in one equation, the first derivative dydx\dfrac{dy}{dx} itself usually contains yy (and sometimes dydx\dfrac{dy}{dx} appears on both sides after simplification). To get the second derivative, differentiate that first-derivative expression with respect to xx once more — applying the chain rule to every yy-term as ddx(y)=dydx\dfrac{d}{dx}(y) = \dfrac{dy}{dx} — and then substitute back the already-known expression for dydx\dfrac{dy}{dx} to simplify the result purely in terms of xx and yy.

Parametric curves. If x=f(t)x = f(t) and y=g(t)y = g(t), first find dydx\dfrac{dy}{dx} as a function of tt in the usual parametric way. Then treat that expression as a new "yy-like" quantity depending on xx only through tt, and apply the same chain-rule move used to get the first derivative:

d2ydx2=ddt(dydx)dxdt\frac{d^2y}{dx^2} = \frac{\dfrac{d}{dt}\left(\dfrac{dy}{dx}\right)}{\dfrac{dx}{dt}}

where: the numerator is the tt-derivative of the already-found dydx\dfrac{dy}{dx}, and the denominator is dxdt\dfrac{dx}{dt} again — the same one used in step one. Differentiating dydx\dfrac{dy}{dx} with respect to tt and stopping there, without dividing by dxdt\dfrac{dx}{dt}, is the single most common parametric mistake.

Figure
Three small graphs stacked showing a cubic curve its slope curve and its slope of slope curve for the same function
y, dy/dx and d2y/dx2 for the same function y = x^3 - 6x^2 + 9x dy/dx = 3x^2 - 12x + 9 d2y/dx2 = 6x - 12 zero at x = 2

The core idea, continued: why the parametric formula is not a new rule

Once dydx\dfrac{dy}{dx} is written as a function of tt, it depends on xx only indirectly, through tt. Finding its derivative with respect to xx therefore needs exactly the same conversion used for the first derivative: differentiate with respect to tt (the rate "per unit tt"), then divide by dxdt\dfrac{dx}{dt} to convert it into a rate "per unit xx." Seen this way, the second-order parametric formula is the same idea applied twice, not a separate rule to memorise.

Derivation AThe parametric second-derivative formula

The goal of this derivation is to show, starting only from the definition d2ydx2=ddx(dydx)\dfrac{d^2y}{dx^2} = \dfrac{d}{dx}\left(\dfrac{dy}{dx}\right) and the ordinary chain rule for a function of a parameter, exactly why d2ydx2\dfrac{d^2y}{dx^2} for a parametric curve x=f(t)x = f(t), y=g(t)y = g(t) works out to be the tt-derivative of dydx\dfrac{dy}{dx} divided once more by dxdt\dfrac{dx}{dt}, rather than simply the tt-derivative of dydx\dfrac{dy}{dx} on its own.

Step 1. Start from the first-derivative stage, which you already know: for a parametric curve, dydx=dy/dtdx/dt\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt}, obtained by treating yy and xx as both varying with tt and using the chain rule dydt=dydx⋅dxdt\dfrac{dy}{dt} = \dfrac{dy}{dx}\cdot\dfrac{dx}{dt}, then solving for dydx\dfrac{dy}{dx}. Call this ratio g(t)g(t); it is a specific function of tt, found once and reused below.

Step 2. By definition, the second derivative is d2ydx2=ddx(g(t))\dfrac{d^2y}{dx^2} = \dfrac{d}{dx}\big(g(t)\big) — the derivative of g(t)g(t) with respect to xx. But g(t)g(t) is written as a function of tt, not xx, so this derivative cannot be taken directly; it must go through tt using the chain rule, exactly as any function of tt is differentiated with respect to xx.

Step 3. Apply the chain rule the same way it was applied in Step 1: ddx(g(t))=ddt(g(t))⋅dtdx\dfrac{d}{dx}\big(g(t)\big) = \dfrac{d}{dt}\big(g(t)\big)\cdot\dfrac{dt}{dx}. Since dtdx=1/dxdt\dfrac{dt}{dx} = 1\big/\dfrac{dx}{dt}, this becomes ddx(g(t))=ddt(g(t))dxdt\dfrac{d}{dx}\big(g(t)\big) = \dfrac{\dfrac{d}{dt}\big(g(t)\big)}{\dfrac{dx}{dt}}.

Step 4. Substitute back g(t)=dydxg(t) = \dfrac{dy}{dx} to read off the final formula: d2ydx2=ddt(dydx)dxdt\dfrac{d^2y}{dx^2} = \dfrac{\dfrac{d}{dt}\left(\dfrac{dy}{dx}\right)}{\dfrac{dx}{dt}}. The division by dxdt\dfrac{dx}{dt} is not optional bookkeeping — it is the same conversion factor from "per unit tt" to "per unit xx" used in Step 1, applied a second time because dydx\dfrac{dy}{dx} is itself a quantity that only depends on xx through tt.

Worked example

Find d2ydx2\dfrac{d^2y}{dx^2} if y=x3−6x2+9xy = x^3 - 6x^2 + 9x.

Step 1. Find the first derivative by differentiating term by term:

dydx=3x2−12x+9\frac{dy}{dx} = 3x^2 - 12x + 9

Step 2. Differentiate the first derivative once more to get the second derivative:

d2ydx2=ddx(3x2−12x+9)=6x−12\frac{d^2y}{dx^2} = \frac{d}{dx}(3x^2 - 12x + 9) = 6x - 12

Step 3. State and check the result. So d2ydx2=6x−12\dfrac{d^2y}{dx^2} = 6x - 12. At x=2x = 2, this evaluates to 6(2)−12=06(2) - 12 = 0, consistent with x=2x = 2 being the midpoint of the cubic's turning behaviour (a fact examined further, using concavity, in the next chapter — not required here). Final answer: d2ydx2=6x−12\dfrac{d^2y}{dx^2} = 6x - 12.

Competitive stretch

Find d2ydx2\dfrac{d^2y}{dx^2} if x2+y2=1x^2 + y^2 = 1 (an implicit relation).

Step 1. Differentiate both sides implicitly with respect to xx: 2x+2ydydx=02x + 2y\dfrac{dy}{dx} = 0, which gives dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y}.

Step 2. Differentiate dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y} again using the quotient rule, treating yy as a function of xx so that ddx(y)=dydx\dfrac{d}{dx}(y) = \dfrac{dy}{dx}:

d2ydx2=−y⋅1−x⋅dydxy2\frac{d^2y}{dx^2} = -\frac{y\cdot 1 - x\cdot\dfrac{dy}{dx}}{y^2}

Step 3. Substitute dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y} from Step 1 and simplify: d2ydx2=−y+x2/yy2=−x2+y2y3\dfrac{d^2y}{dx^2} = -\dfrac{y + x^2/y}{y^2} = -\dfrac{x^2+y^2}{y^3}.

Step 4. Use the original relation x2+y2=1x^2 + y^2 = 1 to finish: d2ydx2=−1y3\dfrac{d^2y}{dx^2} = -\dfrac{1}{y^3}. Final answer: d2ydx2=−1y3\dfrac{d^2y}{dx^2} = -\dfrac{1}{y^3}.

Common traps

  • Not substituting the first derivative back in for an implicit relation — leaving d2ydx2\dfrac{d^2y}{dx^2} expressed in terms of dydx\dfrac{dy}{dx} instead of purely xx and yy.
  • Differentiating dydx\dfrac{dy}{dx} directly with respect to xx for a parametric curve, instead of with respect to tt followed by division by dxdt\dfrac{dx}{dt} — the single most common parametric error.
  • Sign and arithmetic slips carried over from the first derivative into the second, since any early error compounds through the second round of differentiation.
  • Assuming the answer must simplify to something "neat." Many correct second derivatives remain moderately complex expressions in xx, yy, or tt; do not over-simplify or suspect an error just because the algebra stays busy.

Ask the tutor: if the parametric "differentiate then divide again" pattern still feels slippery, ask the AI tutor to work through one more parametric example with you, step by step.

Why does the second derivative of an implicit relation need substitution at the end, but an explicit one does not?

For an explicit function y=f(x)y = f(x), differentiating twice gives an answer purely in xx automatically, since yy never appears on the right-hand side. For an implicit relation, the first differentiation step produces dydx\dfrac{dy}{dx} in terms of both xx and yy, and differentiating that expression again naturally reintroduces dydx\dfrac{dy}{dx} inside the working (via the product or quotient rule). Substituting the known formula for dydx\dfrac{dy}{dx} back in is what removes it, leaving a final answer in xx and yy only — skipping this step leaves the answer only partially simplified.

Why can't I just differentiate dy/dx with respect to t for a parametric curve and stop there?

Because dydx\dfrac{dy}{dx}, once written as a function of tt, is still a rate measured "per unit xx," not "per unit tt." Differentiating it with respect to tt gives you how fast that ratio changes as tt increases, which is a different quantity from how fast it changes as xx increases. Dividing by dxdt\dfrac{dx}{dt} converts the rate back into "per unit xx" terms, exactly as it did when you first built dydx\dfrac{dy}{dx} from dydt\dfrac{dy}{dt} and dxdt\dfrac{dx}{dt}. Skipping this division is the most common parametric second-derivative mistake.

Do I need to know about concavity or curve sketching to answer second-order derivative questions?

No. In this chapter, computing d2ydx2\dfrac{d^2y}{dx^2} is a purely computational exercise in reapplying differentiation rules — explicit, implicit, or parametric — one extra time. The geometric meaning of the second derivative, such as concavity (whether a curve bends upward or downward) and its use in locating maxima and minima, is developed in the next chapter, Applications of Derivatives. You are not expected to interpret the sign of d2ydx2\dfrac{d^2y}{dx^2} geometrically here, only to compute it correctly.

Before this

Where this leads