MATH 141 Calculus 2 • McGill University, Montreal

Revision sheet: Taylor polynomials and error bounds (MATH 141)

This sheet is not a summary of sections 11.10 and 11.11 of Stewart: you already have the course notes. It answers one question only, what makes students lose marks on Taylor polynomials and error bounds in MATH 141 at McGill University, and which precise gesture avoids each loss.

Every number below is done by hand, as on the exam, and every value quoted has been checked by an independent computation. The rule that runs through the whole sheet: an approximation without a guaranteed bound answers half the question.

The thread of the chapter

An approximation is a value AND a guaranteed bound: M bounds the next derivative at its WORST point between the centre and x, never at the centre; the first omitted term is a bound only when the series alternates; and when a zero term makes T_3 equal T_4, the inequality is used with the larger degree.

This chapter is part of MATH 141, Calculus 2 (McGill)

The essentials

Taylor's inequality: M lives at the worst point

  • • Tn(x)=∑k=0nf(k)(a)k!(x−a)kT_n(x) = \sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x - a)^k and the remainder is Rn(x)=f(x)−Tn(x)R_n(x) = f(x) - T_n(x). Keep the powers of x−ax - a; never expand them.
  • • If ∣f(n+1)(x)∣≤M\lvert f^{(n+1)}(x)\rvert \le M for EVERY xx with ∣x−a∣≤d\lvert x - a\rvert \le d, then ∣Rn(x)∣≤M(n+1)!∣x−a∣n+1\lvert R_n(x)\rvert \le \frac{M}{(n + 1)!}\lvert x - a\rvert^{n+1} on that interval.
  • • ∣f(n+1)∣\lvert f^{(n+1)}\rvert is almost always monotone on the interval, so its maximum sits at an END: evaluate both ends and take the larger. Any larger MM is valid, any smaller one is false.
  • • exe^x: right end. Powers of 11+x\frac{1}{1 + x}, from ln⁡(1+x)\ln(1 + x) or (1+x)k(1 + x)^k: left end. 11−x\frac{1}{1 - x}: right end. sin⁡\sin, cos⁡\cos: M=1M = 1.
  • • When Tn=Tn+1T_n = T_{n+1} (sin⁡\sin and cos⁡\cos at 00), use n+1n + 1: the bound gains a full power of ∣x−a∣\lvert x - a\rvert.
  • • Lagrange form Rn(x)=f(n+1)(z)(n+1)!(x−a)n+1R_n(x) = \frac{f^{(n+1)}(z)}{(n + 1)!}(x - a)^{n+1}: if f(n+1)f^{(n+1)} keeps one sign on the interval, the error has a known sign.
0.10.20.30.40.520406080100centre: 6worst point: 96y = 6/(1 − x)⁴
For f(x)=11−xf(x) = \frac{1}{1 - x} on [0,0.5][0, 0.5], f′′′f''' is 66 at the centre and 9696 at the right end: the centre underestimates the worst derivative sixteen times.

Write every MM with its interval: ∣f′′′(x)∣≤16\lvert f'''(x)\rvert \le 16 for −0.5≤x≤0.5-0.5 \le x \le 0.5. A bound without its interval cannot be checked, and markers do not check it for you.

The two other tools: the first omitted term and the geometric tail

  • • If the Taylor series AT THE POINT alternates with terms decreasing to 00, the error is smaller than the first omitted term and has its sign. No MM to find.
  • • It is often sharper: cos⁡0.5≈78\cos 0.5 \approx \frac{7}{8} with error below 1384≈0.0026\frac{1}{384} \approx 0.0026, and the true error is 0.00260.0026.
  • • Alternation is checked on the series at the point, not on the function: ln⁡(1+x)\ln(1 + x) alternates at x=0.2x = 0.2 and not at x=−0.2x = -0.2; exe^{x} alternates at x=−0.2x = -0.2 only.
  • • Terms all positive and derivatives unwieldy: bound the tail by a geometric series, as in 2∑k≥3x2k+12k+1≤27⋅x71−x22\sum_{k \ge 3}\frac{x^{2k+1}}{2k + 1} \le \frac{2}{7} \cdot \frac{x^7}{1 - x^2}.
  • • Bounds of a sum add: approximating ln⁡3=ln⁡2+ln⁡32\ln 3 = \ln 2 + \ln\frac{3}{2} costs the sum of the two bounds.

