haruspex said:Was that the right attachment? I don't see any reference to a1, B2, f or g there.
haruspex said:Ok. In future, please don't assume others use the same notation.
I get b2 = 2. Please post your working.
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.
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.
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.zack7 said:This was the equation that my teacher used when he found Bn , I do not know any other way to find it.
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.
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.zack7 said:Using this formula \frac{2}{L}\int(f(x)*sin(\frac{npix}{L})
I obtain An= 2
and
bn= 12
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.
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 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.zack7 said:I used the same boundary condition for the integral below (0<x<pi)
\frac{2}{pi}\int(12sin(2x)*sin(\frac{2pix}{pi})
This gave me 12
Is this wrong ?