You learn to find the radius and interval of convergence of a power series (endpoints included), to derive new series from the geometric series, and to write the Taylor/Maclaurin series of a function.
power seriescenterradius of convergenceinterval of convergenceendpointterm-by-term differentiationterm-by-term integrationTaylor seriesMaclaurin seriesTaylor polynomial
So far we dealt with number series. This week we add x to the terms: a series like ∑cnxn is a separate number series for each value of x. It converges for some x and diverges for others. The set of x where it converges is always an interval, and finding this interval is the most dependable question on the exam. In the second half we do the opposite: we write a given function (ex, sinx, ln(1+x)) as an infinite polynomial. This is also the basis of how calculators and programming languages compute Math.sin.
Golden rules:
For the radius, apply the ratio test (sometimes the root test), and keep ∣x−a∣ outside.
The endpoints are always checked separately. The ratio test gives L=1 there and does not decide.
Derive from a known series: substitute, multiply, differentiate, integrate. Much faster than computing from scratch with derivatives.
The Taylor coefficient is cn=n!f(n)(a). You also use it backwards: from the coefficient to the derivative.
Power series and the radius of convergence
Definition. A power series centered at a:
∑n=0∞cn(x−a)n=c0+c1(x−a)+c2(x−a)2+…
Theorem. For every power series one of these three cases holds:
It converges only at x=a (R=0).
It converges for every x (R=∞).
There is an R>0: for ∣x−a∣<R it converges absolutely, for ∣x−a∣>R it diverges. For ∣x−a∣=R (the endpoints) the theorem says nothing.
R is called the radius of convergence, and the interval of x where it converges is called the interval of convergence.
Template for finding the interval
1) Ratio test: L(x) = lim |a_(n+1)/a_n| (a_n is the WHOLE term, x included)2) Solve L(x) < 1 → |x - a| < R3) Plug x = a - R and x = a + R into the series; test the resulting NUMBER series4) Write the interval: ends with [ or ( as appropriate
x=1: ∑n2n(−2)n=∑n(−1)n, converges by the alternating test.
Interval: [1,5).
Example 2.∑n!xn: the ratio is n+1∣x∣→0, for every x. R=∞.
Example 3.∑n!xn: the ratio is (n+1)∣x∣→∞ (x=0). R=0.
Example 4.n=0∑∞4n(−1)nx2n. There are only even powers; apply the ratio test to the whole term: 4x2<1, that is, ∣x∣<2. At the endpoints x2=4, the terms are (−1)n, diverges. The interval is (−2,2). In fact this is a geometric series with ratio −x2/4, with sum 1+x2/41.
PITFALL · x with a coefficient. If you see (2x+1)n or (3x−6)n, the center and radius cannot be read off directly. Solve the inequality ∣2x+1∣<1 for x: −1<x<0. The center is −21, R=21. Writing "R=1" is a common mistake.
Writing functions as power series
The main source is the geometric series:
1−x1=∑n=0∞xn,∣x∣<1.
Substitution. Replace x with −x2: 1+x21=∑(−1)nx2n, ∣x∣<1.
Changing the center. Write x1 around a=2: x1=2+(x−2)1=21⋅1+2x−21=∑n=0∞2n+1(−1)n(x−2)n, ∣x−2∣<2.
Term-by-term differentiation and integration. Inside the interval of convergence, the derivative and integral of a power series can be taken term by term and the radius does not change (the endpoints may).
If a=0 it is called the Maclaurin series. The sum of the first n+1 terms is called the Taylor polynomial of degree n, Pn(x).
Intuition.Pn is the unique polynomial of degree n that shares with f at the point a the same value, the same slope, the same curvature (everything up to the nth derivative). As the degree increases, it hugs f better near a.
Maclaurin series to memorize
Function
Series
Interval
1−x1
∑xn
(−1,1)
ex
∑n!xn
R
sinx
∑(2n+1)!(−1)nx2n+1
R
cosx
∑(2n)!(−1)nx2n
R
ln(1+x)
∑n≥1n(−1)n+1xn
(−1,1]
arctanx
∑2n+1(−1)nx2n+1
[−1,1]
sin is an odd function, and its series has only odd powers. cos is even, with only even powers. This is a checking tool.
Example 5 (Taylor from the definition).f(x)=lnx, a=1. f(1)=0, f′=x−1, f′′=−x−2, f′′′=2x−3, and in general f(n)(x)=(−1)n+1(n−1)!x−n. At a=1, f(n)(1)=(−1)n+1(n−1)!, and the coefficient is n!(−1)n+1(n−1)!=n(−1)n+1:
lnx=(x−1)−2(x−1)2+3(x−1)3−…
Example 6 (from a known series).e−x2: in the series of eu, put u=−x2: 1−x2+2!x4−3!x6+… One line instead of taking six derivatives.
Example 7 (approximation with a Taylor polynomial). The polynomial P4 of cosx is 1−2x2+24x4. For x=0.5 it gives 1−0.125+0.0026042=0.8776042. The true value is cos0.5=0.8775826. Four correct digits with only three terms. As you move away from the center (like x=3) the same polynomial gets worse; more terms are needed. Estimating how large the error is is the topic of next week.
Example 8 (product). The first three nonzero terms of the Maclaurin series of exsinx: multiply the two series like polynomials and add up the terms up to x3.
When multiplying, add each degree separately: the x3 term comes from 1⋅(−6x3) and 2x2⋅x.
Radius with the root test
If the whole term is an nth power, the root test is cleaner: for ∑nn(x−1)n, n∣an∣=n∣x−1∣→0, for every x. R=∞. For ∑(2nn+1)nxn the root is 2nn+1∣x∣→2∣x∣, R=2.
TIP · from the coefficient to the derivative.f(k)(a)=k!×[coefficient of (x−a)k]. In questions like “find f(20)(0)”, build the series from a known series, read off the coefficient of x20, and multiply by 20!.
Common mistakes
Wrong
Correct
Not checking the endpoints
Plug x=a±R into the series and test separately
Giving the same answer for both ends
One may be an alternating series, the other a positive series
R=1 for (2x+1)n
∣2x+1∣<1⇒R=21
Forgetting x in the ratio test
an is the whole term, ∣x−a∣ included
Deriving a series by integrating and skipping the constant
Plug in x=a and find C
Thinking the radius changes with differentiation
R is the same; only the endpoints may change
Forgetting n! in the Taylor coefficient
cn=f(n)(a)/n!
Writing even powers in the series of sinx
sin: odd powers, cos: even
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
Question 1medium
Find the radius and interval of convergence of n=1∑∞n3nxn.
Show answer
R=3, interval [−3,3)
Ratio test: anan+1=3∣x∣⋅n+1n→3∣x∣. For <1 we need ∣x∣<3, R=3.x=3: ∑n1, harmonic, diverges.x=−3: ∑n(−1)n, alternating harmonic, converges. The interval is [−3,3).
Question 2easy
Find the radius of convergence of n=0∑∞n!xn.
Show answer
R=0
Ratio: n!∣x∣n(n+1)!∣x∣n+1=(n+1)∣x∣→∞ (for every x=0). The series converges only at the center, x=0. R=0.
Question 3easy
Find the radius of convergence of n=0∑∞n!xn.
Show answer
R=∞
Ratio: n+1∣x∣→0<1, for every x. The series converges everywhere, R=∞, the interval is (−∞,∞). (The sum of this series is ex.)
Question 4medium
Find the interval of convergence of n=1∑∞n25n(x−2)n.
Show answer
[−3,7]
Ratio: 5∣x−2∣⋅(n+1)2n2→5∣x−2∣. ∣x−2∣<5, that is, −3<x<7.x=7: ∑n21, converges. x=−3: ∑n2(−1)n, converges absolutely. Both endpoints included: [−3,7].
Question 5hard
Find the interval of convergence of n=1∑∞n(2x+1)n.
Show answer
[−1,0)
Ratio: ∣2x+1∣n+1n→∣2x+1∣<1, that is, −1<x<0. The center is −21, R=21.x=0: ∑n1, p=21, diverges.x=−1: ∑n(−1)n, converges by the alternating test. The interval is [−1,0).
Question 6medium
Find the interval of convergence of n=1∑∞4nnxn.
Show answer
(−4,4)
Ratio: 4∣x∣⋅nn+1→4∣x∣, R=4.x=±4: the terms are n(±1)n, they do not go to zero, so it diverges at both ends. The interval is (−4,4).
Question 7easy
Write 1+3x1 as a power series centered at 0 and give its radius of convergence.
Show answer
∑n=0∞(−3)nxn, R=1/3
In the formula 1−u1=∑un (∣u∣<1), put u=−3x.1+3x1=∑(−3x)n=∑(−3)nxn. The condition is ∣3x∣<1, R=31.
Question 8medium
Using 1−x1=∑n=0∞xn, find the sum n=1∑∞2nn.
Show answer
2
Differentiate term by term: (1−x)21=∑n=1∞nxn−1. Multiply by x: (1−x)2x=∑nxn.x=21 (inside the interval): 1/41/2=2.
Question 9medium
Find the coefficient of (x−2)3 in the Taylor series of f(x)=ex centered at a=2.
Show answer
e2/6
The Taylor coefficient is cn=n!f(n)(a). All derivatives of ex are ex, so f′′′(2)=e2.c3=3!e2=6e2≈1.2315.
Question 10medium
Find the coefficient of x4 in the Maclaurin series of x2cosx.
Show answer
−1/2
cosx=1−2x2+24x4−… Multiply this by x2: x2−2x4+24x6−…The coefficient of x4 is −21. You do not need to differentiate; multiplying the known series is enough.
Question 11hard
Let f(x)=x2ex. Find f(10)(0).
Show answer
90
Maclaurin series: x2ex=∑n=0∞n!xn+2. The x10 term is at n=8: the coefficient is 8!1. On the other hand the coefficient is 10!f(10)(0). Equate them: f(10)(0)=8!10!=10⋅9=90.
Question 12hard
Find the second-degree Taylor polynomial P2(x) of f(x)=x at a=4 and use it to approximate 4.1.
Show answer
P2=2+4x−4−64(x−4)2, 4.1≈2.02484
f(4)=2. f′(x)=21x−1/2, f′(4)=41. f′′(x)=−41x−3/2, f′′(4)=−41⋅81=−321.P2=2+41(x−4)−321⋅2(x−4)2=2+4x−4−64(x−4)2.x=4.1: 2+0.025−640.01=2.02484375. (The true value is 2.0248457…)
Verification: Radii were checked at large n using the logarithm of the coefficient ratio, endpoint behaviors and series sums with partial sums, and Taylor coefficients by comparing the series sum with the function value and with Leibniz's rule in node (verify/MAT1052/05.mjs).
Review card
Power series: Σ c_n (x-a)^n, center a
R: ratio test |a_(n+1)/a_n| → |x-a|·K < 1 → R = 1/K
R=0 (only x=a), R=∞ (every x), otherwise |x-a|<R
CHECK THE ENDPOINTS SEPARATELY: plug in x=a±R, p-series / alternating / nth-term
Interval: (a-R,a+R), [ ), ( ], [ ] whichever comes out
(2x+1)^n → |2x+1|<1 → center -1/2, R=1/2 (separate the coefficient!)
1/(1-x) = Σx^n (|x|<1). substitute u: 1/(1+x^2) = Σ(-1)^n x^(2n)
Differentiate/integrate term by term, R DOES NOT CHANGE (endpoints may)
Taylor: c_n = f^(n)(a)/n!. a=0 → Maclaurin
e^x = Σ x^n/n! sin x = Σ(-1)^n x^(2n+1)/(2n+1)! cos x = Σ(-1)^n x^(2n)/(2n)!
ln(1+x) = Σ(-1)^(n+1) x^n/n (-1<x≤1) arctan x = Σ(-1)^n x^(2n+1)/(2n+1) [-1,1]
f^(k)(a) = k! · coefficient of (x-a)^k