The rules in table form

Each row reads from left to right: the assumptions, then the result. A red cell is not an answer, it is the finding that the form settles nothing and the instruction to rewrite it. Every case is followed by a worked example.

Where the worst derivative sits, and which M to take

The left column is the function, the middle one how ∣f(n+1)∣\lvert f^{(n+1)}\rvert behaves on the interval, the right one the MM to write. The red line is the one that appears on half the papers.

FunctionBehaviour of the derivative on the intervalM to take
exe^x on [a,b][a, b] increasing ebe^b, the right end

Example: e0.2e^{0.2} with T3T_3: M=e0.2<1.25M = e^{0.2} < 1.25 since 1.255>31.25^5 > 3, bound 1.25(0.2)424=112000\frac{1.25(0.2)^4}{24} = \frac{1}{12000}.

sin⁡x\sin x, cos⁡x\cos x bounded by 11 everywhere 11, on any interval

Example: cos⁡31∘\cos 31^\circ with T2T_2 at π6\frac{\pi}{6}: ∣R2∣≤16(π180)3<1750 000\lvert R_2\rvert \le \frac{1}{6}\left(\frac{\pi}{180}\right)^3 < \frac{1}{750\,000}.

ln⁡(1+x)\ln(1 + x), (1+x)k(1 + x)^k powers of 11+x\frac{1}{1 + x}, decreasing the value at the LEFT end

Example: ln⁡(1+x)\ln(1 + x), T2T_2 on [−0.5,0.5][-0.5, 0.5]: f′′′=2(1+x)3f''' = \frac{2}{(1 + x)^3}, M=16M = 16 at x=−0.5x = -0.5, bound 13\frac{1}{3}.

11−x\frac{1}{1 - x} on [0,b][0, b] increasing the value at the RIGHT end

Example: T2T_2 on [0,0.5][0, 0.5]: f′′′=6(1−x)4f''' = \frac{6}{(1 - x)^4}, M=96M = 96, bound 966(0.5)3=2\frac{96}{6}(0.5)^3 = 2.

any ff not checked ∣f(n+1)(a)∣\lvert f^{(n+1)}(a)\rvert, the value at the centre not a bound

Example: 11−x\frac{1}{1 - x} on [0,0.5][0, 0.5]: M=6M = 6 claims ∣R2∣≤18\lvert R_2\rvert \le \frac{1}{8}, and the true error at 0.50.5 is 2−1.75=142 - 1.75 = \frac{1}{4}.

What to do: Evaluate ∣f(n+1)∣\lvert f^{(n+1)}\rvert at both ends of the interval and take the larger. The centre is right only when it is an end and the worst point, and that must be said.

The red line is not a weaker bound, it is no bound at all: the function itself breaks it. A larger MM only loses sharpness; a smaller one loses the question.

The mistakes that cost marks

These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.

1. Taking M at the centre of the interval

the whole question: a bound the function violates is worth zero

What not to write

“For ln⁡(1+x)\ln(1 + x) on [−0.5,0.5][-0.5, 0.5]: ∣f′′′(x)∣≤f′′′(0)=2\lvert f'''(x)\rvert \le f'''(0) = 2, so ∣R2(x)∣≤26(0.5)3=124\lvert R_2(x)\rvert \le \frac{2}{6}(0.5)^3 = \frac{1}{24}.”

What to write

