Taylor Series to Approximate Functions

Click For Summary

Discussion Overview

The discussion revolves around the Taylor series and its application in approximating functions. Participants explore the underlying reasoning behind the formulation of Taylor series, the conditions under which they work, and the nature of functions that can be approximated by these series.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant expresses confusion about why the coefficients in the Taylor series are derived from the nth derivative of the function divided by n factorial, describing it as seeming like magic.
  • Another participant provides an algebraic perspective, explaining how derivatives relate to coefficients in polynomial approximations, using a quadratic function as an example.
  • A geometric interpretation is introduced, discussing how linear and polynomial approximations improve fit to a function, leading to the conclusion that Taylor polynomials converge to the function if it is analytic.
  • One participant appreciates the concept of Taylor polynomials as a method of approximation, emphasizing the relationship between the function and its derivatives at a point.
  • A counterpoint is raised regarding the limitations of Taylor series, noting that not all infinitely differentiable functions can be approximated by their Taylor polynomials, citing the example of the function f(x)=e^(-1/x^2) which has all derivatives equal to zero at a point.
  • Another participant highlights that the set of functions that can be approximated by Taylor series is quite small compared to the set of all functions, emphasizing the distinction between analytic functions and other types of functions.

Areas of Agreement / Disagreement

Participants express a mix of wonder and skepticism regarding the efficacy of Taylor series. While some appreciate the method and its applications, others challenge the notion that it universally applies to all functions, indicating a lack of consensus on the broader applicability of Taylor series.

Contextual Notes

The discussion reveals limitations in the applicability of Taylor series, particularly concerning functions that are infinitely differentiable but not analytic. The nuances of function behavior around points of approximation are also noted.

V0ODO0CH1LD
Messages
278
Reaction score
0
I get the many proofs behind it and all of the mechanics of how to use it. What I don't get is why it works..
What was the though process of Brook Taylor when he devised his thing? I get that each new term is literally being added to previous ones along the y-axis to approximate the y value of the original function. But why is it that the coefficient that goes in front of x^n is the nth derivative of the function over n factorial? How does that makes sense? I know it works, but it seem like magic to me.. And I can't help but hate that.
 
Physics news on Phys.org
V0ODO0CH1LD said:
I get the many proofs behind it and all of the mechanics of how to use it. What I don't get is why it works..
What was the though process of Brook Taylor when he devised his thing? I get that each new term is literally being added to previous ones along the y-axis to approximate the y value of the original function. But why is it that the coefficient that goes in front of x^n is the nth derivative of the function over n factorial? How does that makes sense? I know it works, but it seem like magic to me.. And I can't help but hate that.

My calculus professor said the same thing, he thought it was amazing that local information like all the derivatives at a point would give all the global information.

Here's how you might see it's okay that the coefficient should be the derivative.

Take y=f(x)=ax^2+bx+c. Then y'(x)=2ax+b, y''(x)=2a, so...
y(0)=c, y'(0)=b, y''(0)=2a.

So if a function can be represented as a power series (an infinite polynomial), then it's derivatives match up with the coefficients just so.

That's the "algebraic" thinking. Here's some "geometric" thinking. The linear approximation gives the closest straight line to f, that is

f(x)≈L(x)=f(0)+f'(0)(x-0).

A closer fit than a line is a second degree polynomial, that is, a parabola, call it T_2,

f(x)≈T_2(x)=f(0)+f'(0)(x-0)+f''(0)/2*(x-0)^2.

A cubic polynomial could give a closer fit.

Now let the degree n go to infinity. If f is "analytic", then the taylor polynomials will converge to f. Most elementary functions (like trig, exp, etc) are analytic.

Statistically, most functions are not analytic (for instance discontinuous functions). Even if we consider infinitely differentiable functions. Take f(x)=e^(-1/x^2) (If we define f(0)=0, it becomes infinitely differentiable). Then it turns out all the derivatives at the origin are zero. So, if it were "analytic", then f(x)=f(0)+f'(0)(x-0)+...=0, contradiction.

Analytic functions can be studied in more detail in a subject called complex analysis, which is a very bizarre subject, with a very strange collection of facts. I used to think of it as the black magic subject. I think the wildness (or lack of) can be understood a little bit intuitively as it is the study of a very small collection of functions between two planes which are conformal, that is, right angles are mapped to right angles (well, almost, except for where the derivative is zero, but then the angles are still mapped in a fairly restricted way).
 
In addition to the previous poster (who did a very good job), my method of understanding taylor polynomials worked like this:

I actually love the idea of Taylor Polynomials because in a way they are set up like "it would make sense that this would approximate that function, so let's see if it does" (of course in development it was much more rigorous).

The idea is that if you have an equation that is equal to the function at a given point and is equal to every derivative of that function at the same point then this equation should be able to predict with good accuracy the function in the region around the given point.

Imagine you have an equation f(x) that has the value a at 0 and f'(x) has value b at 0.
You start by defining an equation p(x) such that [itex]p(x)=f(0)[/itex] or more generally [itex]p(x)= a[/itex]

Then you say you want p'(x) to equal f'(x).
So setting up that equation: [itex]p'(x)=b[/itex]
Then you antidifferentiate to get [itex]p(x)=[/itex][itex]\frac{b^2}{2}[/itex][itex]+f(0)[/itex] (just basic antidifferentiation)
Remembering that you can switch f(0) with a, you get the 2nd degree taylor polynomial.

Do you see why assuming the arbitrary derivative and antidifferentiating backwards gives you the taylor polynomial?
 
I'm not sure what you mean by "why it works". Works for what? I suspect that what you are marveling at simply is not true. The set of all functions that can be arbitrarily approximated by their Taylor polynomials, that is that are equal to their Taylor series, is a very very small part of the set of all possible functions.

For one thing, the set of all continuous functions is a very small set, comparatively. The set of all differentiable functions, the set of all twice differentiable functions, ... , the set of all infinitely differentable functions, are each far smaller than the previous set.

And even for infinitely differentiable functions it is NOT true that they can be arbitrarily closely approximated by their Taylor polynomials. For example the function [itex]f(x)= e^{-1/x^2}[/itex] if x is not 0, f(0)= 0, is infinitely differentiable but all derivatives are 0 at x= 0. That is, all its Taylor polynomials are are identcally 0 and so cannot approximate f not matter how large an n you use.

What is true is that functions that can be arbitrarily closely approximated by Taylor polynomials (they are called "analytic functions") are very useful and so we work with them much more than other functions.
 

Similar threads

Replies
23
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
17K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K