Wave Equation (Fourier Coefficients)

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
18 replies · 3K views
zack7
Messages
52
Reaction score
0
For the wave equation I managed to get
the coefficient of f:

a1=2

and

the coefficient of g:

[itex]\frac{12pi}{2pi*2}[/itex]=B2

Is these answers right, since my B2 does not match the answer I was given.

Thank you
 

Attachments

  • 14.png
    14.png
    4.8 KB · Views: 545
Physics news on Phys.org
haruspex said:
Was that the right attachment? I don't see any reference to a1, B2, f or g there.

Basically I was taught the the first U(x,0) is f and the second is g, so I go on to name the Fourier coefficient of f coefficient as a and the second as b.
 
haruspex said:
Ok. In future, please don't assume others use the same notation.
I get b2 = 2. Please post your working.

Using the formula ([itex]\frac{n*pi*a}{l}[/itex])*b2=12

where a=2, ;L=pi, and n=2,

Therefore I get three, I think I am making a mistake with my a.
 
That formula was given by my teacher after forming the formula for u(x,t)

An= Fourier Coefficient of f

([itex]\frac{n*pi*a}{l}[/itex])*b2=Fourier Coefficient of g

The u(x,t) formula is

[itex]\sum[/itex](An*cos[itex]\frac{npiat}{l}[/itex]+Bn*sin[itex]\frac{npiat}{l}[/itex])*sin[itex]\frac{npix}{L}[/itex]

where a infinite series is not needed for this question
 
haruspex said:
I understand that you get it down to a1 cos(3t) sin (x) + b2 sin(6t) sin(2x), right? And we agree that the initial condition on u gives a1=2. But show me how you use the condition on ut to get b2 =3.

Looking at the function 12sin(2x)

I get n= 2
L= pi (initial condition)
Fourier coefficient = 12
a= 2 ( previous answer (a1)

Using the formula I get
[itex]\frac{12pi}{2pi*2}[/itex]=B2
which gives me three which is wrong since the answer should be two
 
zack, please please please show me all your working.
You have u(x, t) = a1 cos(3t) sin (x) + b2 sin(6t) sin(2x)
You are given u(x, 0) = 2 sin(x), from which you deduce a1=2.
You are given ut(x, 0) = 12 sin(2x).
Show me what equation you get for ut(x, 0), and how setting that equal to 12 sin(2x) gives you b2=3.
You refer to some other equation you have been given, but I don't know exactly what that equation is or in what context you are supposed to apply it. My guess is you are misusing it.
 
haruspex said:
zack, please please please show me all your working.
You have u(x, t) = a1 cos(3t) sin (x) + b2 sin(6t) sin(2x)
You are given u(x, 0) = 2 sin(x), from which you deduce a1=2.
You are given ut(x, 0) = 12 sin(2x).
Show me what equation you get for ut(x, 0), and how setting that equal to 12 sin(2x) gives you b2=3.
You refer to some other equation you have been given, but I don't know exactly what that equation is or in what context you are supposed to apply it. My guess is you are misusing it.

This was the equation that my teacher used when he found Bn , I do not know any other way to find it.

([itex]\frac{n*pi*a}{l}[/itex])*b2=Fourier Coefficient of g
 
zack7 said:
This was the equation that my teacher used when he found Bn , I do not know any other way to find it.
Fourier coefficients are determined by plugging in the initial condition information. There is no generic formula. I would guess the formula your teacher gave you was for a certain kind of initial condition and does not apply here. Please try my way. If you can't follow it all at first, post what you can.
- Write out the equation for ut(x, t)
(You understand that this means the partial derivative of u(x,t) wrt t, right?)
- Plug in the given fact that ut(x, 0) = 12 sin(2x).
- From that, determine b2.
In view of your misunderstanding on this point, it might also be useful for you to redo the step where you determine a1. This time, instead of using any formula your teacher gave you, work it from the other initial condition you were given.
 
haruspex said:
Fourier coefficients are determined by plugging in the initial condition information. There is no generic formula. I would guess the formula your teacher gave you was for a certain kind of initial condition and does not apply here. Please try my way. If you can't follow it all at first, post what you can.
- Write out the equation for ut(x, t)
(You understand that this means the partial derivative of u(x,t) wrt t, right?)
- Plug in the given fact that ut(x, 0) = 12 sin(2x).
- From that, determine b2.
In view of your misunderstanding on this point, it might also be useful for you to redo the step where you determine a1. This time, instead of using any formula your teacher gave you, work it from the other initial condition you were given.

Using this formula [itex]\frac{2}{L}[/itex][itex]\int(f(x)*sin(\frac{npix}{L}[/itex])

I obtain An= 2

and

bn= 12

what should I do next ?

Is this the way you were talking about, now I would need to find Bn
 
Last edited:
zack7 said:
Using this formula [itex]\frac{2}{L}[/itex][itex]\int(f(x)*sin(\frac{npix}{L}[/itex])

I obtain An= 2

and

bn= 12
zack, we're never going to get through this if you keep writing things like "I obtain". Show me precisely how you obtain it. Leave nothing out. If you quote a formula, explain your understanding of what all the terms in the formula mean.
 
haruspex said:
zack, we're never going to get through this if you keep writing things like "I obtain". Show me precisely how you obtain it. Leave nothing out. If you quote a formula, explain your understanding of what all the terms in the formula mean.

Using this formula [itex]\frac{2}{L}[/itex][itex]\int(f(x)*sin(\frac{npix}{L}[/itex])

for f(x) = 2sin(x)
n=1 since cx=x which gives me one
L=pi from the conditions of the wave equation where x goes from 0 to pi

This gives me
[itex]\frac{2}{pi}[/itex][itex]\int(2sin(x)*sin(\frac{1pix}{pi}[/itex])

[itex]\frac{2}{pi}[/itex][itex]\int(2sin(x)*sin(x)[/itex])

[itex]\frac{2}{pi}*2[/itex][itex]\int(\frac{1}{2}-\frac{1}{2}cos(2x))[/itex])

This gives me
x-sin(x)cos(x)
Inserting the limits gives me pi*[itex]\frac{2}{pi}[/itex]
gives me 2

Therefore A1=2

I did the same way for bn by solving the integral which gives me 12
 
haruspex said:
Let me try a different tack. You understand that the secondary boundary condition refers to ut(), not u()? How do you use that when you apply your formula? Are you using a different formula for getting b2 from that you used to get a1?

I used the same boundary condition for the integral below (0<x<pi)
[itex]\frac{2}{pi}[/itex][itex]\int(12sin(2x)*sin(\frac{2pix}{pi}[/itex])

This gave me 12

Is this wrong ?
 
zack7 said:
I used the same boundary condition for the integral below (0<x<pi)
[itex]\frac{2}{pi}[/itex][itex]\int(12sin(2x)*sin(\frac{2pix}{pi}[/itex])

This gave me 12

Is this wrong ?
I would think so. It is not going to be exactly the same procedure for u() and for ut(). I don't know what formula to give you instead - not an expert on Fourier analysis - but I can solve it very easily from first principles. You have a generic equation for u, so you can differentiate wrt t (partially) to get ut. Then substitute in the initial condition info.
 
Thank you for all the help, I got it solved, got my teacher to explain.