“f′′′(x)=2(1+x)3f'''(x) = \frac{2}{(1 + x)^3} is decreasing, largest at x=−0.5x = -0.5: M=16M = 16, so ∣R2(x)∣≤166(0.5)3=13\lvert R_2(x)\rvert \le \frac{16}{6}(0.5)^3 = \frac{1}{3} for ∣x∣≤0.5\lvert x\rvert \le 0.5.”

Why: At x=−0.5x = -0.5 the true error is ln⁡2−58≈0.068\ln 2 - \frac{5}{8} \approx 0.068, above 124≈0.042\frac{1}{24} \approx 0.042. The inequality asks for a bound on the WHOLE interval, and the centre is rarely the worst point.

2. Using the first omitted term on a series of positive terms

2 to 3 marks, and the stated bound is false

What not to write

“The terms of ∑1k!\sum\frac{1}{k!} decrease, so e−T3(1)≤124e - T_3(1) \le \frac{1}{24}.”

What to write

“The series of ee does not alternate. On [0,1][0, 1], f(4)=ex≤e<3f^{(4)} = e^x \le e < 3, so 0<e−T3(1)≤324=180 < e - T_3(1) \le \frac{3}{24} = \frac{1}{8}.”

12345670.511.522.53Tₙ(1): climbs from below to eTₙ(−1): brackets 1/e
The sums of ee climb from below, so the gap is the WHOLE tail; the sums of 1e\frac{1}{e} jump from side to side, so the gap is less than the next jump.

Why: The first-omitted-term rule is the alternating series estimate. With positive terms the omitted terms all push the same way and add up: e−83≈0.052>124e - \frac{8}{3} \approx 0.052 > \frac{1}{24}.

3. Not using T_3 as T_4 for the sine

1 to 2 marks, the whole question if the conclusion is wrong

What not to write

“∣sin⁡x−(x−x36)∣≤x424\lvert\sin x - (x - \frac{x^3}{6})\rvert \le \frac{x^4}{24}, so T3T_3 cannot give sin⁡0.1\sin 0.1 to within 10−610^{-6}.”

What to write

“The sine has no x4x^4 term, so T3=T4T_3 = T_4 and ∣R4(0.1)∣≤(0.1)5120=112 000 000\lvert R_4(0.1)\rvert \le \frac{(0.1)^5}{120} = \frac{1}{12\,000\,000}.”

Why: x424\frac{x^4}{24} is true but fifty times too large at x=0.1x = 0.1. A large bound never proves a large error: it only proves you used a weak bound.

4. Plugging degrees into a formula written in radians

the whole question

What not to write

“cos⁡31∘≈32−12(1)−34(1)2\cos 31^\circ \approx \frac{\sqrt{3}}{2} - \frac{1}{2}(1) - \frac{\sqrt{3}}{4}(1)^2.”

What to write

“31∘=π6+π18031^\circ = \frac{\pi}{6} + \frac{\pi}{180}, so h=π180h = \frac{\pi}{180} and cos⁡31∘≈32−π360−3 π2129 600\cos 31^\circ \approx \frac{\sqrt{3}}{2} - \frac{\pi}{360} - \frac{\sqrt{3}\,\pi^2}{129\,600}.”

Why: The faux line gives a negative cosine for an acute angle. Every derivative of sin⁡\sin and cos⁡\cos, hence every Taylor coefficient, assumes radians.

5. Reading an error bound as correct decimals

1 mark

What not to write

“e0.2≈1.22133e^{0.2} \approx 1.22133 with an error below 10−410^{-4}, so e0.2=1.2213…e^{0.2} = 1.2213\ldots”

What to write

“1.22133<e0.2<1.221421.22133 < e^{0.2} < 1.22142: the digits 1.2211.221 are certain, the fourth decimal is not decided by this bound.”

Why: A bound gives an interval, and an interval can straddle a change of digit. Here it does: e0.2=1.22140…e^{0.2} = 1.22140\ldots, so the fourth decimal of the approximation is wrong although the error is below 10−410^{-4}.

6. Centring at 0 by habit

the whole question: the tolerance is not guaranteed

What not to write

“For cos⁡31∘\cos 31^\circ within 10−510^{-5}: T2T_2 at 00 with x=31π180x = \frac{31\pi}{180}, error at most x424\frac{x^4}{24}.”

What to write

“Centre at π6\frac{\pi}{6}, h=π180h = \frac{\pi}{180}: ∣R2∣≤h36<1750 000<10−5\lvert R_2\rvert \le \frac{h^3}{6} < \frac{1}{750\,000} < 10^{-5}.”

0.10.20.30.40.50.60.70.80.91246810centre 0centre π/631°× 10⁻³
At 31∘31^\circ, the dashed line, the bound centred at π6\frac{\pi}{6} is practically zero while the one centred at 00 is already 3.6×10−33.6 \times 10^{-3}: each bound is small only near its own centre.

Why: At 00 the bound is x424≈0.0036\frac{x^4}{24} \approx 0.0036, some three hundred times the tolerance. The distance to the centre is raised to a power, so the nearest point with exact values wins by orders of magnitude.

7. Giving the value without the bound or its sign

half the question

What not to write

“10≈683216\sqrt{10} \approx \frac{683}{216}.”

What to write

“683216<10<683216+13888\frac{683}{216} < \sqrt{10} < \frac{683}{216} + \frac{1}{3888}, because f′′′>0f''' > 0 on [9,10][9, 10] makes R2R_2 positive.”

