Below is a graph of y=f(x), along with the constant approximation, linear approximation, and quadratic approximation centred at a=2. Which is which?
Hint+
Which of the functions are constant, linear, and quadratic?
Answer+
A: linear B: constant C: quadratic
Full solution+
All functions A, B, and C intersect the function y=f(x) when x=2. B is a constant function, so this is the constant approximation. A is the tangent line, so A is the linear approximation. C is a tangent parabola, so C is the quadratic approximation.
Suppose T(x) is the Taylor series for f(x)=arctan3(ex+7) centred at a=5. What is T(5)?
Hint+
You don't have to actually calculate the entire series T(x) to answer the question.
Answer+
T(5)=arctan3(e5+7)
Full solution+
Following how a Taylor series is constructed, the Taylor series and the function agree at the point chosen as the centre. So, T(5)=arctan3(e5+7).
If we were evaluating a Taylor series at a point other than its centre, we would generally need to check that (a) the series converges, and (b) it converges to the same value as the function we used to create it.
Below are a list of common functions, and their Taylor series representations. Match the function to the Taylor series and give the radius of convergence of the series.
function
series
A. 1−x1
I. n=0∑∞(−1)nn+1xn+1
[20pt]
B. log(1+x)
II. n=0∑∞(−1)n(2n+1)!x2n+1
[20pt]
C. arctanx
III. n=0∑∞(−1)n(2n)!x2n
[20pt]
D. ex
IV. n=0∑∞(−1)n2n+1x2n+1
[20pt]
E. sinx
V. n=0∑∞xn
[20pt]
F. cosx
VI. n=0∑∞n!xn
Hint+
If you don't have these memorized, it's good to be able to derive them. For instance, log(1+x) is the antiderivative of 1+x1, whose Taylor series can be found by modifying the geometric series ∑xn.
Answer+
A - V, radius=1
B - I, radius=1
C - IV, radius=1
D - VI, radius=+∞
E - II, radius=+∞
F - III, radius=+∞
Full solution+
These are listed in Theorem 3.6.5 in the CLP–2 text. However, it's possible to figure out many of them without a lot of memorization. For example, e0=cos(0)=1−01=1, while sin(0)=log(1+0)=arctan(0)=0. So by plugging in x=0 to the series listed, we can divide them into these two categories.
The derivative of sine is cosine, so we can also look for one series that is the derivative of another. The derivative of ex is ex, so we can look for a series that is its own derivative.
Furthermore, sine and arctangent are odd functions and only II and IV are odd.
Cosine is an even function and only III is even.
Alternately, we can find the first few terms of each series using the definition of a Taylor series, and match them up.
In any event, here is what Theorem 3.6.5 in the CLP–2 text gives.
The Taylor series representation of 1−x1 is given in V. The series converges for −1<x<1. So by
Definition 3.5.3 in the CLP–2 text, the series has radius of convergence 1.
The Taylor series representation of log(1+x) is given in I. The series converges for −1<x≤1. In particular, it converges for all ∣x∣<1 and diverges for all ∣x∣>1. So by
Definition 3.5.3 in the CLP–2 text, the series has radius of convergence 1.
The Taylor series representation of arctanx is given in IV. The series converges for −1≤x≤1. In particular, it converges for all ∣x∣<1 and diverges for all ∣x∣>1. So it has radius of convergence 1.
The Taylor series representation of ex is given in VI. The series converges for all x. So it has
infinite radius of convergence.
The Taylor series representation of sinx is given in II. The series converges for all x. So it has
infinite radius of convergence.
The Taylor series representation of cosx is given in III. The series converges for all x. So it has
infinite radius of convergence.
So, the coefficient of (x−3)20 is 20!f(20)(3) (using the definition). Using the given series, the coefficient of (x−3)20 is 20!+1202. So,
20!f(20)(3)⇒f(20)(3)=20!+1202=202(20!+120!)
(which is extremely close to 202).
Using the definition of a Taylor series, we know
n=0∑∞(n!+1)n2(x−3)2n=k=0∑∞k!g(k)(3)(x−3)k
So, the coefficient of (x−3)20 is 20!g(20)(3) (using the definition). Looking at the given series, the coefficient of (x−3)20 occurs when n=10, so it is 10!+1102. So,
20!g(20)(3)⇒g(20)(3)=10!+1102=102(10!+120!)
With the previous two examples in mind, we find the Maclaurin series for h(x). (Using the series representation will be much easier than differentiating h(x) directly twenty times.) Recall from the text that we know the Maclaurin series for arctanx.
Similarly, the coefficient of x22 in the Maclaurin series is 22!h(22)(0). Since no term x22 occurs in our series, that coefficient is 0, so h(22)(0)=0.
2Stage 2Procedural
Practising the skill itself, until applying it is automatic.
In Questions 5 through 8, you will create Taylor series from scratch. In practice, it is often preferable to modify an existing series, rather than creating a new one, but you should understand both ways.
Even derivatives are 0; odd derivatives alternate between −1 and +1. (If you're following along with the derivation of the Maclaurin series for sine in the text, note f(n)(π)=−f(n)(0).)
In our Taylor series, every even-indexed term will be zero, and we will be left with only odd-indexed terms. If we let n be our index, then the term 2n+1 will capture all the odd numbers. Since the signs alternate, f(2n+1)(π)=(−1)n+1. So, our Taylor series is:
k=0∑∞k!f(k)(π)(x−π)k=n=0∑∞(2n+1)!f(2n+1)(π)(x−π)2n+1(since the even terms are all zero)=n=0∑∞(2n+1)!(−1)n+1(x−π)2n+1
Using the definition of a Taylor series, find the Taylor series for g(x)=x1 centred at x=10. What is the interval of convergence of the resulting series?
Hint+
The Taylor series will look similar to a geometric series.
Answer+
101n=0∑∞(1010−x)n with interval of convergence (0,20).
Full solution+
The definition of a Taylor series tells us we will be computing the coefficients in the series
n=0∑∞n!g(n)(10)(x−10)n
That is, we need a general description of g(n)(10). To find this, we take a few derivatives, and look for a pattern.
Using the definition of a Taylor series, find the Taylor series for h(x)=e3x centred at x=a, where a is some constant. What is the radius of convergence of the resulting series?
Hint+
Your answer will depend on a.
Answer+
n=0∑∞n!3ne3a(x−a)n, with infinite radius of convergence
Full solution+
The definition of a Taylor series tells us we will be computing the coefficients in the series
n=0∑∞n!h(n)(a)(x−a)n
That is, we need a general description of h(n)(a). To find this, we take a few derivatives, and look for a pattern.
In past chapters, we were only able to exactly evaluate very specific types of series: geometric and telescoping. In Questions 17 through 25, we expand our range by relating given series to Taylor series.
There is an important Taylor series, one of the series in
Theorem 3.6.5 of the
CLP-2 text, that looks a lot like the given series.
Answer+
log(3/2)
Full solution+
Recall, from Theorem 3.6.5 in the CLP-2 text, that, for all −1<x≤1,
log(1+x)=k=0∑∞(−1)kk+1xk+1=n=1∑∞(−1)n−1nxn
(To get from the first sum to the second sum we substituted n=k+1. If you don't see
why the two sums are equal, write out the first few terms of each.)
So
Remark: it's tempting to note that
log(1+y)=n=0∑∞(−1)nn+1yn+1=−n=1∑∞n(−y)n, and try to substitute in y=−2. But, the Maclaurin series for log(1+y) has radius of convergence R=1, so it doesn't converge at y=−2. Furthermore, log(1+(−2))=log(−1), but this is undefined.
Using the fact that arctan(1)=4π, how many terms of the Taylor series for arctangent would you have to add up to approximate π with an error of at most 4×10−5?
Example 3.6.13 in the CLP–2 text mentions the formula
π=16arctan51−4arctan2391
Using the Taylor series for arctangent, how many terms would you have to add up to approximate π with an error of at most 4×10−5?
Assume without proof the following:
arctan21+arctan31=arctan(2⋅3−13+2)
Using the Taylor series for arctangent, how many terms would you have to add up to approximate π with an error of at most 4×10−5?
Hint+
The series you're adding up are alternating, so it's simple to bound the error using a partial sum.
Answer+
(a) 50,000 (b) three terms (n=0 to n=2) (c) six terms (n=0 to n=5)
Full solution+
All three series we're adding up are alternating, so we can bound the absolute error in the approximation SN (the N-th partial sum) by ∣aN+1∣.
The Taylor series for arctangent is
arctan(x)=n=0∑∞(−1)n2n+1x2n+1
for every real x.
Using the Taylor series for arctangent when x=1, we see
If we use the partial sum SN, our absolute error is at most
∣aN+1∣=2N+34(22N+31+32N+31).
Several of these values are given below.
N
∣aN+1∣
1
54(251+351)≈0.028
2
74(271+371)≈0.0047
3
94(291+391)≈0.00089
4
114(2111+3111)≈0.00018
5
134(2131+3131)≈0.000038<4×10−5
So, it suffices to add the first six terms (n=0 to n=5) of the series.
Remark: if we actually wanted to approximate π this way, the series from part (a) is probably not ideal–adding 50,000 terms sounds rough. The series from (b) and (c) seem much more practical.
Suppose you wanted to approximate the number log(1.5) as a rational number using the Taylor expansion of log(1+x). How many terms would you need to add to get 10 decimal places of accuracy? (That is, an absolute error less than 5×10−11.)
Hint+
The Taylor Series is alternating, so bounding the error in a partial-sum approximation is straightforward.
Suppose you wanted to approximate the number e as a rational number using the Maclaurin expansion of ex. How many terms would you need to add to get 10 decimal places of accuracy?
(That is, an absolute error less than 5×10−11.)
You may assume without proof that 2<e<3.
Hint+
The Taylor Series is not alternating, so use Theorem 3.6.1-b in the CLP-2 text to bound the error in a partial-sum approximation.
Answer+
S13 or higher
Full solution+
The Taylor Series for ex is not alternating, so we'll use Theorem 3.6.1-b in the CLP-2 text to bound the error in a partial-sum approximation. The error in the partial-sum approximation SN is
EN=(N+1)!f(N+1)(c)(x−a)N+1
for some c strictly between a and x. In our case, a=0 and x=1. So, we want to find a value of N such that
(N+1)!f(N+1)(c)(1−0)N+1=(N+1)!ec<5×10−11
for allc in (0,1).
If c is between 0 and 1, then ec is between 1 and e. However, since the purpose of this problem is to approximate e precisely, it doesn't make much sense to use e in our bound. Since e is less than 3, then ec<3 for all c in (0,1). Now we can search for an appropriate value of N.
Suppose you wanted to approximate the number log(0.9) as a rational number using the Taylor expansion of log(1−x). Which partial sum should you use to get 10 decimal places of accuracy?
(That is, an absolute error less than 5×10−11.)
Hint+
The Taylor Series is not alternating, so use Theorem 3.6.1-b in the CLP-2 text to bound the error in a partial-sum approximation.
Answer+
S9 or higher
Full solution+
The Taylor Series for log(1−x) is not alternating, so we'll use Theorem 3.6.1-b in the CLP-2 text to bound the error in a partial-sum approximation. The error in the partial-sum approximation SN is
EN=(N+1)!f(N+1)(c)(x−a)N+1
for some c strictly between a and x. In our case, a=0 and x=101. So, we want to find a value of N such that
(N+1)!f(N+1)(c)(101)N+1<5×10−11
for allc in (0,101).
To find this N, we to know f(N+1)(x). Just like when we create a Taylor polynomial from scratch, we'll differentiate f(x) several times, and look for a pattern.
This bound provides us with a “worst-case scenario" error. We don't know exactly what c is, but we don't need to–the bound above holds for allc between 0 and 101.
Now we're ready to choose an N that results in a sufficiently small error bound.
(N+1)!f(N+1)(c)(101)N+1So, we want:9N+1⋅(N+1)1<(N+1)!N!(910)N+1(101)N+1=9N+1⋅(N+1)1<5×10−11
Suppose you wanted to approximate the number sinh(b) using the Maclaurin series of sinhx, where b is some number in (−2,1). Which partial sum should you use to guarantee 10 decimal places of accuracy?
(That is, an absolute error less than 5×10−11.)
You may assume without proof that 2<e<3.
Hint+
Use Theorem 3.6.1-b in the CLP-2 text to bound the error in a partial-sum approximation.
This theorem requires you to consider values of c between x and x=0; since x could be anything from −2 to 1, you should think about values of c between −2 and 1.
Answer+
S18 or higher
Full solution+
We'll use Theorem 3.6.1-b in the CLP-2 text to bound the error of a partial-sum approximation. The error in the partial-sum approximation SN is
EN=(N+1)!f(N+1)(c)(x−a)N+1
for some c strictly between a and x. In our case, a=0 and x is in (−2,1). So, we want to find a value of N such that
(N+1)!f(N+1)(c)(x)N+1<5×10−11
for allx in (−2,1), and allc in (−2,1).
To find this N, we to know f(N+1)(x). Just like when we create a Taylor polynomial from scratch, we'll differentiate f(x) several times, and look for a pattern.
That is, even derivatives of f(x) are f(x), and odd derivatives of f(x) are 2ex+e−x (which, incidentally, is the function called coshx).
Now we want a reasonable bound on f(N+1)(c), when c is in (−2,1). Since powers of e are always positive, we begin by noting that 0<2ex−e−x<2ex+e−x. So, all derivatives of f(x) are bounded above by 2ex+e−x.
This bound provides us with a “worst-case scenario" error. We don't know exactly what c is, but we don't need to–the bound above holds for allc between −2 and 1.
We also don't know exactly what x will be, only that it's between −2 and 1. So, we note ∣x∣N+1<2N+1.
Now we're ready to choose an N that results in a sufficiently small error bound.
(N+1)!f(N+1)(c)(x)N+1So, we want:(N+1)!9⋅2N+1<(N+1)!9⋅2N+1<5×10−11
Give reasonable bounds (both upper and lower) on the error involved in approximating f(−31) using the partial sum S6 of the Taylor series for f(x) centred at a=21.
Remark: One function with this quality is the inverse hyperbolic tangent function. (Of course it is! Actually,
hyperbolic tangent is tanh(x)=ex+e−xex−e−x, and inverse hyperbolic tangent is its
functional inverse.)
Hint+
Use Theorem 3.6.1-b in the CLP-2 text to bound the error in a partial-sum approximation.
To bound the derivative over the appropriate range, remember how to find absolute extrema.
Answer+
The error is in the interval (14⋅37−57[1+371],7⋅67−57)≈(−0.199,−0.040)
Full solution+
We'll use Theorem 3.6.1-b in the CLP-2 text to bound the error in a partial-sum approximation. The error in the partial-sum approximation SN is
EN=(N+1)!f(N+1)(c)(x−a)N+1
for some c strictly between a and x. In our case, a=21, x=−31, and we are given the nth derivative of f(x):
We want to provide actual numeric bounds for this expression. That is, we want to find the absolute max and min of
E(c)=14⋅67−57⋅[(1−c)−7+(1+c)−7]
over the interval (−31,21). Absolute extrema occur at endpoints and critical points. So, we'll start by differentiating E(c), and finding its critical points (if any) in the interval (−31,21).
We want to decide which of these numbers is biggest, and which smallest. Note that 27 is much, much bigger than (3/2)7, and both (3/4)7 and (2/3)7 are less than one. Furthermore, (3/2)7 is much larger than 2. So: [27+(2/3)7]>[(3/2)7+(3/4)7]>2. Therefore,
Recall log(1+y)=n=1∑∞n(−1)n+1yn, and set y=x+x2. The series converges when ∣y∣<1, and since we only consider values of x that are very close to 0, we can assume ∣x+x2∣<1.
Use the substitution y=x1, and compare to Question 34.
Answer+
e
Full solution+
We have an indeterminate form 1∞. We can use a natural logarithm to change this to a friendlier form. Furthermore, to avoid negative powers, we substitute y=2x1. As x grows larger and larger, y gets closer and closer to zero, while staying positive.
There are similarities between this and our given series: skipping powers of x, and a denominator that's not factorial. We'll try to manipulate it to look like our series. First, we antidifferentiate, to get a factor of (2n+2) on the bottom.
∫arctanxdx=n=0∑∞(−1)n(2n+1)(2n+2)x2n+2+C
We can find the antiderivative of arctangent using integration by parts. Let u=arctanx and dv=dx; then du=1+x21dx and v=x.
∫arctanxdx=xarctanx−∫1+x2xdx+C
Now, we use the substitution w=1+x2, dw=2xdx.
So, n=0∑∞(−1)n(2n+1)(2n+2)x2n+2=xarctanx−21log(1+x2)+C=xarctanx−21log(1+x2)+C
To find C, we evaluate both sides of the equation at x=0.
We note the derivative of the arcsine function is 1−x21=f(x2). With this insight, we can manipulate our Taylor series for f(x) into a Taylor series for arcsine.
Find the Taylor series for f(x)=log(x) centred at a=2.
Find the interval of convergence for this series.
Hint+
You know the Maclaurin series for log(1+y). Use it!
Remember that you are asked for a series expansion in powers
of x−2. So you want y to be some constant times x−2.
Answer+
log(x)=log2+n=1∑∞n2n(−1)n−1(x−2)n.
It converges when 0<x≤4.
(c)
The series for I(x) is an alternating series (that is, the sign alternates)
with successively smaller terms that converge to zero. So the error introduced by
truncating the series is between zero and the first omitted term. In this case, the
first omitted term was negative (−0.0000094). So the exact value of I(1/2)
is the approximate value found in part (b) plus a negative number whose
magnitude is smaller than 0.00001=10−5.
So the approximate value of part (b) is larger than the true value
of I(1/2).
The signs of successive terms in this series alternate. Futhermore the
magnitude of the nth term decreases with n. Hence, by the alternating
series test, I lies between
51−71+181 and
51−71+181−3!(11)1.
So
The signs of successive terms in this series alternate. Futhermore the
magnitude of the nth term decreases with n. Hence, by the alternating
series test, I lies between
n=0∑Nn!(2n+3)(−1)n22n+31 and
n=0∑N+1n!(2n+3)(−1)n22n+31, for every
N. The first few terms are, to five decimal places,
n
0
1
2
3
n!(2n+3)(−1)n22n+31
0.04167
-0.00625
0.00056
-0.00004
Allowing for a roundoff error of 0.000005 in each of these,
I must be between
(c)
The series for I(x) is an alternating series (that is, the sign alternates)
with successively smaller terms that converge to zero. So the error introduced by truncating
the series is no larger than the first omitted term. So the magnitude of
−55!1+⋯ is no larger than 0.0017. Allowing for a roundoff
error of at most 0.0001 in each of the two terms −0.0556+0.0104
The function Σ(x) is defined by Σ(x)=∫0xtsintdt.
Find the Maclaurin series for Σ(x).
It can be shown that Σ(x) has an absolute maximum which occurs at its smallest
positive critical point (see the graph of Σ(x) below). Find this critical
point.
Use the previous information to find the maximum value
of Σ(x) to within ±0.01.
Hint+
See Example 3.6.14 in the
CLP-2 text.
For part (b), review the fundamental theorem of calculus in § 1.3
of the
(b)
The critical points of Σ(x) are the solutions of Σ′(x)=0.
By the fundamental theorem of calculus Σ′(x)=xsinx,
so the critical points of Σ(x) are x=±π,±2π,⋯.
The absolute maximum occurs at x=π.
The series for Σ(π) is an alternating series (that is, the sign alternates)
with successively smaller terms that converge to zero.
So the error introduced by truncating the series is no larger than the first omitted term. So
Σ(π)=3.1416−1.7226+0.5100−0.0856+0.0091=1.8525
with an error of magnitude at most 0.0007+0.0005 (the 0.0005 is the maximum
possible accumulated roundoff error in all five retained terms).
The series for I(1) is an alternating series with decreasing
successive terms that converge to zero. So approximating
I(1) by −21+4!31 introduces an error
between 0 and −6!51. Hence I(1)<−21+4!31.
(b)
I(1)=2!1−4!1+6!1−8!1+⋯=0.5−0.0416˙+0.00139−0.000024+⋯=0.460.
The error analysis is in part (c).
(c) The series for I(1) is an alternating series with decreasing
successive terms that convege to zero. So approximating
I(1) by 2!1−4!1+6!1 introduces an error
between 0 and −8!1. So I(1)<2!1−4!1+6!1<0.460.
The law of the instrument says “If you have a hammer then everything looks like a nail” — it is really a
description of the “tendency of jobs to be adapted to tools rather than adapting tools to jobs.” (Quote
from Silvan Tomkins's Computer Simulation of Personality: Frontier of Psychological Theory. See also
Birmingham screwdrivers.) Anyway, this is a long way of saying that just because we know how to compute things
using Taylor series doesn't mean we should neglect other techniques.
Using Newton's method, approximate the constant 32 as a root of the function g(x)=x3−2. Using a calculator, make your estimation accurate to within 0.01.
for all real numbers x. Using the fact that this is an alternating series, how many terms would you have to add for the partial sum to estimate 32 with an error less than 0.01?
Hint+
For Newton's method, recall we approximate a root of the function g(x) in iterations: given an approximation xn, our next approximation is xn+1=xn−g′(xn)g(xn).
To gauge your error, note that from approximation to approximation, the first digits stabilize. Keep refining your approximation until the first two digits stop changing.
Answer+
(a) 33≈1.26 (b) 12 terms (S11)
Full solution+
For Newton's method, recall we approximate a root of the function g(x) in iterations: given an approximation xn, our next approximation is xn+1=xn−g′(xn)g(xn). In our case,
xn+1=xn−3xn2xn3−2=32(xn+xn21).
We want to start somewhere reasonably close to the actual root we want, so let's set x0=1. (Your starting point may vary.)
Let f(x)=arctan(x3). Write f(10)(51) as a sum of rational numbers with an error less than 10−6 using the Maclaurin series for arctangent.
Hint+
First, modify your known Maclaurin series for arctangent into a Maclaurin series for f(x). This series is not hard to repeatedly differentiate, so use it to find a power series for f(10)(x).
Remark: if we had calculated f(10)(1/5) directly, using derivative rules instead of series, we would have found an exact value; however, our value here is easier to find, and is highly accurate (if not exact).
Assume (without proof) that f(n)(0)=0 for all whole numbers n. Find the Maclaurin series for f(x).
Where does the Maclaurin series for f(x) converge?
For which values of x is f(x) equal to its Maclaurin series?
Hint+
Remember ex is never negative for any real number x.
Answer+
(a)
(b) the constant function 0 (c) everywhere (d) only at x=0
Full solution+
To sketch y=f(x), we note the following:
f(x) is never negative.
x→±∞limf(x)=e0=1, so the curve has horizontal asymptotes in both directions at y=1.
x→±0limf(x)=x→±0lime1/x21=u→+∞limeu1=0=f(0), so the curve is continuous at x=0.
For x=0, f′(x)=x32e−1/x2, so our curve is decreasing on (−∞,0) and increasing on (0,∞)
For x=0, f′′(x)=2x−6(2−3x2)e−1/x2, so our curve is concave up on (−2/3,2/3), and concave down elsewhere.
Since f(n)(0)=0 for all whole n (that is, the graph is really quite flat at the origin), and since f(0)=0, the Maclaurin series for f(x) is n=0∑∞n!0xn=0.
The Maclaurin series converges for all real values of x (to the constant 0).
Since ey>0 for any real y, we see f(x)=0 only when x=0. So, f(x) is only equal to its Maclaurin series at the single point x=0.
Remark: the function f(x) is an example of a function whose Maclaurin series converges, but not to f(x)! To describe this behaviour, we say f(x) is non-analytic.
Suppose f(x) is an odd function, and f(x)=n=0∑∞n!f(n)(0)xn. Simplify
n=0∑∞(2n)!f(2n)(0)x2n.
Hint+
Since f(x) is odd, f(−x)=−f(x) for all x in its domain. Consider the even-indexed terms and odd-indexed terms of the Taylor series.
Answer+
0
Full solution+
Since f(x) is odd, f(−x)=−f(x) for all x in its domain. We plug this into our power series, then consider the even-indexed terms and the odd-indexed terms separately.