Integral Calculus 201-SN3-RE (201-NYB) • CEGEP, Montreal

Corrected exercises: power series and Taylor series, 201-SN3-RE (201-NYB)

This is the corrected exercise set on power series and Taylor series for Integral Calculus, 201-SN3-RE (formerly 201-NYB), the high point of the course. Part A sets up the object: the radius of convergence by the Ratio Test, with the two endpoints of the interval to be tested one at a time; then the geometric series promoted to a power series, differentiated and integrated term by term to harvest effortlessly the expansions of 1(1−x)2\frac{1}{(1-x)^{2}}, of ln⁡(1+x)\ln(1+x) and of the arctangent, all the way to the famous values ln⁡2\ln 2 and π4\frac{\pi}{4}; building the fundamental Maclaurin series: exponential, sine, cosine; multiplying, composing and dividing series, with the binomial series (exercise 4); and the Lagrange remainder, which bounds the Taylor error when the series is not alternating (exercise 5). Part B is the chapter in action: Taylor polynomials hugging the sine curve (the figure shows them improving degree by degree), numerical approximation with the error controlled by the first neglected term, integrals with no elementary antiderivative computed with series, indeterminate limits that fall in one line where L'Hôpital's rule runs out of breath, the radius explained by complex numbers and the infinitely differentiable function that its series betrays (exercise 9), and exact sums of numerical series (exercise 10).

Part C goes through the classics: five radii and intervals of convergence (exercise 11), expansions built by substitution and a derivative of order 1010 read off a coefficient (exercise 12), numbers approximated with a guaranteed error (exercise 13), relativistic kinetic energy, which gives back 12mv2\frac{1}{2}mv^{2} at low speed (exercise 14), and a fast series to compute ln⁡3\ln 3 and ln⁡2\ln 2 (exercise 15).

This set is written for CEGEP students in the Science program (Sciences de la nature) taking Integral Calculus. It is the chapter that finally answers the question “so how does a calculator compute sin(37°)?”: with a Taylor polynomial, exactly the ones in this set.

The reflex to keep throughout: a Taylor series is not a formula to recite, it is an INFINITE POLYNOMIAL that copies the function: same values, same derivatives at the point of contact. Truncate it and you have an approximation; keep the first neglected term and you have the error, provided the series is alternating; otherwise the Lagrange remainder gives it. The whole power of the chapter lies in this back and forth between the exact and the approximate.

15 corrected exercises • 150 points • 225 minutes

This chapter is part of 201-SN3-RE, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.

Course recap

  • • Power series: ∑n=0∞cn(x−a)n\sum_{n=0}^{\infty}c_{n}(x-a)^{n}. Radius of convergence RR by the Ratio Test on ∣cn+1cn∣∣x−a∣<1\left|\frac{c_{n+1}}{c_{n}}\right||x-a|<1: absolute convergence for ∣x−a∣<R|x-a|<R, divergence for ∣x−a∣>R|x-a|>R, and the TWO ENDPOINTS x=a±Rx=a\pm R are tested separately with the tests for numerical series.
  • • The mother of all series: 11−x=∑n=0∞xn\frac{1}{1-x}=\sum_{n=0}^{\infty}x^{n} for ∣x∣<1|x|<1. Others follow by substitution (x→−x2x\to -x^{2}), by term-by-term differentiation and by TERM-BY-TERM integration (the radius is preserved; the endpoints may change).
  • • Taylor series at aa: f(x)=∑n=0∞f(n)(a)n!(x−a)nf(x)=\sum_{n=0}^{\infty}\frac{f^{(n)}(a)}{n!}(x-a)^{n}; Maclaurin when a=0a=0. Expansions to know: ex=∑xnn!e^{x}=\sum\frac{x^{n}}{n!}, sin⁡x=∑(−1)nx2n+1(2n+1)!\sin x=\sum\frac{(-1)^{n}x^{2n+1}}{(2n+1)!}, cos⁡x=∑(−1)nx2n(2n)!\cos x=\sum\frac{(-1)^{n}x^{2n}}{(2n)!} (all valid for every xx), ln⁡(1+x)=∑(−1)n+1xnn\ln(1+x)=\sum\frac{(-1)^{n+1}x^{n}}{n} and arctan⁡x=∑(−1)nx2n+12n+1\arctan x=\sum\frac{(-1)^{n}x^{2n+1}}{2n+1} (for ∣x∣≤1|x|\le 1, except x=−1x=-1 for the logarithm).
  • • Taylor polynomial TnT_{n}: the truncation at degree nn; it shares with ff its value and its first nn derivatives at aa: it is the polynomial that best hugs the curve locally (T1T_{1} is the tangent line).
  • • Truncation error: for an ALTERNATING series with decreasing terms, ∣f(x)−Tn(x)∣≤|f(x)-T_{n}(x)|\le the first neglected term. In general, the Lagrange remainder: ∣Rn∣≤M∣x−a∣n+1(n+1)!|R_{n}|\le\frac{M|x-a|^{n+1}}{(n+1)!} where MM bounds ∣f(n+1)∣|f^{(n+1)}|.
  • • Uses: numerical approximation (it is the algorithm inside calculators), term-by-term integration of functions with no elementary antiderivative (e−x2e^{-x^{2}}, sin⁡xx\frac{\sin x}{x}), and indeterminate limits: replace each function by its expansion and read the limit off the first terms.

Part A: Power series and how to build them (/50)

Exercise 1: The radius of convergence: where the infinite polynomial lives

A power series ∑cn(x−a)n\sum c_{n}(x-a)^{n} converges on an interval centred at aa: the Ratio Test gives the radius, but each of the two endpoints needs its own analysis.

  • a) Find the radius AND the interval of convergence of ∑n=1∞xnn\sum_{n=1}^{\infty}\frac{x^{n}}{n} (endpoints included).
  • b) Find the radius of convergence of ∑n=0∞n! xn\sum_{n=0}^{\infty}n!\,x^{n}, then of ∑n=0∞xnn!\sum_{n=0}^{\infty}\frac{x^{n}}{n!}. What do these two extremes represent?
  • c) Find the complete interval of convergence of ∑n=1∞(x−2)nn 3n\sum_{n=1}^{\infty}\frac{(x-2)^{n}}{n\,3^{n}}.
  • d) Why is the convergence automatically ABSOLUTE inside the radius, and why are the endpoints the only delicate points?

Type your answers, the page tells you right or wrong 0/7

a)
Interval ,
b)
c)
Interval ,
d)
Show the solution

Answers

  • a) R=1R=1, interval [−1,1)[-1, 1)
  • b) R=0R=0 and R=∞R=\infty
  • c) R=3R=3, interval [−1,5)[-1, 5)
  • d) Absolute inside; endpoints case by case
a)

Ratio Test: ∣xn+1n+1⋅nxn∣=∣x∣nn+1→∣x∣\left|\frac{x^{n+1}}{n+1}\cdot\frac{n}{x^{n}}\right|=|x|\frac{n}{n+1}\to|x|: convergence for ∣x∣<1|x|<1, so R=1R=1. Endpoints: at x=1x=1, the harmonic series ∑1n\sum\frac{1}{n} DIVERGES; at x=−1x=-1, the alternating harmonic series CONVERGES (Alternating Series Test). Interval: [−1,1)[-1, 1): closed on one side, open on the other, and it took both tests to know it.

b)

∑n!xn\sum n!x^{n}: ratio (n+1)∣x∣→∞(n+1)|x|\to\infty for every x≠0x\ne 0: R=0R=0, the series lives only at the point x=0x=0: a stillborn infinite polynomial. ∑xnn!\sum\frac{x^{n}}{n!}: ratio ∣x∣n+1→0<1\frac{|x|}{n+1}\to 0<1 for EVERY xx: R=∞R=\infty, convergence everywhere: it is the series of the exponential. The two extremes bracket every possible case: a radius can be zero, finite or infinite, depending on whether the coefficients blow up or collapse.

c)

Ratio: ∣x−2∣3⋅nn+1→∣x−2∣3<1\frac{|x-2|}{3}\cdot\frac{n}{n+1}\to\frac{|x-2|}{3}<1, that is ∣x−2∣<3|x-2|<3: R=3R=3, centred at 2, so (−1,5)(-1, 5) for now. Endpoints: at x=5x=5: ∑3nn3n=∑1n\sum\frac{3^{n}}{n3^{n}}=\sum\frac{1}{n} diverges; at x=−1x=-1: ∑(−3)nn3n=∑(−1)nn\sum\frac{(-3)^{n}}{n3^{n}}=\sum\frac{(-1)^{n}}{n} converges. Interval: [−1,5)[-1, 5). It is the series of a), shifted and stretched: same behaviour at the endpoints, recentred.

d)

Inside, ∣x−a∣<R|x-a|<R means that the limiting ratio is strictly less than 1: the Ratio Test concludes ABSOLUTE convergence, the most robust kind. At the endpoints, the ratio is exactly 1: the Ratio Test falls silent (its blind spot), and each endpoint becomes an ordinary NUMERICAL series that must be judged with the tools of the previous chapter: the p-test, comparison, the Alternating Series Test. The whole interval except two points is settled in one line; the two remaining points hold all the subtlety.

a − Raa + Rradius Rconverges insidedivergesdivergesBOTH endpoints are tested separately:the Ratio Test decides nothing there

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Exercise 2: The geometric series and its offspring: differentiating and integrating term by term

The figure shows y=11−xy=\frac{1}{1-x} and its partial sums 1+x1+x then 1+x+x2+x31+x+x^{2}+x^{3}: inside (−1,1)(-1, 1), the polynomials climb towards the curve.

-1-0.75-0.5-0.250.250.50.751123451/(1 − x)S₃S₁
  • a) Recall the expansion of 11−x\frac{1}{1-x} and deduce from it, by substitution, that of 11+x2\frac{1}{1+x^{2}}.
  • b) Differentiate term by term to obtain the expansion of 1(1−x)2\frac{1}{(1-x)^{2}}, and recover the value of ∑n=1∞n2n\sum_{n=1}^{\infty}\frac{n}{2^{n}} met in the chapter on series.
  • c) Integrate term by term to obtain the expansion of ln⁡(1+x)\ln(1+x), and justify the value of the alternating harmonic series.
  • d) Integrate the result of a) to obtain the series of arctan⁡x\arctan x, deduce from it Leibniz's formula for π4\frac{\pi}{4}, and comment on its speed of convergence.