Why: Approximate, on a MATH 141 paper, means value AND guaranteed bound. The sign costs one line and halves the width of the answer: the approximation is one end of the interval.

Which method to choose

Which bound, by the FORM of the question

Write the series at the point, look at the signs of its terms and at the derivatives, then choose

  • If the series at the point alternates, with terms decreasing to 0 → the first omitted term bounds the error and gives its sign

    Example: cos⁡0.5≈78\cos 0.5 \approx \frac{7}{8}, error below 1384\frac{1}{384}, 78\frac{7}{8} too small

  • If the terms have one sign and the derivatives are easy → Taylor's inequality, MM at the worst point, sign from f(n+1)f^{(n+1)}

    Example: e0.2≈458375e^{0.2} \approx \frac{458}{375}, error below 112000\frac{1}{12000}, too small

  • If the terms have one sign and look like xkk\frac{x^k}{k} → compare the tail with a geometric series

    Example: ln⁡2≈8421215\ln 2 \approx \frac{842}{1215} from x=13x = \frac{1}{3}, tail below 16804\frac{1}{6804}

  • If the point is far from 0 but close to a point with exact values → centre there, and convert angles to radians

    Example: cos⁡31∘\cos 31^\circ at π6\frac{\pi}{6} with h=π180h = \frac{\pi}{180}, error below 1750 000\frac{1}{750\,000}

  • If the accuracy is given and nn is the unknown → write the bound as a function of nn, find the smallest nn

    Example: ee within 10−310^{-3}: 3(n+1)!<10−3\frac{3}{(n + 1)!} < 10^{-3} gives n=6n = 6

  • If the approximation must hold on a whole interval → bound at the worst xx of the interval, for MM and for ∣x−a∣n+1\lvert x - a\rvert^{n+1} alike

    Example: exe^x on [0,2][0, 2] within 0.010.01: 9⋅2n+1(n+1)!\frac{9 \cdot 2^{n+1}}{(n + 1)!} gives n=9n = 9

Several tools may apply; choose the one whose hypotheses you can CHECK in one line. For arctan⁡12\arctan\frac{1}{2}, the alternating estimate is one line and Taylor's inequality is a page.

How the answer is expected to be written

A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.

Writing an approximation with a guaranteed bound

