You CAN Ace Calculus  

17calculus > infinite series > taylor series 
Topics You Need To Understand For This Page
Calculus Main Topics
Single Variable Calculus 

MultiVariable Calculus 
Tools
math tools 

general learning tools 
additional tools 
Related Topics and Links
external links you may find helpful 

ATTENTION INSTRUCTORS: The new 2018 version of 17calculus will include changes to the practice problem numbering system. If you would like advance information to help you prepare for spring semester, send us an email at 2018info at 17calculus.com. 
Join Amazon Student  FREE TwoDay Shipping for College Students 

How to Read and Do Proofs: An Introduction to Mathematical Thought Processes 
Taylor and Maclaurin Series 

on this page: ► taylor series ► taylor polynomial ► remainder and error bounds ► list of common power and taylor series 
Difference Between Power Series and Taylor Series
Taylor series are a specific case of Power series where the constants ( usually functions of n ) are related to the derivative of the function. Many of the same techniques that work for one will work for the other. Taylor Series or Taylor Polynomial?
There is a subtle difference in terminology on this page that you need to notice right away. 
The main idea of Taylor Series Expansion is to replace a complicated function with a series in the form of an infinite polynomial. Polynomials are very easy to work with and have very clearly known properties. If a complicated function can be expressed as a polynomial, then there are many things that can be done like integration, which is very easy with a polynomial. 

Before we get started with the details of finding Taylor and Maclaurin Series, let's get an intuitive idea of what we are talking about from this video. This video contains some really cool graphics to give you an overview of what Taylor Series means and what it is like. This is a great video.
3Blue1Brown  Taylor series  Chapter 10, Essence of calculus [22min19secs]  
Taylor Series 

