Taylor expansion centering question

Click For Summary

Discussion Overview

The discussion revolves around the concept of Taylor expansions, specifically focusing on what it means to center a Taylor expansion at a particular point, such as 0. Participants explore the implications of centering, the nature of the series, and how it relates to approximating functions.

Discussion Character

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

Main Points Raised

  • One participant questions whether the Taylor expansion of e^x centered at 0 means that the sum gives the value of the function at x = 0, suggesting it equals e^0 = 1.
  • Another participant points out that the Taylor series is not just a single value but an infinite power series, emphasizing the importance of the center in the series.
  • There is a discussion about the inclusion of lower degree terms in higher degree Taylor expansions, with some participants affirming that higher degree terms include all lower degree terms.
  • One participant explains that the Taylor series for sin(x) does not include even powers because sin(x) is an odd function, leading to zero coefficients for even terms.
  • Another participant illustrates how changing the center of a Taylor series affects the series itself, providing an example with the function 1/(1-x) centered at different points.
  • There is a clarification that the Taylor series for polynomials can be constructed similarly, with specific examples provided for polynomials centered at different points.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the centering of Taylor expansions and the nature of the series. Some agree on the inclusion of lower degree terms in higher degree expansions, while others seek clarification on the implications of centering. The discussion remains unresolved on certain conceptual points, particularly regarding the assumptions made about centering.

Contextual Notes

Some participants express confusion about the definitions and implications of centering in Taylor expansions, indicating a need for clearer explanations in educational contexts. There are also unresolved questions about the representation of certain functions and their Taylor series.

quietrain
Messages
648
Reaction score
2
what does it mean to say taylor expansion of ex centered at 0?

does it mean that the sum of the expansion will give me the value that the function ex will take when x = 0 ?

so its e0 = 1?



also, how do we know what value to center on? because as i encounter taylor series in my undergrad years, it seems that the professors all just say

"taylor expanding this particular function, we have.. blah blah blah.."

they don't seem to say centered about what? is it always assume to be centered upon 0?

thanks!
 
Physics news on Phys.org
chiro said:
Hey quietrain.

Look at this page and let a = 0:

http://en.wikipedia.org/wiki/Taylor_series

haha..

as a matter of fact, i actually read that page before coming here, in part to double check whether i understood correctly

so if i understood correctly, taylor series is something like this

i have function say 10

taylor expansion does something like 1+3+5 which is approximately 10lets take the example in the wiki page, where the first graph showed sin x
is it saying that the first term, which is the first degree polynomial, is the red straight line in the first graph of the wiki page?

so that the green, which is degree 3, is solely due to just the term in taylor expansion with power 3? i.e, it doesn't include the first term, 2nd term of taylor expansion. or does it include every smaller degree terms before it? since they say i have better approximation as i increase the degrees, i assume it includes every smaller degree terms before it?

then what about 2,4,6 etc? why aren't they showed?but with regards to the centered at what point, is my point in post 1 correct? wiki doesn't seem to explain much about centering.

what does it mean?
 
Last edited:
quietrain said:
then what about 2,4,6 etc? why aren't they showed?but with regards to the centered at what point, is my point in post 1 correct? wiki doesn't seem to explain much about centering.

what does it mean?

Degrees 2,4,6 etc are not shown on the graph because the Taylor expansion for sinx doesn't include those terms.

sinx=x - (x^3)/3! + (x^5)/5! - (x^7)/7! + ...

Yes you are correct that when they show degree 3 on the graph it includes the lower degree terms as well.

Now about the power series being centered at a point, consider the function:

1/(1-x)=1 + x + x^2 + x^3 + ...

You've probably seen this in your calculus course, so you know that equality only holds for |x|<1. This means that the power series for 1/(1-x) has a radius of convergence of 1. The centre, in this case 0, is the centre of the interval from which that radius extends.

If we want to change the centre we can, for example let's change the centre to 2. Then we'll have:

1/[1-(x-2)]= 1 + (x-2) + (x-2)^2 + (x-2)^3 + ...

