LoganS
- 5
- 0
1. Find the Fourier sine expansion of [itex]\phi(x)=1[/itex]
.2. Homework Equations .
In the lecture the professor worked his stuff from scratch so I was trying to do it like his example.3. The Attempt at a Solution .
I start with [itex]\phi(x)=A_1sin(\pi x)+A_2sin(2\pi x)+\cdots+A_nsin(n\pi x),[/itex] and then add multiply by [itex]A_msin(m\pi x)[/itex] term on each side and integrate from 0 to 1.
So I have [itex]\int\phi(x)A_msin(m\pi x)=\int\left(A_1sin(\pi x)A_msin(m\pi x)+A_2sin(2\pi x)A_msin(m\pi x)+\cdots+A_nsin(n\pi x)A_msin(m\pi x)\right).[/itex]
I know that due to orthogonality you can discard the terms where m is not equal to n (but I don't really understand why so if you can explain this I would appreciate it).
Discarding those terms and using a trig relation I get, [itex]\int\phi(x)A_msin(m\pi x)=1/2\int\left(cos((m-n)\pi x)-cos((m+n)\pi x)\right).[/itex]
I then solve the integral and try to get [itex]A_m[/itex] by alone, but I think I am doing something wrong cause what I get is terribly messy.
The book answer is [itex]1=\frac{4}{\pi}\left(sin(\pi x)+\frac{1}{3}sin(3\pi x)+\frac{1}{5}sin(5\pi x) +\cdots\right).[/itex] Any and all help is greatly appreciated.
.2. Homework Equations .
In the lecture the professor worked his stuff from scratch so I was trying to do it like his example.3. The Attempt at a Solution .
I start with [itex]\phi(x)=A_1sin(\pi x)+A_2sin(2\pi x)+\cdots+A_nsin(n\pi x),[/itex] and then add multiply by [itex]A_msin(m\pi x)[/itex] term on each side and integrate from 0 to 1.
So I have [itex]\int\phi(x)A_msin(m\pi x)=\int\left(A_1sin(\pi x)A_msin(m\pi x)+A_2sin(2\pi x)A_msin(m\pi x)+\cdots+A_nsin(n\pi x)A_msin(m\pi x)\right).[/itex]
I know that due to orthogonality you can discard the terms where m is not equal to n (but I don't really understand why so if you can explain this I would appreciate it).
Discarding those terms and using a trig relation I get, [itex]\int\phi(x)A_msin(m\pi x)=1/2\int\left(cos((m-n)\pi x)-cos((m+n)\pi x)\right).[/itex]
I then solve the integral and try to get [itex]A_m[/itex] by alone, but I think I am doing something wrong cause what I get is terribly messy.
The book answer is [itex]1=\frac{4}{\pi}\left(sin(\pi x)+\frac{1}{3}sin(3\pi x)+\frac{1}{5}sin(5\pi x) +\cdots\right).[/itex] Any and all help is greatly appreciated.
Last edited: