10.14 Finding Taylor or Maclaurin Series for a Function
Taylor who now? And no, weโre not talking about the iconic artist that has reached global audiences shown below. ๐ธ
Taylor Swift. Image courtesy of Wikimedia Commons
๐ง This is an AP Calculus BC topic only! If you are taking Calculus AB, you can skip this material. If youโre taking AP Calculus BC, here you go! โฌ๏ธ
๐ค Whatโs a Taylor Series?
Even so, Taylor series are as iconic as Taylor Swift in a sense that they combine the following ideas:
- [From 10.11] We can approximate functions as polynomials using the Taylor approximations theorem.
- [From 10.13] We can represent functions as power series, which is made up of a sequence and a real number serving as its center.
Taylor Series: For a function f(x), its Taylor series approximation at x=a is:
n=0โโโn!f(n)(a)โโ
(xโa)n=f(a)+fโฒ(a)(xโa)+2!fโฒโฒ(a)โ(xโa)2+3!fโฒโฒโฒ(a)โ(xโa)3+...+n!f(n)(a)โ(xโa)n
Where f(n)(a) is the nth deriviative of the function and f(0)(a)=f(x).
A Taylor series, essentially, is a representation of a function as an infinite sum of terms that are calculated from the values of the function's derivatives at a single point. It allows us to approximate functions and calculate their values at different points. โ
You might also come across a series called Maclaurin series. If you do, donโt be scared! In fact, Taylor series centered at x=0 are so common that they have a special name called the Maclaurin series.
๐ก A Taylor polynomial for f(x) is a partial sum of the Taylor series for f(x).
In other words, a Taylor polynomial is a finite polynomial with a limited number of terms, while a Taylor series is an infinite summation of terms. To construct a Taylor polynomial of degree ๐ for a function f(x) at x=c, youโd have to evaluate f and its first n derivatives at x=c.
Conversely, to form the Taylor series of f, itโs helpful to identify a pattern describing the nth derivative of f at x=c. When identifying Taylor series, pattern recognition will come up as a good skill to have!
โ๏ธ Important Maclaurin Series to Remember
One thing to note: We emphasize learning Maclaurin series as they are Taylor Series centered at x=0. If you are given a center value in an exam setting and you remember the Maclaurin series representation, all you need to do is add the radius term (e.g., "x - cโ instead of just โxโ) in every term and then simplify the terms. Study smart! ๐ง
f(x)1โx1โ1+x1โ1+x21โ1โx21โexsin(x)cos(x)ln(1+x)(1+x)aโSeriesRepresentationโn=0โโxnโn=0โโ(โx)nโn=0โโ(โx)2nโn=0โโx2nโn=0โโn!xnโโn=0โโ(โ1)n(2n+1)!x2n+1โโn=0โโ(โ1)n(2n)!x2nโโn=0โโ(โ1)nnxnโโn=1โโ(naโ)xnโExpandedForm1+x+x2+x3+...1โx+x2โx3+...1โx2+x4โx6+...1+x2+x4+x6+...1+x+2x2โ+3!x3โ+...xโ3!x3โ+5!x5โ+...1โ2x2โ+4!x4โ+...xโ2x2โ+3x3โ+...1+ax+2a(aโ1)โx2+3!a(aโ1)(aโ2)โx3+...+n!a(aโ1)(aโ2)...(aโ(aโ(nโ1))โxnโโ
Youโll notice a couple things:
- The first four are variations of the geometric series, with the multiplying factor being various powers of x. The series (1+x)a is also known as the binomial series with any arbitrary value of a.
- The Maclaurin series for sin(x), cos(x), and ex provides the foundation for constructing the Maclaurin series for other functions!
If you take a closer look at observation (2), youโll find that if you add the Maclaurin series terms of sin(x) and cos(x), youโll get the Maclaurin series for ex. Hence, there three functions are important โmust knowโ Maclaurin functions if you are pressed for time! The reason for this phenomenon is that the sine function is an odd function, so all the terms have odd powers, which is a contrast to the cosine function, which is even, and thus have even powers.
โ Taylor Series Practice Problems
Now that weโve introduced the concept of Taylor series, letโs deal with some practice problems! ๐
โ๏ธ Taylor Series Question 1
Find the series representation of the Taylor series for f(x)=cos(3x) centered at x=0.
The first thing screaming at you from the prompt is that the Taylor series is centered at x=0โฆ which indicates that weโre dealing with a Maclaurin function!
From our notes above, letโs pull the series representation for the parent cosine function, cos(x):
n=0โโโ(โ1)n(2n)!x2nโ
Hereโs the easy part: we replace x with 3x and simplify wherever needed:
n=0โโโ(โ1)n(2n)!(3x)2nโ=n=0โโโ(โ1)n(2n)!32nx2nโ=n=0โโโ(โ1)n(2n)!9nx2nโ
Thatโs all you need to do! Again, the more comfortable you can with recalling the major players in their Maclaurin series form, the quicker youโll be in solving these problems!
โ๏ธ Taylor Series Question 2a
Find the Taylor series centered at x=5 for the function f(x)=e2x.
Letโs find the first couple derivatives of this function and see if we can notice a pattern:
f(x)=e2x
fโฒ(x)=2e2x
fโฒโฒ(x)=4e2x=(2)2e2x
f(3)(x)=8e2x=(2)3e2x
f(4)(x)=16e2x=(2)4e2x
That looks like a pattern to me! Youโll also notice that 2 is raised to the nth power when weโre looking for the nth derivative. Hmmmโฆ ๐ณ
This would mean that our Taylor series will perhaps look somewhat like this:
n=0โโโn!xnโ=>n=0โโโn!(2)ne2xxnโ
Weโre not done yet, though! Remember that our center is x=5. This means that we have to incorporate this in the xn term and plug x=5 into the e2x term. We leave the โnโs unchanged. These changes will give us:
n=0โโโn!(2)ne2xxnโ=>n=0โโโn!(2)ne2โ5(xโ5)nโ=n=0โโโn!(2)ne10(xโ5)nโ
โ๏ธ Taylor Series Question 2b
List the first four terms of the Taylor series centered at x=5 for the function f(x)=e2x.
Fear not! All you need to do is to plug n = 0, 1, 2, and 3 into the simplified Taylor series functions above as shown in the table below:
n0123โTerm0!(2)0e10(xโ5)0โ=e101!(2)1e10(xโ5)1โ=2e10(xโ5)2!(2)2e10(xโ5)2โ=24e10(xโ5)2โ=2e10(xโ5)23!(2)3e10(xโ5)3โ=3โ2โ18e10(xโ5)3โ=34e10(xโ5)3โโโ
โญ Summing Up Taylor and Maclaurin Series
Taylor (and by extension, Maclaurin) series tie in the polynomial approximation and power series theorem to allow for a convenient way to represent various functions as infinite series. For instance, the Taylor series for 1โx1โ reflects a geometric series, while the Taylor series for ex relate sin(x) and cos(x) to their properties as odd and even functions, respectively. ๐
Knowing the Maclaurin series for common functions that show up in AP Calculus will help in identifying Taylor series representations and listing terms for Taylor series centered at various real numbers. Good luck! ๐ฏ