Taylor Polynomial
Ever wonder how your calculator instantly finds the sine of an angle or the value of
What Is a Taylor Polynomial?
A Taylor polynomial is a special type of polynomial used to approximate more complicated functions near a specific point. Imagine you have a very curvy and complex road, but you want to describe a small piece of it using simple, straight sections of track. A Taylor polynomial does something similar for functions. It builds a simple, predictable polynomial function (like
The core idea is to "match" the behavior of the complex function at that specific point. We start by matching the function's value. Then, for a better approximation, we match its slope (how steep it is). For an even better fit, we match its curvature (how much it bends). Each time we add a new term to our polynomial, we match another level of behavior, making our approximation more and more accurate around our chosen point.
These approximations are incredibly useful in science, engineering, and computer science because they allow us to replace difficult calculations with simpler arithmetic that computers can perform at lightning speed.
Why Do We Even Need to Approximate Functions?
It might seem strange to replace a perfectly good function with an approximation, but there are very important reasons to do so. Many functions that are essential in the real world are surprisingly difficult to calculate directly.
Consider functions like
Here are a few key reasons why approximations are critical:
- Speed: Polynomials only involve basic arithmetic. Computers are incredibly fast at these operations, allowing for rapid calculations in everything from video games to weather forecasting.
- Simplicity: In many physics and engineering problems, using the exact function makes the equations impossible to solve. Replacing it with a Taylor polynomial can make the problem manageable while still giving a very accurate answer.
- Predicting Behavior: Sometimes we only need to understand how a function behaves near a certain point. A simple linear or quadratic approximation can tell us if the function is increasing, decreasing, or at a peak or valley, which is often all the information we need.
How Do We Build an Approximation by 'Matching'?
The magic of a Taylor polynomial is in how it systematically matches a function's properties at a specific point, which we'll call
We build the approximation in layers:
- Level 0 Match (Value): The most basic requirement is that our approximation has the same value as the function at our chosen point. We force
. This is called a 0th-degree approximation, which is just a constant. It's not very good, but it's a start! - Level 1 Match (Slope): To improve the fit, we should also match the steepness, or slope, of the function at
. A line that has the same value and the same slope as a curve at a point is called the tangent line. This gives us a 1st-degree (linear) approximation, which is much better. - Level 2 Match (Curvature): A line is straight, but our original function is probably curved. The next step is to match the bend, or curvature, of the function at
. This requires adding an term, giving us a 2nd-degree (quadratic) approximation. This parabola will "hug" the original function's curve much more closely than a straight line could.
By continuing this process—matching higher and higher orders of change—we can create polynomials of any degree that become increasingly accurate approximations of the original function near our point
How to Build a First-Degree Taylor Polynomial (A Linear Approximation)
A first-degree Taylor polynomial is simply a straight line that best approximates a function at a point. This line is formally known as the tangent line. To build it, we need two pieces of information about our function
- The value of the function:
. - The slope of the function: Let's call this
. In calculus, this is written as .
The formula for the linear approximation, which we'll call
This formula guarantees that at
Find the linear approximation for the function
Step 1: Find the function's value at
Step 2: Find the function's slope at
For this step, we'll be given the slope. The slope of the function
Step 3: Plug these values into the formula.
We use the formula
This is the linear approximation. We can simplify it if we want:
Step 4: Use the approximation.
Let's estimate
A calculator gives
How to Build a Second-Degree Taylor Polynomial (A Quadratic Approximation)
A linear approximation is good, but we can do better by matching the curvature of the function. This requires a second-degree polynomial, which is a parabola. To build it, we start with our linear approximation and add one more term. We need three pieces of information about our function
- The value:
. - The slope:
(which is in calculus). - The curvature factor:
. This value tells us how the function is bending. In calculus, it's calculated as , where represents the concavity.
The formula for the quadratic approximation,
This parabola has the same value, same slope, AND same curvature as our function
Find the quadratic approximation for
Step 1: Find the function's value at
Step 2: Find the function's slope at
The slope of
Step 3: Find the function's curvature factor at
For
Step 4: Plug these values into the formula.
We use
Step 5: Use the approximation.
Let's estimate
A calculator gives
What Is the General Formula for a Taylor Polynomial?
We can continue adding terms to our polynomial to match more and more properties of the function, making the approximation better and better. The Taylor polynomial of degree
The formula requires values from calculus called derivatives. The first derivative,
Let's break down the new parts:
: This is the -th derivative of the function evaluated at . It represents the -th level of change in the function. For our purposes, these values will be given. : This is "n factorial," which means . For example, and . This factorial term is necessary to make sure the properties match up correctly.
Find the third-degree Taylor polynomial for
Step 1: Find the required values for
The function
Value:
1st Derivative (Slope):
2nd Derivative:
3rd Derivative:
Step 2: Calculate the factorials.
Step 3: Plug everything into the general formula up to degree 3.
Step 4: Use the approximation.
Let's estimate
A calculator gives
What Are Common Mistakes to Avoid?
When first learning about Taylor polynomials, it's easy to make a few common errors. Being aware of them can help you get the right answer more consistently.
- Forgetting the
Term: A frequent mistake is to write the coefficients correctly but forget to multiply them by the powers of . Remember, it's not just , it's . - Using
Instead of : The coefficients , etc., are constants calculated at the specific center point . Don't plug the variable into the derivative terms. - Forgetting the Factorials: The denominators
, etc., are crucial. Forgetting them, especially for degrees higher than 1, will give you the wrong polynomial. Remember that and , so they are often omitted in the first two terms. - Assuming the Approximation is Global: A Taylor polynomial is an excellent approximation near its center
. The farther you get from , the more the polynomial will drift away from the original function. It is a local, not a global, approximation. - Using Degrees for Trig Functions: When creating or using Taylor polynomials for trigonometric functions like
or , the variable must always be in radians. The formulas for their derivatives are only valid in radians.
Quick Summary and Reference
A Taylor polynomial is a tool for approximating a complex function
Here is a summary of the first few levels of approximation:
| Degree (n) | Approximation Name | What It Matches at | Formula Term Added |
|---|---|---|---|
| 0 | Constant Approximation | Value | |
| 1 | Linear Approximation | Value and Slope | |
| 2 | Quadratic Approximation | Value, Slope, and Curvature | |
| 3 | Cubic Approximation | Value, Slope, Curvature, and 'Jerk' |
The Maclaurin Polynomial is simply a special case of the Taylor polynomial where the center point is
Frequently Asked Questions
What's the difference between a Taylor polynomial and a Maclaurin polynomial?
A Maclaurin polynomial is just a specific type of Taylor polynomial. While a Taylor polynomial can be centered around any point
Why are there factorials (like 2!, 3!, etc.) in the formula?
The factorial in the denominator of each term is a normalization constant. When you take derivatives of the polynomial
How do I know how many terms of the polynomial to use?
The number of terms you need depends on the accuracy you require and how far you are from the center point
Does the approximation always get better if I add more terms?
Generally, yes, for most functions you'll encounter. Adding more terms (increasing the degree) will make the polynomial a better fit for the function over a wider range around the center point
Can you make a Taylor polynomial for any function?
No, a function must be "smooth" and well-behaved at the center point
Why is it named after 'Taylor'?
The concept is named after the English mathematician Brook Taylor, who introduced the general idea in the early 18th century (1715). The special case centered at zero is named after Scottish mathematician Colin Maclaurin, who made extensive use of this specific series.
How does my calculator use this to find sin(x)?
Your calculator's chip has a very efficient algorithm, like the CORDIC method, but the principle is the same. It uses a pre-programmed polynomial approximation with enough terms to guarantee a high degree of accuracy for any input. Because the calculations are just multiplication and addition, it can find the answer almost instantly.