Guides / Series
Taylor series and linear approximation: divide by k!, expand in powers of x − a, and stay inside the radius
Short answer
The linear approximation at a is f(x) ≈ f(a) + f′(a)(x − a). The Taylor polynomial of degree n is Tn(x) = Σk=0n f(k)(a)k!(x − a)k: each derivative at a, divided by k!, times a power of (x − a). The error is f(n+1)(c)(n + 1)!(x − a)n+1 for some c between a and x, so bound it with the largest value of |f(n+1)| on that interval. The infinite series equals f only inside its radius of convergence.
Why it works
Write a polynomial in powers of x − a: p(x) = c0 + c1(x − a) + c2(x − a)2 + c3(x − a)3 + ⋯. At x = a every term but the first is 0, so p(a) = c0. Differentiate once and set x = a: p′(a) = c1. Twice: p″(a) = 2c2, since (x − a)2 differentiates to 2 · 1. Three times: p‴(a) = 3 · 2 · 1 · c3. In general p(k)(a) = k! ck, so matching f's derivatives at a needs ck = f(k)(a)/k!. That is where the factorial comes from, and why the powers have to be powers of x − a: they are what vanish at a.
The error after degree n behaves like the next term, with the derivative taken at some unknown point c between a and x instead of at a. You don't know c, so a guaranteed bound uses the worst case.
Example 1: a tangent-line estimate and the sign of its error
Estimate ∛8.3 with the linear approximation of f(x) = x1/3 at a = 8.
- f(8) = 28 is the nearest point where the cube root is easy.
- f′(x) = 13x−2/3The power rule.
- f′(8) = 13 · 4 = 11282/3 = 4.
- ∛x ≈ 2 + 112(x − 8)The tangent line at 8, in powers of x − 8.
- ∛8.3 ≈ 2 + 0.312 = 2.025The true value is 2.02469…, so the error is about 0.0003.
- f″(x) = −29x−5/3 < 0So 2.025 is too high. The cube root is concave down for x > 0, so it bends below its tangent lines, and every tangent-line estimate overshoots.
Example 2: a Taylor polynomial about a ≠ 0
Find the degree-3 Taylor polynomial of f(x) = 1/x about a = 2, and use it to estimate 1/2.2.
- f(2) = 12, f′(2) = −14The derivatives are −x⁻², 2x⁻³ and −6x⁻⁴, evaluated at 2.
- f″(2) = 28 = 142x⁻³ at x = 2.
- f‴(2) = −616 = −38−6x⁻⁴ at x = 2.
- c2 = 1/42! = 18Divide each derivative by k!.
- c3 = −3/83! = −116The same for k = 3.
- T3(x) = 12 − (x − 2)/4The constant and linear terms …
- + (x − 2)2/8 − (x − 2)3/16… then the next two. The pattern is (−1)k(x − 2)k/2k+1: a geometric series with ratio −(x − 2)/2, which converges for |x − 2| < 2.
- T3(2.2) = 0.5 − 0.05With x − 2 = 0.2 …
- + 0.005 − 0.0005 = 0.4545… and all four terms. The true value is 0.454545…, and each term shrinks by a factor of 10 here.
Example 3: a series from a series you already know
Find the Maclaurin series of arctan x, and the fifth derivative of arctan at 0.
- 11 + t2 = 1 − t2 + t4 − t6 + ⋯The geometric series 1/(1 − r) with r = −t², valid for |t| < 1.
- arctan x = ∫0x dt1 + t2Integrate term by term, which is allowed inside the radius.
- = x − x33 + x55 − x77 + ⋯arctan 0 = 0, so there is no constant.
- f(5)(0)5! = 15A power series is the Taylor series of its sum, so the coefficient of x⁵ is f⁽⁵⁾(0)/5!.
- f(5)(0) = 1205 = 24Differentiating arctan five times by hand would take much longer.
Example 4: bounding the error
Estimate e0.5 with the degree-3 Maclaurin polynomial of ex, and bound the error.
- T3(0.5) = 1 + 0.5Every derivative of ex at 0 is 1, so the coefficients are 1/k! …
- + 0.252 + 0.1256 ≈ 1.645833… through k = 3.
- |error| = ec4!(0.5)4The Lagrange remainder with n = 3: the fourth derivative at an unknown c, with 0 < c < 0.5.
- ec < e0.5 < 2ec is increasing, so its largest value is at the right end. Bound it by a number you know without the calculator: e < 4, so √e < 2.
- |error| < (2 × 0.0625)/24Use ec < 2 and 0.54 = 0.0625.
- ≈ 0.0052The actual error is e0.5 − 1.645833 ≈ 0.0029, inside the bound, as it must be.
Common mistakes, and the exact line they happen on
1. Leaving out the k!
The polynomial from Example 2, stopped at degree 2.
- f(2) = 12, f′(2) = −14Right so far.
- f″(2) = 14Also right.
- T2(x) = 12 − (x − 2)/4Right so far: the first two terms.
- + 14(x − 2)2This is the mistake. The coefficient of (x − 2)² is f″(2)/2! = 1/8. In the linear term the divisor 1! = 1 is invisible, which is why it's easy to forget from the second term on. This version gives 0.46 at x = 2.2, off by 0.0055, which is worse than the tangent line's 0.45 (off by 0.0045). The correct T2(2.2) = 0.455 is off by 0.0005.
2. Powers of x instead of powers of x − a
The tangent line from Example 1.
- f(8) = 2, f′(8) = 112Right so far.
- ∛x ≈ 2 + x12, so ∛8.3 ≈ 2.692This is the mistake. The derivative was taken at 8, so the step has to be measured from 8: x − 8, not x. This line doesn't even pass through (8, 2): at x = 8 it gives 2.667. With x − 8 the estimate is 2.025.
3. Bounding the remainder at the wrong end
The bound from Example 4.
- |error| = ec24(0.5)4Right so far, with 0 < c < 0.5.
- |error| ≤ 0.062524 ≈ 0.0026This is the mistake. This takes c = 0, but c is unknown, and a bound has to cover every c in the interval. ec is smallest at c = 0, so this is the smallest the error could be, not the largest. It fails: the actual error, 0.0029, is bigger than this "bound." Take the largest value of the derivative, at c = 0.5 here.
Practice
Use the linear approximation of tan x at π/4 to estimate tan 0.8.
Show answer
tan(π/4) = 1 and sec2(π/4) = 2, so tan 0.8 ≈ 1 + 2(0.8 − π/4) ≈ 1.0292. The true value is 1.0296.
Find the Maclaurin series of x ex through the x4 term.
Show answer
Multiply the series of ex by x: x + x2 + x32 + x46.
Find the Maclaurin series of 11 − 2x and its radius of convergence.
Show answer
The geometric series with ratio 2x: 1 + 2x + 4x2 + 8x3 + ⋯ = Σ 2nxn, valid for |2x| < 1, so the radius is ½.
Use series to find limx→0 (sin x − x)/x3.
Show answer
sin x − x = −x36 + x5120 − ⋯, so the quotient is −16 + x2120 − ⋯ and the limit is −16.
Bound the error of cos x ≈ 1 − x2/2 for |x| ≤ 0.2.
Show answer
The x³ term of cos x is 0, so 1 − x2/2 is also T3, and the remainder uses the fourth derivative, cos c, with |cos c| ≤ 1: |error| ≤ (0.2)424 ≈ 6.7 × 10−5.