FP2.6 - Maclaurin and Taylor series

Syllabus
2019
Topic
Level
A2

Learning objectives

Calculate and organise higher derivatives

The nnth derivative of y=f(x)y=f(x) is written f(n)(x)f^{(n)}(x) or dnydxn\dfrac{d^ny}{dx^n}. Higher derivatives are found by differentiating successively, but patterns, recurrences and a derivative table prevent repeated algebra from becoming unmanageable.

Function Useful nnth derivative pattern
ekxe^{kx} knekxk^ne^{kx}
sin(kx)\sin(kx) knsin ⁣(kx+nπ2)k^n\sin\!\left(kx+\dfrac{n\pi}{2}\right)
(ax+b)p(ax+b)^p anp(p1)(pn+1)(ax+b)pna^np(p-1)\cdots(p-n+1)(ax+b)^{p-n}
ln(ax+b)\ln(ax+b), n1n\ge1 (1)n1(n1)!an(ax+b)n\dfrac{(-1)^{n-1}(n-1)!a^n}{(ax+b)^n}

For y=ln(2+x)y=\ln(2+x),y=12+x,y=1(2+x)2,y=2(2+x)3.y'=\frac1{2+x},\qquad y''=-\frac1{(2+x)^2},\qquad y'''=\frac2{(2+x)^3}.The powers, alternating signs and factorial factors give y(n)=(1)n1(n1)!(2+x)n,n1.y^{(n)}=\frac{(-1)^{n-1}(n-1)!}{(2+x)^n},\qquad n\ge1. Substituting n=1,2,3n=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,yx,y'' gives y+x,yy''+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/dx3d^3y/dx^3 is not (dy/dx)3(dy/dx)^3. Reapply product and chain rules at every stage, simplify before looking for a pattern, and verify a claimed nnth-derivative formula against the first two or three cases. State any restriction inherited from logarithms or denominators.

Derive and use Maclaurin series

A Maclaurin series is a Taylor series centred at 00. Its coefficients are chosen so that the polynomial and the function have the same successive derivatives at x=0x=0:f(x)=f(0)+f(0)x+f(0)2!x2++f(n)(0)n!xn+.f(x)=f(0)+f'(0)x+\frac{f''(0)}{2!}x^2+\cdots+\frac{f^{(n)}(0)}{n!}x^n+\cdots.

If f(x)=a0+a1x+a2x2+f(x)=a_0+a_1x+a_2x^2+\cdots, then setting x=0x=0 gives a0=f(0)a_0=f(0). Differentiate once and set x=0x=0 to get a1=f(0)a_1=f'(0); differentiating rr times gives f(r)(0)=r!arf^{(r)}(0)=r!a_r. Hence ar=f(r)(0)/r!a_r=f^{(r)}(0)/r!.

Function Maclaurin expansion
exe^x 1+x+x22!+x33!+1+x+\dfrac{x^2}{2!}+\dfrac{x^3}{3!}+\cdots
sinx\sin x xx33!+x55!x-\dfrac{x^3}{3!}+\dfrac{x^5}{5!}-\cdots
cosx\cos x 1x22!+x44!1-\dfrac{x^2}{2!}+\dfrac{x^4}{4!}-\cdots
ln(1+x)\ln(1+x) xx22+x33x44+x-\dfrac{x^2}{2}+\dfrac{x^3}{3}-\dfrac{x^4}{4}+\cdots, for x<1|x|<1

The logarithmic expansion follows because for r1r\ge1, drdxrln(1+x)x=0=(1)r1(r1)!.\left.\frac{d^r}{dx^r}\ln(1+x)\right|_{x=0}=(-1)^{r-1}(r-1)!. Standard series may then be adapted and combined. For example,ln1+x1x=ln(1+x)ln(1x)=2x+2x33+O(x5).\ln\frac{1+x}{1-x}=\ln(1+x)-\ln(1-x)=2x+\frac{2x^3}{3}+O(x^5). 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 xx; preserve the relevant domain, especially x<1|x|<1 for the displayed logarithmic series.

Expand a function with a Taylor series

A Taylor series expands f(x)f(x) about a chosen centre x=ax=a in powers of the displacement h=xah=x-a:f(x)=f(a)+f(a)h+f(a)2!h2+f(a)3!h3+.f(x)=f(a)+f'(a)h+\frac{f''(a)}{2!}h^2+\frac{f'''(a)}{3!}h^3+\cdots.The coefficients therefore describe the function's value and successive local changes at aa, not at 00.

Step Action
Set the centre Write h=xah=x-a and keep all final powers in hh.
Build a derivative table Evaluate f(a),f(a),,f(n)(a)f(a),f'(a),\ldots,f^{(n)}(a) through the requested power.
Insert factorials Use f(r)(a)hr/r!f^{(r)}(a)h^r/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)=sinxf(x)=\sin x about a=πa=\pi, let h=xπh=x-\pi. The derivative values aref(π)=0,f(π)=1,f(π)=0,f(π)=1.f(\pi)=0,\quad f'(\pi)=-1,\quad f''(\pi)=0,\quad f'''(\pi)=1.Therefore, up to and including h3h^3,sinx=(xπ)+(xπ)36+O ⁣((xπ)4).\sin x=-(x-\pi)+\frac{(x-\pi)^3}{6}+O\!\left((x-\pi)^4\right). Directly using sin(π+h)=sinh\sin(\pi+h)=-\sin h confirms the signs.

Do not insert derivatives evaluated at 00 unless the centre is 00. The coefficient of (xa)r(x-a)^r is f(r)(a)/r!f^{(r)}(a)/r!, not merely the derivative value. If a question asks through (xa)3(x-a)^3, include zero coefficients only when they clarify the structure, and do not replace the requested shifted powers by expanded powers of xx.

Find a local series solution of a differential equation

The Taylor-series method solves a differential equation locally by using the equation and its derivatives to generate y(a),y(a),y(a),y(a),y'(a),y''(a),\ldots at the expansion centre. A term through (xa)n(x-a)^n requires derivative values through y(n)(a)y^{(n)}(a).

Step Purpose
Use the given conditions Record y(a)y(a) and the supplied lower derivatives.
Evaluate the equation at aa Solve for the next derivative value.
Differentiate the equation Generate each further derivative, keeping all product-rule terms.
Evaluate again at aa Substitute values already found before moving to the next order.
Assemble the Taylor polynomial Use y(r)(a)(xa)r/r!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,y''+xy'+y=0,\qquad y(0)=1,\quad y'(0)=0,the original equation at 00 gives y(0)=1y''(0)=-1. Differentiating once givesy+2y+xy=0,y'''+2y'+xy''=0,so y(0)=0y'''(0)=0. Differentiating again givesy+3y+xy=0,y''''+3y''+xy'''=0,so y(0)=3y''''(0)=3. Hence, through x4x^4,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+y=a_0+a_1x+a_2x^2+\cdots 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(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.