Type your answers, the page tells you right or wrong 0/4

a)
b)
c)
d)
Show the solution

Answers

  • a) 11+x2=∑(−1)nx2n\frac{1}{1+x^{2}}=\sum(-1)^{n}x^{2n}
  • b) ∑n2n=2\sum\frac{n}{2^{n}}=2
  • c) ln⁡(1+x)\ln(1+x) at x=1x=1: ln⁡2\ln 2
  • d) π4\frac{\pi}{4}; five terms give 0.8350.835
a)

11−x=∑n=0∞xn\frac{1}{1-x}=\sum_{n=0}^{\infty}x^{n} for ∣x∣<1|x|<1: the geometric series, mother of all power series, the one in the figure. Substitution x→−x2x\to-x^{2}: 11+x2=∑n=0∞(−1)nx2n=1−x2+x4−⋯\frac{1}{1+x^{2}}=\sum_{n=0}^{\infty}(-1)^{n}x^{2n}=1-x^{2}+x^{4}-\cdots, valid for ∣x∣<1|x|<1: no derivative to compute, the substitution inherits everything.

b)

Term-by-term differentiation (allowed inside the radius): 1(1−x)2=∑n=1∞nxn−1\frac{1}{(1-x)^{2}}=\sum_{n=1}^{\infty}nx^{n-1}, so x(1−x)2=∑n=1∞nxn\frac{x}{(1-x)^{2}}=\sum_{n=1}^{\infty}nx^{n}. At x=12x=\frac{1}{2}: ∑n2n=1/2(1/2)2=2\sum\frac{n}{2^{n}}=\frac{1/2}{(1/2)^{2}}=2: the sum that the Ratio Test declared convergent without giving its value falls here in one line. Power series are the machine that COMPUTES the sums that the tests merely announce.

c)

ln⁡(1+x)=∫0xdt1+t\ln(1+x)=\int_{0}^{x}\frac{dt}{1+t} and 11+t=∑(−1)ntn\frac{1}{1+t}=\sum(-1)^{n}t^{n}: integrating term by term, ln⁡(1+x)=∑n=1∞(−1)n+1xnn=x−x22+x33−⋯\ln(1+x)=\sum_{n=1}^{\infty}\frac{(-1)^{n+1}x^{n}}{n}=x-\frac{x^{2}}{2}+\frac{x^{3}}{3}-\cdots. At x=1x=1 (endpoint included, by the Alternating Series Test): 1−12+13−⋯=ln⁡21-\frac{1}{2}+\frac{1}{3}-\cdots=\ln 2: the value taken for granted in the chapter on alternating series receives its proof here.

d)

arctan⁡x=∫0xdt1+t2=∑n=0∞(−1)nx2n+12n+1=x−x33+x55−⋯\arctan x=\int_{0}^{x}\frac{dt}{1+t^{2}}=\sum_{n=0}^{\infty}\frac{(-1)^{n}x^{2n+1}}{2n+1}=x-\frac{x^{3}}{3}+\frac{x^{5}}{5}-\cdots. At x=1x=1: π4=1−13+15−17+⋯\frac{\pi}{4}=1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+\cdots: Leibniz's formula, π\pi written with the reciprocals of the odd numbers. Maximum beauty, minimum efficiency: the error after nn terms is of order 12n+1\frac{1}{2n+1}, and it takes HUNDREDS of terms for three decimals (the first five give 0.835 for a true 0.785). Real computations of π\pi use arctangents of small arguments, where the same series races along exponentially fast.

Exercise 3: Building Maclaurin series: the exponential, the sine and the cosine

The Maclaurin series copies the function at 0: f(x)=∑n=0∞f(n)(0)n!xnf(x)=\sum_{n=0}^{\infty}\frac{f^{(n)}(0)}{n!}x^{n}: each coefficient is a derivative at 0, divided by the factorial that restores the scale.

  • a) Build the Maclaurin series of exe^{x} from the definition, and check that it is its own derivative term by term.
  • b) Build those of sin⁡x\sin x and cos⁡x\cos x. What does the structure of their exponents (odd for one, even for the other) tell us?
  • c) Build the expansion of ln⁡x\ln x centred at a=1a=1 (Taylor series), and compare with the result of exercise 2c.
  • d) Check that the term-by-term derivative of the sine series gives the cosine series. Why is this consistency no accident?

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) ex=∑xnn!e^{x}=\sum\frac{x^{n}}{n!}
  • b) Sine odd, cosine even
  • c) ln⁡x=∑(−1)n+1(x−1)nn\ln x=\sum\frac{(-1)^{n+1}(x-1)^{n}}{n}
  • d) Derivative of the sine: the cosine, by uniqueness
a)

All the derivatives of exe^{x} equal exe^{x}, so f(n)(0)=1f^{(n)}(0)=1 for every nn: ex=∑n=0∞xnn!=1+x+x22+x36+⋯e^{x}=\sum_{n=0}^{\infty}\frac{x^{n}}{n!}=1+x+\frac{x^{2}}{2}+\frac{x^{3}}{6}+\cdots, valid everywhere (R=∞R=\infty, exercise 1b). Term-by-term differentiation: ddxxnn!=xn−1(n−1)!\frac{d}{dx}\frac{x^{n}}{n!}=\frac{x^{n-1}}{(n-1)!}: each term becomes its predecessor, the series slides onto itself: it is its own derivative, the property that DEFINES the exponential. At x=1x=1, it gives e=∑1n!e=\sum\frac{1}{n!}.

b)

The derivatives of sin⁡\sin go round like a carousel: sin⁡,cos⁡,−sin⁡,−cos⁡,…\sin,\cos,-\sin,-\cos,\ldots; at 0: 0,1,0,−1,…0, 1,0,-1,\ldots: only the ODD orders survive, with alternating signs: sin⁡x=x−x33!+x55!−⋯\sin x=x-\frac{x^{3}}{3!}+\frac{x^{5}}{5!}-\cdots. For cos⁡\cos: 1,0,−1,0,…1, 0,-1, 0,\ldots: EVEN orders: cos⁡x=1−x22!+x44!−⋯\cos x=1-\frac{x^{2}}{2!}+\frac{x^{4}}{4!}-\cdots. The structure of the exponents IS the parity of the functions: sin⁡(−x)=−sin⁡x\sin(-x)=-\sin x requires odd powers, cos⁡(−x)=cos⁡x\cos(-x)=\cos x even ones: the series wears the symmetry on its face.

c)

At a=1a=1: f=ln⁡xf=\ln x, f′=x−1f'=x^{-1}, f′′=−x−2f''=-x^{-2}, f′′′=2x−3f'''=2x^{-3}, hence f(n)(1)=(−1)n+1(n−1)!f^{(n)}(1)=(-1)^{n+1}(n-1)! for n≥1n\ge 1. Coefficients: f(n)(1)n!=(−1)n+1n\frac{f^{(n)}(1)}{n!}=\frac{(-1)^{n+1}}{n}: ln⁡x=∑n=1∞(−1)n+1(x−1)nn\ln x=\sum_{n=1}^{\infty}\frac{(-1)^{n+1}(x-1)^{n}}{n}. It is EXACTLY the series of ln⁡(1+u)\ln(1+u) from exercise 2c with u=x−1u=x-1: the two routes (derivatives computed, or geometric series integrated) lead to the same expansion: the Taylor series of a function is unique.

d)

ddx(x−x33!+x55!−⋯ )=1−x22!+x44!−⋯\frac{d}{dx}\left(x-\frac{x^{3}}{3!}+\frac{x^{5}}{5!}-\cdots\right)=1-\frac{x^{2}}{2!}+\frac{x^{4}}{4!}-\cdots: the cosine series, term for term. No accident: the Taylor series of a function is UNIQUE, and term-by-term differentiation is legitimate inside the radius; since (sin⁡)′=cos⁡(\sin)'=\cos, their series must differentiate into each other. This web of consistencies (derivatives, parities, special values) is the best detector of computational errors in the chapter: a wrong Maclaurin series always gives itself away somewhere.

Exercise 4: Multiply, compose, divide: building series without differentiating

Computing a Maclaurin series through successive derivatives quickly becomes impractical: try esin⁡xe^{\sin x} and you will give up at the third derivative. Series can be handled ALGEBRAICALLY: they are multiplied, composed and divided like polynomials, keeping only the degrees that matter.

  • a) Expand exsin⁡xe^{x}\sin x up to and including the x4x^{4} term, by multiplying the two series. What do you notice about the coefficient of x4x^{4}?
  • b) Expand esin⁡xe^{\sin x} up to the x4x^{4} term by COMPOSITION, setting u=sin⁡xu=\sin x and substituting into the series of eue^{u}. How many derivatives would the direct computation have required?
  • c) Obtain the expansion of tan⁡x\tan x up to the x5x^{5} term by DIVIDING the sine series by the cosine series. Check numerically at x=0.1x=0.1.
  • d) The binomial series gives (1+x)1/2=1+x2−x28+x316−⋯(1+x)^{1/2}=1+\frac{x}{2}-\frac{x^{2}}{8}+\frac{x^{3}}{16}-\cdots. Use it to approximate 1.1\sqrt{1.1}, bound the error by the first neglected term, and compare with the exact value.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) x+x2+x33+0⋅x4x+x^{2}+\frac{x^{3}}{3}+0\cdot x^{4}
  • b) 1+x+x22−x481+x+\frac{x^{2}}{2}-\frac{x^{4}}{8}
  • c) tan⁡x=x+x33+2x515\tan x=x+\frac{x^{3}}{3}+\frac{2x^{5}}{15}
  • d) 1.1≈1.0488125\sqrt{1.1}\approx 1.0488125
a)

