Further calculus: Maclaurin series and differential equations
🖨 Print a self-study sheet Why print?
The last Section B question on Paper 1 or Paper 2 often comes from this HL calculus. You may be asked to build a Maclaurin series and use it to find a limit or an approximation. Or you may be given a differential equation to solve step by step, then asked what the solution means in context. So the question for this lesson is: how do you get from the problem to an answer where every line has a reason? As with all HL algebra, each line must follow from the one before, so write the method in full and do not skip steps.
Maclaurin series
You do not need to memorise the common series: the formula booklet gives the series for , , , , and . Your job is to turn them into new ones. You can substitute, multiply two series, or differentiate or integrate term by term. The two examples below try multiplication and substitution.
Limits with series and L'Hôpital's rule
A limit of the form or cannot be found by putting the value straight in, because the division makes no sense. There are two ways out. One is to replace the functions by their series and simplify. The other is to use L'Hôpital's rule: , repeated if necessary. The next example does both on the same limit, so you can see that they agree.
Differential equations
Euler's method
Not every differential equation has a solution you can write as a formula. When that happens we can still estimate the solution by taking small steps, each one in the direction of the slope where we stand. Starting from (x_0,y_0) with step h: x_{n+1}=x_n+h and y_{n+1}=y_n+h\,f(x_n,y_n), where \dfrac{dy}{dx}=f(x,y). In words, the new value is the old value plus the step times the slope. A GDC table or a spreadsheet makes the arithmetic quick on Paper 2.
Similar exercises
Find the Maclaurin series of \cos2x up to the term in x^4. [3 marks]
What you need: substitute 2x into \cos x=1-\dfrac{x^2}{2}+\dfrac{x^4}{24}-\dots
Show solution
The Maclaurin series of \cos x is \cos x=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots
Replacing x by 2x in this expansion, we get \cos2x=1-\frac{(2x)^2}{2}+\frac{(2x)^4}{24}-\cdots
We have (2x)^2=4x^2 and (2x)^4=16x^4. Hence \cos2x=1-\frac{4x^2}{2}+\frac{16x^4}{24}-\cdots=1-2x^2+\frac{2x^4}{3}-\cdots
So the Maclaurin series of \cos2x up to the term in x^4 is 1-2x^2+\dfrac{2x^4}{3}.
Answer. 1-2x^2+\dfrac{2x^4}{3}.
Find the first four terms of the Maclaurin series of e^{x^2}. [3 marks]
What you need: substitute x^2 into e^x.
Show solution
The Maclaurin series of e^u is e^u=1+u+\frac{u^2}{2!}+\frac{u^3}{3!}+\cdots
Substituting u=x^2 into this expansion, we get e^{x^2}=1+x^2+\frac{\left(x^2\right)^2}{2!}+\frac{\left(x^2\right)^3}{3!}+\cdots
We have \left(x^2\right)^2=x^4 and \left(x^2\right)^3=x^6, 2!=2, 3!=6. Hence e^{x^2}=1+x^2+\frac{x^4}{2}+\frac{x^6}{6}+\cdots
So the first four terms of the Maclaurin series of e^{x^2} are 1, x^2, \dfrac{x^4}{2}, \dfrac{x^6}{6}.
Answer. 1+x^2+\dfrac{x^4}{2}+\dfrac{x^6}{6}.
Find \displaystyle\lim_{x\to0}\frac{x-\sin x}{x^3}. [4 marks]
What you need: \sin x=x-\dfrac{x^3}{6}+\dots
Show solution
We use the Maclaurin series of \sin x: \sin x=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots=x-\frac{x^3}{6}+\frac{x^5}{120}-\cdots
It follows that x-\sin x=\frac{x^3}{6}-\frac{x^5}{120}+\cdots
For x\neq0, dividing every term by x^3 gives \frac{x-\sin x}{x^3}=\frac16-\frac{x^2}{120}+\cdots
As x\to0, every term containing a positive power of x tends to 0, so the expression tends to \dfrac16.
So \displaystyle\lim_{x\to0}\frac{x-\sin x}{x^3}=\frac16.
Answer. \dfrac16.
Solve \dfrac{dy}{dx}=2x\left(1+y^2\right), given that y=0 when x=0. [5 marks]
What you need: \displaystyle\int\frac{dy}{1+y^2}=\arctan y.
Show solution
This is a separable differential equation. Since 1+y^2>0, we divide both sides by 1+y^2: \frac{1}{1+y^2}\cdot\frac{dy}{dx}=2x.
Integrating both sides with respect to x: \int\frac{1}{1+y^2}\,dy=\int2x\,dx.
It follows that \arctan y=x^2+C.
Substituting the condition y=0 when x=0: \arctan0=0^2+C, so C=0.
Hence \arctan y=x^2, that is y=\tan\left(x^2\right).
So the solution is y=\tan\left(x^2\right).
Answer. y=\tan\left(x^2\right).
Solve \dfrac{dy}{dx}-y=e^{2x}, given that y=0 when x=0. [5 marks]
What you need: the integrating factor is e^{-x}.
Show solution
This is a first-order linear differential equation. We use the integrating factor e^{-x}: multiplying both sides of \dfrac{dy}{dx}-y=e^{2x} by e^{-x} gives e^{-x}\frac{dy}{dx}-e^{-x}y=e^{-x}\cdot e^{2x}=e^x.
The left-hand side is the derivative of the product ye^{-x}, so \frac{d}{dx}\left(ye^{-x}\right)=e^x.
Integrating both sides with respect to x: ye^{-x}=e^x+C.
Substituting the condition y=0 when x=0: 0\cdot e^0=e^0+C, that is 0=1+C, so C=-1.
Hence ye^{-x}=e^x-1. Multiplying both sides by e^x, we get y=e^{2x}-e^x.
Check: \dfrac{dy}{dx}-y=\left(2e^{2x}-e^x\right)-\left(e^{2x}-e^x\right)=e^{2x} and y(0)=1-1=0.
So the solution is y=e^{2x}-e^x.
Answer. y=e^{2x}-e^x.
Application exercises
A tank contains Q kg of salt at time t minutes. Brine flows in and the mixture flows out so that \dfrac{dQ}{dt}=2-\dfrac{Q}{50}, and Q=0 when t=0.
(a) Solve the differential equation. [5 marks]
(b) Describe the amount of salt in the long run. [1 mark]
What you need: write \dfrac{dQ}{dt}+\dfrac{Q}{50}=2; the integrating factor is e^{t/50}.
Show solution
a) Write the equation as \dfrac{dQ}{dt}+\dfrac{Q}{50}=2. This is a first-order linear equation with integrating factor e^{t/50}. Multiplying both sides by e^{t/50}: e^{t/50}\frac{dQ}{dt}+\frac{1}{50}e^{t/50}Q=2e^{t/50}.
The left-hand side is the derivative of Qe^{t/50}, so \frac{d}{dt}\left(Qe^{t/50}\right)=2e^{t/50}.
Integrating both sides with respect to t, with \displaystyle\int2e^{t/50}dt=100e^{t/50}, we get Qe^{t/50}=100e^{t/50}+C.
Substituting the condition Q=0 when t=0: 0=100+C, so C=-100.
Hence Qe^{t/50}=100e^{t/50}-100. Multiplying both sides by e^{-t/50}, we get Q=100-100e^{-t/50}=100\left(1-e^{-t/50}\right).
So Q=100\left(1-e^{-t/50}\right) (kg).
b) As t\to+\infty, e^{-t/50}\to0, so Q\to100(1-0)=100. Moreover \dfrac{dQ}{dt}=2e^{-t/50}>0, so Q increases with time.
So in the long run, the amount of salt in the tank increases and approaches 100 kg.
Answer. a) Q=100\left(1-e^{-t/50}\right); b) Q\to100 kg.
Use the first two nonzero terms of the Maclaurin series of \sin\left(x^2\right) to estimate \displaystyle\int_0^1\sin\left(x^2\right)dx. [4 marks]
What you need: \sin\left(x^2\right)=x^2-\dfrac{x^6}{6}+\dots; integrate term by term.
Show solution
The Maclaurin series of \sin u is \sin u=u-\frac{u^3}{3!}+\cdots
Substituting u=x^2, the first two nonzero terms of \sin\left(x^2\right) are \sin\left(x^2\right)\approx x^2-\frac{\left(x^2\right)^3}{6}=x^2-\frac{x^6}{6}.
Therefore \int_0^1\sin\left(x^2\right)dx\approx\int_0^1\left(x^2-\frac{x^6}{6}\right)dx=\left[\frac{x^3}{3}-\frac{x^7}{42}\right]_0^1=\frac13-\frac1{42}.
Over a common denominator: \dfrac13-\dfrac1{42}=\dfrac{14}{42}-\dfrac{1}{42}=\dfrac{13}{42}\approx0.310.
So \displaystyle\int_0^1\sin\left(x^2\right)dx\approx\dfrac{13}{42}\approx0.310.
Exam tip. A GDC gives 0.310 as well when it evaluates \displaystyle\int_0^1\sin\left(x^2\right)dx directly, which is a useful check.
Answer. \dfrac{13}{42}\approx0.310.
For \dfrac{dy}{dx}=\sin x+y with y(0)=1, use Euler's method with h=0.2 to estimate y(0.4). [4 marks]
What you need: two steps; radian mode.
Show solution
Euler's method with step h=0.2 uses the formulas x_{n+1}=x_n+h,\qquad y_{n+1}=y_n+h\,f(x_n,y_n), where f(x,y)=\sin x+y (\sin is evaluated in radians). The initial condition is x_0=0, y_0=1.
Step 1: x_1=0.2 and y_1=y_0+0.2\left(\sin0+y_0\right)=1+0.2(0+1)=1.2.
Step 2: x_2=0.4 and y_2=y_1+0.2\left(\sin0.2+y_1\right)=1.2+0.2\left(\sin0.2+1.2\right).
With \sin0.2\approx0.19867, we have y_2\approx1.2+0.2\cdot1.39867\approx1.48.
So y(0.4)\approx1.48.
Answer. y(0.4)\approx1.48.
Find the Maclaurin series of \tan x up to the term in x^3 by differentiating. [5 marks]
What you need: f'=\sec^2x and f''=2\sec^2x\tan x, f'''=2\sec^4x+4\sec^2x\tan^2x.
Show solution
Let f(x)=\tan x. The Maclaurin series has the form f(x)=f(0)+f'(0)x+\frac{f''(0)}{2!}x^2+\frac{f'''(0)}{3!}x^3+\cdots
We differentiate step by step: \begin{aligned}f'(x)&=\sec^2x,\\f''(x)&=2\sec x\cdot\sec x\tan x=2\sec^2x\tan x,\\f'''(x)&=4\sec^2x\tan^2x+2\sec^4x.\end{aligned}
At x=0 we have \tan0=0 and \sec0=1, so f(0)=0,\quad f'(0)=1,\quad f''(0)=0,\quad f'''(0)=2.
Substituting into the Maclaurin formula: \tan x=0+1\cdot x+\frac{0}{2!}x^2+\frac{2}{3!}x^3+\cdots=x+\frac{x^3}{3}+\cdots
So the Maclaurin series of \tan x up to the term in x^3 is x+\dfrac{x^3}{3}.
Answer. \tan x=x+\dfrac{x^3}{3}+\cdots
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
\dfrac{(3x)^2}{2!}=\dfrac92x^2.
e^{\int3\,dx}=e^{3x}.
L'Hôpital: \displaystyle\lim_{x\to0}2e^{2x}=2.
The slope at x=0 is 0, so y(0.5)\approx1+0.5\cdot0=1. (The exact value is 1.25.)
Part II. True or false
| a) The equation is separable. | ||
| b) The general solution is y=Cx. | ||
| c) The solution with y(1)=2 is y=2x. | ||
| d) The solution with y(1)=3 passes through (2,5). |
a) True. b) True: \ln|y|=\ln x+c. c) True. d) False: y=3x gives 6 at x=2.
Part III. Short answer
\ln(1+x)=x-\dfrac{x^2}{2}+\dots
1\to1.1\to1.22, as in the example above.
Show answers and explanations
- Part I, question 1: B. \dfrac{(3x)^2}{2!}=\dfrac92x^2.
- Part I, question 2: A. e^{\int3\,dx}=e^{3x}.
- Part I, question 3: D. L'Hôpital: \displaystyle\lim_{x\to0}2e^{2x}=2.
- Part I, question 4: C. The slope at x=0 is 0, so y(0.5)\approx1+0.5\cdot0=1. (The exact value is 1.25.)
- Part II, question 1: a) True; b) True; c) True; d) False. a) True. b) True: \ln|y|=\ln x+c. c) True. d) False: y=3x gives 6 at x=2.
- Part III, question 1: -0.5. \ln(1+x)=x-\dfrac{x^2}{2}+\dots
- Part III, question 2: 1.22. 1\to1.1\to1.22, as in the example above.