This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 5.19 · HL only
Maclaurin series
How can a polynomial stand in for ex, sinx or ln(1+x), and how do you build the series for a new function from the ones you already know?
What you will learn
HL Understand a Maclaurin series as a polynomial matching a function's value and derivatives at x = 0
HL Know the standard series for e to the x, sin x, cos x, arctan x, ln(1 + x) and (1 + x) to a rational power, and where each is valid
HL Understand how substitution, products, differentiation and integration build new series from the standard ones
HL Know how to find a series solution of a differential equation by differentiating the equation repeatedly
You must be able to
HL Find a Maclaurin series from the definition, up to a given power of x
HL Find the series of a differential equation's solution from its value and derivatives at x = 0
HL Find a new series by substituting into a standard series, such as e to the x²
HL Calculate a product of two series, such as e to the x times sin x, collecting powers
HL Use a series to find a limit or approximate an integral
HL State the values of x for which an expansion is valid
In the exam. Paper 1 (no calculator): derive a series from the definition (4 to 6 marks), build one by substitution, multiplication, differentiation or integration (3 to 6 marks), use it to find a limit (5.13), or find the series solution of a differential equation (6 to 8 marks). Paper 2: use a series to approximate a value or an integral, and compare with the GDC (4 to 6 marks). Paper 3 often builds a whole problem on a series.
1Where the coefficients come from
Suppose f(x)=a0+a1x+a2x2+a3x3+a4x4+….
Put x=0 and every term but the first vanishes, so a0=f(0).
Differentiate once and put x=0: a1=f′(0).
Differentiate again: f′′(x)=2a2+3×2a3x+…, so f′′(0)=2a2.
Once more: f′′′(0)=3×2×1×a3=3!a3.
The pattern is an=n!f(n)(0), which gives the formula in the booklet:
Maclaurin series:f(x)=f(0)+xf′(0)+2!x2f′′(0)+3!x3f′′′(0)+…, with the n-th term n!xnf(n)(0).
Stopping after the term in xn leaves the Maclaurin polynomial of degree n. That is what "up to and including the term in xn" asks for.
A term whose coefficient is zero still counts as a term. The polynomial for sinx of degree 4 is the same as the one of degree 3.
The request "the first three non-zero terms" is different. Skip the zeros and count only the terms that are there.
Example 1: ex
Every derivative of ex is ex, and e0=1.
So every f(n)(0) is 1, and
ex=1+x+2!x2+3!x3+4!x4+…
Figure 1 shows the partial sums. The line 1+x matches the value and the slope at 0: it is the tangent. Adding 2x2 matches the bending. Adding 6x3 matches the rate the bending changes. Each term clings to ex over a wider stretch.
Figure 1 · Polynomials that copy eˣ at x = 0
A quick use: e0.1≈1+0.1+0.005+0.000167=1.105167, and the true value is 1.105171. Four terms give five correct decimal places, as the powers of 0.1 shrink so fast.
Example 2: sinx
The derivatives cycle: sinx, cosx, −sinx, −cosx, sinx, …. At 0 these are 0,1,0,−1,0,1,….
The even powers vanish and the odd ones alternate in sign.
sinx=x−3!x3+5!x5−7!x7+…
An odd function has only odd powers, a good check. Figure 2 shows the polynomials of degree 1, 3, 5 and 7 each staying on the sine curve for longer.
The series for cosx follows the same way (derivatives at 0 are 1,0,−1,0,…). Or differentiate the sine series (section 5). An even function has only even powers.
Figure 2 · More terms, a wider stretch of agreement
Example 3: ln(1+x)
lnx itself has no Maclaurin series, because ln0 does not exist.
Keep the surds exact. No power is missing here, because the function is neither odd nor even.
A check: the compound-angle formula gives 21cosx−23sinx, and the two standard series give the same coefficients.
2The standard series, and where each one works
Function
Series
Works for
ex
1+x+2!x2+3!x3+…
every x
sinx
x−3!x3+5!x5−…
every x
cosx
1−2!x2+4!x4−…
every x
ln(1+x)
x−2x2+3x3−4x4+…
−1<x≤1
arctanx
x−3x3+5x5−7x7+…
−1≤x≤1
(1+x)p
1+px+2!p(p−1)x2+3!p(p−1)(p−2)x3+…
−1<x<1 (every x if p is a positive whole number)
The last column matters when you use a series to approximate. You are not asked to prove it.
Figure 3 shows the problem with ln(1+x). Inside −1<x≤1 the partial sums close in on the curve. Beyond x=1 each extra term makes things worse, because the powers xn grow faster than the n in the denominator.
Figure 3 · The series for ln(1 + x) only works for −1 < x ≤ 1
The binomial series
Take (1+x)p with p a fraction or a negative number. The Maclaurin method gives exactly the extended binomial expansion of 1.10: f(0)=1, f′(0)=p, f′′(0)=p(p−1), and so on.
For example, (1+x)1/2=1+2x−8x2+16x3−… and (1+x)−1=1−x+x2−x3+….
Stating where a new series works
A question may say "state the values of x for which the expansion is valid". Rewrite the standard condition in terms of what has replaced x. The series for (1+ax)p works when ∣ax∣<1, that is ∣x∣<∣a∣1.
So (1−3x)−1/2 works for ∣x∣<31 and ln(1+5x) for −51<x≤51. The sum of two series, or their product, works only where both do: the smaller of the two intervals.
Using a series to find a number. Choose the form that puts the replaced variable close to 0.
37.52=2(0.94)1/3=2(1−30.06−9(0.06)2−815(0.06)3)=2(1−0.02−0.0004−0.0000133)=1.95917take the 8 out: x=−0.06 is small
Pulling out the perfect cube is what makes the series usable (the GDC gives 1.959172).
When the terms alternate in sign and shrink, the error is smaller than the first term you left out.
Example: sin0.5≈0.5−60.53=0.47917 is within 1200.55=0.00026 of the truth.
Accuracy against simplicity
More terms mean more accuracy, but the right choice of series can matter more.
Five terms of the ln(1+x) series at x=1 give ln2≈0.783. That is poor, because x=1 is at the edge of where the series works. Since ln2=−ln(1−21), use the ln(1−x) series at x=21, well inside its interval. The same five terms give 0.5+0.125+0.04167+0.01563+0.00625=0.689, against the true 0.69315.
The guide asks whether there is always a trade-off between accuracy and simplicity, and sets the Kerala School beside the Bourbaki.
In the fourteenth century the Indian mathematician Madhava already had infinite series for trigonometric functions. James Gregory in Scotland, probably unaware of his work, found such series again in the seventeenth century.
3New series by substitution
Figure 4 shows four ways to make a new series from a standard one. This section and the next add two more: a series inside a series, and division.
Figure 4 · Six standard series, four ways to build new ones
Substitution. Replace x throughout by something else, such as x2, −x, 2x or 3x2. The guide's example is ex2:
eu=1+u+2!u2+3!u3+…standard series with u in place of xex2=1+x2+2x4+6x6+…put u=x2: (x2)2=x4, (x2)3=x6
The same move gives other series:
cos2x=1−2!(2x)2+4!(2x)4−⋯=1−2x2+32x4−…. The brackets matter: (2x)2 is 4x2, not 2x2.
ln(1−x)=−x−2x2−3x3−…, by putting −x for x.
1+x21=1−x2+x4−x6+…, from (1+u)−1 with u=x2.
A binomial substitution, with its interval. Find the series for 1−3x1 up to x3 and state when it is valid. Write it as (1+u)−1/2 with u=−3x:
(1+u)−1/2=1−2u+83u2−165u3+…coefficients 2!(−1/2)(−3/2)=83 and 3!(−1/2)(−3/2)(−5/2)=−165(1−3x)−1/2=1+23x+827x2+16135x3+…83(−3x)2=827x2, −165(−3x)3=16135x3
It is valid when ∣3x∣<1, that is −31<x<31.
A series inside a series
To find the series of f(g(x)), put the series for g(x) in place of x in the series for f. Then keep only the powers you need.
The one condition: the series for g(x) must have no constant term, because the standard series only work near 0.
Take cos(ln(1+x)) up to x4, with u=ln(1+x)=x−2x2+3x3−…:
cosu=1−2u2+24u4−…u2=x2−x3+1211x4+…u4=x4+…x4 in u2: 41+32=1211, from (−2x2)2 and 2×x×3x3cos(ln(1+x))=1−21(x2−x3+1211x4)+24x4=1−2x2+2x3−125x4+…
Because u starts at x, no power of u above un matters for a series up to xn.
If the inner function has a constant term, take it out first. For 3cosx, write cosx=1+u with u=−2x2+24x4−…, which starts at x2. Then use (1+u)1/3=1+3u−9u2+…:
For ecosx, write ecosx=e×ecosx−1 and use u=cosx−1, which gives e(1−2x2+6x4+…).
Substituting the whole of cosx=1−… into eu gives a wrong series once you cut it off.
4Sums, products and quotients of series
Adding and subtracting
Combine like powers.
Example: ex+e−x=2+x2+12x4+… (odd powers cancel).
Subtracting the series for ln(1−x) from that for ln(1+x) cancels the even powers: ln1−x1+x=2(x+3x3+5x5+…). It works only where both do, −1<x<1, so it loses the end point x=1.
Multiplication
Multiply two series like two long brackets, but keep only the terms up to the power asked for.
Collecting by powers avoids multiplying out terms you will throw away. Differentiating exsinx four times gives the same coefficients, much more slowly.
For each power, list the pairs whose powers add up to it. For 1+xcosx the x3 term comes from 16x3×1 and 2x×(−2x2), so its coefficient is 161−41=−163.
Squaring a series is a product too. For sin2x, multiply the whole series x−6x3+… by itself, which gives x2−3x4+…. Squaring each term separately is a common slip.
Dividing one series by another. There are two ways.
Method 1: turn it into a product. Write the bottom as 1+t, where t has no constant term. Use 1+t1=1−t+t2−t3+… (the binomial series with p=−1).
To find ex−1x up to x3, first note that ex−1=x+2x2+6x3+24x4+… has a factor x. It cancels the x on top.
Method 1 is quicker when the bottom is easy to write as 1+t. Method 2 is quicker when you know the shape of the answer (odd, even, or its first term).
5New series by differentiation and integration
A series can be differentiated or integrated term by term, like any polynomial.
Differentiation
dxd of the sine series is 1−3!3x2+5!5x4−…, which simplifies to 1−2!x2+4!x4−…: the cosine series, as it should be.
From 1−x1=1+x+x2+x3+…, differentiating gives (1−x)21=1+2x+3x2+4x3+….
Differentiation also links a series you have to one you want. Since dxdtanx=1+tan2x, squaring x+3x3 gives tan2x=x2+32x4+…. Integrating 1+x2+32x4 returns x+3x3+152x5, a check on section 5.
A "hence" usually points at a move like this. The series you have just found is the starting point.
Integration: where arctanx comes from
Derivatives of arctanx get messy fast.
But 1+x21, its first derivative, has a series by substitution.
1+t21=1−t2+t4−t6+…arctanx=∫0x1+t21dt=[t−3t3+5t5−7t7+…]0xarctanx=x−3x3+5x5−7x7+…constant 0, since arctan0=0
6Using a series: integrals, limits and approximations
Integrals no formula can do
e−x2 has no antiderivative in standard functions, yet its area matters (it is the shape of the normal curve, 4.9).
Its series integrates easily. Figure 5 shows the area from 0 to 0.5.
e−x2=1−x2+2x4−6x6+…substitute u=−x2 into eu∫00.5e−x2dx≈[x−3x3+10x5−42x7]00.5=0.5−0.041667+0.003125−0.000186=0.46127GDC: 0.46128
Figure 5 · Integrating a series term by term
Limits
A series also settles limits of the form 00 (5.13) without l'Hôpital's rule.
Divide through by the lowest power that survives, then let x→0. Every term that still carries an x disappears.
Sometimes you know only a differential equation and a starting value. The Maclaurin formula needs only the derivatives at 0. The equation supplies them: it gives y′, and differentiating it gives y′′, y′′′ and so on.
Example 5
The function y satisfies dxdy=x+y2, with y=1 when x=0.
Find the Maclaurin series for y up to the term in x3.
y′=x+y2y′(0)=0+12=1y′′=1+2yy′y′′(0)=1+2(1)(1)=3differentiate y2 implicitly: 2yy′y′′′=2(y′)2+2yy′′y′′′(0)=2(1)+2(1)(3)=8product rule on 2yy′y=1+x+2!3x2+3!8x3+…y=1+x+23x2+34x3+…
No exact method of 5.18 solves this equation (the y2 makes it neither separable, homogeneous nor linear), so the series is what you get.
Figure 6 compares the cubic with the true solution, computed numerically: they agree to 0.003 at x=0.2, then separate.
Figure 6 · A series solution of dy ÷ dx = x + y², y(0) = 1
Example 6: x does not appear in the equation
The function y satisfies dxdy=1+y2, with y(0)=0. Find the series up to x5.
Each derivative uses only y and lower derivatives, so the work is product rule and implicit differentiation.
This is the series for tanx, the solution of this equation.
Example 7: a function you know, but awkward to differentiate
Find the series for y=earctanx up to x4.
Differentiating directly is heavy. Instead y′=1+x2y, so (1+x2)y′=y, which differentiates again and again with no quotients.
(1+x2)y′=yy(0)=1y′(0)=12xy′+(1+x2)y′′=y′y′′(0)=y′(0)=12y′+4xy′′+(1+x2)y′′′=y′′y′′′(0)=1−2=−16y′′+6xy′′′+(1+x2)y(4)=y′′′y(4)(0)=−1−6=−7differentiate the line above; put x=0 at the endearctanx=1+x+2x2−6x3−247x4+…
Example 8: a second-order equation
The function y satisfies y′′=xy−y′, with y(0)=1 and y′(0)=3. Find the series up to x4.
A second-order equation needs two starting values, and it gives y′′ first.
y′′=xy−y′y′′(0)=0−3=−3y′′′=y+xy′−y′′y′′′(0)=1+0+3=4product rule on xy, then −y′′y(4)=y′+y′+xy′′−y′′′=2y′+xy′′−y′′′y(4)(0)=6+0−4=2y=1+3x−2!3x2+3!4x3+4!2x4+⋯=1+3x−23x2+32x3+12x4+…
Practice questions
29 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.