This series has the same radius of convergence, namely 1, but it will be valid for different values of x than the original series. This series is valid for:

|x-2|< 1 or 1 < x < 3.

In the case of sinx or e^x, their Taylor series are convergent for the whole real line, so in most cases we can just choose 0 as the centre since it is the simplest.

I hope that helped a little bit, let me know if I can clarify anything for you.
 
quietrain said:
haha..

as a matter of fact, i actually read that page before coming here, in part to double check whether i understood correctly

so if i understood correctly, taylor series is something like this

i have function say 10

taylor expansion does something like 1+3+5 which is approximately 10
? "10" is not a function, it is a number. It makes no sense to talk about a Taylor series for a number.



lets take the example in the wiki page, where the first graph showed sin x
is it saying that the first term, which is the first degree polynomial, is the red straight line in the first graph of the wiki page?

so that the green, which is degree 3, is solely due to just the term in taylor expansion with power 3? i.e, it doesn't include the first term, 2nd term of taylor expansion. or does it include every smaller degree terms before it? since they say i have better approximation as i increase the degrees, i assume it includes every smaller degree terms before it?
Yes, every higher degree includes the lower degree terms- this a a polynomial, not a mononial. Taylor series, by the way, have the nice property that if you increase the degree, the coefficients of all lower powers stay the same. Some other ways of approximating functions by polynomials don't have that property- to increase the degree of the polynomial, you have to recalculate all coefficients.