Write ex=1+x+x22+x36+x424+⋯e^{x}=1+x+\frac{x^{2}}{2}+\frac{x^{3}}{6}+\frac{x^{4}}{24}+\cdots and sin⁡x=x−x36+⋯\sin x=x-\frac{x^{3}}{6}+\cdots, then multiply, collecting by degree and forgetting no cross term. Degree 1: 1×x=x1\times x=x. Degree 2: x×x=x2x\times x=x^{2}. Degree 3: x22×x=x32\frac{x^{2}}{2}\times x=\frac{x^{3}}{2} and 1×(−x36)=−x361\times\left(-\frac{x^{3}}{6}\right)=-\frac{x^{3}}{6}, total 12−16=13\frac{1}{2}-\frac{1}{6}=\frac{1}{3}. Degree 4: x36×x=x46\frac{x^{3}}{6}\times x=\frac{x^{4}}{6} and x×(−x36)=−x46x\times\left(-\frac{x^{3}}{6}\right)=-\frac{x^{4}}{6}, total 16−16=0\frac{1}{6}-\frac{1}{6}=0. So exsin⁡x=x+x2+x33+0⋅x4+⋯e^{x}\sin x=x+x^{2}+\frac{x^{3}}{3}+0\cdot x^{4}+\cdots. The coefficient of x4x^{4} is EXACTLY zero, and that is no computational accident: it means that the fourth derivative of exsin⁡xe^{x}\sin x vanishes at 0, which can be checked with the Leibniz rule for the derivative of a product. Numerical check at x=0.2x=0.2: the product equals 0.24265530.2426553 and the approximation 0.24266670.2426667, the gap coming from the x5x^{5} term.

b)

Composition. Set u=sin⁡x=x−x36+⋯u=\sin x=x-\frac{x^{3}}{6}+\cdots and substitute into eu=1+u+u22+u36+u424+⋯e^{u}=1+u+\frac{u^{2}}{2}+\frac{u^{3}}{6}+\frac{u^{4}}{24}+\cdots. First you need the powers of uu up to degree 4: u=x−x36u=x-\frac{x^{3}}{6}; u2=x2−x43u^{2}=x^{2}-\frac{x^{4}}{3} (the cross term 2⋅x⋅(−x36)2\cdot x\cdot\left(-\frac{x^{3}}{6}\right) gives the x4x^{4} term); u3=x3u^{3}=x^{3} and u4=x4u^{4}=x^{4}, the corrections being of degree higher than 4. Substituting: esin⁡x=1+(x−x36)+12(x2−x43)+x36+x424e^{\sin x}=1+\left(x-\frac{x^{3}}{6}\right)+\frac{1}{2}\left(x^{2}-\frac{x^{4}}{3}\right)+\frac{x^{3}}{6}+\frac{x^{4}}{24}. Collect: degree 3, −16+16=0-\frac{1}{6}+\frac{1}{6}=0; degree 4, −16+124=−18-\frac{1}{6}+\frac{1}{24}=-\frac{1}{8}. Hence esin⁡x=1+x+x22+0⋅x3−x48+⋯e^{\sin x}=1+x+\frac{x^{2}}{2}+0\cdot x^{3}-\frac{x^{4}}{8}+\cdots. Numerical check at x=0.2x=0.2: the function equals 1.21977861.2197786 and the approximation 1.21980001.2198000. The direct computation would have required FOUR successive derivatives of esin⁡xe^{\sin x}, each one producing, through the chain rule and the product rule, an expression longer than the last; the fourth runs over several lines. Composing series does the same job in two lines, and that is the whole point of the method. One precaution is essential: composition is only legitimate if u→0u\to 0 as x→0x\to 0, which is indeed the case for sin⁡x\sin x; composing with a quantity that does not tend to 0 would make no sense.

c)

Write tan⁡x=sin⁡xcos⁡x\tan x=\frac{\sin x}{\cos x} and look for tan⁡x=a1x+a3x3+a5x5+⋯\tan x=a_{1}x+a_{3}x^{3}+a_{5}x^{5}+\cdots, writing only odd powers since the tangent is an odd function. The division is carried out by writing sin⁡x=tan⁡x⋅cos⁡x\sin x=\tan x\cdot\cos x, that is x−x36+x5120=(a1x+a3x3+a5x5)(1−x22+x424)x-\frac{x^{3}}{6}+\frac{x^{5}}{120}=\left(a_{1}x+a_{3}x^{3}+a_{5}x^{5}\right)\left(1-\frac{x^{2}}{2}+\frac{x^{4}}{24}\right), then by matching coefficients degree by degree. Degree 1: a1=1a_{1}=1. Degree 3: a3−a12=−16a_{3}-\frac{a_{1}}{2}=-\frac{1}{6}, so a3=12−16=13a_{3}=\frac{1}{2}-\frac{1}{6}=\frac{1}{3}. Degree 5: a5−a32+a124=1120a_{5}-\frac{a_{3}}{2}+\frac{a_{1}}{24}=\frac{1}{120}, so a5=1120+16−124=1+20−5120=16120=215a_{5}=\frac{1}{120}+\frac{1}{6}-\frac{1}{24}=\frac{1+20-5}{120}=\frac{16}{120}=\frac{2}{15}. Hence tan⁡x=x+x33+2x515+⋯\tan x=x+\frac{x^{3}}{3}+\frac{2x^{5}}{15}+\cdots. Numerical check at x=0.1x=0.1: the series gives 0.100334670.10033467 and the calculator 0.100334670.10033467, identical to eight decimal places. Notice that the coefficients of the tangent follow no simple formula, unlike those of the sine and cosine: they involve the Bernoulli numbers, which is why the tangent series is never asked from memory but always by division.

d)

With x=0.1x=0.1: 1.1≈1+0.12−0.018+0.00116=1+0.05−0.00125+0.0000625=1.0488125\sqrt{1.1}\approx 1+\frac{0.1}{2}-\frac{0.01}{8}+\frac{0.001}{16}=1+0.05-0.00125+0.0000625=1.0488125. The series is alternating with decreasing terms, so the error is bounded by the first neglected term, which is 5x4128=5×10−4128≈3.91×10−6\frac{5x^{4}}{128}=\frac{5\times 10^{-4}}{128}\approx 3.91\times 10^{-6}. Exact value: 1.1=1.0488088\sqrt{1.1}=1.0488088, so the actual error is 3.65×10−63.65\times 10^{-6}, indeed below the bound and very close to it, the signature of a well-behaved alternating series. Four terms are therefore enough for five decimals. This binomial series is worth knowing: it extends Newton's binomial theorem to non-integer exponents, the sum then becoming infinite instead of stopping, and its radius of convergence is 1. It is what justifies the approximation 1+x≈1+x2\sqrt{1+x}\approx 1+\frac{x}{2}, everywhere in physics, for instance in relativistic expansions at low speed.

Exercise 5: The Lagrange remainder: bounding the error when the series is not alternating

The bound by the first neglected term is convenient, but it only holds for an ALTERNATING series with decreasing terms. For the exponential, whose terms are all positive, it does not apply. The Lagrange remainder then takes over: ∣Rn(x)∣≤M∣x−a∣n+1(n+1)!\left|R_{n}(x)\right|\le\frac{M\left|x-a\right|^{n+1}}{(n+1)!}, where MM bounds ∣f(n+1)∣\left|f^{(n+1)}\right| between aa and xx.

  • a) State precisely Taylor's theorem with the Lagrange remainder, specifying on which interval the bound MM must be taken.
  • b) Approximate e0.5e^{0.5} by the polynomial T3T_{3} and bound the error with the Lagrange remainder. Compare with the actual error.
  • c) How many terms are needed to compute ee with an error less than 10−610^{-6}? Justify the choice of the bound MM.
  • d) For sin⁡(0.5)\sin(0.5) approximated by T5T_{5}, compare the Lagrange bound and the alternating series bound. Which one is better, and by what clever choice of nn can they be made equal?

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) MM on the whole of [a,x][a,x]
  • b) T3≈1.6458T_{3}\approx 1.6458; bound 0.00520.0052
  • c) Degree 99: ten terms
  • d) Alternating bound better; Lagrange with n=6n=6
a)

Taylor's theorem with the Lagrange remainder: if ff is (n+1)(n+1) times differentiable on an interval containing aa and xx, then f(x)=Tn(x)+Rn(x)f(x)=T_{n}(x)+R_{n}(x), where TnT_{n} is the Taylor polynomial of degree nn at aa, and there exists a point cc STRICTLY BETWEEN aa and xx such that Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1R_{n}(x)=\frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}. Since this point cc is unknown, we bound: if ∣f(n+1)(t)∣≤M\left|f^{(n+1)}(t)\right|\le M for every tt in the interval [a,x][a,x] (or [x,a][x,a] if x<ax<a), then ∣Rn(x)∣≤M∣x−a∣n+1(n+1)!\left|R_{n}(x)\right|\le\frac{M\left|x-a\right|^{n+1}}{(n+1)!}. This is the crucial point of the write-up: MM must bound the derivative of order n+1n+1 on the WHOLE interval between the centre and the point of evaluation, and not only at the centre. Taking M=∣f(n+1)(a)∣M=\left|f^{(n+1)}(a)\right| is the classic error, and it makes the bound false as soon as the derivative increases. Note finally the structure of the remainder: it is exactly the next term of the expansion, with the derivative evaluated at an intermediate point instead of the centre.

b)

T3(x)=1+x+x22+x36T_{3}(x)=1+x+\frac{x^{2}}{2}+\frac{x^{3}}{6}, so T3(0.5)=1+0.5+0.125+0.0208333=1.6458333T_{3}(0.5)=1+0.5+0.125+0.0208333=1.6458333. Lagrange remainder with n=3n=3: the fourth derivative of exe^{x} is exe^{x}, which is increasing, so on [0,0.5][0, 0.5] it is bounded by e0.5≈1.6487e^{0.5}\approx 1.6487, and we can conveniently take M=2M=2, a simple and safe bound. Then ∣R3∣≤2×(0.5)44!=2×0.062524≈0.0052\left|R_{3}\right|\le\frac{2\times(0.5)^{4}}{4!}=\frac{2\times 0.0625}{24}\approx 0.0052. Actual error: e0.5=1.6487213e^{0.5}=1.6487213, so the gap is 0.00288790.0028879. The bound is respected, and it overestimates the error by a factor of about 1.8. That is normal and healthy: an error bound is meant to be GUARANTEED, not tight. Here the overestimate comes from two combined sources: the choice M=2M=2 instead of 1.6491.649, and the fact that the unknown point cc actually lies closer to 0 than to 0.5.

c)