Taylor Series Expansion is done around a specific point and within a specified interval. Within that interval (called the interval of convergence) the infinite series is equivalent to the function. Here is how it works.
To express a function \(f(x)\) as a polynomial about a point \( x=a\), we use the series
\(\displaystyle{
f(x) = \sum_{n=0}^{\infty}{\frac{f^{(n)}(a)}{n!}(xa)^n} = }\)
\(\displaystyle{
f(a) + \frac{f'(a)}{1!}(xa) + }\)
\(\displaystyle{
\frac{f''(a)}{2!}(xa)^2 + . . .
}\)
where we define \( 0! = 1 \) and \( (xa)^0 = 1 \).
Maclaurin Series  A Maclaurin Series is a special case of a Taylor series where expansion is done about the point \( x=0 \), i.e. in the above equation, \(a=0\). 
In order to have a complete definition, we also need to know the interval on which this equality holds.
This first video clip is a quick introduction to the formula given above. It is not as comprehensive as the second video but it will get you started or you can watch it to refresh your memory. If you are just learning about Taylor series, this video will not give you enough detail about the entire topic. So it is better to watch the second video after watching this one or instead of this one.
MIT OCW  Lec 38  MIT 18.01 Single Variable Calculus, Fall 2007  
Here is a great video explaining Taylor series and how to use it.
Dr Chris Tisdell  What is a Taylor series?  
Here is a video with an informal proof of the Taylor Series Expansion.
PatrickJMT  Taylor / Maclaurin Series Expansion  Proof of the Formula  
Radius and Interval of Convergence
Radius and Interval of Convergence
This section is part of the discussion found on the radius and interval of convergence page, where you will find more information, videos and practice problems. 
Once the Taylor series or power series is calculated, we use the ratio test to determine the radius convergence and other tests to determine the interval of convergence. Without knowing the radius and interval of convergence, the series is not considered a complete function (This is similar to not knowing the domain of a function. As we say in the page on domain and range, a fully defined function always contains information about the domain, either implicitly or explicitly stated.) In this case, we can't leave off information about where the series converges because the series may not hold for all values of \(x\).
Using The Ratio Test 

The ratio test looks like this. We have a series \( \sum{a_n} \) with nonzero terms. We calculate the limit
\( \displaystyle{\lim_{n \to \infty}{\left \frac{a_{n+1}}{a_n} \right} = L} \).
There are three possible cases for the value \(L\).
\( L < 1 \): The series converges absolutely.
\( L = 1 \): The ratio test is inconclusive.
\( L > 1 \): The series diverges.
So we use the first case ( \(L<1\), since we want convergence ) and we set up the inequality
\( \displaystyle{\lim_{n \to \infty}{\left \frac{a_{n+1}}{a_n} \right} < 1} ~~~~~ [ 1 ]\)
Key: Do not drop the absolute values.
Radius of Convergence 

To find the radius of convergence, we need to simplify the inequality [1] to the point that we have
\( \left xa \right < R \). This gives the radius of convergence as \(R\). This seems very simple but you need to be careful of the notation and wording your textbooks. Some textbooks use a small \(r\). Some textbooks ask for the ratio of convergence in which case you need to give the answer as \( \rho = 1/R \). This has always seemed kind of strange to me but there must be some reason for it. However, on this site, whenever we talk about the radius of convergence in this context, we will use \(R\) as defined above.
There are three possible cases for the radius of convergence.
\(R = 0\)  series converges only at the point \(x = a\) 
\( 0 < R < \infty \)  series converges in the interval 
\(R = \infty \)  series converges for all \(x\) 
The interesting thing is that we have a strict inequality in \( 0 < R < \infty \) and, because of the definition of the ratio test, we have no idea what happens when \( \left xa \right = R \). The series could converge or diverge. The ratio test doesn't give us a clue on what happens in that case. That's where we need to find the interval of convergence, which we discuss next.
Interval of Convergence 

We use the radius of convergence, \(R\), to calculate the interval of convergence as follows
\(
\begin{array}{rcccl}
& & \left xa \right & < & R \\
R & < & xa & < & R \\
R + a & < & x & < & R + a
\end{array}
\)
So now we have an open interval \( (R+a, R+a) \) in which the series converges. Now we need to look at the endpoints to determine what goes on. To do that we substitute each endpoint individually for \(x\) into the series and then use the other series test to determine convergence or divergence.
Notice when we substitute \(x=R+a\) into the \((xa)^n\) term, we end up with \((R)^n\) which can be simplified to \((1)^n R^n\). Now we have an alternating series. So often, the alternating series test can be used to determine convergence or divergence. The point is that, using other tests, we need to definitively determine convergence or divergence at each endpoint. The result will be an open interval, a halfopen interval or a closed interval. We call this interval, the interval of convergence.
Notice the difference between the terms radius of convergence and interval of convergence. The radius of convergence gives information about the open interval but says nothing about the endpoints. The interval of convergence includes the radius of convergence AND information about convergence or divergence of the endpoints.
This section is part of the discussion found on the radius and interval of convergence page, where you will find more information, videos and practice problems. 
Taylor Polynomial 

To approximate a complicated function with a polynomial, we choose a finite number of terms from the Taylor series, usually between \( 2\) and \(5\) and, as long we stay 'near' \( x=a \), then the Taylor Series approximation will work for most purposes. The further you go away from that point, the less accurate the approximation, until the polynomial veers off. However, you can compensate, up to a point, by building a higher order approximation. How close 'near' is depends on the problem as well as the number of terms required. We use the word 'order' to specify the number of terms we want. For example, if we specify a 'second order' approximation, then the highest power is \(2\).
Tangent Line 

The tangent line at a point is just the first order Taylor polynomial. 
However, since we are talking about approximating a function, we often want to know how close of an approximation we have. It is nearly impossible to know exactly how close we are. So, we use the idea of error bounds to get a known upper limit on the error, i.e. we can get a value that we know the error is not above. Of course, this is approximate too but we do have a theorem that tells us we can find an upper bound and how to get it. This is discussed in the following video.
Here is a great video explaining Taylor polynomials and how to use them. Although the second part contains information about the remainder and error bounds, which are discussed on a separate page, it will help you to watch all of this video to get a good introduction to this topic.
Dr Chris Tisdell  What is a Taylor Polynomial?  
Remainder and Error Bounds
Remainder and Error Bounds
Once you have found the infinite Taylor Series, you will often be asked to approximate the original function with a finite number of terms from the Taylor Series. Doing so introduces error since the finite Taylor Series does not exactly represent the original function. To handle this error we write the function like this.
\(\displaystyle{
f(x) = f(a) + \frac{f'(a)}{1!}(xa) + \frac{f''(a)}{2!}(xa)^2 + . . . + \frac{f^{(n)}(a)}{n!}(xa)^n + R_n(x)
}\)
where \(R_n(x)\) is the remainder. Notice we are cutting off the series after the nth derivative and \(R_n(x)\) represents the rest of the series.
Lagrange's formula for this remainder term is
\(\displaystyle{ R_n(x) = \frac{f^{(n+1)}(z)(xa)^{n+1}}{(n+1)!} }\)
This looks very similar to the equation for the Taylor series terms . . . and it is, except for one important item. Notice that in the numerator, we evaluate the \(n+1\) derivative at \(z\) instead of \(a\). So, what is the value of \(z\)? \(z\) takes on a value between \(a\) and \(x\), but, and here's the key, we don't know exactly what that value is. So this remainder can never be calculated exactly. However, since we know that \(z\) is between \(a\) and \(x\), we can determine an upper bound on the remainder and be confident that the remainder will never exceed this upper bound. So how do we do that?
Upper Bound on the Remainder (Error) 

We usually consider the absolute value of the remainder term \(R_n\) and call it the upper bound on the error, also called Taylor's Inequality.
\(\displaystyle{ \abs{R_n(x)} \leq \frac{\abs{f^{(n+1)}(z)(xa)^{n+1}} }{(n+1)!} }\)
Choosing z
To find an upper bound on this error, we choose the value of \(z\) using these rules.
 If the \(n+1\) derivative contains a sine or cosine term, we replace the sine or cosine term with one, since the maximum value of sine or cosine is one. This seems somewhat arbitrary but most calculus books do this even though this could give a much larger upper bound than could be calculated using the next rule. [ As usual, check with your instructor to see what they expect. ]
 If we do not have a sine or cosine term, we calculate \(\abs{f^{(n+1)}(z)}\) and then choose the value of \(z\) between \(a\) and the \(x\)value that we are estimating that makes this term a maximum. Sometimes, we need to find the critical points and find the one that is a maximum. Since we have a closed interval, either \([a,x]\) or \([x,a]\), we also have to consider the end points. Many times, the maximum will occur at one of the end points, but not always.
Okay, so what is the point of calculating the error bound? The point is that once we have calculated an upper bound on the error, we know that at all points in the interval of convergence, the truncated Taylor series will always be within
\(\abs{R_n(x)}\) of the original function \(f(x)\). This \(\abs{R_n(x)}\) is a mathematical 'nearness' number that we can use to determine the number of terms we need to have for a Taylor series.
This section is part of the discussion found on the remainder and error bounds page, where you will find more information, videos and practice problems. 
List of Common Power and Taylor Series
This panel contains a list of common power and Taylor series. These are often used to build other series. Videos and practice problems related to determining Taylor series using these series can be found on the power series page.
function 
power series 
convergence interval 


\(\displaystyle{ \frac{1}{1x} }\) 
\(\displaystyle{ \sum_ {n=0}^{\infty}{x^n} }\) 
\( 1 < x < 1 \) 
power series 

\(e^x\) 
\(\displaystyle{ \sum_{n=0}^{x^n}{\frac{x^n}{n!}} }\) 
\(\displaystyle{ 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots }\) 
\(\infty < x < \infty\) 
Maclaurin series 
\(\ln(x)\) 
\(\displaystyle{ \sum_{n=0}^{\infty}{ \frac{(1)^{n+1} (x1)^n}{n} } }\) 
\(\displaystyle{ (x1)  \frac{(x1)^2}{2} + \frac{(x1)^3}{3}  \frac{(x1)^4}{4} + \cdots }\) 

Taylor series about \( x = 1 \) 
\(\sin(x)\) 
\(\displaystyle{ \sum_{n=0}^{\infty}{ \frac{(1)^n x^{2n+1}}{(2n+1)!} } }\) 
\(\displaystyle{ x  \frac{x^3}{3!} + \frac{x^5}{5!}  \frac{x^7}{7!} + \cdots }\) 
\(\infty < x < \infty\) 
Maclaurin series 
\(\cos(x)\) 
\(\displaystyle{ \sum_{n=0}^{\infty}{ \frac{(1)^n x^{2n}}{(2n)!} } }\) 
\(\displaystyle{ 1  \frac{x^2}{2!} + \frac{x^4}{4!}  \frac{x^6}{6!} + \cdots }\) 
\(\infty < x < \infty\) 
Maclaurin series 
Search 17Calculus
Practice Problems 

Instructions   Unless otherwise instructed, find the Taylor series of these functions about the given point (if no point is given, find the Maclaurin series). Use the Taylor Series Expansion to work these problems unless it is explicitly stated to use a known series. Give your answers in exact terms and completely factored.
Level A  Basic 
Practice A01  

Find the Maclaurin polynomials of degrees 1, 2, 3 and 5 for \(f(x)=e^x\). Plot \(f(x)\) and all 4 polynomials on the same set of axes, clearly labeling each function.  
solution 
Practice A02  

Write the Maclaurin series for \(f(x)=3x^3+4x^22x+1\)  
solution 
Practice A07  

Compute the first four nonzero terms of the Maclaurin polynomial for \(f(x)=\sqrt{1x}, x \leq 1\).  
solution 
Level B  Intermediate 
Practice B01  

Calculate the second order Maclaurin series polynomial for \(\displaystyle{f(t)=\frac{1}{\mu}\ln\abs{\cosh(\omega t)}}\).  
answer 
solution 
Practice B02  

Compute the first few terms of the Maclaurin series for \(f(x)=\sec(x)\)  
answer 
solution 
Practice B03  

Find the third order Taylor polynomial at \(x=1\) for \(f(x)=x^33x^2+2x+1\)  
answer 
solution 
Practice B05  

Find the third order Maclaurin polynomial of \(\displaystyle{\frac{1}{5x+1}}\).  
answer 
solution 
Practice B09  

Find the third degree Taylor polynomial for \(\displaystyle{\frac{1}{2+x}}\) at \(x=1\)  
answer 
solution 
Practice B10  

Find the second degree Taylor polynomial for \(\displaystyle{f(x)=\cot(x)}\) at \(x=\pi/4\)  
answer 
solution 
Practice B11  

Use a known series to find the sum \(\displaystyle{\sum_{n=0}^{\infty}{(1)^n\frac{x^{4n}}{n!}}}\)  
solution 
Practice B12  

Use a known series to find the sum \(\displaystyle{\sum_{n=0}^{\infty}{\frac{(1)^n\pi^{2n+1}}{4^{2n+1}(2n+1)!}}}\)  
solution 
Level C  Advanced 
Practice C01  

Approximate \(\int_{0}^{1}{x~\cos(x^3)~dx}\) to within 3 decimal places.  
answer 
solution 