AP · Calculus AB · Inverse Functions and Higher Derivatives
Second and Higher-Order Derivatives
19 min readUpdated November 30, 2026FreeAP Calculus AB, Chain Rule, Implicit and Inverse Derivatives
The second derivative is the derivative of the derivative: you differentiate f to get f′, then differentiate f′ to get f′′. Keep going and you get the third derivative f′′′, the fourth derivative f(4) and so on. On an implicit curve you find dx2d2y by differentiating dxdy again, then substituting your expression for dxdy back in.
Quick check
1Differentiate (3x2+1)4.Show answerHide answer
24x(3x2+1)3. The chain rule gives 4(3x2+1)3 times the derivative of the inside, 6x.
2Find dxdy for the circle x2+y2=25.Show answerHide answer
dxdy=−yx. Implicit differentiation gives 2x+2ydxdy=0, so dxdy=−2y2x.
3If f′(x)=6x2−4x, what is f′′(x)?Show answerHide answer
f′′(x)=12x−4. You differentiate the derivative once more.
Write second and higher derivatives in prime notation and in Leibniz notation, and read each form correctly.
Calculate second, third and higher derivatives of polynomial, exponential, logarithmic and trigonometric functions.
Evaluate a higher derivative at a given input.
Use the repeating pattern in the derivatives of sinx,cosx and ekx to find a high-order derivative quickly.
Find dx2d2y on an implicitly defined curve in terms of x and y, and evaluate it at a point on the curve.
Key terms
Second derivative
The derivative of the first derivative, written f′′(x),y′′ or dx2d2y.
In plain English
How fast the slope of the graph is changing.
Don't write
(dxdy)2; squaring the first derivative is a different quantity.
nth derivative
The result of differentiating a function n times in a row, written f(n)(x) or dxndny.
In plain English
The derivative you reach after n rounds of differentiating.
Don't write
fn(x) for the nth derivative; without brackets that reads as a power.
What do the notations for higher derivatives mean?
The second derivativef′′(x) is the derivative of f′(x), so it measures how fast the slope of f is changing. When y is the output, you can also write y′′ or dx2d2y.
Learn this (AP® Calculus AB has no formula sheet):
dx2d2y=dxd(dxdy)
Read dx2d2y as "d two y, d x squared". The 2 on top sits on the d because you apply "differentiate" twice; the 2 underneath goes on x because both differentiations are with respect to x. Neither 2 is a power of y.
Higher derivatives follow the same pattern:
Order
Prime notation
Leibniz notation
Third
f′′′(x) or y′′′
dx3d3y
Fourth
f(4)(x) or y(4)
dx4d4y
nth
f(n)(x) or y(n)
dxndny
From the fourth derivative on, the order goes in brackets, because f(4) means "differentiate four times" while f4 means the fourth power of f. In motion problems, if x(t) is position, then x′′(t) is acceleration; the note on motion along a line uses this.
Key idea
Each higher derivative is the derivative of the one before it, so you reach f(n) by differentiating f exactly n times.
Check yourself
What does f(5)(x) mean, and how is it different from f5(x)?
Show answerHide answer
f(5)(x) is the fifth derivative: you differentiate f five times. f5(x) is (f(x))5, the fifth power of the output.
How do you find higher derivatives of a formula?
Differentiate, simplify, then differentiate again. Simplifying between steps keeps the next derivative short. Rewriting before you start helps too: write x2 as 2x−1 and x as x1/2 so the power rule applies.
For f(x)=x4−3x2+7x:
f′(x)=4x3−6x+7
f′′(x)=12x2−6
f′′′(x)=24x
f(4)(x)=24, and every derivative after that is 0.
A polynomial of degree n has a constant nth derivative, so its (n+1)th derivative is 0.
If the first derivative needed the product, quotient or chain rule, the second usually needs one of them again. For y=sin(x2), the chain rule gives y′=2xcos(x2). That is a product, so y′′=2cos(x2)+2x(−2xsin(x2))=2cos(x2)−4x2sin(x2).
To evaluate f′′(a), find the general f′′(x) first and substitute x=a last. If you substitute into f′ first, it becomes a constant, and the derivative of a constant is 0.
Examiner's eye
Marks are lost when the second derivative is built on a wrong first derivative. Simplify f′(x) and check it before you differentiate again.
Check yourself
Find f′′(x) for f(x)=5x3+x4.
Show answerHide answer
f′′(x)=30x+x38. Rewrite x4 as 4x−1; then f′(x)=15x2−4x−2 and f′′(x)=30x+8x−3.
What patterns show up when you keep differentiating?
Some functions cycle or scale as you differentiate, so you can jump straight to a high-order derivative.
f(x)
f′(x)
f′′(x)
f′′′(x)
f(4)(x)
sinx
cosx
−sinx
−cosx
sinx
cosx
−sinx
−cosx
sinx
cosx
ekx
kekx
k2ekx
k3ekx
k4ekx
The derivatives of sinx and cosx repeat every four steps. So to find f(n), divide n by 4 and use the remainder: remainder 0 gives back the original function, remainder 1 gives the first derivative, and so on. For example, 50=4×12+2, so the 50th derivative of sinx is −sinx.
For ekx, each differentiation multiplies by k because of the chain rule, so the nth derivative is knekx. For sin(kx) and cos(kx) the cycle is the same, and each step also brings a factor of k: the second derivative of sin(3x) is −9sin(3x).
Check yourself
What is the 27th derivative of sinx?
Show answerHide answer
−cosx.27=4×6+3, and the third derivative of sinx is −cosx.
How do you find the second derivative on an implicit curve?
On an implicit curve, dxdy usually contains both x and y. To get dx2d2y you differentiate that expression with respect to x, remembering that y is a function of x. So each time you differentiate a y, a factor of dxdy appears, just as in implicit differentiation.
Find dxdy by implicit differentiation.
Differentiate dxdy with respect to x, often with the quotient rule. The result contains dxdy.
Substitute your expression for dxdy and simplify. If the left side of the curve's equation appears, replace it by its constant.
Take y2=4x. Differentiating gives 2ydxdy=4, so dxdy=2y−1. Differentiating again gives dx2d2y=−2y−2dxdy. Substituting dxdy=y2 gives dx2d2y=−y34. At (1,2), which is on the curve, dx2d2y=−84=−21.
Key idea
When you differentiate dxdy again, y is still a function of x, so the chain rule brings back a dxdy that you then replace.
Rewrite as powers, differentiate, simplify, differentiate again
An equation in x and y
Find dxdy, differentiate it, substitute dxdy back in
A large order such as f(40)(x)
Find the pattern in the first four derivatives
A value such as f′′(2)
Find f′′(x) in general, then substitute
Worked example 1: A second derivative from a formula
Question: Let f(x)=4x3−5x2+x2. Find f′′(x) and f′′(1).
What tells you the method
f is a formula in x, so you differentiate twice directly; the x2 tells you to rewrite it as a power first.
1
Step 1: Rewrite with powers.
f(x)=4x3−5x2+2x−1.
Why
In this form every term uses the power rule.
2
Step 2: Differentiate once.
f′(x)=12x2−10x−2x−2.
Why
The power rule brings each exponent down and lowers it by 1, so 2x−1 becomes −2x−2.
3
Step 3: Differentiate again.
f′′(x)=24x−10+4x−3=24x−10+x34.
Why
−2x−2 gives (−2)(−2)x−3=4x−3, because the two negatives make a positive.
4
Step 4: Substitute x=1.
f′′(1)=24−10+4=18.
Why
You find the general second derivative first and only then put in the number.
Check it
f′(1.01)≈0.1806 and f′(0.99)≈−0.1794, so the slope of f′ near x=1 is about 0.020.36=18, which matches f′′(1).
Answer
f′′(x)=24x−10+x34 and f′′(1)=18.
Worked example 2: Product and chain rules twice
Question: Let g(x)=xe2x. Find g′′(x) in factored form and evaluate g′′(0).
What tells you the method
g is a product of x and e2x, so you need the product rule, with the chain rule for e2x, at both steps.
1
Step 1: Differentiate once.
g′(x)=1⋅e2x+x⋅2e2x=(1+2x)e2x.
Why
The product rule adds (derivative of the first)(second) and (first)(derivative of the second), and the chain rule gives the derivative of e2x as 2e2x.
2
Step 2: Differentiate again.
g′′(x)=2e2x+(1+2x)⋅2e2x.
Why
g′(x) is again a product, now of (1+2x) and e2x.
3
Step 3: Factor.
g′′(x)=e2x(2+2+4x)=4(1+x)e2x.
Why
Taking out the common factor e2x gives the simplest form.
4
Step 4: Substitute x=0.
g′′(0)=4(1+0)e0=4.
Why
e0=1.
Check it
Differentiating the expanded form g′(x)=e2x+2xe2x term by term gives 2e2x+2e2x+4xe2x, the same as 4(1+x)e2x.
Answer
g′′(x)=4(1+x)e2x and g′′(0)=4.
Worked example 3: The second derivative on an implicit curve
Question: A curve is defined by x3+y3=9. (a) Show that dxdy=−y2x2. (b) Find dx2d2y in terms of x and y, in its simplest form. (c) Evaluate dx2d2y at the point (1,2).
What tells you the method
The curve is an equation in x and y, not y=f(x), so you differentiate implicitly and then differentiate dxdy again.
1
Step 1: Differentiate implicitly.
3x2+3y2dxdy=0, so dxdy=−3y23x2=−y2x2, as required.
Why
y depends on x, so the chain rule turns the derivative of y3 into 3y2dxdy.
2
Step 2: Differentiate dxdy with the quotient rule.
dx2d2y=−y42x⋅y2−x2⋅2ydxdy
Why
The top, x2, has derivative 2x; the bottom, y2, has derivative 2ydxdy because y is a function of x.
3
Step 3: Substitute dxdy=−y2x2 and clear the fraction.
The numerator becomes 2xy2+y2x4. Multiplying the top and bottom by y:
dx2d2y=−y52xy3+2x4=−y52x(x3+y3)
Why
Clearing the small fraction makes the curve's own expression x3+y3 appear.
4
Step 4: Use the curve's equation.
Since x3+y3=9,dx2d2y=−y518x.
Why
Every point where you evaluate lies on the curve, so x3+y3 is 9 there.
5
Step 5: Evaluate at (1,2).
dx2d2y=−2518(1)=−3218=−169.
Why
Both coordinates appear, and (1,2) is on the curve because 1+8=9.
Check it
Near (1,2) the curve is y=(9−x3)1/3; differentiating that form twice and putting in x=1 also gives −0.5625, which is −169.
Answer
(a) dxdy=−y2x2, shown in Step 1. (b) dx2d2y=−y518x. (c) At (1,2),dx2d2y=−169.
Your turn
Question: For the circle x2+y2=25, find dx2d2y in terms of y, and evaluate it at (3,4).
1
Step 1:
Implicit differentiation gives 2x+2ydxdy=0, so dxdy=−yx.
2
Step 2:
The quotient rule gives dx2d2y=−y2y−xdxdy.
3
Step 3: Your go: substitute and simplify.
Replace dxdy by −yx, clear the fraction, use x2+y2=25, then put in y=4.
Show the full solutionHide the solution
Substituting gives dx2d2y=−y2y+yx2. Multiplying the top and bottom by y gives −y3y2+x2. Since x2+y2=25, this is −y325. At (3,4) it equals −6425.
Answer:dx2d2y=−y325, which equals −6425 at (3,4).
Traps
Trap
Thinking dx2d2y means the first derivative squared.
It seems right because the notation carries a 2 that looks like a square. But the 2 counts how many times you differentiate. For y=x3,dxdy=3x2 and dx2d2y=6x, while the square of the first derivative is 9x4.
Check yourself
For y=x2+5x, which equals dx2d2y:2 or (2x+5)2?
Show answerHide answer
2. Differentiating 2x+5 again gives 2;(2x+5)2 is the square of the first derivative.
Trap
Treating y as a constant when you differentiate dxdy again, so that −yx differentiates to −y1.
It seems right because y looks like a separate letter. But on an implicit curve y changes with x, so the quotient rule gives −y2y−xdxdy, and the dxdy must then be replaced.
Check yourself
For xy=1,dxdy=−xy. Is dx2d2y equal to x2y or x22y?
Show answerHide answer
x22y. The quotient rule gives −x2xdxdy−y=−x2−y−y=x22y; the value x2y comes from treating y as a constant.
Trap
Putting the point's coordinates into dxdy and then differentiating the number you get.
It seems right because you only want the value at one point. But once you substitute, dxdy is a constant, and its derivative is 0. Find dx2d2y in general first, then substitute.
Check yourself
On x3+y3=9,dxdy=−41 at (1,2). Is dx2d2y=0 there?
Show answerHide answer
No. Differentiating the constant −41 gives 0, but the general result −y518x gives −169 at (1,2).
What's examined
Higher derivatives belong to Unit 3 (Chain Rule, Implicit and Inverse Derivatives) of the AP® Calculus AB exam, and they can be tested in both the multiple-choice and the free-response sections. Multiple-choice items ask you to compute a second or higher derivative, or to pick the correct dx2d2y for an implicit curve. A free-response part on an implicit curve can ask you to "Show that" dxdy has a given form, then "Find" or "Evaluate" dx2d2y at a point. In a "Show that" part the result is given, so the credit is for the steps: write each substitution. All of this is done by hand, without a graphing calculator.
Not on your syllabus: second derivatives of parametric equations, which belong to AP® Calculus BC.
Practice questions
Recall If f(x)=x5−3x2, which of these is f′′′(x)?
A) 20x3−6
B) 60x2−6
C) 60x2
D) 5x4−6x
Show answer
Answer: C, f′′′(x)=60x2.
Marking points:
f′(x)=5x4−6x,f′′(x)=20x3−6,f′′′(x)=60x2.
A is f′′(x), one differentiation short.
B keeps the constant −6, whose derivative is 0.
D is f′(x).
Recall What is dx2d2y for y=sin(2x)?
A) −4sin(2x)
B) −2sin(2x)
C) 4sin(2x)
D) 2cos(2x)
Show answer
Answer: A, dx2d2y=−4sin(2x).
Marking points:
dxdy=2cos(2x), then dx2d2y=2⋅(−2sin(2x))=−4sin(2x).
B uses the chain-rule factor 2 only once.
C takes the derivative of cos as +sin.
D stops at the first derivative.
Apply Let f(x)=ln(x2+1). Find f′′(x) and the value of f′′(2).