We want e=e1e=e^{1}, so a=0a=0 and x=1x=1. The derivative of order n+1n+1 of exe^{x} is exe^{x}, bounded on [0,1][0, 1] by e1=e≈2.718e^{1}=e\approx 2.718; so we take M=3M=3, a simple and safe bound, chosen precisely to avoid using the value of ee that we are trying to compute, which would be circular. The condition becomes 3(n+1)!≤10−6\frac{3}{(n+1)!}\le 10^{-6}, that is (n+1)!≥3×106(n+1)!\ge 3\times 10^{6}. Now 9!=362,8809!=362{,}880, not enough, and 10!=3,628,800≥3×10610!=3{,}628{,}800\ge 3\times 10^{6} ✓. So we need n+1=10n+1=10, that is n=9n=9: the polynomial of degree 9, i.e. TEN terms from 11 to x99!\frac{x^{9}}{9!}. Check: 310!≈8.27×10−7<10−6\frac{3}{10!}\approx 8.27\times 10^{-7}<10^{-6}, whereas 39!≈8.27×10−6\frac{3}{9!}\approx 8.27\times 10^{-6} would not be enough. Ten terms for six decimals of ee: factorial convergence is formidably efficient, compared with the hundreds of terms that Leibniz's formula needed for π\pi in exercise 2.

d)

Alternating series bound: the sine series is alternating with decreasing terms at x=0.5x=0.5, so the error after T5T_{5} is bounded by the first neglected term, 0.577!=0.00781255040≈1.55×10−6\frac{0.5^{7}}{7!}=\frac{0.0078125}{5040}\approx 1.55\times 10^{-6}. Lagrange bound with n=5n=5: all the derivatives of the sine are ±sin⁡\pm\sin or ±cos⁡\pm\cos, so M=1M=1 always works, and ∣R5∣≤1×0.566!=0.015625720≈2.17×10−5\left|R_{5}\right|\le\frac{1\times 0.5^{6}}{6!}=\frac{0.015625}{720}\approx 2.17\times 10^{-5}. The alternating bound is therefore FOURTEEN times better, and the actual error, 1.54×10−61.54\times 10^{-6}, comes very close to it. The clever choice: since the sine expansion contains NO term of degree 6, its coefficient being zero, the polynomial T6T_{6} is identical to T5T_{5}. We are therefore perfectly entitled to apply Lagrange with n=6n=6 while having computed only T5T_{5}, which gives ∣R6∣≤1×0.577!≈1.55×10−6\left|R_{6}\right|\le\frac{1\times 0.5^{7}}{7!}\approx 1.55\times 10^{-6}: exactly the alternating bound. The two methods coincide as soon as parity is exploited. The general lesson holds for the exam: when both bounds are available, take the smaller one, and check whether the expansion skips degrees, because each missing degree gives a free notch of precision in the Lagrange bound.

-112324681012eˣT₃remainder|remainder| ≤ M|x|⁴/4!bounded, not guessed

Part B: Approximation, applications and the limits of the method (/50)

Exercise 6: Taylor polynomials: hugging the curve

The figure shows sin⁡x\sin x with its Taylor polynomials T1=xT_{1}=x, T3=x−x36T_{3}=x-\frac{x^{3}}{6} and T5=x−x36+x5120T_{5}=x-\frac{x^{3}}{6}+\frac{x^{5}}{120}: each extra degree extends the embrace.

-4-3-2-11234-2-1.5-1-0.50.511.52T₁T₃T₅sin x
  • a) What defines the Taylor polynomial TnT_{n} of a function at a point? What exactly do ff and TnT_{n} share, and what does T1T_{1} represent geometrically?
  • b) Read the figure: where does each polynomial stick to the curve, where does it break away, and what is gained with each degree?
  • c) Approximate sin⁡(0.5)\sin(0.5) with T5T_{5} and bound the error by the first neglected term. How many decimals are guaranteed?
  • d) Physics replaces sin⁡θ\sin\theta by θ\theta in the study of the pendulum. Quantify the relative error of this approximation at 10°10° (≈0.1745\approx 0.1745 rad) and explain why the “small-angle” pendulum keeps reliable time.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) Same first nn derivatives; T1T_{1} tangent line
  • b) Each degree pushes back the break-away point
  • c) T5(0.5)≈0.479427T_{5}(0.5)\approx 0.479427; five decimals
  • d) Relative error ≈0.5\approx 0.5%
a)

TnT_{n} is the unique polynomial of degree at most nn that shares with ff, at the point of contact, its VALUE and its first nn DERIVATIVES: same position, same slope, same concavity, and so on. T1(x)=f(a)+f′(a)(x−a)T_{1}(x)=f(a)+f'(a)(x-a) is exactly the TANGENT LINE: the linear approximation you already know. The Taylor chapter is simply the logical continuation: after the tangent line, the osculating parabola, then better and better.

b)

T1=xT_{1}=x (the tangent line at 0) sticks on roughly [−0.5,0.5][-0.5, 0.5], then heads straight on while the sine curves away. T3T_{3} follows faithfully up to about ∣x∣≈1.5|x|\approx 1.5 and already reproduces the first hump, before plunging. T5T_{5} hugs the curve beyond ∣x∣≈2.5|x|\approx 2.5, humps included. Each odd degree added pushes back the point where the polynomial breaks away: locally, the gain is a factor of x2(n+2)(n+3)\frac{x^{2}}{(n+2)(n+3)} per step: spectacular near 0, more and more expensive far from 0.

c)

T5(0.5)=0.5−0.1256+0.03125120=0.479427T_{5}(0.5)=0.5-\frac{0.125}{6}+\frac{0.03125}{120}=0.479427. The sine series is alternating with decreasing terms: the error is bounded by the first neglected term, 0.575040≈1.6×10−6\frac{0.5^{7}}{5040}\approx 1.6\times 10^{-6}. Five decimals guaranteed (sin⁡0.5=0.4794255…\sin 0.5=0.4794255\ldots: the actual error, 1.5×10−61.5\times 10^{-6}, comes very close to the bound). Three terms, six digits: this is precisely the algorithm of a calculator, angle reduction included.

d)

The error in sin⁡θ≈θ\sin\theta\approx\theta is dominated by θ36\frac{\theta^{3}}{6}: at θ=0.1745\theta=0.1745, absolute error ≈8.9×10−4\approx 8.9\times 10^{-4}, that is a RELATIVE error θ26≈0.5\frac{\theta^{2}}{6}\approx 0.5%. The pendulum equation θ¨=−gLsin⁡θ\ddot{\theta}=-\frac{g}{L}\sin\theta becomes linear, θ¨=−gLθ\ddot{\theta}=-\frac{g}{L}\theta, with a period independent of the amplitude, off by barely 0.2% at 10° (the error on the period is about θ216\frac{\theta^{2}}{16}). All of physics' “small angles”, “small oscillations” and “low amplitudes” is a first term of a Taylor series, knowingly accepted: this chapter is the mathematical guarantee behind those shortcuts.

Exercise 7: Integrating the impossible: series to the rescue of antiderivatives

Some functions, e−x2e^{-x^{2}} and sin⁡xx\frac{\sin x}{x} first among them, have NO antiderivative expressible with the usual functions. Power series integrate them anyway: term by term, with a controlled error.

  • a) Expand e−x2e^{-x^{2}} as a Maclaurin series (by substitution), then integrate term by term to express ∫00.5e−x2dx\int_{0}^{0.5}e^{-x^{2}}dx as a series.
  • b) Compute this integral with four terms and bound the error. Where does this integral reign in science?
  • c) Same programme for ∫01sin⁡xxdx\int_{0}^{1}\frac{\sin x}{x}dx: series, four terms, error bound.
  • d) In what sense IS the series the exact answer, and not a makeshift? Compare with the status of 2\sqrt{2} or π\pi.

Type your answers, the page tells you right or wrong 0/4

a)
b)
c)
d)
Show the solution

Answers

  • a) ∑(−1)nx2nn!\sum\frac{(-1)^{n}x^{2n}}{n!} integrated
  • b) ≈0.461272\approx 0.461272
  • c) ≈0.946083\approx 0.946083
  • d) The series is the exact value
a)

eu=∑unn!e^{u}=\sum\frac{u^{n}}{n!} with u=−x2u=-x^{2}: e−x2=∑n=0∞(−1)nx2nn!=1−x2+x42−x66+⋯e^{-x^{2}}=\sum_{n=0}^{\infty}\frac{(-1)^{n}x^{2n}}{n!}=1-x^{2}+\frac{x^{4}}{2}-\frac{x^{6}}{6}+\cdots (valid everywhere). Term-by-term integration: ∫00.5e−x2dx=∑n=0∞(−1)n(0.5)2n+1n!(2n+1)=0.5−0.533+0.5510−0.5742+⋯\int_{0}^{0.5}e^{-x^{2}}dx=\sum_{n=0}^{\infty}\frac{(-1)^{n}(0.5)^{2n+1}}{n!(2n+1)}=0.5-\frac{0.5^{3}}{3}+\frac{0.5^{5}}{10}-\frac{0.5^{7}}{42}+\cdots.

b)

Four terms: 0.5−0.0416667+0.0031250−0.0001860=0.4612720.5-0.0416667+0.0031250-0.0001860=0.461272. Alternating series: error bounded by the fifth term, 0.59216≈9×10−6\frac{0.5^{9}}{216}\approx 9\times 10^{-6}: four reliable decimals (true value 0.4612810.461281). This integral is THE Gaussian: the normal distribution in statistics, heat diffusion, measurement errors: the most integrated function in science has no elementary antiderivative, and everyone integrates it anyway, with series and tables.

c)

sin⁡xx=1−x23!+x45!−x67!+⋯\frac{\sin x}{x}=1-\frac{x^{2}}{3!}+\frac{x^{4}}{5!}-\frac{x^{6}}{7!}+\cdots (divide the sine series by xx: the singularity at 0 disappears, the function equals 1 there). ∫01sin⁡xxdx=1−13⋅3!+15⋅5!−17⋅7!+⋯=1−0.055556+0.001667−0.000028=0.946083\int_{0}^{1}\frac{\sin x}{x}dx=1-\frac{1}{3\cdot 3!}+\frac{1}{5\cdot 5!}-\frac{1}{7\cdot 7!}+\cdots=1-0.055556+0.001667-0.000028=0.946083, error bounded by 19⋅9!≈3×10−7\frac{1}{9\cdot 9!}\approx 3\times 10^{-7}: six decimals in four terms. This function (the sinc function) governs diffraction and signal processing.

d)

The series CONVERGES to the exact value: giving it, with an explicit error bound that can be made as small as you like, is giving the number itself, exactly as “2\sqrt{2}” names a number that no finite decimal writes out, but which can be approached at will. π\pi, ee, ln⁡2\ln 2 have no other status: limits of series, truncated at the desired precision. A “closed form” is a cultural comfort, not a mathematical requirement: the chapter on series simply widens the list of acceptable exact answers.

