Message Boards Message Boards

0
|
6256 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to solve analytically Wave Equation?

Posted 10 years ago
POSTED BY: Phil R
2 Replies

If you change your definition for U to take patterns:

    Clear[U];
     U[x_, t_] = 
     Sum[(An*Cos[omegan*t] + Bn*Sin[omegan*t])*Sin[n*Pi*x/L], {n, 1, 
       10 L}]

Then

Table[Plot[Evaluate[U[x, t]], {x, -10, 10}, 
  PlotRange -> {{-10, 10}, {0, 1}}], {t, 0, 1, .1}]

works.

I truncated the fourier series at many fewer terms than your example. You may get improvement if you use the builtin fourier series functions. You may want to use a Manipulate instead of Table. Also, if your sum is numerical, you should get better performance with NSum rather than Sum.

POSTED BY: W. Craig Carter

Note that the wave equation also has the non separable solutions f[x - c t] and f[x + c t].

POSTED BY: S M Blinder
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract