AP® CALCULUS AB & BC · UNIT 3

Calculating Higher-Order Derivatives

Differentiate a function more than once, recognize patterns, and connect the slope of the first derivative to the second derivative.

Topic 3.6 study notes6 worked examples · 4 practice problemsUpdated 10 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. Read higher-order derivative notation

A higher-order derivative comes from differentiating the previous derivative. If y=f(x), the second derivative can be written as f″(x), y″, or d2ydx2. It exists at an input where the first derivative is differentiable.

Scroll the table sideways to see the interpretations.

Higher-order derivative notation for y=f(x)
OrderPrime or order notationLeibniz notationInterpretation
Firstf′(x)dydxSlope of the original function. If position is the original function of time, this is velocity.
Secondf″(x)d2ydx2Rate of change of the first derivative. Its sign on an interval describes concavity. For position, this is acceleration.
Thirdf‴(x) or f(3)(x)d3ydx3Rate of change of the second derivative. For position, this is the rate of change of acceleration, called jerk.
Order nf(n)(x)dnydxnThe result of n successive differentiations, where they exist.
Read the parentheses in the superscript. f(2)(x) means take two derivatives. [f(x)]2 means square the function value.

2. Differentiate one order at a time

  1. Identify the requested order.

    Mark whether the question asks for a derivative function or a value at one input.

  2. Find the first derivative.

    Choose the power, product, quotient, or chain rule according to the expression. For an implicit relation, treat y as a function of x.

  3. Differentiate the result.

    Use whichever rules the new expression needs. Simplify when it saves work and keep the original domain restrictions.

  4. Evaluate at the end.

    Keep the input variable until you reach the requested order. Then substitute the given input if the question asks for a value.

The notation makes this process visible. Differentiate the first derivative to obtain the second.

d2ydx2=ddx(dydx)

For any positive integer n, repeat the same step wherever the next derivative exists.

f(n)(x)=ddx(f(n−1)(x))

Here f(0)(x)=f(x), so the recursion starts with the original function.

3. Six worked examples

Worked example 1

Differentiate a polynomial four times

f(x)=x4−2x2+3x

1 · Apply the power rule term by term

f′(x)=4x3−4x+3
f″(x)=12x2−4

The linear term contributes 3 to the first derivative and 0 to the second.

2 · Continue with the new polynomial

f‴(x)=24x
f(4)(x)=24

3 · Check when the pattern stops

f(5)(x)=0

The fourth derivative is constant. Every derivative from the fifth order onward is zero.

Worked example 2

Follow the four-step sine cycle

f(x)=sinx

1 · Track the signs

f′(x)=cosx
f″(x)=−sinx
f‴(x)=−cosx

Trigonometric differentiation here uses radians.

2 · Use the remainder after division by four

f(4)(x)=sinx

The fourth derivative returns to the original sine. Since 14=4·3+2, the fourteenth derivative has the same expression as the second.

f(14)(x)=−sinx

Worked example 3

Track the chain factor in an exponential

g(x)=ekx

1 · Apply the chain rule

For constant k, the inner derivative is k. The first derivative keeps the same exponential factor.

g′(x)=kekx
g″(x)=k2ekx

2 · Generalize to the requested order

g(n)(x)=knekx

Each new differentiation contributes another factor of k. The formula applies for positive integer n.

Worked example 4

Build the logarithm pattern

y=lnx

1 · Keep the original domain

Work on x>0. Differentiate once, then apply the power rule to the reciprocal.

y′=1x
y″=−1x2

2 · Follow the coefficient and the sign

y‴=2x3
y(n)=(−1)n−1(n−1)!xn

When differentiating a term with x−n, the power rule multiplies its coefficient by −n. That gives the alternating sign and the factorial for positive integer n.

Worked example 5

Apply the chain rule on both passes

h(x)=cos(3x)

1 · Differentiate the cosine and its input

h′(x)=−3sin(3x)

2 · Differentiate the sine and its input

h″(x)=−3·3cos(3x)=−9cos(3x)