Exercise 8: Limits in one line, and the calculator unmasked

Faced with an indeterminate form, replacing each function by its Maclaurin expansion reduces the limit to reading off the first terms: often faster and more illuminating than L'Hôpital's rule.

  • a) Compute lim⁡x→0sin⁡x−xx3\lim_{x\to 0}\frac{\sin x-x}{x^{3}} with series. How many applications of L'Hôpital's rule would this computation have cost?
  • b) Compute lim⁡x→01−cos⁡xx2\lim_{x\to 0}\frac{1-\cos x}{x^{2}}, then lim⁡x→0ex−1−xx2\lim_{x\to 0}\frac{e^{x}-1-x}{x^{2}}.
  • c) In the light of series, what does the sentence “sin⁡x\sin x and xx are equivalent at 0” mean? When does this equivalence become DANGEROUS in a limit computation?
  • d) Explain how a calculator actually evaluates sin⁡(37°)\sin(37°): the steps, and why the chapter on series is the answer to “what is it good for?”.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) −16-\frac{1}{6}; three L'Hôpital steps avoided
  • b) 12\frac{1}{2} and 12\frac{1}{2}
  • c) Equivalents forbidden in a difference
  • d) Radians, reduction, Taylor polynomial
a)

sin⁡x=x−x36+x5120−⋯\sin x=x-\frac{x^{3}}{6}+\frac{x^{5}}{120}-\cdots, so sin⁡x−x=−x36+x5120−⋯\sin x-x=-\frac{x^{3}}{6}+\frac{x^{5}}{120}-\cdots and sin⁡x−xx3=−16+x2120−⋯→−16\frac{\sin x-x}{x^{3}}=-\frac{1}{6}+\frac{x^{2}}{120}-\cdots\to-\frac{1}{6}. With L'Hôpital: THREE successive applications (the 00\frac{0}{0} forms follow one another), with three differentiations not to be botched. The series gives more than a limit: the whole expansion, and therefore also the SPEED of approach.

b)

1−cos⁡x=x22−x424+⋯1-\cos x=\frac{x^{2}}{2}-\frac{x^{4}}{24}+\cdots: the limit is 12\frac{1}{2}. ex−1−x=x22+x36+⋯e^{x}-1-x=\frac{x^{2}}{2}+\frac{x^{3}}{6}+\cdots: the limit is 12\frac{1}{2} too. The moral: subtracting from a function the beginning of its expansion reveals the next term: these limits merely READ a Taylor coefficient, f′′(0)2\frac{f''(0)}{2} in both cases.

c)

“Equivalent” means: same first term of the expansion (sin⁡xx→1\frac{\sin x}{x}\to 1), and therefore interchangeable in products and quotients. The DANGER: subtractions. In sin⁡x−xx3\frac{\sin x-x}{x^{3}}, replacing sin⁡x\sin x by xx would give 0: WRONG, because the subtraction cancels precisely the first terms, and the limit lives in the term of order 3, which the equivalence threw away. Safety rule: in a difference, expand one order further than what cancels; the bare equivalence is reserved for factors.

d)

The actual steps: 1) conversion to radians: 37°=0.645837°=0.6458 rad; 2) argument REDUCTION: bring the angle close to 0 using the symmetries of the circle (periodicity, sin⁡(π−x)\sin(\pi-x), etc.): here it is already there; 3) evaluation of a Taylor-type POLYNOMIAL (optimized, degree 7 to 9 or so) in a few multiplications; 4) precision guaranteed by the remainder bound, pushed below the last digit displayed. No table, no magic circle: the “sin” key runs a polynomial from this chapter. Taylor series are not an end-of-semester curiosity: they are the numerical engine of every “special” function in every processor.

Exercise 9: Why the radius stops there, and a function betrayed by its series

Two unsettling questions close the chapter. Why does 11+x2\frac{1}{1+x^{2}}, perfectly smooth on the whole real line, have a radius of convergence of only 1? And is an infinitely differentiable function always the sum of its Taylor series?

  • a) The series of 11−x\frac{1}{1-x} has radius R=1R=1, and the function blows up at x=1x=1: the radius is explained. Check that the series of 11+x2\frac{1}{1+x^{2}} also has R=1R=1, even though the function is defined and smooth everywhere on R\mathbb{R}.
  • b) Explain this radius by stepping outside the real numbers: where are the points at which 1+z21+z^{2} vanishes, and what is their distance from the origin? State the general rule that this case illustrates.
  • c) Let ff be defined by f(x)=e−1/x2f(x)=e^{-1/x^{2}} for x≠0x\neq 0 and f(0)=0f(0)=0. We admit that ff is infinitely differentiable and that f(n)(0)=0f^{(n)}(0)=0 for every nn. Write its Maclaurin series and compare it with ff. Compute f(0.1)f(0.1) to measure the gap.
  • d) What must therefore be checked to assert that a function IS the sum of its Taylor series? State the distinction between “infinitely differentiable” and “analytic”.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
Show the solution

Answers

  • a) R=1R=1 despite a smooth function
  • b) Singularities ±i\pm i at distance 11
  • c) Zero series, f(0.1)=e−100>0f(0.1)=e^{-100}>0
  • d) Check that the remainder tends to 00
a)

By the substitution x→−x2x\to-x^{2} in the geometric series: 11+x2=∑n=0∞(−1)nx2n=1−x2+x4−⋯\frac{1}{1+x^{2}}=\sum_{n=0}^{\infty}(-1)^{n}x^{2n}=1-x^{2}+x^{4}-\cdots, valid exactly when ∣−x2∣<1\left|-x^{2}\right|<1, that is ∣x∣<1\left|x\right|<1: the radius is R=1R=1. Check: at x=0.5x=0.5 the series gives 0.80.8, and 11+0.25=0.8\frac{1}{1+0.25}=0.8 ✓. At x=1.1x=1.1, the general term (1.1)2n(1.1)^{2n} tends to infinity, so the series diverges by the Divergence Test, even though the function calmly equals 12.21≈0.452\frac{1}{2.21}\approx 0.452 there. Here is the paradox: the function is defined on all of R\mathbb{R}, continuous, infinitely differentiable, bounded between 0 and 1, without the slightest visible singularity; and yet its series refuses to represent it beyond ∣x∣=1\left|x\right|=1. Nothing in the real graph announces this boundary.

b)

The explanation requires leaving the real line. Consider the complex variable zz: the denominator 1+z21+z^{2} vanishes at z=iz=i and z=−iz=-i, where the function ceases to be defined. These two points are at distance exactly 1 from the origin, since ∣i∣=∣−i∣=1\left|i\right|=\left|-i\right|=1. Now the general rule is the following: the radius of convergence of the Taylor series of a function centred at aa equals the DISTANCE from aa to the nearest complex singularity. Here that distance is 1, hence R=1R=1. The series cannot go beyond ∣x∣=1\left|x\right|=1 on the real axis because, in the complex plane, it runs into two obstacles located off that axis but at exactly that distance. Check the consistency on the other cases of the chapter: 11−x\frac{1}{1-x} has its singularity at z=1z=1, at distance 1, hence R=1R=1; ln⁡(1+x)\ln(1+x) has its own at z=−1z=-1, distance 1, hence R=1R=1; exe^{x}, sin⁡x\sin x and cos⁡x\cos x have NO singularity in the whole complex plane, hence R=∞R=\infty, which finally explains why these three expansions are valid everywhere. The radius of convergence is therefore never arbitrary: it is a distance, and you need the complex plane to see it.

c)

Since all the derivatives of ff vanish at 0, all the Maclaurin coefficients equal f(n)(0)n!=0\frac{f^{(n)}(0)}{n!}=0. The Maclaurin series of ff is therefore the ZERO series: 0+0⋅x+0⋅x2+⋯=00+0\cdot x+0\cdot x^{2}+\cdots=0 for every xx. It converges everywhere, with an infinite radius, and its sum is identically 0. But ff is not the zero function: f(x)=e−1/x2>0f(x)=e^{-1/x^{2}}>0 as soon as x≠0x\neq 0. The series converges perfectly, then, but to a function that is NOT ff, except at the single point x=0x=0. Measuring the gap: f(0.1)=e−100≈3.7×10−44f(0.1)=e^{-100}\approx 3.7\times 10^{-44}, a minuscule but STRICTLY positive number, whereas the series equals exactly 0. The intuitive reason for the phenomenon: ff flattens towards 0 at the origin faster than ANY power of xx. Indeed f(x)x10→0\frac{f(x)}{x^{10}}\to 0 as x→0x\to 0, as the computation shows, 3.7×10−343.7\times 10^{-34} for x=0.1x=0.1. No polynomial can therefore detect the slightest trace of this function at 0: it is invisible to any local analysis by derivatives, and its Taylor series reports only what it saw, that is, nothing.

d)

It is NOT enough for the Taylor series to converge, nor even for ff to be infinitely differentiable. You must check that the REMAINDER tends to zero: f(x)=lim⁡n→∞Tn(x)f(x)=\lim_{n\to\infty}T_{n}(x) if and only if Rn(x)→0R_{n}(x)\to 0 as n→∞n\to\infty, for the xx under consideration. This is exactly what the Lagrange remainder of exercise 5 establishes: for exe^{x}, ∣Rn∣≤M∣x∣n+1(n+1)!→0\left|R_{n}\right|\le\frac{M\left|x\right|^{n+1}}{(n+1)!}\to 0 for every xx, because the factorial always ends up crushing the power, which PROVES that the exponential is indeed the sum of its series. For the function of part c), the remainder is Rn(x)=f(x)−0=f(x)R_{n}(x)=f(x)-0=f(x), which does not tend to 0 as nn grows, since it does not even depend on nn: the condition fails. Hence the distinction in vocabulary. A function is INFINITELY DIFFERENTIABLE (or of class C∞C^{\infty}) if all its derivatives exist; it is ANALYTIC at a point if it equals the sum of its Taylor series on a neighbourhood of that point. Every analytic function is infinitely differentiable, but the converse is FALSE, and e−1/x2e^{-1/x^{2}} is the canonical counterexample. For a CEGEP exam, the practical conclusion fits in one sentence: the expansions in the course (exe^{x}, sin⁡\sin, cos⁡\cos, the geometric series and its offspring) come with a proof that the remainder converges to zero, and it is this proof, never the mere existence of the derivatives, that allows you to write an equals sign between the function and its series.