When to use it: Any question that says approximate, estimate or with an error less than, on a value such as e0.2e^{0.2}, 1.13\sqrt[3]{1.1}, sin⁡0.1\sin 0.1 or cos⁡31∘\cos 31^\circ

  1. 1 Name ff, the centre aa and the degree nn, and write TnT_n in powers of x−ax - a.
  2. 2 Evaluate TnT_n at the point in fractions, the decimal only at the end.
  3. 3 Name the tool and check its hypotheses: for Taylor's inequality, the interval and MM at its worst point; for the alternating estimate, the alternation and the decrease.
  4. 4 Compute the bound as a simple fraction.
  5. 5 Give the sign of the error and conclude with an interval.

Concluding sentence

“T3(0.2)=458375T_3(0.2) = \frac{458}{375}. For 0≤x≤0.20 \le x \le 0.2, ∣f(4)(x)∣=ex≤e0.2<1.25\lvert f^{(4)}(x)\rvert = e^x \le e^{0.2} < 1.25, so 0<e0.2−458375≤1.25(0.2)424=1120000 < e^{0.2} - \frac{458}{375} \le \frac{1.25(0.2)^4}{24} = \frac{1}{12000}.”

The trap: Writing M=e0.2M = e^{0.2} and stopping there: MM must be a number you can compute by hand, so bound it (e0.2<e<3e^{0.2} < e < 3, or <1.25< 1.25).

Marking: Typically 1 mark for the polynomial, 1 for its value, 1 to 2 for M with its interval or for the hypotheses of the alternating estimate, 1 for the bound, and the sign or interval is what separates a full answer from a partial one.

Check before you hand in

Five minutes of checking recover more marks than one more problem started in a hurry.

The typical problem, taken apart

The square root of 10 by hand, with a guaranteed bound

Approximate 10\sqrt{10} with a Taylor polynomial of degree 22 of f(x)=xf(x) = \sqrt{x} at a well chosen centre. Give a guaranteed bound on the error and its sign.

No calculator. Every step must be justified as on a MATH 141 final.

Step 1

Centre: a=9a = 9, the perfect square nearest to 1010, so x−a=1x - a = 1.

Why

The bound grows like ∣x−a∣3\lvert x - a\rvert^3. The centre must be a point where ff and its derivatives are exact: a=0a = 0 is impossible, x\sqrt{x} is not differentiable there.

Step 2

f(9)=3f(9) = 3, f′(x)=12x−1/2f'(x) = \frac{1}{2}x^{-1/2} so f′(9)=16f'(9) = \frac{1}{6}, f′′(x)=−14x−3/2f''(x) = -\frac{1}{4}x^{-3/2} so f′′(9)=−1108f''(9) = -\frac{1}{108}. T2(10)=3+16−12⋅108=648+36−1216=683216≈3.16204T_2(10) = 3 + \frac{1}{6} - \frac{1}{2 \cdot 108} = \frac{648 + 36 - 1}{216} = \frac{683}{216} \approx 3.16204.

Why

The 12!\frac{1}{2!} of the last coefficient is the slip of the day: without it, −1108-\frac{1}{108} gives 682216\frac{682}{216}.

Step 3

