FP2.6 - Maclaurin and Taylor series
- Syllabus
- 2019
- Topic
- —
- Level
- A2
The nth derivative of y=f(x) is written f(n)(x) or dxndny. Higher derivatives are found by differentiating successively, but patterns, recurrences and a derivative table prevent repeated algebra from becoming unmanageable.
| Function | Useful nth derivative pattern |
|---|---|
| ekx | knekx |
| sin(kx) | knsin(kx+2nπ) |
| (ax+b)p | anp(p−1)⋯(p−n+1)(ax+b)p−n |
| ln(ax+b), n≥1 | (ax+b)n(−1)n−1(n−1)!an |
For y=ln(2+x),y′=2+x1,y′′=−(2+x)21,y′′′=(2+x)32.The powers, alternating signs and factorial factors give y(n)=(2+x)n(−1)n−1(n−1)!,n≥1. Substituting n=1,2,3 checks the general expression.
When a function satisfies a differential relation, differentiating that relation can be shorter than starting again from the original function. Keep every product-rule term: differentiating x,y′′ gives y′′+x,y′′′. Values of lower derivatives at a point can then determine a required higher derivative there.
The order belongs to the whole derivative: d3y/dx3 is not (dy/dx)3. Reapply product and chain rules at every stage, simplify before looking for a pattern, and verify a claimed nth-derivative formula against the first two or three cases. State any restriction inherited from logarithms or denominators.
A Maclaurin series is a Taylor series centred at 0. Its coefficients are chosen so that the polynomial and the function have the same successive derivatives at x=0:f(x)=f(0)+f′(0)x+2!f′′(0)x2+⋯+n!f(n)(0)xn+⋯.
If f(x)=a0+a1x+a2x2+⋯, then setting x=0 gives a0=f(0). Differentiate once and set x=0 to get a1=f′(0); differentiating r times gives f(r)(0)=r!ar. Hence ar=f(r)(0)/r!.
| Function | Maclaurin expansion |
|---|---|
| ex | 1+x+2!x2+3!x3+⋯ |
| sinx | x−3!x3+5!x5−⋯ |
| cosx | 1−2!x2+4!x4−⋯ |
| ln(1+x) | x−2x2+3x3−4x4+⋯, for ∣x∣<1 |
The logarithmic expansion follows because for r≥1, dxrdrln(1+x)x=0=(−1)r−1(r−1)!. Standard series may then be adapted and combined. For example,ln1−x1+x=ln(1+x)−ln(1−x)=2x+32x3+O(x5). Even powers cancel, so only the needed terms should be retained.
Divide each derivative value by the matching factorial, write terms in ascending powers, and distinguish the number of non-zero terms from the highest power requested. A truncated series is a local approximation, not an identity for every x; preserve the relevant domain, especially ∣x∣<1 for the displayed logarithmic series.
A Taylor series expands f(x) about a chosen centre x=a in powers of the displacement h=x−a:f(x)=f(a)+f′(a)h+2!f′′(a)h2+3!f′′′(a)h3+⋯.The coefficients therefore describe the function's value and successive local changes at a, not at 0.
| Step | Action |
|---|---|
| Set the centre | Write h=x−a and keep all final powers in h. |
| Build a derivative table | Evaluate f(a),f′(a),…,f(n)(a) through the requested power. |
| Insert factorials | Use f(r)(a)hr/r! for each term. |
| Simplify and truncate | Give ascending powers through the stated order and use an ellipsis or remainder notation. |
For the official example f(x)=sinx about a=π, let h=x−π. The derivative values aref(π)=0,f′(π)=−1,f′′(π)=0,f′′′(π)=1.Therefore, up to and including h3,sinx=−(x−π)+6(x−π)3+O((x−π)4). Directly using sin(π+h)=−sinh confirms the signs.
Do not insert derivatives evaluated at 0 unless the centre is 0. The coefficient of (x−a)r is f(r)(a)/r!, not merely the derivative value. If a question asks through (x−a)3, include zero coefficients only when they clarify the structure, and do not replace the requested shifted powers by expanded powers of x.
The Taylor-series method solves a differential equation locally by using the equation and its derivatives to generate y(a),y′(a),y′′(a),… at the expansion centre. A term through (x−a)n requires derivative values through y(n)(a).
| Step | Purpose |
|---|---|
| Use the given conditions | Record y(a) and the supplied lower derivatives. |
| Evaluate the equation at a | Solve for the next derivative value. |
| Differentiate the equation | Generate each further derivative, keeping all product-rule terms. |
| Evaluate again at a | Substitute values already found before moving to the next order. |
| Assemble the Taylor polynomial | Use y(r)(a)(x−a)r/r! and stop at the requested power. |
For the official modely′′+xy′+y=0,y(0)=1,y′(0)=0,the original equation at 0 gives y′′(0)=−1. Differentiating once givesy′′′+2y′+xy′′=0,so y′′′(0)=0. Differentiating again givesy′′′′+3y′′+xy′′′=0,so y′′′′(0)=3. Hence, through x4,y=1-rac{x^2}{2!}+\frac{3x^4}{4!}+O(x^5)=1-\frac{x^2}{2}+\frac{x^4}{8}+O(x^5).
Equivalently, substitute y=a0+a1x+a2x2+⋯ and its differentiated series into the equation, then equate coefficients. The derivative-at-the-centre method is usually shorter when initial values are supplied explicitly.
Each differentiation changes product terms: for example, (xy′)′=y′+xy′′. Do not stop after finding derivatives; factorial denominators are still required when forming the series. The truncated polynomial is a local series solution to the requested order, not a claim that the omitted remainder is zero.