-2-112-11231/(1 + x²)x = 1x = −1smooth everywhere,yet the series blows up

Exercise 10: Computing exact sums with power series

The tests of the previous chapter decided whether a series converges, without ever saying to what. Power series turn the situation around: by recognizing a numerical series as the VALUE of a known power series at a point, you obtain the exact sum.

  • a) Starting from ∑n≥1nxn=x(1−x)2\sum_{n\ge 1}nx^{n}=\frac{x}{(1-x)^{2}}, obtained in exercise 2, differentiate and rearrange to establish ∑n≥1n2xn=x(1+x)(1−x)3\sum_{n\ge 1}n^{2}x^{n}=\frac{x(1+x)}{(1-x)^{3}}, then compute ∑n=1∞n22n\sum_{n=1}^{\infty}\frac{n^{2}}{2^{n}}.
  • b) Compute ∑n=1∞1n 2n\sum_{n=1}^{\infty}\frac{1}{n\,2^{n}} by recognizing an expansion from the course.
  • c) Leibniz's formula π4=1−13+15−⋯\frac{\pi}{4}=1-\frac{1}{3}+\frac{1}{5}-\cdots converges too slowly to be useful. Use instead arctan⁡(13)=π6\arctan\left(\frac{1}{\sqrt{3}}\right)=\frac{\pi}{6} and compare the size of the tenth term in the two series.
  • d) Exam level: compute ∑n=0∞(−1)nn!\sum_{n=0}^{\infty}\frac{(-1)^{n}}{n!} and ∑n=0∞1(2n)!\sum_{n=0}^{\infty}\frac{1}{(2n)!}, identifying each time the function and the point of evaluation.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) ∑n22n=6\sum\frac{n^{2}}{2^{n}}=6
  • b) ln⁡2\ln 2
  • c) 121\frac{1}{21} versus 4.7×10−74.7\times 10^{-7}
  • d) e−1e^{-1} and cosh⁡1\cosh 1
a)

Start from ∑n≥1nxn=x(1−x)2\sum_{n\ge 1}nx^{n}=\frac{x}{(1-x)^{2}}, valid for ∣x∣<1\left|x\right|<1. Differentiating both sides with respect to xx: on the left, ∑n≥1n2xn−1\sum_{n\ge 1}n^{2}x^{n-1}; on the right, by the quotient rule, (1−x)2+x⋅2(1−x)(1−x)4=(1−x)+2x(1−x)3=1+x(1−x)3\frac{(1-x)^{2}+x\cdot 2(1-x)}{(1-x)^{4}}=\frac{(1-x)+2x}{(1-x)^{3}}=\frac{1+x}{(1-x)^{3}}. Multiplying both sides by xx to restore the exponent: ∑n≥1n2xn=x(1+x)(1−x)3\sum_{n\ge 1}n^{2}x^{n}=\frac{x(1+x)}{(1-x)^{3}}. Application at x=12x=\frac{1}{2}: ∑n=1∞n22n=12×32(12)3=3418=6\sum_{n=1}^{\infty}\frac{n^{2}}{2^{n}}=\frac{\frac{1}{2}\times\frac{3}{2}}{\left(\frac{1}{2}\right)^{3}}=\frac{\frac{3}{4}}{\frac{1}{8}}=6. Numerical check by direct summation: 6.0000006.000000. The process generalizes: each differentiation followed by a multiplication by xx raises the power of nn by one, which in principle allows you to compute ∑nkxn\sum n^{k}x^{n} for any kk.

b)

Recognize the expansion ∑n≥1xnn=−ln⁡(1−x)\sum_{n\ge 1}\frac{x^{n}}{n}=-\ln(1-x), which is that of ln⁡(1+x)\ln(1+x) from exercise 2c taken at −x-x, valid for ∣x∣<1\left|x\right|<1. At x=12x=\frac{1}{2}: ∑n=1∞1n 2n=−ln⁡(1−12)=−ln⁡(12)=ln⁡2≈0.6931\sum_{n=1}^{\infty}\frac{1}{n\,2^{n}}=-\ln\left(1-\frac{1}{2}\right)=-\ln\left(\frac{1}{2}\right)=\ln 2\approx 0.6931. Numerical check: 0.69314720.6931472. The contrast with the alternating harmonic series is striking: it also equals ln⁡2\ln 2, but it needs a million terms for six decimals, whereas here the factor 12n\frac{1}{2^{n}} gives the same precision in about twenty terms. Two series with the same sum, two speeds beyond comparison: evaluating a power series FAR from the boundary of its interval of convergence is always preferable.

c)

Leibniz's formula: it is the series of arctan⁡x\arctan x taken at x=1x=1, that is, exactly at the ENDPOINT of the radius of convergence, where convergence is as slow as it gets. Its term of rank 10 is 121≈0.0476\frac{1}{21}\approx 0.0476, which bounds the error at about 5 percent: a paltry result. With x=13≈0.577x=\frac{1}{\sqrt{3}}\approx 0.577: π6=arctan⁡(13)=∑n=0∞(−1)n(2n+1)(3)2n+1\frac{\pi}{6}=\arctan\left(\frac{1}{\sqrt{3}}\right)=\sum_{n=0}^{\infty}\frac{(-1)^{n}}{(2n+1)\left(\sqrt{3}\right)^{2n+1}}, whose term of rank 10 is (1/3)2121≈4.66×10−7\frac{\left(1/\sqrt{3}\right)^{21}}{21}\approx 4.66\times 10^{-7}. The ratio between the two is of the order of 10510^{5}: for the same number of terms, the second series is a hundred thousand times more precise. Check: the sum of the first 40 terms gives 0.52359880.5235988, against π6=0.5235988\frac{\pi}{6}=0.5235988. This is the principle behind all the historical computations of π\pi, which combine arctangents of small arguments, such as Machin's formula π4=4arctan⁡15−arctan⁡1239\frac{\pi}{4}=4\arctan\frac{1}{5}-\arctan\frac{1}{239}. The moral joins that of part b): the same power series is slow at its boundary and fast at its centre, and the whole art lies in bringing the computation close to the centre.

d)

First sum: recognize ex=∑n≥0xnn!e^{x}=\sum_{n\ge 0}\frac{x^{n}}{n!} evaluated at x=−1x=-1, which gives ∑n=0∞(−1)nn!=e−1=1e≈0.3679\sum_{n=0}^{\infty}\frac{(-1)^{n}}{n!}=e^{-1}=\frac{1}{e}\approx 0.3679. Numerical check: 0.36787940.3678794. This value has a famous interpretation in probability: it is the limit of the probability that a random permutation of nn objects leaves NO object in its place, the derangement problem, about 36.8 percent. Second sum: the factorials carry only EVEN indices, which points towards the cosine, cos⁡x=∑(−1)nx2n(2n)!\cos x=\sum\frac{(-1)^{n}x^{2n}}{(2n)!}; but here the signs are all positive, whereas the cosine alternates. So you need the version without alternation, obtained by evaluating the exponential and combining: ex+e−x2=∑n≥0x2n(2n)!\frac{e^{x}+e^{-x}}{2}=\sum_{n\ge 0}\frac{x^{2n}}{(2n)!}, since the addition cancels all the odd-degree terms and doubles the even-degree ones. At x=1x=1: ∑n=0∞1(2n)!=e+e−12≈1.5431\sum_{n=0}^{\infty}\frac{1}{(2n)!}=\frac{e+e^{-1}}{2}\approx 1.5431, that is, the hyperbolic cosine cosh⁡(1)\cosh(1). Numerical check: 1.54308061.5430806 both ways. The general method to remember for the exam: first spot the FORM of the general term (factorial, power alone, or quotient by nn), which designates the function; then read the point of evaluation from the base of the power; finally check that this point lies inside the interval of convergence.

Part C: the classics (/50)

Exercise 11: Radii and intervals of convergence: five standard series

For each power series, find the radius of convergence RR with the Ratio Test, then the interval of convergence by studying each endpoint separately.

  • a) ∑n≥0n2xn5n\sum_{n\geq 0}\frac{n^{2}x^{n}}{5^{n}}
  • b) ∑n≥0(−1)nx2n4n(n+1)\sum_{n\geq 0}\frac{(-1)^{n}x^{2n}}{4^{n}(n+1)}
  • c) ∑n≥1(x+1)nn\sum_{n\geq 1}\frac{(x+1)^{n}}{\sqrt{n}}
  • d) ∑n≥0(2nn)xn\sum_{n\geq 0}\binom{2n}{n}x^{n}, taking for granted that (2nn)14n∼1πn\binom{2n}{n}\frac{1}{4^{n}}\sim\frac{1}{\sqrt{\pi n}}.
  • e) ∑n≥0x3n8n\sum_{n\geq 0}\frac{x^{3n}}{8^{n}}. Also give its sum at x=1x=1.

Type your answers, the page tells you right or wrong 0/10

a)
Interval ,
b)
Interval ,
c)
Interval ,
d)
Interval ,
e)
Interval ,
Show the solution

Answers

  • a) R=5R=5, (−5,5)(-5, 5)
  • b) R=2R=2, [−2,2][-2, 2]
  • c) R=1R=1, [−2,0)[-2, 0)
  • d) R=14R=\frac{1}{4}, [−14,14)\left[-\frac{1}{4},\frac{1}{4}\right)
  • e) R=2R=2, (−2,2)(-2, 2); sum 87\frac{8}{7}
a)

∣(n+1)2xn+15n+1⋅5nn2xn∣=∣x∣5(n+1n)2→∣x∣5\left|\frac{(n+1)^{2}x^{n+1}}{5^{n+1}}\cdot\frac{5^{n}}{n^{2}x^{n}}\right|=\frac{|x|}{5}\left(\frac{n+1}{n}\right)^{2}\to\frac{|x|}{5}: R=5R=5. At x=±5x=\pm 5, the term equals n2n^{2} or (−1)nn2(-1)^{n}n^{2}, which does not tend to 00: divergence at both endpoints. Interval (−5,5)(-5, 5).

b)

Ratio: x24⋅n+1n+2→x24<1\frac{x^{2}}{4}\cdot\frac{n+1}{n+2}\to\frac{x^{2}}{4}<1, that is ∣x∣<2|x|<2: R=2R=2. At x=±2x=\pm 2, x2n=4nx^{2n}=4^{n} and the series becomes ∑(−1)nn+1\sum\frac{(-1)^{n}}{n+1}, the alternating harmonic series, convergent. Interval [−2,2][-2, 2], closed on both sides: the even power makes the two endpoints identical.