f′′′(x)=38x−5/2f'''(x) = \frac{3}{8}x^{-5/2} is positive and DECREASING on [9,10][9, 10]: its maximum is at x=9x = 9, M=38⋅1243=1648M = \frac{3}{8} \cdot \frac{1}{243} = \frac{1}{648}.

Why

Here the centre happens to be the worst point, and that is shown by the monotonicity, not assumed. Taking MM at x=10x = 10 would give a smaller number that is not a bound.

Step 4

Taylor's inequality: ∣R2(10)∣≤1/6483!⋅13=13888≈0.00026\lvert R_2(10)\rvert \le \frac{1/648}{3!} \cdot 1^3 = \frac{1}{3888} \approx 0.00026.

Why

A simple fraction, computed by hand. The marker checks the factorial and the power, so write them.

Step 5

Sign: R2(10)=f′′′(z)6⋅13R_2(10) = \frac{f'''(z)}{6} \cdot 1^3 with f′′′(z)>0f'''(z) > 0, so the error is positive and T2(10)T_2(10) is an underestimate.

Why

The sign costs one line and turns a symmetric band into a one-sided interval, half as wide.

The conclusion, written out

“683216<10<683216+13888\frac{683}{216} < \sqrt{10} < \frac{683}{216} + \frac{1}{3888}, that is 3.16203<10<3.162303.16203 < \sqrt{10} < 3.16230.”

The classic mistake on this problem: Centring at a=16a = 16 (the bound grows like 636^3 instead of 131^3), or writing 1108\frac{1}{108} for the coefficient of (x−9)2(x - 9)^2 and missing it because the value still looks plausible: only the derivative check of T2T_2 catches it.

Learn by heart

  • • Approximate means value AND guaranteed bound, with its sign when available.
  • • Taylor's inequality: ∣Rn(x)∣≤M(n+1)!∣x−a∣n+1\lvert R_n(x)\rvert \le \frac{M}{(n + 1)!}\lvert x - a\rvert^{n+1}, with M≥∣f(n+1)∣M \ge \lvert f^{(n+1)}\rvert on the WHOLE interval.
  • • MM at the worst point: an end of the interval, checked; never the centre by default.
  • • sin⁡\sin and cos⁡\cos at 00: T2k+1=T2k+2T_{2k+1} = T_{2k+2} and T2k=T2k+1T_{2k} = T_{2k+1}, use the larger nn.
  • • First omitted term: a bound only if the series at the point ALTERNATES with decreasing terms.
  • • Radians always: 1∘=π1801^\circ = \frac{\pi}{180}.
  • • Centre at the nearest point with exact values: the bound grows like ∣x−a∣n+1\lvert x - a\rvert^{n+1}.

Frequently asked questions

How do I choose M in Taylor's inequality?

M must be at least the absolute value of the next derivative at every point between the centre and the point where you approximate. Compute that derivative, decide whether it increases or decreases on the interval, and take its value at the worst end. For the exponential that is the right end, for logarithms and powers of one plus x usually the left end, and for sine and cosine the number one always works.

When can I use the alternating series estimate instead of Taylor's inequality?

When the Taylor series, evaluated at your point, has terms that alternate in sign, decrease in size and tend to zero. Then the error is smaller than the first term you left out and has the same sign. It works for sine, cosine and arctangent at small values, for e to a negative power and for the logarithm of one plus a positive number, but never for a series whose terms all have the same sign.

Why is the degree 3 Taylor polynomial of sin x also the degree 4 one?

Because the fourth derivative of sine is sine itself, which is zero at zero, so the term of degree four is zero. The same polynomial can therefore be treated as the degree four polynomial, and Taylor's inequality with n equal to four uses the fifth power of x instead of the fourth, a much smaller bound near zero. The same happens for cosine with odd degrees.

How do I find how many terms of a Taylor series I need for a given accuracy?

Write the error bound as a function of n, either the Taylor inequality bound with its factorial or the first omitted term if the series alternates, then test n equal to one, two, three and so on until the bound falls below the tolerance. The first n that works is the answer. Do not stop because the next term is small when the terms are all positive: the omitted terms add up.

Practise it

Corrected exercises: Taylor polynomials and error bounds, MATH 141 at McGill

A method is proved on a paper, not on a sheet. The set for the same chapter takes each of these traps into a problem, with the solution written out step by step.

  • 10 corrected exercises
  • 100 points
  • 150 minutes
Do the exercises
Previous sheet Taylor and Maclaurin series

See also

Looking for a MATH 141 tutor in Montreal?

Get in touch for a first session. Error bounds close the course and open every final: the marks are in the choice of M and in the sign of the error, not in the arithmetic.

Site by Studio Squalli