This is a beta course, so its structure, chapters, and examples may continue to change.
Higher-Order Derivatives
Higher-order derivatives are an important concept in calculus; they let us study higher-order rates of change of a function.
Definition of Higher-Order Derivatives
The n n n -th derivative of a function f ( x ) f(x) f ( x ) , written f ( n ) ( x ) f^{(n)}(x) f ( n ) ( x ) or d n f d x n \frac{d^n f}{dx^n} d x n d n f , is defined as
f ( n ) ( x ) = d d x ( f ( n − 1 ) ( x ) ) f^{(n)}(x) = \frac{d}{dx}(f^{(n-1)}(x)) f ( n ) ( x ) = d x d ( f ( n − 1 ) ( x ))
Physical Meaning of Higher-Order Derivatives
First derivative : instantaneous velocity
Second derivative : instantaneous acceleration
Third derivative : the rate of change of acceleration, also called jerk
Higher-Order Derivatives of Common Functions
1. Power Functions
( x n ) ′ = n x n − 1 (x^n)' = nx^{n-1} ( x n ) ′ = n x n − 1
( x n ) ′ ′ = n ( n − 1 ) x n − 2 (x^n)'' = n(n-1)x^{n-2} ( x n ) ′′ = n ( n − 1 ) x n − 2
( x n ) ′ ′ ′ = n ( n − 1 ) ( n − 2 ) x n − 3 (x^n)''' = n(n-1)(n-2)x^{n-3} ( x n ) ′′′ = n ( n − 1 ) ( n − 2 ) x n − 3
( x n ) ( k ) = n ! ( n − k ) ! x n − k (x^n)^{(k)} = \frac{n!}{(n-k)!}x^{n-k} ( x n ) ( k ) = ( n − k )! n ! x n − k (where k ≤ n k \leq n k ≤ n )
2. Exponential Functions
( e x ) ′ = e x (e^x)' = e^x ( e x ) ′ = e x
( e x ) ′ ′ = e x (e^x)'' = e^x ( e x ) ′′ = e x
( e x ) ′ ′ ′ = e x (e^x)''' = e^x ( e x ) ′′′ = e x
( e x ) ( n ) = e x (e^x)^{(n)} = e^x ( e x ) ( n ) = e x
3. Trigonometric Functions
Sine function :
( sin x ) ′ = cos x (\sin x)' = \cos x ( sin x ) ′ = cos x
( sin x ) ′ ′ = − sin x (\sin x)'' = -\sin x ( sin x ) ′′ = − sin x
( sin x ) ′ ′ ′ = − cos x (\sin x)''' = -\cos x ( sin x ) ′′′ = − cos x
( sin x ) ( 4 ) = sin x (\sin x)^{(4)} = \sin x ( sin x ) ( 4 ) = sin x
Cosine function :
( cos x ) ′ = − sin x (\cos x)' = -\sin x ( cos x ) ′ = − sin x
( cos x ) ′ ′ = − cos x (\cos x)'' = -\cos x ( cos x ) ′′ = − cos x
( cos x ) ′ ′ ′ = sin x (\cos x)''' = \sin x ( cos x ) ′′′ = sin x
( cos x ) ( 4 ) = cos x (\cos x)^{(4)} = \cos x ( cos x ) ( 4 ) = cos x
4. Logarithmic Functions
( ln x ) ′ = 1 x (\ln x)' = \frac{1}{x} ( ln x ) ′ = x 1
( ln x ) ′ ′ = − 1 x 2 (\ln x)'' = -\frac{1}{x^2} ( ln x ) ′′ = − x 2 1
( ln x ) ′ ′ ′ = 2 x 3 (\ln x)''' = \frac{2}{x^3} ( ln x ) ′′′ = x 3 2
( ln x ) ( n ) = ( − 1 ) n − 1 ( n − 1 ) ! x n (\ln x)^{(n)} = (-1)^{n-1}\frac{(n-1)!}{x^n} ( ln x ) ( n ) = ( − 1 ) n − 1 x n ( n − 1 )!
Operation Rules for Higher-Order Derivatives
1. Linearity
( a f + b g ) ( n ) = a f ( n ) + b g ( n ) (af + bg)^{(n)} = af^{(n)} + bg^{(n)} ( a f + b g ) ( n ) = a f ( n ) + b g ( n )
where C n k = n ! k ! ( n − k ) ! C_n^k = \frac{n!}{k!(n-k)!} C n k = k ! ( n − k )! n ! is the binomial coefficient.
3. Higher-Order Derivatives of Composite Functions
For a composite function f ( g ( x ) ) f(g(x)) f ( g ( x )) the computation of higher-order derivatives is comparatively involved, and the generalized form of the chain rule is usually needed.
Example 1: Find ( x 2 sin x ) ′ ′ (x^2 \sin x)'' ( x 2 sin x ) ′′
Solution :
Use the Leibniz formula: n = 2 n = 2 n = 2
( x 2 ) ′ = 2 x (x^2)' = 2x ( x 2 ) ′ = 2 x , ( x 2 ) ′ ′ = 2 (x^2)'' = 2 ( x 2 ) ′′ = 2
( sin x ) ′ = cos x (\sin x)' = \cos x ( sin x ) ′ = cos x , ( sin x ) ′ ′ = − sin x (\sin x)'' = -\sin x ( sin x ) ′′ = − sin x
( x 2 sin x ) ′ ′ = C 2 0 ⋅ 2 ⋅ sin x + C 2 1 ⋅ 2 x ⋅ cos x + C 2 2 ⋅ x 2 ⋅ ( − sin x ) (x^2 \sin x)'' = C_2^0 \cdot 2 \cdot \sin x + C_2^1 \cdot 2x \cdot \cos x + C_2^2 \cdot x^2 \cdot (-\sin x) ( x 2 sin x ) ′′ = C 2 0 ⋅ 2 ⋅ sin x + C 2 1 ⋅ 2 x ⋅ cos x + C 2 2 ⋅ x 2 ⋅ ( − sin x )
= 2 sin x + 4 x cos x − x 2 sin x = 2\sin x + 4x\cos x - x^2\sin x = 2 sin x + 4 x cos x − x 2 sin x
Example 2: Find ( e x ln x ) ′ ′ (e^x \ln x)'' ( e x ln x ) ′′
Solution :
Use the Leibniz formula: n = 2 n = 2 n = 2
( e x ) ′ = e x (e^x)' = e^x ( e x ) ′ = e x , ( e x ) ′ ′ = e x (e^x)'' = e^x ( e x ) ′′ = e x
( ln x ) ′ = 1 x (\ln x)' = \frac{1}{x} ( ln x ) ′ = x 1 , ( ln x ) ′ ′ = − 1 x 2 (\ln x)'' = -\frac{1}{x^2} ( ln x ) ′′ = − x 2 1
( e x ln x ) ′ ′ = C 2 0 ⋅ e x ⋅ ln x + C 2 1 ⋅ e x ⋅ 1 x + C 2 2 ⋅ e x ⋅ ( − 1 x 2 ) (e^x \ln x)'' = C_2^0 \cdot e^x \cdot \ln x + C_2^1 \cdot e^x \cdot \frac{1}{x} + C_2^2 \cdot e^x \cdot (-\frac{1}{x^2}) ( e x ln x ) ′′ = C 2 0 ⋅ e x ⋅ ln x + C 2 1 ⋅ e x ⋅ x 1 + C 2 2 ⋅ e x ⋅ ( − x 2 1 )
= e x ( ln x + 2 x − 1 x 2 ) = e^x(\ln x + \frac{2}{x} - \frac{1}{x^2}) = e x ( ln x + x 2 − x 2 1 )
Geometric Meaning of Higher-Order Derivatives
1. Geometric Meaning of the Second Derivative
f ′ ′ ( x ) > 0 f''(x) > 0 f ′′ ( x ) > 0 : the function is convex in a neighborhood of that point
f ′ ′ ( x ) < 0 f''(x) < 0 f ′′ ( x ) < 0 : the function is concave in a neighborhood of that point
f ′ ′ ( x ) = 0 f''(x) = 0 f ′′ ( x ) = 0 : it may be an inflection point
2. Deciding an Inflection Point
If f ′ ′ ( c ) = 0 f''(c) = 0 f ′′ ( c ) = 0 and f ′ ′ ′ ( c ) ≠ 0 f'''(c) \neq 0 f ′′′ ( c ) = 0 , then x = c x = c x = c is an inflection point of the function f ( x ) f(x) f ( x ) .
Common Errors and Precautions
Mistake : ( u v ) ′ ′ = u ′ ′ v ′ ′ (uv)'' = u''v'' ( uv ) ′′ = u ′′ v ′′
Correct : ( u v ) ′ ′ = u ′ ′ v + 2 u ′ v ′ + u v ′ ′ (uv)'' = u''v + 2u'v' + uv'' ( uv ) ′′ = u ′′ v + 2 u ′ v ′ + u v ′′
2. Sign Errors
Mistake : ( cos x ) ′ ′ = cos x (\cos x)'' = \cos x ( cos x ) ′′ = cos x
Correct : ( cos x ) ′ ′ = − cos x (\cos x)'' = -\cos x ( cos x ) ′′ = − cos x
3. Mistakes in the Order of the Derivative
Mistake : ( x 3 ) ′ ′ = 3 x 2 (x^3)'' = 3x^2 ( x 3 ) ′′ = 3 x 2
Correct : ( x 3 ) ′ ′ = 6 x (x^3)'' = 6x ( x 3 ) ′′ = 6 x
4. Mistakes with Composite Functions
For the higher-order derivatives of a composite function, the Leibniz formula cannot simply be applied as it is.
Exercises
Exercise 1
Find the third derivative of f ( x ) = x 3 sin x f(x) = x^3 \sin x f ( x ) = x 3 sin x .
Reference Answer derivative calculation differentiation rules
Approach :
Use the Leibniz formula to compute the higher-order derivative.
Steps :
Use the Leibniz formula: ( u v ) ( 3 ) = ∑ k = 0 3 C 3 k u ( k ) v ( 3 − k ) (uv)^{(3)} = \sum_{k=0}^{3} C_3^k u^{(k)} v^{(3-k)} ( uv ) ( 3 ) = ∑ k = 0 3 C 3 k u ( k ) v ( 3 − k )
( x 3 ) ′ = 3 x 2 (x^3)' = 3x^2 ( x 3 ) ′ = 3 x 2 , ( x 3 ) ′ ′ = 6 x (x^3)'' = 6x ( x 3 ) ′′ = 6 x , ( x 3 ) ′ ′ ′ = 6 (x^3)''' = 6 ( x 3 ) ′′′ = 6
( sin x ) ′ = cos x (\sin x)' = \cos x ( sin x ) ′ = cos x , ( sin x ) ′ ′ = − sin x (\sin x)'' = -\sin x ( sin x ) ′′ = − sin x , ( sin x ) ′ ′ ′ = − cos x (\sin x)''' = -\cos x ( sin x ) ′′′ = − cos x
f ′ ′ ′ ( x ) = C 3 0 ⋅ 6 ⋅ sin x + C 3 1 ⋅ 6 x ⋅ ( − sin x ) + C 3 2 ⋅ 3 x 2 ⋅ ( − cos x ) + C 3 3 ⋅ x 3 ⋅ ( − cos x ) f'''(x) = C_3^0 \cdot 6 \cdot \sin x + C_3^1 \cdot 6x \cdot (-\sin x) + C_3^2 \cdot 3x^2 \cdot (-\cos x) + C_3^3 \cdot x^3 \cdot (-\cos x) f ′′′ ( x ) = C 3 0 ⋅ 6 ⋅ sin x + C 3 1 ⋅ 6 x ⋅ ( − sin x ) + C 3 2 ⋅ 3 x 2 ⋅ ( − cos x ) + C 3 3 ⋅ x 3 ⋅ ( − cos x )
f ′ ′ ′ ( x ) = 6 sin x − 18 x sin x − 9 x 2 cos x − x 3 cos x f'''(x) = 6\sin x - 18x\sin x - 9x^2\cos x - x^3\cos x f ′′′ ( x ) = 6 sin x − 18 x sin x − 9 x 2 cos x − x 3 cos x
Answer : f ′ ′ ′ ( x ) = 6 sin x − 18 x sin x − 9 x 2 cos x − x 3 cos x f'''(x) = 6\sin x - 18x\sin x - 9x^2\cos x - x^3\cos x f ′′′ ( x ) = 6 sin x − 18 x sin x − 9 x 2 cos x − x 3 cos x
Exercise 2
Find the second derivative of f ( x ) = e x ln x f(x) = e^x \ln x f ( x ) = e x ln x .
Reference Answer derivative calculation differentiation rules
Approach :
Use the Leibniz formula to compute the second derivative.
Steps :
Use the Leibniz formula: ( u v ) ′ ′ = u ′ ′ v + 2 u ′ v ′ + u v ′ ′ (uv)'' = u''v + 2u'v' + uv'' ( uv ) ′′ = u ′′ v + 2 u ′ v ′ + u v ′′
( e x ) ′ = e x (e^x)' = e^x ( e x ) ′ = e x , ( e x ) ′ ′ = e x (e^x)'' = e^x ( e x ) ′′ = e x
( ln x ) ′ = 1 x (\ln x)' = \frac{1}{x} ( ln x ) ′ = x 1 , ( ln x ) ′ ′ = − 1 x 2 (\ln x)'' = -\frac{1}{x^2} ( ln x ) ′′ = − x 2 1
f ′ ′ ( x ) = e x ⋅ ln x + 2 e x ⋅ 1 x + e x ⋅ ( − 1 x 2 ) f''(x) = e^x \cdot \ln x + 2e^x \cdot \frac{1}{x} + e^x \cdot (-\frac{1}{x^2}) f ′′ ( x ) = e x ⋅ ln x + 2 e x ⋅ x 1 + e x ⋅ ( − x 2 1 )
f ′ ′ ( x ) = e x ( ln x + 2 x − 1 x 2 ) f''(x) = e^x(\ln x + \frac{2}{x} - \frac{1}{x^2}) f ′′ ( x ) = e x ( ln x + x 2 − x 2 1 )
Answer : f ′ ′ ( x ) = e x ( ln x + 2 x − 1 x 2 ) f''(x) = e^x(\ln x + \frac{2}{x} - \frac{1}{x^2}) f ′′ ( x ) = e x ( ln x + x 2 − x 2 1 )
Exercise 3
Find the fourth derivative of f ( x ) = x 2 cos x f(x) = x^2 \cos x f ( x ) = x 2 cos x .
Reference Answer derivative calculation differentiation rules
Approach :
Use the Leibniz formula to compute the fourth derivative.
Steps :
Use the Leibniz formula: ( u v ) ( 4 ) = ∑ k = 0 4 C 4 k u ( k ) v ( 4 − k ) (uv)^{(4)} = \sum_{k=0}^{4} C_4^k u^{(k)} v^{(4-k)} ( uv ) ( 4 ) = ∑ k = 0 4 C 4 k u ( k ) v ( 4 − k )
( x 2 ) ′ = 2 x (x^2)' = 2x ( x 2 ) ′ = 2 x , ( x 2 ) ′ ′ = 2 (x^2)'' = 2 ( x 2 ) ′′ = 2 , ( x 2 ) ′ ′ ′ = 0 (x^2)''' = 0 ( x 2 ) ′′′ = 0 , ( x 2 ) ( 4 ) = 0 (x^2)^{(4)} = 0 ( x 2 ) ( 4 ) = 0
( cos x ) ′ = − sin x (\cos x)' = -\sin x ( cos x ) ′ = − sin x , ( cos x ) ′ ′ = − cos x (\cos x)'' = -\cos x ( cos x ) ′′ = − cos x , ( cos x ) ′ ′ ′ = sin x (\cos x)''' = \sin x ( cos x ) ′′′ = sin x , ( cos x ) ( 4 ) = cos x (\cos x)^{(4)} = \cos x ( cos x ) ( 4 ) = cos x
f ( 4 ) ( x ) = C 4 0 ⋅ 0 ⋅ cos x + C 4 1 ⋅ 0 ⋅ sin x + C 4 2 ⋅ 2 ⋅ ( − cos x ) + C 4 3 ⋅ 2 x ⋅ ( − sin x ) + C 4 4 ⋅ x 2 ⋅ cos x f^{(4)}(x) = C_4^0 \cdot 0 \cdot \cos x + C_4^1 \cdot 0 \cdot \sin x + C_4^2 \cdot 2 \cdot (-\cos x) + C_4^3 \cdot 2x \cdot (-\sin x) + C_4^4 \cdot x^2 \cdot \cos x f ( 4 ) ( x ) = C 4 0 ⋅ 0 ⋅ cos x + C 4 1 ⋅ 0 ⋅ sin x + C 4 2 ⋅ 2 ⋅ ( − cos x ) + C 4 3 ⋅ 2 x ⋅ ( − sin x ) + C 4 4 ⋅ x 2 ⋅ cos x
f ( 4 ) ( x ) = 0 + 0 − 12 cos x − 8 x sin x + x 2 cos x f^{(4)}(x) = 0 + 0 - 12\cos x - 8x\sin x + x^2\cos x f ( 4 ) ( x ) = 0 + 0 − 12 cos x − 8 x sin x + x 2 cos x
Answer : f ( 4 ) ( x ) = ( x 2 − 12 ) cos x − 8 x sin x f^{(4)}(x) = (x^2 - 12)\cos x - 8x\sin x f ( 4 ) ( x ) = ( x 2 − 12 ) cos x − 8 x sin x
Exercise 4
Find the third derivative of f ( x ) = ln ( x 2 + 1 ) f(x) = \ln(x^2 + 1) f ( x ) = ln ( x 2 + 1 ) .
Reference Answer derivative calculation differentiation rules
Approach :
Use the rule for differentiating composite functions.
Steps :
f ′ ( x ) = 2 x x 2 + 1 f'(x) = \frac{2x}{x^2 + 1} f ′ ( x ) = x 2 + 1 2 x
f ′ ′ ( x ) = 2 ( x 2 + 1 ) − 2 x ⋅ 2 x ( x 2 + 1 ) 2 = 2 ( 1 − x 2 ) ( x 2 + 1 ) 2 f''(x) = \frac{2(x^2 + 1) - 2x \cdot 2x}{(x^2 + 1)^2} = \frac{2(1 - x^2)}{(x^2 + 1)^2} f ′′ ( x ) = ( x 2 + 1 ) 2 2 ( x 2 + 1 ) − 2 x ⋅ 2 x = ( x 2 + 1 ) 2 2 ( 1 − x 2 )
f ′ ′ ′ ( x ) = d d x ( 2 ( 1 − x 2 ) ( x 2 + 1 ) 2 ) = 2 ( − 2 x ) ( x 2 + 1 ) 2 − 2 ( 1 − x 2 ) ⋅ 2 ( x 2 + 1 ) ⋅ 2 x ( x 2 + 1 ) 4 f'''(x) = \frac{d}{dx}(\frac{2(1 - x^2)}{(x^2 + 1)^2}) = \frac{2(-2x)(x^2 + 1)^2 - 2(1 - x^2) \cdot 2(x^2 + 1) \cdot 2x}{(x^2 + 1)^4} f ′′′ ( x ) = d x d ( ( x 2 + 1 ) 2 2 ( 1 − x 2 ) ) = ( x 2 + 1 ) 4 2 ( − 2 x ) ( x 2 + 1 ) 2 − 2 ( 1 − x 2 ) ⋅ 2 ( x 2 + 1 ) ⋅ 2 x
f ′ ′ ′ ( x ) = 4 x ( 3 x 2 − 1 ) ( x 2 + 1 ) 3 f'''(x) = \frac{4x(3x^2 - 1)}{(x^2 + 1)^3} f ′′′ ( x ) = ( x 2 + 1 ) 3 4 x ( 3 x 2 − 1 )
Answer : f ′ ′ ′ ( x ) = 4 x ( 3 x 2 − 1 ) ( x 2 + 1 ) 3 f'''(x) = \frac{4x(3x^2 - 1)}{(x^2 + 1)^3} f ′′′ ( x ) = ( x 2 + 1 ) 3 4 x ( 3 x 2 − 1 )
Exercise 5
Find the second derivative of f ( x ) = sin ( x 2 ) f(x) = \sin(x^2) f ( x ) = sin ( x 2 ) .
Reference Answer derivative calculation differentiation rules
Approach :
Use the rule for differentiating composite functions.
Steps :
f ′ ( x ) = cos ( x 2 ) ⋅ 2 x = 2 x cos ( x 2 ) f'(x) = \cos(x^2) \cdot 2x = 2x\cos(x^2) f ′ ( x ) = cos ( x 2 ) ⋅ 2 x = 2 x cos ( x 2 )
f ′ ′ ( x ) = 2 cos ( x 2 ) + 2 x ⋅ ( − sin ( x 2 ) ⋅ 2 x ) = 2 cos ( x 2 ) − 4 x 2 sin ( x 2 ) f''(x) = 2\cos(x^2) + 2x \cdot (-\sin(x^2) \cdot 2x) = 2\cos(x^2) - 4x^2\sin(x^2) f ′′ ( x ) = 2 cos ( x 2 ) + 2 x ⋅ ( − sin ( x 2 ) ⋅ 2 x ) = 2 cos ( x 2 ) − 4 x 2 sin ( x 2 )
Answer : f ′ ′ ( x ) = 2 cos ( x 2 ) − 4 x 2 sin ( x 2 ) f''(x) = 2\cos(x^2) - 4x^2\sin(x^2) f ′′ ( x ) = 2 cos ( x 2 ) − 4 x 2 sin ( x 2 )
Summary
Symbols Used in This Article
Symbol Type Pronunciation/Explanation Meaning in This Article ξ \xi ξ Greek letter Xi A point appearing in the mean value theorems