c)

Ratio: ∣x+1∣nn+1→∣x+1∣|x+1|\sqrt{\frac{n}{n+1}}\to|x+1|: R=1R=1, centre −1-1. At x=0x=0: ∑1n\sum\frac{1}{\sqrt{n}}, a pp-series with p=12p=\frac{1}{2}, DIVERGES. At x=−2x=-2: ∑(−1)nn\sum\frac{(-1)^{n}}{\sqrt{n}}, convergent by the Alternating Series Test. Interval [−2,0)[-2, 0).

d)

(2n+2n+1)(2nn)=(2n+2)(2n+1)(n+1)2=2(2n+1)n+1→4\frac{\binom{2n+2}{n+1}}{\binom{2n}{n}}=\frac{(2n+2)(2n+1)}{(n+1)^{2}}=\frac{2(2n+1)}{n+1}\to 4, so the ratio tends to 4∣x∣4|x| and R=14R=\frac{1}{4}. At x=14x=\frac{1}{4}: the term (2nn)14n∼1πn\binom{2n}{n}\frac{1}{4^{n}}\sim\frac{1}{\sqrt{\pi n}}, a DIVERGENT series by comparison with p=12p=\frac{1}{2}. At x=−14x=-\frac{1}{4}: an alternating series whose absolute value decreases (ratio 2n+12n+2<1\frac{2n+1}{2n+2}<1) to 00: CONVERGENT. Interval [−14,14)\left[-\frac{1}{4},\frac{1}{4}\right).

e)

It is a geometric series with ratio x38\frac{x^{3}}{8}: convergence if and only if ∣x∣3<8|x|^{3}<8, that is ∣x∣<2|x|<2: R=2R=2. At x=±2x=\pm 2, the ratio is ±1\pm 1 and the term does not tend to 00: interval (−2,2)(-2, 2). Sum: 11−x3/8=88−x3\frac{1}{1-x^{3}/8}=\frac{8}{8-x^{3}}, and at x=1x=1: 87≈1.143\frac{8}{7}\approx 1.143. Recognizing the geometric series spares you any test.

Exercise 12: Building expansions and reading off derivatives

The expansions in the course can be substituted into, multiplied and integrated. In the other direction, the coefficient of xnx^{n} in a Maclaurin series equals f(n)(0)n!\frac{f^{(n)}(0)}{n!}: it gives a high-order derivative without computing it.

  • a) Expand ln⁡(1+2x)\ln(1+2x) up to the x3x^{3} term and give its radius of convergence.
  • b) Expand sin⁡2x\sin^{2}x up to the x6x^{6} term, using sin⁡2x=1−cos⁡2x2\sin^{2}x=\frac{1-\cos 2x}{2}.
  • c) The binomial series gives 11−t=1+t2+3t28+⋯\frac{1}{\sqrt{1-t}}=1+\frac{t}{2}+\frac{3t^{2}}{8}+\cdots. Deduce the expansion of arcsin⁡x\arcsin x up to the x5x^{5} term.
  • d) Compute f(10)(0)f^{(10)}(0) for f(x)=x2cos⁡xf(x)=x^{2}\cos x.
  • e) Compute g(6)(0)g^{(6)}(0) for g(x)=ex2g(x)=e^{x^{2}}.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 2x−2x2+8x332x-2x^{2}+\frac{8x^{3}}{3}; R=12R=\frac{1}{2}
  • b) x2−x43+2x645x^{2}-\frac{x^{4}}{3}+\frac{2x^{6}}{45}
  • c) x+x36+3x540x+\frac{x^{3}}{6}+\frac{3x^{5}}{40}
  • d) f(10)(0)=90f^{(10)}(0)=90
  • e) g(6)(0)=120g^{(6)}(0)=120
a)

ln⁡(1+u)=u−u22+u33−⋯\ln(1+u)=u-\frac{u^{2}}{2}+\frac{u^{3}}{3}-\cdots with u=2xu=2x: ln⁡(1+2x)=2x−2x2+8x33−⋯\ln(1+2x)=2x-2x^{2}+\frac{8x^{3}}{3}-\cdots. Validity: ∣2x∣<1|2x|<1, so R=12R=\frac{1}{2}. Substituting 2x2x halves the radius.

b)

cos⁡2x=1−(2x)22+(2x)424−(2x)6720+⋯=1−2x2+2x43−4x645+⋯\cos 2x=1-\frac{(2x)^{2}}{2}+\frac{(2x)^{4}}{24}-\frac{(2x)^{6}}{720}+\cdots=1-2x^{2}+\frac{2x^{4}}{3}-\frac{4x^{6}}{45}+\cdots. So sin⁡2x=1−cos⁡2x2=x2−x43+2x645−⋯\sin^{2}x=\frac{1-\cos 2x}{2}=x^{2}-\frac{x^{4}}{3}+\frac{2x^{6}}{45}-\cdots. Check: the first term is x2x^{2}, the square of sin⁡x≈x\sin x\approx x.

c)

With t=x2t=x^{2}: 11−x2=1+x22+3x48+⋯\frac{1}{\sqrt{1-x^{2}}}=1+\frac{x^{2}}{2}+\frac{3x^{4}}{8}+\cdots. Since arcsin⁡x=∫0xdt1−t2\arcsin x=\int_{0}^{x}\frac{dt}{\sqrt{1-t^{2}}}, integrate term by term: arcsin⁡x=x+x36+3x540+⋯\arcsin x=x+\frac{x^{3}}{6}+\frac{3x^{5}}{40}+\cdots. Check at x=0.5x=0.5: 0.5+0.020833+0.002344=0.5231770.5+0.020833+0.002344=0.523177, for arcsin⁡0.5=π6≈0.523599\arcsin 0.5=\frac{\pi}{6}\approx 0.523599.

d)

x2cos⁡x=x2−x42+⋯+x2⋅x88!+⋯x^{2}\cos x=x^{2}-\frac{x^{4}}{2}+\cdots+\frac{x^{2}\cdot x^{8}}{8!}+\cdots: the x10x^{10} term comes from x88!\frac{x^{8}}{8!} (sign ++, even rank n=4n=4). Coefficient 18!\frac{1}{8!}, so f(10)(0)10!=18!\frac{f^{(10)}(0)}{10!}=\frac{1}{8!} and f(10)(0)=10!8!=10×9=90f^{(10)}(0)=\frac{10!}{8!}=10\times 9=90. Ten differentiations of a product avoided.

e)

ex2=∑x2nn!e^{x^{2}}=\sum\frac{x^{2n}}{n!}: the x6x^{6} term is x63!\frac{x^{6}}{3!}. So g(6)(0)6!=16\frac{g^{(6)}(0)}{6!}=\frac{1}{6} and g(6)(0)=7206=120g^{(6)}(0)=\frac{720}{6}=120. The derivatives of odd order at 00 are all zero, since gg is even.

Exercise 13: Approximating a number with a guaranteed error

For each value, use the appropriate expansion, compute the requested approximation and bound the error by the first neglected term, the series used being alternating with decreasing terms at the chosen points.

  • a) cos⁡(0.2)\cos(0.2) with the polynomial of degree 44.
  • b) ln⁡(1.1)\ln(1.1) with three terms.
  • c) e−0.1e^{-0.1}: how many terms are needed for an error less than 10−510^{-5}? Give the resulting approximation.
  • d) ∫01cos⁡x dx\int_{0}^{1}\cos\sqrt{x}\,dx with four terms of the series, to be compared with the exact value 2(sin⁡1+cos⁡1−1)2(\sin 1+\cos 1-1).
  • e) Why is the bound by the first neglected term legitimate here, whereas it is not for e0.1e^{0.1}?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 0.98006670.9800667
  • b) 0.0953330.095333, bound 2.5×10−52.5\times 10^{-5}
  • c) 44 terms: 0.9048330.904833
  • d) 0.7635420.763542, bound 5×10−65\times 10^{-6}
  • e) Alternating decreasing terms; not for e0.1e^{0.1}
a)

cos⁡x=1−x22+x424−⋯\cos x=1-\frac{x^{2}}{2}+\frac{x^{4}}{24}-\cdots: cos⁡(0.2)≈1−0.02+0.0000667=0.9800667\cos(0.2)\approx 1-0.02+0.0000667=0.9800667. First neglected term: 0.26720≈8.9×10−8\frac{0.2^{6}}{720}\approx 8.9\times 10^{-8}. Seven decimals guaranteed; the exact value is 0.980066580.98006658.

b)

ln⁡(1+x)=x−x22+x33−⋯\ln(1+x)=x-\frac{x^{2}}{2}+\frac{x^{3}}{3}-\cdots at x=0.1x=0.1: 0.1−0.005+0.000333=0.0953330.1-0.005+0.000333=0.095333. Bound: 0.144=2.5×10−5\frac{0.1^{4}}{4}=2.5\times 10^{-5}. Exact value 0.0953100.095310: actual error 2.3×10−52.3\times 10^{-5}, below the bound.

c)

e−0.1=1−0.1+0.012−0.0016+0.000124−⋯e^{-0.1}=1-0.1+\frac{0.01}{2}-\frac{0.001}{6}+\frac{0.0001}{24}-\cdots. The term 0.1424≈4.2×10−6\frac{0.1^{4}}{24}\approx 4.2\times 10^{-6} is the first one below 10−510^{-5}: stop just before it, with 44 terms. Approximation: 1−0.1+0.005−0.000167=0.9048331-0.1+0.005-0.000167=0.904833, for an exact value of 0.9048370.904837.

d)

cos⁡x=∑(−1)nxn(2n)!\cos\sqrt{x}=\sum\frac{(-1)^{n}x^{n}}{(2n)!} (the powers of x\sqrt{x} are even), so ∫01cos⁡x dx=∑(−1)n(n+1)(2n)!=1−14+172−12880+⋯≈0.763542\int_{0}^{1}\cos\sqrt{x}\,dx=\sum\frac{(-1)^{n}}{(n+1)(2n)!}=1-\frac{1}{4}+\frac{1}{72}-\frac{1}{2880}+\cdots\approx 0.763542. Bound: 15×8!=1201,600≈5×10−6\frac{1}{5\times 8!}=\frac{1}{201{,}600}\approx 5\times 10^{-6}. Exact value (substitution x=t2x=t^{2}, then integration by parts): 2(sin⁡1+cos⁡1−1)≈0.7635472(\sin 1+\cos 1-1)\approx 0.763547.

