Determine Coefficients of Fourier Sine Series in [0,π]

In summary, the conversation revolves around a question from an exam where the student was asked to determine the coefficients for a Fourier sine series and show that pi is equal to a specific sum. The student was unsure of their solution and did not understand why they were given full marks. After further discussion, it was discovered that the student had made an error in their calculation and the correct answer was obtained when using x = pi/2 instead of x = pi for the boundary condition. There was also a discussion about the correctness of the question itself.
  • #1
Silversonic
130
1

Homework Statement



This is for an exam I had a couple weeks ago. It was a part of a "show that" question and the answer I got was completely wrong. Yet oddly I've been given full marks for the question, and looking at the paper now I still don't see why I have been. Full solutions haven't been given, and I don't really want to ask my tutor.

Determine the coefficients [itex] a_{n} [/itex] for the Fourier sine series;

[itex] x = \sum_{n=1}^{\infty} a_{n} sin(nx) [/itex]

In the interval [itex] x = [0,\pi] [/itex]Hence show that [itex] \pi = \sum_{r=0}^{\infty} \frac{4}{2r+1}(-1)^{r} = 4 - \frac{4}{3} + \frac{4}{5} - \frac{4}{7} + ... [/itex]

Homework Equations



Just knowledge of orthogonal sine functions.

The Attempt at a Solution



This is what I've done, and cheers for anyone that's patient enough to look through.

We multiply both sides of the equation given by sin(mx) and integrate with respect to x over pi and zero. Due to the orthogonality of the sin functions, if n =/= m then the integral is zero. So we are left with;

[itex] \int_{0}^{\pi} xsin(nx) dx = \int_{0}^{\pi} a_{n} sin^{2}(nx) dx [/itex]Looking at the right hand side first, we get;

[itex] \frac{1}{2} a_{n} \int_{0}^{\pi} 1- cos(2nx) dx [/itex]

=
[itex] \frac{1}{2} a_{n} [x- \frac{1}{2n}sin(2nx)]_{0}^{\pi} [/itex]

= [itex] \frac{1}{2} a_{n} \pi [/itex]Now to the left hand side we get;

[itex] \int_{0}^{\pi} xsin(nx) dx [/itex]

= [itex] [-\frac{xcos(nx)}{n}]_{0}^{\pi} + \int_{0}^{\pi} \frac{cos(nx)}{n} dx [/itex]

= [itex] -\frac{\pi cos(n\pi)}{n}[/itex]So if n is even, [itex] cos(n\pi) = 1 [/itex]

If n is odd [itex]cos(n\pi) = -1 [/itex]

So the LHS is equal to

[itex] -\frac {\pi (-1)^{n}}{n} [/itex]Equating the LHS to the RHS, I get;

[itex] a_{n} = -\frac {2(-1)^{n}}{n} [/itex] So I have an equation for the co-efficients, if I shove this in the original equation I get;

[itex] x = \sum_{n=1}^{\infty} -\frac {2(-1)^{n}}{n} sin(nx) [/itex]
Now for the second part of the question, I assume I'd shove in [itex] x = \pi [/itex], but doing that I get;

[itex] \pi = \sum_{n=1}^{\infty} -\frac {2(-1)^{n}}{n} sin(n\pi) [/itex]

But [itex] sin(n\pi) [/itex] is always zero since n is a natural number! So I would get [itex] \pi = 0 [/itex]?! Lol. That's where my answer is so massively wrong, and is nothing like the "show that" part. Yet I have full marks for the question. What have I done wrong?
 
Physics news on Phys.org
  • #2


Perhaps the question itself was wrong, it seems like it wouldn't matter would you get for [itex]a_{n}[/itex] as you'd always get [itex]\pi=0[/itex]. I suspect it should have been [itex]x{\in}[0,\frac{\pi}{2}][/itex]. Since [itex]\sin(n0)=\sin(n\pi)[/itex]

If the lecturer doesn't know your name, perhaps ask and run away if your name is asked for.
 
Last edited:
  • #3


Stimpon said:
Perhaps the question itself was wrong, it seems like it wouldn't matter would you get for [itex]a_{n}[/itex] as you'd always get [itex]\pi=0[/itex]. I suspect it should have been [itex]x{\in}[0,\frac{\pi}{2}][/itex]. Since [itex]\sin(n0)=\sin(n\pi)[/itex]

If the lecturer doesn't know your name, perhaps ask and run away if your name is asked for.

Quite possibly. I'll see what I get with that interval. I've tried with cos(nx) in front of the a_n instead and not gotten the answer. If he's wrong though it's kind of ridiculous, I spent quite a bit of time faffing over why I was wrong with this question rather than going ahead and answering another (I ran out of time).

Maybe I'll anonymously e-mail him.
 
  • #4


Gah nope. That didn't work. Can't see what I've done wrong. I'm really doubtful that my lecturer has asked a question wrong on a test that accounts for the module percentage - but it would make sense as to why I was given full marks. I'm really perplexed on how I was meant to attain the answer given.
 
  • #5


Ahhhhhhhhhhhh I realize how.

Instead of putting [itex] x = \pi [/itex] for the last part, I was meant to put [itex] x = \frac {\pi}{2} [/itex]. This gives me the answer.

So I was wrong, but given full marks. I'll just leave it at that.I still don't understand why you can't directly use [itex] x = \pi [/itex] to attain an the answer. Is it because I can't use the boundary values as values for my initial condition?

I didn't include it in my original post, but it was actually;

[itex] u_0 (x) = x = \sum_{n=1}^{\infty} a_{n} sin(nx) [/itex]
 
Last edited:
  • #6


I still say the question was wrong, as the question says that you have x in [0,pi] which clearly doesn't work, x in [0,pi) would have been fine though. Basically that series does not distinguish between x=0 and x=pi, so that's why you either can't have x=pi.
 
  • #7


To represent x as a sin series, don't you need it to be an odd function, so shouldn't the interval be
-pi < x < pi?

RGV
 
Last edited:

FAQ: Determine Coefficients of Fourier Sine Series in [0,π]

What is a Fourier Sine Series?

A Fourier Sine Series is a mathematical representation of a periodic function using a series of sine functions with different amplitudes and frequencies. It is used to approximate a function by decomposing it into simpler components.

What is the purpose of determining coefficients in a Fourier Sine Series?

The coefficients in a Fourier Sine Series help us understand the amplitude and frequency of each sine function used to approximate a periodic function. They allow us to accurately represent the original function and make predictions about its behavior.

How do you determine the coefficients of a Fourier Sine Series in [0,π]?

The coefficients of a Fourier Sine Series in [0,π] can be determined using the Fourier Sine Series formula, which involves integrating the original function multiplied by a sine function over the interval [0,π]. This process is repeated for each sine function in the series, resulting in a set of coefficients.

What are some applications of Fourier Sine Series?

Fourier Sine Series have various applications in mathematics, physics, engineering, and other fields. They are used to model periodic phenomena such as sound waves, electromagnetic waves, and vibrations. They are also used in signal processing and image compression.

Can Fourier Sine Series be used for non-periodic functions?

No, Fourier Sine Series can only be used to approximate periodic functions. For non-periodic functions, other methods such as Fourier Transform or Laplace Transform can be used to represent the function as a combination of simpler components.

Similar threads

Replies
3
Views
1K
Replies
5
Views
370
Replies
1
Views
1K
Replies
1
Views
908
Replies
16
Views
1K
Replies
9
Views
1K
Back
Top