Differential Calculus
Higher-Degree Approximations and Taylor Polynomials
The linearisation is the best straight line at : it gets the value and the slope right and everything else wrong. A Taylor polynomial simply keeps going — match the second derivative too, then the third, then the -th — and the approximation improves dramatically near . This topic supplies the formula, the standard Maclaurin polynomials worth knowing cold, and the piece that turns an approximation into mathematics rather than optimism: the Lagrange remainder, which converts "close" into a guaranteed numerical error bound.
Why go beyond linear
Fix and write . Linearisation has error of size roughly ; the degree- Taylor polynomial has error of size roughly . So halving the distance to the centre divides the error of by about , not by . Concretely, for at , approximating :
| error | ||
|---|---|---|
Each extra degree buys close to another decimal digit of accuracy here. That is the whole motivation.
Definition
Definition. Suppose is times differentiable at . The -th degree Taylor polynomial of centred at is
i.e. with . When it is called the Maclaurin polynomial.
Three immediate remarks. (i) is the constant and is exactly the linearisation. (ii) has degree at most — it can be lower, since may be . (iii) The variable in the powers is , never , unless .
The matching-derivatives characterisation
Theorem. If is times differentiable at , then is the unique polynomial of degree at most satisfying
Why. Write . Differentiating times kills every term of lower degree and, at , kills every term of higher degree, leaving . Setting forces , and the coefficients are therefore determined.
Run this backwards to read derivatives off coefficients: if you know , then .
Theorem (order of contact). With the same hypothesis,
and is the only polynomial of degree at most with this property. This is what licenses the shortcuts below: if any legitimate algebra produces a polynomial of degree whose difference from vanishes faster than , then is — no need to differentiate times.
Standard Maclaurin polynomials
| Maclaurin polynomial (centre ) | general term | notes | |
|---|---|---|---|
| , | every derivative is at | ||
| , | odd powers only; | ||
| , | even powers only; | ||
| , | needs ; no constant term | ||
| , | error is exactly for | ||
| , (here is the exponent, the term index) | needs if is not a whole number; terminates if is a non-negative integer |
Note has no Maclaurin polynomial: it is not defined at . Use , or centre at .
Building new ones from old. Substituting , where is a polynomial with (if is not already one, replace it by its own Maclaurin polynomial first), into a known Maclaurin polynomial, or multiplying two known ones together — and in both cases discarding every power above — produces of the composite/product, by the uniqueness theorem above. Keep enough terms of the outer polynomial that nothing of degree can be lost. Example: from with ,
Reading off the coefficient of : , so — obtained without ever differentiating four times.
Worked Example 1 — approximate and bound
Estimate with and give a rigorous error bound.
For , every derivative is , so and . Then
T_3(0.1)&=1+0.1+\frac{0.01}{2}+\frac{0.001}{6}\\ &=1+0.1+0.005+0.00016667\\ &=1.10516667. \end{aligned}$$ Bound: $f^{(4)}(t)=e^{t}$, which is increasing, so on $[0,0.1]$ we have $|f^{(4)}(t)|\le e^{0.1}<1.2$. Take $M=1.2$: $$|R_3(0.1)|\le \frac{M\,|0.1-0|^{4}}{4!}=\frac{1.2\times 10^{-4}}{24}=5\times 10^{-6}.$$ So $e^{0.1}=1.105167\pm 0.000005$, i.e. $1.105161<e^{0.1}<1.105172$. (True value $1.1051709\dots$; true error $4.25\times10^{-6}$ — the bound holds and is realistic.) ### Taylor's Theorem — the Lagrange remainder Define the **remainder** $R_n(x)=f(x)-T_n(x)$. **Theorem (Taylor, Lagrange form).** Let $n\ge 0$. Suppose $f^{(n)}$ is continuous on the closed interval with endpoints $a$ and $x$, and $f^{(n+1)}$ exists at every point of the corresponding **open** interval. Then there exists a number $c$ **strictly between** $a$ and $x$ with $$R_n(x)=\frac{f^{(n+1)}(c)}{(n+1)!}\,(x-a)^{n+1}.$$ The case $n=0$ is exactly the Mean Value Theorem: $f(x)=f(a)+f'(c)(x-a)$. The number $c$ depends on both $x$ and $n$ and is essentially never computable — which is fine, because we only ever bound $f^{(n+1)}(c)$. **Corollary (Taylor's Inequality).** If in addition $|f^{(n+1)}(t)|\le M$ for **all** $t$ in an interval $I$ containing $a$, then for every $x$ in $I$, $$|R_n(x)|\le \frac{M}{(n+1)!}\,|x-a|^{n+1}.$$ Procedure: (1) fix $n$ and the interval $I$; (2) compute $f^{(n+1)}$; (3) find $M=\max_{t\in I}|f^{(n+1)}(t)|$ — over the *whole* interval, not just at $a$; (4) insert the largest $|x-a|$ occurring in $I$ for a bound valid throughout $I$. **Sign information is free too.** Since $c$ lies between $a$ and $x$, the *sign* of $R_n$ is often decidable. E.g. for $x>0$ there is a $c$ with $0<c<x$ and $e^{x}=1+x+\frac{x^{2}}{2}+\frac{e^{c}x^{3}}{6}$; here $e^{c}x^{3}/6>0$, so $e^{x}>1+x+\frac{x^{2}}{2}$. (At $x=0$ no such $c$ exists — Taylor's Theorem needs $x\ne a$ — but both sides equal $1$ there, so $e^{x}\ge 1+x+\frac{x^{2}}{2}$ for all $x\ge0$.) ### Worked Example 2 — bounding the error over an interval *How accurate is $\cos x\approx 1-\frac{x^{2}}{2}+\frac{x^{4}}{24}$ on $[-0.5,0.5]$?* Naive route, $n=4$: $f^{(5)}(t)=-\sin t$, so $M=\max_{|t|\le 0.5}|\sin t|=\sin 0.5<0.48$, and $$|R_4(x)|\le \frac{0.48\,(0.5)^{5}}{5!}=\frac{0.48\times 0.03125}{120}=1.25\times 10^{-4}.$$ Better route: for $\cos$, $T_4=T_5$ (the $x^{5}$ coefficient is $0$), so the *same* polynomial is also the degree-$5$ Taylor polynomial and we may use $n=5$. Now $f^{(6)}(t)=-\cos t$ and $M=1$: $$|R_5(x)|\le \frac{1\cdot (0.5)^{6}}{6!}=\frac{0.015625}{720}=2.17\times 10^{-5}.$$ Nearly six times sharper, for free. (Check at the worst point: $T_4(0.5)=0.87760417$, $\cos 0.5=0.8775825619\dots$, true error $2.160\times10^{-5}$ — just under the bound.) ### Common mistakes | Wrong | Right | |---|---| | $T_3(x)=f(a)+f'(a)(x-a)+f''(a)(x-a)^{2}+f'''(a)(x-a)^{3}$ | Divide by $k!$: the coefficients are $f''(a)/2$ and $f'''(a)/6$. | | Centring at $a=2$ but writing powers of $x$. | Every power must be $(x-2)^{k}$. Do **not** expand and re-collect in powers of $x$ unless asked. | | Leaving $x$ in the coefficients: "$T_2(x)=e^{x}+e^{x}x+\frac{e^{x}}{2}x^{2}$". | Derivatives are evaluated **at the centre**: $T_2(x)=1+x+\frac{x^{2}}{2}$ for $a=0$. Coefficients are numbers. | | Given $T_3(x)=2-5(x-1)+4(x-1)^{2}$, concluding $f''(1)=4$. | $f''(1)=2!\cdot 4=8$. Multiply the coefficient by $k!$. | | Taking $M=\lvert f^{(n+1)}(a)\rvert$ at the centre only. | $M$ must dominate on the *entire* interval. For $\ln(1+x)$, $n=3$, on $[-0.2,0.2]$: $M=6$ gives the bound $4.0\times10^{-4}$, but the true error at $x=-0.2$ is $4.77\times 10^{-4}$ — the "bound" is false. Correct $M=6/(0.8)^{4}=14.65$. | | "The error equals the next term $\dfrac{f^{(n+1)}(a)}{(n+1)!}(x-a)^{n+1}$." | The next term is a *heuristic*. Lagrange has $f^{(n+1)}(c)$ with $c$ unknown between $a$ and $x$; only that gives a proof. | | Expecting $T_4$ of $\sin x$ to have an $x^{4}$ term. | $\sin$ is odd: $T_3=T_4=x-\frac{x^{3}}{6}$. Exploit this to get a better remainder bound. | | Writing a Maclaurin polynomial for $\ln x$ or $\sqrt{x}$. | Neither is differentiable at $0$ ($\ln x$ is not even defined there). Use $\ln(1+x)$, $(1+x)^{1/2}$, or a different centre. | | Assuming more terms always means a better answer at a fixed $x$. | For $f(x)=\frac{1}{1-x}$ at $x=2$: $f(2)=-1$ but $T_n(2)=1+2+\cdots+2^{n}\to+\infty$. Accuracy is guaranteed only where the remainder tends to $0$. | | Using $c=x$ or $c=a$ "to be safe". | $c$ is strictly between them and unknown; bound $\lvert f^{(n+1)}\rvert$ over the closed interval instead. |Key terms
- Taylor polynomial
- Maclaurin polynomial
- centre (base point) a
- linearisation as T_1
- quadratic approximation
- Taylor coefficient f^{(k)}(a)/k!
- matching-derivatives characterisation
- uniqueness of the Taylor polynomial
- order of contact
- standard Maclaurin polynomials
- binomial polynomial (1+x)^k
- remainder R_n(x)
- Taylor's Theorem
- Lagrange form of the remainder
- Taylor's Inequality
- error bound on an interval
- bounding |f^{(n+1)}| by M
- degree needed for a given accuracy
- substitution shortcut
- reading derivatives off coefficients
Practice Problems
Working directly from the definition (not by quoting a table), find the degree- Maclaurin polynomial of , and use it to estimate .
Show hint
List and evaluate each one at the centre before you assemble anything.
Show answer
Step 1: derivatives at the centre .
f(x)&=\cos x, & f(0)&=1,\\ f'(x)&=-\sin x, & f'(0)&=0,\\ f''(x)&=-\cos x, & f''(0)&=-1,\\ f'''(x)&=\sin x, & f'''(0)&=0,\\ f^{(4)}(x)&=\cos x, & f^{(4)}(0)&=1. \end{aligned}$$ **Step 2: assemble.** With $c_k=f^{(k)}(0)/k!$, $$\begin{aligned} T_4(x)&=1+\frac{0}{1!}x+\frac{-1}{2!}x^{2}+\frac{0}{3!}x^{3}+\frac{1}{4!}x^{4}\\ &=1-\frac{x^{2}}{2}+\frac{x^{4}}{24}. \end{aligned}$$ **Step 3: evaluate at $x=0.2$.** $$\begin{aligned} T_4(0.2)&=1-\frac{(0.2)^{2}}{2}+\frac{(0.2)^{4}}{24}\\ &=1-\frac{0.04}{2}+\frac{0.0016}{24}\\ &=1-0.02+0.00006667\\ &=0.98006667. \end{aligned}$$ **$\cos(0.2)\approx 0.98006667$.** *Independent check.* $\cos$ is even, so the $x^{5}$ coefficient is $0$ and $T_4=T_5$; using $n=5$ in Taylor's Inequality with $|f^{(6)}(t)|=|-\cos t|\le 1$, $$|R_5(0.2)|\le\frac{1\cdot(0.2)^{6}}{6!}=\frac{0.000064}{720}=8.9\times10^{-8}.$$ The true value is $\cos(0.2)=0.9800665778\dots$, off by $8.9\times 10^{-8}$ — exactly at the size predicted.The degree- Taylor polynomial of a function centred at is
Find , , and , and use to estimate .
Show hint
Compare the given expression coefficient by coefficient with the general form , and remember what each is built from.
Show answer
Step 1: the coefficient formula. By definition , so reading it backwards,
Step 2: match coefficients. From the given polynomial, , , , . Hence
f(1)&=0!\cdot 2=2,\\ f'(1)&=1!\cdot(-5)=-5,\\ f''(1)&=2!\cdot 4=8,\\ f'''(1)&=3!\cdot(-1)=-6. \end{aligned}$$ Note especially $f''(1)=8$, **not** $4$: the coefficient is $f''(1)/2!$. **Step 3: estimate $f(1.2)$.** Here $x-1=0.2$: $$\begin{aligned} T_3(1.2)&=2-5(0.2)+4(0.2)^{2}-(0.2)^{3}\\ &=2-1+4(0.04)-0.008\\ &=2-1+0.16-0.008\\ &=1.152 . \end{aligned}$$ **$f(1)=2$, $f'(1)=-5$, $f''(1)=8$, $f'''(1)=-6$, and $f(1.2)\approx 1.152$.** *Check.* Differentiating $T_3$ directly: $T_3'(x)=-5+8(x-1)-3(x-1)^{2}$ gives $T_3'(1)=-5$; $T_3''(x)=8-6(x-1)$ gives $T_3''(1)=8$; $T_3'''(x)=-6$. Since $T_3$ matches $f$'s derivatives through order $3$ at $x=1$, these are $f'(1),f''(1),f'''(1)$.Find the degree- Taylor polynomial of centred at , use it to approximate , and compute the exact error.
Show hint
Write and use the power rule repeatedly; watch the alternating signs and the factorials that appear.
Show answer
Step 1: derivatives at .
f(x)&=x^{-1}, & f(1)&=1,\\ f'(x)&=-x^{-2}, & f'(1)&=-1,\\ f''(x)&=2x^{-3}, & f''(1)&=2,\\ f'''(x)&=-6x^{-4}, & f'''(1)&=-6. \end{aligned}$$ **Step 2: assemble.** $$\begin{aligned} T_3(x)&=1+\frac{-1}{1!}(x-1)+\frac{2}{2!}(x-1)^{2}+\frac{-6}{3!}(x-1)^{3}\\ &=1-(x-1)+(x-1)^{2}-(x-1)^{3}. \end{aligned}$$ (Sanity check: this is the geometric pattern $1-u+u^{2}-u^{3}$ with $u=x-1$, which is what you expect from $\frac{1}{x}=\frac{1}{1+u}$.) **Step 3: approximate.** At $x=1.1$, $u=x-1=0.1$: $$\begin{aligned} T_3(1.1)&=1-0.1+(0.1)^{2}-(0.1)^{3}\\ &=1-0.1+0.01-0.001\\ &=0.909 . \end{aligned}$$ **Step 4: exact error.** The true value is $\dfrac{1}{1.1}=\dfrac{10}{11}$, so $$\begin{aligned} R_3(1.1)&=\frac{10}{11}-\frac{909}{1000}\\ &=\frac{10000-9999}{11000}\\ &=\frac{1}{11000}\\ &=9.0909\times10^{-5}. \end{aligned}$$ **$\dfrac{1}{1.1}\approx 0.909$, with exact error $\dfrac{1}{11000}\approx 9.09\times10^{-5}$ (the approximation is too small).** *Second, independent route to the same error.* Algebraically, $\dfrac{1}{1+u}-\left(1-u+u^{2}-u^{3}\right)=\dfrac{u^{4}}{1+u}$; with $u=0.1$ this is $\dfrac{0.0001}{1.1}=\dfrac{1}{11000}$ — agreeing exactly.Let with centre . Compute the errors and at and at (to three significant figures), and explain the two ratios you observe. Use and .
Show hint
Taylor's Inequality says the error of is at most a constant times . Ask what happens to when is halved.
Show answer
Step 1: the polynomials. and .
Step 2: at .
T_1(0.1)&=1.1, & |R_1|&=1.10517092-1.1=5.17\times10^{-3},\\ T_2(0.1)&=1+0.1+0.005=1.105, & |R_2|&=1.10517092-1.105=1.71\times10^{-4}. \end{aligned}$$ **Step 3: at $h=0.05$.** $$\begin{aligned} T_1(0.05)&=1.05, & |R_1|&=1.05127110-1.05=1.27\times10^{-3},\\ T_2(0.05)&=1+0.05+0.00125=1.05125, & |R_2|&=1.05127110-1.05125=2.11\times10^{-5}. \end{aligned}$$ **Step 4: the ratios.** $$\frac{5.17\times10^{-3}}{1.27\times10^{-3}}\approx 4.07,\qquad \frac{1.71\times10^{-4}}{2.11\times10^{-5}}\approx 8.10 .$$ **Step 5: explanation.** By Taylor's Theorem, $R_n(h)=\dfrac{e^{c}}{(n+1)!}h^{n+1}$ for some $c$ between $0$ and $h$. Since $e^{c}\to 1$ as $h\to 0$, the error behaves like a constant times $h^{n+1}$. Halving $h$ therefore multiplies the error by $\left(\frac12\right)^{n+1}$: - $n=1$: factor $\frac14$, so the ratio of errors is $\approx 4$. Observed $4.07$. ✔ - $n=2$: factor $\frac18$, so the ratio is $\approx 8$. Observed $8.10$. ✔ **Conclusion: linearisation is second-order accurate ($O(h^{2})$) while $T_2$ is third-order ($O(h^{3})$); each extra degree gains one more power of $h$, which is precisely why one goes beyond linear.** The ratios exceed $4$ and $8$ slightly because $e^{c}$ is a little larger at the bigger $h$.Find the degree- Maclaurin polynomial of without differentiating six times, and hence find and .
Show hint
Start from the Maclaurin polynomial of and substitute — but first check that the substitution sends to , and work out how many terms of you need.
Show answer
Step 1: known polynomial. For centred at ,
Step 2: substitute . This is legal for building a Maclaurin polynomial because when . Each power becomes , so three terms past the constant reach degree — exactly what is needed:
P(x)&=1+(-x^{2})+\frac{(-x^{2})^{2}}{2}+\frac{(-x^{2})^{3}}{6}\\ &=1-x^{2}+\frac{x^{4}}{2}-\frac{x^{6}}{6}. \end{aligned}$$ **Step 3: why $P=T_6$.** $P$ has degree $\le 6$, and $\dfrac{e^{u}-\left(1+u+\frac{u^2}{2}+\frac{u^3}{6}\right)}{u^{3}}\to 0$ as $u\to0$; putting $u=-x^{2}$ turns this into $\dfrac{f(x)-P(x)}{x^{6}}\to 0$ as $x\to0$. By the uniqueness (order-of-contact) theorem, $P$ is the degree-$6$ Maclaurin polynomial: $$T_6(x)=1-x^{2}+\frac{x^{4}}{2}-\frac{x^{6}}{6}.$$ **Step 4: extract the derivatives.** Since $c_k=f^{(k)}(0)/k!$, we have $f^{(k)}(0)=k!\,c_k$: $$\begin{aligned} c_4&=\frac12 &&\Rightarrow&& f^{(4)}(0)=4!\cdot\frac12=24\cdot\frac12=12,\\ c_6&=-\frac16 &&\Rightarrow&& f^{(6)}(0)=6!\cdot\left(-\frac16\right)=-\frac{720}{6}=-120. \end{aligned}$$ **$T_6(x)=1-x^{2}+\dfrac{x^{4}}{2}-\dfrac{x^{6}}{6}$, $\;f^{(4)}(0)=12$, $\;f^{(6)}(0)=-120$.** *Check of $f^{(4)}(0)$ the long way.* $f'=-2xe^{-x^{2}}$; $f''=(4x^{2}-2)e^{-x^{2}}$; $f'''=\left(8x+(4x^{2}-2)(-2x)\right)e^{-x^{2}}=(12x-8x^{3})e^{-x^{2}}$; $f^{(4)}=\left(12-24x^{2}+(12x-8x^{3})(-2x)\right)e^{-x^{2}}=(12-48x^{2}+16x^{4})e^{-x^{2}}$. At $x=0$ this is $12$. ✔ *Also note* $c_3=c_5=0$, so $f'''(0)=f^{(5)}(0)=0$ — as it must be, since $f$ is even.Find the degree- Maclaurin polynomial of in two ways: (a) by multiplying known Maclaurin polynomials and discarding terms of degree above , and (b) by differentiating three times.
Show hint
For (a) you only need each factor accurate to degree ; for (b) the second derivative of simplifies dramatically — do the algebra before evaluating.
Show answer
(a) By multiplication.
(the next term is , already beyond degree ). Multiply and keep only degrees through :
\left(1+x+\frac{x^{2}}{2}+\frac{x^{3}}{6}\right)\left(1-\frac{x^{2}}{2}\right) &=1+x+\frac{x^{2}}{2}+\frac{x^{3}}{6}-\frac{x^{2}}{2}-\frac{x^{3}}{2}-\cdots\\ &=1+x+\left(\frac12-\frac12\right)x^{2}+\left(\frac16-\frac12\right)x^{3}+\cdots\\ &=1+x+0\cdot x^{2}-\frac{x^{3}}{3}+\cdots \end{aligned}$$ so $T_3(x)=1+x-\dfrac{x^{3}}{3}$. **(b) By differentiating.** $$\begin{aligned} f(x)&=e^{x}\cos x, & f(0)&=1,\\ f'(x)&=e^{x}\cos x-e^{x}\sin x=e^{x}(\cos x-\sin x), & f'(0)&=1,\\ f''(x)&=e^{x}(\cos x-\sin x)+e^{x}(-\sin x-\cos x)=-2e^{x}\sin x, & f''(0)&=0,\\ f'''(x)&=-2e^{x}\sin x-2e^{x}\cos x=-2e^{x}(\sin x+\cos x), & f'''(0)&=-2. \end{aligned}$$ Hence $$T_3(x)=1+\frac{1}{1!}x+\frac{0}{2!}x^{2}+\frac{-2}{3!}x^{3}=1+x-\frac{x^{3}}{3}.$$ **Both methods give $T_3(x)=1+x-\dfrac{x^{3}}{3}$.** *Numerical check.* At $x=0.1$: $T_3(0.1)=1+0.1-0.00033333=1.09966667$, while $e^{0.1}\cos(0.1)=1.10517092\times 0.99500417=1.09964967$. So $f(0.1)-T_3(0.1)=-1.70\times10^{-5}$, consistent with a degree-$4$ error term $\dfrac{f^{(4)}(0)}{24}x^{4}$: here $f^{(4)}(x)=-4e^{x}\cos x$, so $f^{(4)}(0)=-4$ and the predicted next term is $-\dfrac{4}{24}(0.1)^{4}=-1.67\times10^{-5}$. ✔Find the degree- Maclaurin polynomial of , use it to approximate , and use Taylor's Inequality to bound the error.
Show hint
Use the binomial pattern with (or differentiate three times); for the bound you will need the fourth derivative and where it is largest on .
Show answer
Step 1: derivatives. With ,
f'(x)&=\frac12(1+x)^{-1/2}, & f'(0)&=\frac12,\\ f''(x)&=-\frac14(1+x)^{-3/2}, & f''(0)&=-\frac14,\\ f'''(x)&=\frac38(1+x)^{-5/2}, & f'''(0)&=\frac38,\\ f^{(4)}(x)&=-\frac{15}{16}(1+x)^{-7/2}, & & \end{aligned}$$ and $f(0)=1$. **Step 2: assemble.** $$\begin{aligned} T_3(x)&=1+\frac{1/2}{1!}x+\frac{-1/4}{2!}x^{2}+\frac{3/8}{3!}x^{3}\\ &=1+\frac{x}{2}-\frac{x^{2}}{8}+\frac{x^{3}}{16}. \end{aligned}$$ (Same as the binomial pattern with $k=\frac12$: $1+\frac12 x+\frac{\frac12\left(-\frac12\right)}{2}x^{2}+\frac{\frac12\left(-\frac12\right)\left(-\frac32\right)}{6}x^{3}$.) **Step 3: approximate $\sqrt{1.1}$**, i.e. take $x=0.1$: $$\begin{aligned} T_3(0.1)&=1+0.05-\frac{0.01}{8}+\frac{0.001}{16}\\ &=1+0.05-0.00125+0.0000625\\ &=1.0488125 . \end{aligned}$$ **Step 4: bound the error.** On $[0,0.1]$, $$\left|f^{(4)}(t)\right|=\frac{15}{16}(1+t)^{-7/2}\le \frac{15}{16}(1+0)^{-7/2}=\frac{15}{16}=0.9375,$$ because $(1+t)^{-7/2}$ is decreasing. Take $M=\frac{15}{16}$: $$|R_3(0.1)|\le \frac{M\,(0.1)^{4}}{4!}=\frac{0.9375\times 10^{-4}}{24}=3.91\times10^{-6}.$$ **$\sqrt{1.1}\approx 1.0488125$, with error at most $3.91\times10^{-6}$; so $1.0488085<\sqrt{1.1}<1.0488165$ (endpoints rounded outward).** *Check.* $\sqrt{1.1}=1.0488088482\dots$, so the true error is $3.65\times10^{-6}$ — inside the bound. Squaring the estimate: $1.0488125^{2}=1.10000766\dots$, just above $1.1$, confirming the approximation is slightly too large (as the negative $f^{(4)}$ predicts).Use the degree- Maclaurin polynomial of to estimate , and use Taylor's Inequality to bound the error.
Show hint
Find the pattern in the derivatives of — they are all of the form (constant) — and remember you need the fifth derivative for the bound.
Show answer
Step 1: derivatives at .
f(x)&=\ln(1+x), & f(0)&=0,\\ f'(x)&=(1+x)^{-1}, & f'(0)&=1,\\ f''(x)&=-(1+x)^{-2}, & f''(0)&=-1,\\ f'''(x)&=2(1+x)^{-3}, & f'''(0)&=2,\\ f^{(4)}(x)&=-6(1+x)^{-4}, & f^{(4)}(0)&=-6,\\ f^{(5)}(x)&=24(1+x)^{-5}. & & \end{aligned}$$ (The pattern is $f^{(n)}(x)=(-1)^{n-1}(n-1)!\,(1+x)^{-n}$, valid for $x>-1$.) **Step 2: assemble $T_4$.** $$\begin{aligned} T_4(x)&=0+\frac{1}{1!}x+\frac{-1}{2!}x^{2}+\frac{2}{3!}x^{3}+\frac{-6}{4!}x^{4}\\ &=x-\frac{x^{2}}{2}+\frac{x^{3}}{3}-\frac{x^{4}}{4}. \end{aligned}$$ **Step 3: evaluate at $x=0.1$** (since $\ln(1.1)=\ln(1+0.1)$): $$\begin{aligned} T_4(0.1)&=0.1-\frac{0.01}{2}+\frac{0.001}{3}-\frac{0.0001}{4}\\ &=0.1-0.005+0.00033333-0.000025\\ &=0.09530833. \end{aligned}$$ **Step 4: bound.** On $[0,0.1]$, $\left|f^{(5)}(t)\right|=\dfrac{24}{(1+t)^{5}}\le \dfrac{24}{1^{5}}=24$, the maximum occurring at $t=0$. With $M=24$ and $n=4$: $$|R_4(0.1)|\le\frac{24\,(0.1)^{5}}{5!}=\frac{24\times 10^{-5}}{120}=2\times 10^{-6}.$$ **$\ln(1.1)\approx 0.09530833$ with error at most $2\times 10^{-6}$; hence $0.0953063<\ln(1.1)<0.0953104$ (endpoints rounded outward).** *Check.* $\ln(1.1)=0.0953101798\dots$, so the true error is $1.85\times10^{-6}$ — just inside the bound, and positive as expected (the omitted $x^{5}/5$ term is positive).Show that the approximation has error at most for every in . Then explain why the naive choice gives a much weaker bound.
Show hint
is an odd function — think about what its degree- Maclaurin polynomial is before choosing which to feed into Taylor's Inequality.
Show answer
Step 1: identify the polynomial's true degree label. For the Maclaurin coefficients of even powers all vanish (), so
The same polynomial is therefore also the degree- Taylor polynomial, and we are entitled to use in Taylor's Inequality.
Step 2: bound the fifth derivative. Differentiating five times returns , so for all real
(The hypotheses of Taylor's Theorem hold everywhere: is infinitely differentiable on .)
Step 3: apply Taylor's Inequality with , , .
|R_4(x)|&\le \frac{M\,|x|^{5}}{5!}\\ &\le \frac{1\cdot (0.6)^{5}}{120}\\ &=\frac{0.07776}{120}\\ &=6.48\times10^{-4}. \end{aligned}$$ Since $6.48\times10^{-4}\le 6.5\times10^{-4}$, the claim holds for every $x$ with $|x|\le 0.6$. **Step 4: why $n=3$ is worse.** With $n=3$ we would need $f^{(4)}(t)=\sin t$, and on $[-0.6,0.6]$ the best bound is $M=\sin(0.6)=0.5646$. Then $$|R_3(x)|\le \frac{0.5646\,(0.6)^{4}}{4!}=\frac{0.5646\times 0.1296}{24}=3.05\times10^{-3},$$ about **five times** weaker. Going from $n=3$ to $n=4$ multiplies the bound by the extra factor $|x|/5=0.12$, which easily outweighs the increase in $M$ from $0.5646$ to $1$. Whenever $f$ has a parity (even or odd), check for this free upgrade. *Check that the bound is honest and sharp.* At the worst point $x=0.6$: $T_3(0.6)=0.6-\frac{0.216}{6}=0.564$, while $\sin(0.6)=0.5646424734\dots$. The true error is $6.4247\times10^{-4}$ — under $6.48\times10^{-4}$, and only $0.8\%$ below it.How large must be so that the Maclaurin polynomial of approximates to within for every in ?
Show hint
Write down Taylor's Inequality for this and interval first, with the worst-case values of both and inserted; then hunt for the smallest making the resulting number small enough.
Show answer
Step 1: set up Taylor's Inequality. All derivatives of are , so on
since is increasing. Also on . Therefore, for every ,
Step 2: force this under . We need
Step 3: search the factorials.
but , so the smallest admissible value is .
suffices: for all .
Step 4: confirm the answer does not depend on the sloppy . Using the sharp instead of requires , and again fails while succeeds. Same conclusion, .
Check that really is not enough (at least for our bound). The worst point is , where , and , so the actual error is . So genuinely fails, and is truly the smallest degree that works. (At the actual worst error is .)
Use the degree- Taylor polynomial of centred at to approximate , and bound the error with Taylor's Inequality.
Show hint
Choose the centre because is a perfect cube; then be careful with the negative fractional exponents, and note that is decreasing in magnitude on .
Show answer
Step 1: derivatives.
f(x)&=x^{1/3}, & f(8)&=2,\\ f'(x)&=\frac13x^{-2/3}, & f'(8)&=\frac13\cdot\frac{1}{4}=\frac{1}{12}\quad(8^{2/3}=4),\\ f''(x)&=-\frac29x^{-5/3}, & f''(8)&=-\frac29\cdot\frac{1}{32}=-\frac{1}{144}\quad(8^{5/3}=32),\\ f'''(x)&=\frac{10}{27}x^{-8/3}. & & \end{aligned}$$ **Step 2: assemble $T_2$.** $$\begin{aligned} T_2(x)&=2+\frac{1/12}{1!}(x-8)+\frac{-1/144}{2!}(x-8)^{2}\\ &=2+\frac{x-8}{12}-\frac{(x-8)^{2}}{288}. \end{aligned}$$ **Step 3: evaluate at $x=8.5$**, so $x-8=0.5$: $$\begin{aligned} T_2(8.5)&=2+\frac{0.5}{12}-\frac{0.25}{288}\\ &=2+\frac{1}{24}-\frac{1}{1152}\\ &=\frac{2304+48-1}{1152}=\frac{2351}{1152}\\ &=2.04079861. \end{aligned}$$ **Step 4: bound the error.** On $[8,8.5]$, $f'''(t)=\dfrac{10}{27}t^{-8/3}>0$ is decreasing, so its maximum is at $t=8$: $$M=\frac{10}{27}\cdot 8^{-8/3}=\frac{10}{27\cdot 256}=\frac{10}{6912}=1.4468\times10^{-3}\qquad (8^{8/3}=2^{8}=256).$$ With $n=2$ and $|x-a|=0.5$: $$|R_2(8.5)|\le \frac{M\,(0.5)^{3}}{3!}=\frac{1.4468\times10^{-3}\times 0.125}{6}=3.01\times10^{-5}.$$ **$\sqrt[3]{8.5}\approx 2.0407986$, with error at most $3.01\times10^{-5}$; hence $2.040768<\sqrt[3]{8.5}<2.040829$ (endpoints rounded outward).** *Check.* The true value is $\sqrt[3]{8.5}=2.0408275510\dots$, so the actual error is $2.89\times10^{-5}$ — inside the bound, and the estimate is too small, as the positive $f'''$ (hence positive $R_2$) predicts. Cubing the estimate: $2.0407986^{3}=8.4996\dots$, close to $8.5$. ✔A student bounds the error of as an approximation to on by writing ", so ." Explain precisely what is wrong, give the correct bound, and verify your criticism numerically at .
Show hint
Ask where on the interval is actually largest — is the worst case, or is one endpoint worse?
Show answer
Step 1: locate the error in the argument. The inequality holds only when , i.e. only for . But Taylor's Inequality demands a bound valid at every between the centre and the point , and the interval contains negative , where and the quotient is larger than . The student has bounded only on the right half of the interval.
Step 2: the correct . On the function is decreasing (the denominator increases), so its maximum is at the left endpoint :
Step 3: the correct bound. With , and ,
|R_3(x)|&\le \frac{M\,|x|^{4}}{4!}\\ &\le\frac{14.6484375\times (0.2)^{4}}{24}\\ &=\frac{14.6484375\times 0.0016}{24}\\ &=\frac{0.0234375}{24}\\ &=9.7656\times10^{-4}. \end{aligned}$$ **Correct bound: $|R_3(x)|\le 9.77\times10^{-4}$ on $[-0.2,0.2]$.** **Step 4: numerical verification that the student's bound is actually false.** At $x=-0.2$, $$\begin{aligned} T_3(-0.2)&=-0.2-\frac{(-0.2)^{2}}{2}+\frac{(-0.2)^{3}}{3}\\ &=-0.2-0.02-0.00266667\\ &=-0.22266667, \end{aligned}$$ while $\ln(0.8)=-0.2231435513\dots$. Hence $$|R_3(-0.2)|=\left|-0.2231435513+0.2226666667\right|=4.769\times10^{-4}.$$ Compare: $4.769\times10^{-4}>4\times10^{-4}$, so the student's claimed bound is **violated by the actual error** — it is not merely loose, it is wrong. The correct bound $9.77\times10^{-4}$ does hold, with room to spare. **Moral: $M$ must dominate $|f^{(n+1)}|$ across the whole interval between the centre and every point considered — check the endpoints, not just the centre.** (For contrast, at $x=+0.2$ the error is only $3.45\times10^{-4}$; the left half of the interval is genuinely the bad side, which is exactly what the student's shortcut hid.)