e)

At the chosen points, the terms change sign at every rank and decrease in absolute value to 00: that is the hypothesis of the Alternating Series Test, which bounds the remainder by the first neglected term. For e0.1e^{0.1}, all the terms are positive: the remainder is the sum of ALL the following terms, strictly larger than the first one, and the Lagrange remainder is needed.

Exercise 14: Relativistic kinetic energy at low speed

In relativity, the kinetic energy of a mass mm moving at speed vv is Ec=(γ−1)mc2E_{c}=(\gamma-1)mc^{2}, with γ=(1−v2c2)−1/2\gamma=\left(1-\frac{v^{2}}{c^{2}}\right)^{-1/2}. Set u=v2c2u=\frac{v^{2}}{c^{2}}; the goal is to recover the classical formula 12mv2\frac{1}{2}mv^{2} and to measure when it stops being reliable.

  • a) Using the binomial series (1+t)α=1+αt+α(α−1)2t2+⋯(1+t)^{\alpha}=1+\alpha t+\frac{\alpha(\alpha-1)}{2}t^{2}+\cdots, expand γ−1\gamma-1 up to the u2u^{2} term.
  • b) Deduce that Ec≈12mv2+38mv4c2E_{c}\approx\frac{1}{2}mv^{2}+\frac{3}{8}\frac{mv^{4}}{c^{2}}.
  • c) For v=0.1 cv=0.1\,c, compute γ−1\gamma-1 exactly, then the relative error made by the classical formula.
  • d) From what speed, as a fraction of cc, is the classical formula off by 11 percent? Use the ratio γ−1u/2≈1+3u4\frac{\gamma-1}{u/2}\approx 1+\frac{3u}{4}.
  • e) For a plane at 300300 m/s, with c=3×108c=3\times 10^{8} m/s, compute γ−1\gamma-1 with the series. Why does a calculator that directly evaluates 11−u−1\frac{1}{\sqrt{1-u}}-1 give a wrong result?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) γ−1=u2+3u28\gamma-1=\frac{u}{2}+\frac{3u^{2}}{8}
  • b) 12mv2\frac{1}{2}mv^{2} plus the correction
  • c) 0.00503780.0050378; error 0.750.75%
  • d) v≈0.115 cv\approx 0.115\,c
  • e) 5×10−135\times 10^{-13}; the series avoids the subtraction
a)

With t=−ut=-u and α=−12\alpha=-\frac{1}{2}: α(α−1)=(−12)(−32)=34\alpha(\alpha-1)=\left(-\frac{1}{2}\right)\left(-\frac{3}{2}\right)=\frac{3}{4}, hence γ=1+u2+3u28+⋯\gamma=1+\frac{u}{2}+\frac{3u^{2}}{8}+\cdots and γ−1=u2+3u28+⋯\gamma-1=\frac{u}{2}+\frac{3u^{2}}{8}+\cdots, for ∣u∣<1|u|<1.

b)

Ec=(γ−1)mc2≈(v22c2+3v48c4)mc2=12mv2+38mv4c2E_{c}=(\gamma-1)mc^{2}\approx\left(\frac{v^{2}}{2c^{2}}+\frac{3v^{4}}{8c^{4}}\right)mc^{2}=\frac{1}{2}mv^{2}+\frac{3}{8}\frac{mv^{4}}{c^{2}}. The first term IS the classical kinetic energy: Newtonian mechanics is the first term of a Taylor series, and the second term is the first relativistic correction.

c)

u=0.01u=0.01: γ−1=10.99−1≈0.0050378\gamma-1=\frac{1}{\sqrt{0.99}}-1\approx 0.0050378, and the classical formula gives u2=0.005\frac{u}{2}=0.005. Relative error: 0.0050378−0.0050.0050378≈0.75\frac{0.0050378-0.005}{0.0050378}\approx 0.75 percent. With the correction: 0.005+38×10−4=0.00503750.005+\frac{3}{8}\times 10^{-4}=0.0050375, correct to within 3×10−73\times 10^{-7}.

d)

The relative error of the classical formula is roughly 3u4\frac{3u}{4}. We want 3u4=0.01\frac{3u}{4}=0.01, that is u≈0.0133u\approx 0.0133 and vc=0.0133≈0.115\frac{v}{c}=\sqrt{0.0133}\approx 0.115: a little more than 1111 percent of the speed of light, about 35,00035{,}000 km/s. The exact computation gives the same value, vc≈0.1155\frac{v}{c}\approx 0.1155.

e)

u=9×1049×1016=10−12u=\frac{9\times 10^{4}}{9\times 10^{16}}=10^{-12}, so γ−1≈u2=5×10−13\gamma-1\approx\frac{u}{2}=5\times 10^{-13}, the next term, 38×10−24\frac{3}{8}\times 10^{-24}, being negligible. A calculator keeps about fifteen significant digits: 11−10−12\frac{1}{\sqrt{1-10^{-12}}} is stored as 1.0000000000005…1.0000000000005\ldots, and subtracting 11 leaves only the last one or two digits, already tainted by rounding errors. You get for instance 5.0004×10−135.0004\times 10^{-13} instead of 5.0000×10−135.0000\times 10^{-13}. The series avoids subtracting two nearly equal numbers: it is the stable form of the computation.

Exercise 15: Computing ln 3 and ln 2 with a single series

The series of ln⁡(1+x)\ln(1+x) converges very slowly near x=1x=1. We build a much faster series, valid for every positive number.

  • a) From the series of ln⁡(1+x)\ln(1+x) and of ln⁡(1−x)\ln(1-x), show that ln⁡1+x1−x=2(x+x33+x55+⋯ )\ln\frac{1+x}{1-x}=2\left(x+\frac{x^{3}}{3}+\frac{x^{5}}{5}+\cdots\right) and give the radius of convergence.
  • b) Which value of xx gives ln⁡3\ln 3? And ln⁡2\ln 2?
  • c) Compute the approximation S3=2(x+x33+x55)S_{3}=2\left(x+\frac{x^{3}}{3}+\frac{x^{5}}{5}\right) of ln⁡3\ln 3, and the error made.
  • d) Show that the remainder after NN terms satisfies RN≤2x2N+1(2N+1)(1−x2)R_{N}\leq\frac{2x^{2N+1}}{(2N+1)(1-x^{2})}, by bounding it with a geometric series. Give this bound for ln⁡3\ln 3 and N=3N=3.
  • e) How many terms guarantee ln⁡3\ln 3 to within 10−610^{-6}?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 2∑x2n+12n+12\sum\frac{x^{2n+1}}{2n+1}, R=1R=1
  • b) x=12x=\frac{1}{2} and x=13x=\frac{1}{3}
  • c) S3≈1.095833S_{3}\approx 1.095833, error 0.002780.00278
  • d) Bound 0.002980.00298
  • e) 99 terms
a)

ln⁡(1+x)=x−x22+x33−⋯\ln(1+x)=x-\frac{x^{2}}{2}+\frac{x^{3}}{3}-\cdots and ln⁡(1−x)=−x−x22−x33−⋯\ln(1-x)=-x-\frac{x^{2}}{2}-\frac{x^{3}}{3}-\cdots. Subtracting, the even powers cancel and the odd ones double: ln⁡1+x1−x=2∑n≥0x2n+12n+1\ln\frac{1+x}{1-x}=2\sum_{n\geq 0}\frac{x^{2n+1}}{2n+1}. Both series hold for ∣x∣<1|x|<1: R=1R=1.

b)

1+x1−x=3\frac{1+x}{1-x}=3 gives 1+x=3−3x1+x=3-3x, that is x=12x=\frac{1}{2}. For 22: 1+x=2−2x1+x=2-2x, x=13x=\frac{1}{3}. More generally, any y>0y>0 is obtained with x=y−1y+1x=\frac{y-1}{y+1}, always in (−1,1)(-1, 1): the series computes the logarithm of any positive number.

c)

S3=2(12+124+1160)=2(0.5+0.041667+0.00625)≈1.095833S_{3}=2\left(\frac{1}{2}+\frac{1}{24}+\frac{1}{160}\right)=2(0.5+0.041667+0.00625)\approx 1.095833. With ln⁡3≈1.098612\ln 3\approx 1.098612, the error is 0.002780.00278.

d)

The neglected terms are positive: RN=2(x2N+12N+1+x2N+32N+3+⋯ )≤2x2N+12N+1(1+x2+x4+⋯ )=2x2N+1(2N+1)(1−x2)R_{N}=2\left(\frac{x^{2N+1}}{2N+1}+\frac{x^{2N+3}}{2N+3}+\cdots\right)\leq\frac{2x^{2N+1}}{2N+1}\left(1+x^{2}+x^{4}+\cdots\right)=\frac{2x^{2N+1}}{(2N+1)(1-x^{2})}, each denominator being at least 2N+12N+1. For x=12x=\frac{1}{2} and N=3N=3: 2×0.577×0.75≈0.00298\frac{2\times 0.5^{7}}{7\times 0.75}\approx 0.00298, which does bound the actual error 0.002780.00278.

e)

Bound for x=12x=\frac{1}{2}: N=8N=8 gives 2×0.51717×0.75≈1.20×10−6\frac{2\times 0.5^{17}}{17\times 0.75}\approx 1.20\times 10^{-6}, still too much; N=9N=9 gives 2×0.51919×0.75≈2.7×10−7\frac{2\times 0.5^{19}}{19\times 0.75}\approx 2.7\times 10^{-7}. Nine terms are enough. For ln⁡2\ln 2, with x=13x=\frac{1}{3}, three terms already give 0.6930040.693004, within 1.4×10−41.4\times 10^{-4} of ln⁡2\ln 2: the alternating harmonic series would need thousands of terms for this result.

Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

Previous chapter Advanced tests: root, condensation, Raabe, Abel, 201-SN3-RE (201-NYB) Next chapter Differential equations, 201-SN3-RE

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-calc2-power-taylor-series. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for an integral calculus tutor in Montreal?

Get in touch for a first session. We work through integral calculus, 201-SN3-RE (201-NYB), at the level of real CEGEP tests, from the radius of convergence all the way to Taylor polynomials.

Site by Studio Squalli