F(x)=sin x, centered at x=pi/2 Question

  • Context: Undergrad 
  • Thread starter Thread starter linux666
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around finding the Taylor Series for the function f(x) = sin(x), specifically centered at x = pi/2. Participants are exploring the derivation and evaluation of the series, addressing potential difficulties and misunderstandings related to centering the series at a point other than zero.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses difficulty in obtaining the correct Taylor Series for sin(x) centered at pi/2 and shares the derivatives of the function.
  • Another participant questions whether the sine function should be offset at pi/2.
  • A formula for the Taylor series centered at a is presented, indicating the general approach to derive it.
  • One participant notes that the first four derivatives of sin(x) evaluated at pi/2 yield a repeating cycle of values, suggesting a pattern for the nth derivative evaluated at that point.
  • Another participant mentions that most solutions found online use the Maclaurin Series, which centers at zero, creating confusion when centering at a different point.
  • A suggestion is made to replace x with (x - pi/2) to facilitate the calculation.
  • Some participants engage in light-hearted commentary about centering at zero, implying it may simplify the process.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to derive the Taylor Series centered at pi/2, and multiple perspectives on the problem remain. There is uncertainty regarding the implications of centering at different points.

Contextual Notes

Some participants express confusion stemming from the transition from Maclaurin Series to Taylor Series centered at a non-zero point, indicating a potential gap in understanding the implications of this shift.

linux666
Messages
5
Reaction score
0
hi, I am trying to get the Taylor Series for f(x)=sin x, centered at x=pi/2,
but i am seem to be getting an incorrect taylor series, any help?
Thanks

f'(x) = cos(x)
f(2)(x) = - sin(x)
f(3)(x) = - cos(x)
f(4)(x) = sin(x)
 
Physics news on Phys.org
Do you want to offset sin(o) = pi/2?
 
Taylor series for f(x) centered about a=pi/2

the a is :

f(x) = sum[ f^(n)*(a)/n! * (x-a)^n ], n=0...infinity
 
linux666 said:
hi, I am trying to get the Taylor Series for f(x)=sin x, centered at x=pi/2,
but i am seem to be getting an incorrect taylor series, any help?
Thanks

f'(x) = cos(x)
f(2)(x) = - sin(x)
f(3)(x) = - cos(x)
f(4)(x) = sin(x)
The formula for taylor series centered about a is easily derived by integration by parts.
[tex]\sum_{i=0}^{\infty} \frac{(x-a)^i}{i!}f^{(i)}(a)[/tex]
a nice way to write the sine derivatives is
[tex]\sin^{(n)}(x)= \sin(x+n\frac{\pi}{2})[/tex]
 
You've listed the first four derivatives of sin(x). Evaluated at x = pi/2, the values of the first four derivatives are 0, -1, 0, 1 and the cycle repeats itself. What this tells you is that the 'even numbered' derivatives(ie. 2nd, 4th, 6th etc derivatives) are non-zero whilst the others are. Further, these even numbered derivatives alternate between -1 and 1. So it seems reasonable to suggest that the nth, where n is a natural number, derivative evaluated at x = pi/2 is given by [tex]\left( { - 1} \right)^{2n}[/tex].

Edit: Nevermind the error message before. What I have said above alludes to a possible way to representing the nth derivative evaluated at x = pi/2. I haven't done the question myself, but if you try variations of what I suggested above you'll probably get the answer.

Edit 2: You should probably just ignore what I said, it's a bit misleading now that I think about it.
 
Last edited:
Thanks for the suggestions, i was google-ing this question, and the problem is that ALL solutions for this question are answered using : a is centered at 0.

In other words, Maclaurin Series.

When a != 0, it totally throws me off.

 
replace x with x-pi/2
 
life might be better if you center yourself at zero.. lol
 
kant said:
life might be better if you center yourself at zero.. lol
No this it is no harder. Plus this is nice if one wants to compute
sin(pi/2+.00001) approximately.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 0 ·
Replies
0
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K