The inner expression is 3x both times. Its derivative contributes a factor of 3 each time.

Worked example 6

Find the second derivative of an implicit circle

x2+y2=25

1 · Differentiate the equation once

On a local branch y=y(x), the chain rule gives the first derivative.

x+yy′=0
y′=−xy,y≠0

2 · Apply the product rule to the first derivative equation

1+(y′)2+yy″=0
y″=−1+(y′)2y

Both y and y′ vary with x. The product rule gives (y′)2 and yy″.

3 · Substitute and evaluate

y″=−x2+y2y3=−25y3,y≠0

The point (3,4) lies on the circle. On that branch, substitute y=4.

d2ydx2|(3,4)=−2564

4. Connect first and second derivative graphs

Both panels use the polynomial from Example 1. Compare their heights at the same input, x=0. The panels share the same input range and use different vertical scales.

First derivative f′(x)

Point A=(0,3) gives f′(0)=3, the slope of the original polynomial. The blue dashed line is tangent to the first derivative and has slope −4.

Second derivative f″(x)

Point B=(0,−4) gives f″(0)=−4. That height matches the slope of the dashed tangent in the first panel.
Read the two orders together. Near x=0, the original polynomial is increasing because its first derivative is positive. Its slopes decrease because the second derivative is negative there.

5. Patterns for repeated differentiation

  • Polynomials. For a polynomial of degree m with leading coefficient a, the derivative of order m is am!. For orders above m, the derivative is 0.
  • Sine and cosine. Their derivative expressions repeat after every four differentiations. With a linear input such as 3x, also count the chain factors.
  • Exponentials with a linear exponent. With ekx, keep the exponential and multiply by k at each order.
  • Logarithms. For lnx, keep x>0. After the first derivative, track both the falling power and its effect on the coefficient.
  • Products and quotients. Inspect the expression at each step. You may need the product or quotient rule again, or algebra may give a simpler equivalent form.

6. Four practice problems

Work to the requested order before opening each solution.

Practice 1. Find the second and third polynomial derivatives

Find f″(x) and f(3)(x) for f(x)=x6−2x3+5.

Show solution 1

Notebook solution

1 · Start with the first derivative

f′(x)=6x5−6x2

2 · Differentiate twice more

f″(x)=30x4−12x
f(3)(x)=120x3−12

Practice 2. Find a fourth derivative

Find g(4)(x) for g(x)=e5x.

Show solution 2

Notebook solution

1 · Count one factor of five per differentiation

g′(x)=5e5x
g″(x)=25e5x

2 · Use four factors of five

g(4)(x)=54e5x=625e5x

Practice 3. Differentiate a product twice

Find h″(x) for h(x)=x2sinx.

Show solution 3

Notebook solution

1 · Keep both product-rule terms

h′(x)=2xsinx+x2cosx

2 · Differentiate each product and combine

h″(x)=(2sinx+2xcosx)+(2xcosx−x2sinx)
h″(x)=2sinx+4xcosx−x2sinx

Each term in the first derivative contributes one 2xcosx term.

Practice 4. Find a third logarithm derivative

Find y‴ for y=lnx.

Show solution 4

Notebook solution

1 · Write the first two derivatives

y′=1x
y″=−1x2

2 · Differentiate the second derivative

y‴=2x−3=2x3,x>0

7. Show the requested order in an AP response

Label the order you reach in each line of an AP response. Show the rules you apply, particularly when an expression still contains a product, a composition, or an implicit branch. If the question asks for a numerical value, show the substitution after the derivative formula.

  • Keep track of order. f″(a) is the slope of the graph of f′ at a. The graph of f″ shows that slope as its height.
  • Watch signs and factors. A minus sign in a trig cycle or a missing inner derivative affects each later order.
  • Match notation to the context. For a position function s(t), s′(t) is velocity and s″(t) is acceleration.
  • Check the original domain. A simplified derivative formula still describes the original function on inputs where that derivative exists.

8. Continue studying differentiation

Review how to choose differentiation rules, practice all of Unit 3, or apply the second derivative to motion in Unit 4.