The power series article shows some great examples of how to write a function in terms of a series of power functions. However, this process is quite tricky, considering that the only base series you have is the geometric series. By comparing a function to the geometric series sum, you could write a power series expansion of some specific functions. So, how can you quickly write a power series expansion of any function? That is a straightforward answer if you know the Taylor series. Using the Taylor series, you can basically write any differentiable function as a power series.
A specific type of power series is the Taylor series. In fact the Taylor series is a great way of defining a series. By looking at the definition you will see that the Taylor series can mimic any function since it is defined based on the derivatives of the function. Let's begin by looking at its definition and an example:
Let \( f \) be a function that has derivatives of all orders at \( x=a \). The Taylor Series for \( f \) at \( x=a \) is
Where \(T_f\) means the Taylor series of \(f\), and \( f^{(n)} \) indicates the \( n\)-th derivative of \( f \).
First, notice that this is indeed a power series centered in \( x=a\), where each coefficient is given by
\[\dfrac{f^{(n)}(a)}{n!}. \]
In other words, each term of the Taylor series is based on the derivatives of \( f \) at \( x=a \), so in order to write the Taylor series you need to have a function \( f\) that can be differentiated over and over. Let's take a look at an example.
Write the Taylor series for \( f(x) = e^x \) at \( x=1\).
Notice that in this example, you quickly wrote the function \( f(x)=e^x\) as a power series in a simple and straightforward way by only knowing its derivatives.
Taylor Series Formula
The Taylor series is often presented in different ways, depending on how it is being used. However, its formula keeps the same pattern. Let's check how to represent it using summation notation:
Let \( f \) be a function that has derivatives of all orders at \( x=a \). The Taylor Series for \( f \) at \( x=a \) is
where \( f^{(n)} \) indicates the \( n\)-th derivative of \( f \), and \( f^{(0)}\) is the original function \( f\).
For the sake of space, let's use the summation representation of the Taylor series going forward. Now let's look at an example involving a familiar function.
Therefore, you have the Taylor series for the function
\[ f(x) = \dfrac{1}{1-x} \]
at \( x=0\).
Although you found the Taylor series of \( f\) in the previous example, if you look back into the geometric series, the above series is only convergent if \( |x|<1\). This brings back two important definitions from the power series article, the radius of convergence and the interval of convergence, which you need to consider to write any power function. By doing that you can figure out if the series converges for every value of \( x \), or if it only converges for a specific interval.
Check the radius and interval of convergence for the Taylor series of \( f(x)=e^x \) at \( x=1\).
Answer:
As you already know from the first example, the Taylor series of \( f\) at \( x=1 \) is
Therefore, as the limit is always smaller than one, and is in fact independent of the value of \( x \), the interval of convergence is \( (-\infty, \infty)\) with the radius of convergence being \( R=-\infty\).
Taylor Series Expansion
Now that you know how to write the Taylor series given a function and the center point, you can write a series expansion for any function that has derivatives of all orders. First let's define when you can say that \( f(x) = T_f(x)\).
Let \( f \) be a function that has derivatives of all orders at \( x=a \), and let \(T_f\) be the Taylor Series for \( f \) at \( x=a \). Then for every value of \(x\) inside the interval of convergence,
In other words, inside the interval of convergence, the Taylor series \(T_f\) and the function \(f\) are precisely the same, and \( T_f \) is a power series expansion of \(f\).
Find a power series expansion for the function \( f(x)=\sin(x)\) centered at \(x=\pi\).
Answer:
To find such expansion, you need to find the Taylor series of \(\sin(x)\) at \(x=\pi\).
First, let's calculate the derivatives of \(\sin(x)\)
Taylor series are indeed a great way of writing a function as a power series, but sometimes you don't need the whole Taylor series equal to the function, you just need an approximation to the function. That leads to the Taylor series approximation.
Let \( f \) be a function that is \(n\)-differentiable at \(x=a\), then the function
You say that a function \(f\) is \(n\)-differentiable at a point, if you can calculate the first \(n\) derivatives of \(f\).
If you compare the above definition with the first definition of the Taylor series, you will see that this is the first part of the series. Therefore you can say that despite an error, the function \(f\) is approximately equal to \(P_n\). In other words,
You only have odd powers because the derivatives of the even functions were zero at \(x=\pi\). That means you can say each \(P_n\) where \(n\) is odd is an approximation for \(\sin(x)\):
Let's compare the behavior of each \(P_n\) function with the sine function:
Taylor series approximation for the sine function.
Notice that if you increase the order of the function \( P_n(x)\) (in other words you increase the value of \(n\)), the approximation gets closer to the original function \( f(x)\). Therefore the degree of \(P_n\) defines how good an approximation of \(f\) it is. Also, notice that those approximations work only for numbers close to the center of the series, which in this case is \(x=\pi\).
Importance of Taylor Series
The main importance of Taylor series is surely finding other ways of expressing functions. In some of the examples you have seen, once you have written a function as a power series, it gets much easier to evaluate the function because you are evaluating only powers. The Taylor series can also make it easier to find other information, as derivatives and integrals of functions. Let's look at one classic example.
What is the indefinite integral of \(f(x)=e^{x^2}\)?
Answer:
This function is well known in the math field as an example of a function that does not have an antiderivative that can be written in terms of the elementary functions that you know. If you try to evaluate this integral you will see that all the integral techniques you know are not enough to solve it! Until now that is. With the Taylor series you can do it!
Let's first write the Taylor series of \(e^x\) centered at \(x=0\). As you know that the derivative of \( e^x\) is equal to itself, so:
Now, using the Taylor series of \(e^x\) let's apply it to \(x^2\) by substituting \(x^2\) in for every \(x\) in the Taylor series of \(e^x\) centered at \(x=0\):
Therefore you have the indefinite integral of \(e^{x^2}\) written as a power series thanks to the Taylor series!
Taylor Series - Key takeaways
Taylor Series of \(f\) centered at \(x=a\)\[ T_f(x) = \sum_{n=0}^{\infty}\dfrac{f^{(n)}(a)}{n!}(x-a)^n \]
Inside the convergence interval the Taylor Series is equal to \(f\)\[ f(x) = \sum_{n=0}^{\infty}\dfrac{f^{(n)}(a)}{n!}(x-a)^n \]
To find the convergence interval you need to apply the Ratio Test\[ \lim\limits_{n \to \infty} \left| \frac{a_{n+1}}{a_n} \right| <1\]
A Taylor series approximation of \(f\) is definite as the first \(n\) terms of the Taylor series\[\begin{align}P_n(x)&=f(a)+f'(a)(x-a)+f''(a)(x-a)^2 \\ &\quad +\dots+f^{(n)}(x-a)^n\end{align}\]
Learn faster with the 4 flashcards about Taylor Series
Sign up for free to gain access to all our flashcards.
Frequently Asked Questions about Taylor Series
What is Taylor series?
Taylor series is a specific type of power series, where you can write any function, that has derivatives of all orders, in terms of its derivatives and power functions.
What is a Taylor series used for?
It is used to express functions in terms of power series. Therefore you can apply the properties of power functions to solve problems.
How is Taylor series used in real life?
The most common application of Taylor series is finding approximations of nontrivial functions such as trigonometric functions, hyperbolic functions, root functions, etc.
What is order in Taylor series?
It refers to the order of the polynomial when you use a Taylor series approximation of a function.
What is the formula of Taylor's theorem?
The formula is based on the derivatives of the function, the center point, and power functions. To see the whole formula take a look at our Taylor Series article.
How we ensure our content is accurate and trustworthy?
At StudySmarter, we have created a learning platform that serves millions of students. Meet
the people who work hard to deliver fact based content as well as making sure it is verified.
Content Creation Process:
Lily Hulatt
Digital Content Specialist
Lily Hulatt is a Digital Content Specialist with over three years of experience in content strategy and curriculum design. She gained her PhD in English Literature from Durham University in 2022, taught in Durham University’s English Studies Department, and has contributed to a number of publications. Lily specialises in English Literature, English Language, History, and Philosophy.
Gabriel Freitas is an AI Engineer with a solid experience in software development, machine learning algorithms, and generative AI, including large language models’ (LLMs) applications. Graduated in Electrical Engineering at the University of São Paulo, he is currently pursuing an MSc in Computer Engineering at the University of Campinas, specializing in machine learning topics. Gabriel has a strong background in software engineering and has worked on projects involving computer vision, embedded AI, and LLM applications.
Vaia is a globally recognized educational technology company, offering a holistic learning platform designed for students of all ages and educational levels. Our platform provides learning support for a wide range of subjects, including STEM, Social Sciences, and Languages and also helps students to successfully master various tests and exams worldwide, such as GCSE, A Level, SAT, ACT, Abitur, and more. We offer an extensive library of learning materials, including interactive flashcards, comprehensive textbook solutions, and detailed explanations. The cutting-edge technology and tools we provide help students create their own learning materials. StudySmarter’s content is not only expert-verified but also regularly updated to ensure accuracy and relevance.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.