then what about 2,4,6 etc? why aren't they showed?
sin(x) is an odd function- sin(-x)= -sin(x). Since the only "odd" polynomials are those with only odd power (that's where the term came from) all the coefficients of the even powers are 0. "Adding" an even power term doesn't change the polynomial.

Another way to see that is to observe that all even derivatives of sin(x) are either sin(x) or -sin(x), and sin(0)= 0.


but with regards to the centered at what point, is my point in post 1 correct? wiki doesn't seem to explain much about centering.

what does it mean?
The Taylor series of a function f(x), centered at x= a, is, as that Wikipedia article says,
\sum_{n=0}^\infty \frac{f^{(n)}(a)}{n!} (x- a)^n
It isn't really necessary to state the "center" since it is clearly shown in that "(x- a)".

The Taylor series for e^x, centered at x= 0, is NOT just the single number e^0= 1, it is, rather, the infinite power series
e^0+ \frac{e^0}{1!}(x- 0)+ \frac{e^0}{2!}(x-0)^2+ \cdot\cdot\cdot+ \frac{e^0}{n!}(x-0)^n+ \cdot\cdot\cdot
= 1+ x+ \frac{1}{2}x^2+ \cdot\cdot\cdot+ \frac{1}{n!}x^n+ \cdot\cdot\cdot
since all derivatives of e^x are e^x and, of course, e^0= 1.
(That includes both even and odd powers because e^{x} is neither "even" nor "odd" function: e^{-x}\ne e^x, e^{-x}\ne -e^x.)

The Taylor series for e^x, centered at x= 1, instead, would be
= e+ e(x-1)+ \frac{e}{2}(x- 1)^2+ \cdot\cdot\cdot+ \frac{e}{n!}(x-1)^n+ \cdot\cdot\cdot
since now we evaluate the evaluate the derivative at x= 1 and e^1= e.

By the way, it is interesting to look at Taylor series for polynomials. Suppose f(x)= x^4- 3x^2+ 2x+ 1. f(0)= 1, f'(0)= 2, f''(0)= -6, f^(3)(x)= 0, and f^(4)(0)= 24 and all higher derivatives are identically 0 so the Taylor polynomials of degrees 1 through 4, centered at x= 0, are degree 1: f(0)+ f&#039;(0)x= 1+ 2x, degree 2: f(0)+ f&#039;(0)x+ (f&#039;&#039;(0)/2)x^2= 1+ 2x- 3x^2, degree 3: f(0)+ f&#039;(0)x+ (f&#039;&#039;(0)/2)x^2+ (f&#039;&#039;&#039;(0)/3!)x^3= 1+ 2x- 3x^2, degree 4: f(0)+ f&#039;(0)x+ (f&#039;&#039;(0)/2)x^2+ (f&#039;&#039;&#039;(0)/3!)x^3+ (f^(4)(0)/4!)x^4= 1+ 2x- 3x^2+ x^4. That is, the Taylor polynomials of degree less than 4 are just the terms up to that degree while the Taylor series of degree 4 or higher (including the "infinite" series) is just the polynomial itself.

But suppose we wanted the Taylor series for that polynomial centered at 1 rather than 0:
f(1)= 1- 3+ 2+ 1= 1, f'(1)= 4- 6+ 2= 0, f''(1)= 12- 6= 6, f'''(1)= 24, and f^(4)(1)= 24 so the Taylor series is
1+ (0/1)(x- 1)+ (6/2)(x- 1)^2+ (24/6)(x- 1)^3+ (24/24)(x- 1)^4= 1+ 3(x-1)^2+ 4(x-1)^3+ (x-1)^4

And, indeed, if you multiply it out, you will see that
1+ 3(x-1)^2+ 4(x-1)^3+ (x-1)^4= 1+ 2x- 3x^2+ x^4

That's a convenient way of "shifting" a polynomial.
 
Last edited by a moderator:
wwow...thanks a lot everyone. now i need to digest
 
HallsofIvy said:
By the way, it is interesting to look at Taylor series for polynomials. Suppose f(x)= x^4- 3x^2+ 2x+ 1. f(0)= 1, f'(0)= 2, f''(0)= -6, f^(3)(x)= 0, and f^(4)(0)= 24 and all higher derivatives are identically 0 so the Taylor polynomials of degrees 1 through 4, centered at x= 0, are degree 1: f(0)+ f&#039;(0)x= 1+ 2x, degree 2: f(0)+ f&#039;(0)x+ (f&#039;&#039;(0)/2)x^2= 1+ 2x- 3x^2, degree 3: f(0)+ f&#039;(0)x+ (f&#039;&#039;(0)/2)x^2+ (f&#039;&#039;&#039;(0)/3!)x^3= 1+ 2x- 3x^2, degree 4: f(0)+ f&#039;(0)x+ (f&#039;&#039;(0)/2)x^2+ (f&#039;&#039;&#039;(0)/3!)x^3+ (f^(4)(0)/4!)x^4= 1+ 2x- 3x^2+ x^4. That is, the Taylor polynomials of degree less than 4 are just the terms up to that degree while the Taylor series of degree 4 or higher (including the "infinite" series) is just the polynomial itself.

But suppose we wanted the Taylor series for that polynomial centered at 1 rather than 0:
f(1)= 1- 3+ 2+ 1= 1, f'(1)= 4- 6+ 2= 0, f''(1)= 12- 6= 6, f'''(1)= 24, and f^(4)(1)= 24 so the Taylor series is
1+ (0/1)(x- 1)+ (6/2)(x- 1)^2+ (24/6)(x- 1)^3+ (24/24)(x- 1)^4= 1+ 3(x-1)^2+ 4(x-1)^3+ (x-1)^4

And, indeed, if you multiply it out, you will see that
1+ 3(x-1)^2+ 4(x-1)^3+ (x-1)^4= 1+ 2x- 3x^2+ x^4

That's a convenient way of "shifting" a polynomial.

Is there a limit on how far the polynomial can be shifted ?
For example can the Taylor series expansion still generate the original function
if the polynomial is centered at 2,3,4...8,9 ?
 
Last edited:
morrobay said:
Is there a limit on how far the polynomial can be shifted ?
For example can the Taylor series expansion still generate the original function
if the polynomial is centered at 2,3,4...8,9 ?

You can take any a in the domain of the function that you like, however the Taylor expansion won't ever 'generate' the original function, it simply approximates it in polynomial form
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
23
Views
4K
Replies
1
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K