This article uses the function f(x)=x2ln(1−x) as an example to explain in detail how to compute f(n)(0) (n≥3) using Taylor series method and Leibniz rule, and analyzes the equivalence of the two methods.
Problem
Let f(x)=x2ln(1−x), then for n≥3, f(n)(0)=?
Taylor Series Method
Core Idea
Expand the function into a Taylor series and directly read off the higher-order derivatives from the coefficients of the power series.
Steps
Expand ln(1−x)
The Taylor expansion of ln(1−x) for ∣x∣<1 is:
ln(1−x)=−k=1∑∞kxk.
Construct the series for f(x)
Multiply by x2:
f(x)=x2⋅(−k=1∑∞kxk)=−k=1∑∞kxk+2.
Substitute m=k+2 (i.e., k=m−2):
f(x)=−m=3∑∞m−2xm.
Extract the coefficient of xn
For n≥3, the coefficient an=−n−21. By Taylor’s formula:
f(n)(0)=n!⋅an=−n−2n!.
Verification (Example n=3)
Compute f(3)(0):
f(3)(0)=−3−23!=−6.
Direct differentiation yields:
f′′′(x)=dx3d3(x2ln(1−x))x=0=−6.
Leibniz Rule Method
Core Idea
Use the formula for higher-order derivatives of a product:
(f⋅g)(n)(x)=k=0∑n(kn)f(k)(x)⋅g(n−k)(x).
Steps
Decompose the function
Let f(x)=x2, g(x)=ln(1−x).
Analyze higher-order derivatives of f(x)
f(0)(x)=x2, at x=0 it is 0.
f(1)(x)=2x, at x=0 it is 0.
f(2)(x)=2, at x=0 it is 2.
For k≥3, f(k)(x)=0.
Compute higher-order derivatives of g(x) g(m)(x)=−(1−x)m(m−1)!, and at x=0:
g(m)(0)=−(m−1)!.
Apply Leibniz rule
Since f(k)(0) is nonzero only for k=2, we have:
f(n)(0)=(2n)⋅f(2)(0)⋅g(n−2)(0).
Substituting values:
f(n)(0)=2n(n−1)⋅2⋅(−(n−3)!)=−n(n−1)(n−3)!.
Verification (Example n=4)
Compute f(4)(0):
f(4)(0)=−4⋅3⋅(4−3)!=−12.
Taylor series verification:
−4−24!=−224=−12.
Unification of Results
The two methods give equivalent results:
−n−2n!=−n(n−1)(n−3)!.
Proof:
n−2n!=n−2n(n−1)(n−2)!=n(n−1)(n−3)!.
Q&A
Q1: In the Taylor series method, after the substitution m=k+2, why are the powers of x on both sides of the equality equal?
A: The substitution m=k+2 merely relabels the summation index without changing the mathematical content of the series. In the original series, the power of xk+2 is determined by k+2, and after substitution it becomes xm, so the powers of x remain consistent.
Q2: In the Leibniz rule, why does only the term with k=2 contribute to the result?
A: Because the higher-order derivatives of f(x)=x2 vanish for k≥3, and for k=0,1 we have f(k)(0)=0. The only nonzero term comes from k=2.
Q3: Does the convergence interval of the Taylor series affect the result?
A: The Taylor series converges for ∣x∣<1, but the computation of f(n)(0) depends only on the local behavior at x=0, so the expansion is valid for calculating higher-order derivatives.
Conclusion
For n≥3, the n-th derivative of f(x)=x2ln(1−x) at x=0 is: