Items tagged with wave wave Tagged Items Feed

I am trying to find a general solution to the 1D-wave equation


pdsolve(Eq1,HINT=f(x)*g(t)); # Hinting pdsolve gives general solution using separation of variables

pdsolve({Eq1,u(x,0)=f(x),D[2](u)(x,0)=g(x)}); # without HINT and using intial conditions, I get travelling wave solution

pdsolve({Eq1,u(x,0)=f(x),D[2](u)(x,0)=g(x)},HINT=f(x)*g(t)); # Now when I try to use hint and ICs both, pdsolve return nothing.

I want to use separation of variables to find solution to the wave equation.

Any comment?


now the equation is


initial condition: u(x,0)=1-(xsign(x)), abslute x<1,0 otherwise. Assume sign(x)=-1 for x<0, 1for x>0 

 Ut(x,0)=cos(pix), bslute x<1, 0 otherwise , he didnt give any B.Cs

so I would like to know the analytical and numerical sols, and plots for the wave at t=2,4

for Numerical:   delta x=0.1, delta t=0.025, range 0..4

U(x,t)= 2/3f(x+t)+1/3f(x-2t)+(1/3pi)(sin(pi(x+t))+(1/3pi)(sin(pi(x-2t)),

f(x)=1-x,abslutex<1, zero otherwise


initial condition: u(x,0)=1-x, abslute x<1   Ut(x,0)=cos(pix), bslute x<1 

B.C U(-4,t)=U(4,t)=0,   delta x=0.1, delta t=0.025, range 0..4                                      

I've been instructed to create an animation showing the changing plots of a single square waveform using 5,10,20,40,80,160,320, and 640 terms in my Fourier series. This is my code right now: 


with (plots):
L := [seq(2^i, i = 0 .. 6)];

[1, 2, 4, 8, 16, 32, 64]

animate( plot, [2/((2*n-1)*Pi))*sin((2*n-1)*Pi*x], n=L);
Error, `)` unexpected


It doesn't work. Can anyone explain what I'm doing wrong, or how to solve my question?


I'm trying to get a hold of using DLL with Maple at the moment.

Just to give you some background informations.

My Headerfile:


using namespade std;

namespace WAVEFUNC

Dear Maple users

I know how to plot surfaces in 3D. However now I have a special task: I want to plot a piece of a solid region in 3D, more precisely a transverse or logitudinal wave. I wonder if there is an easy way to do this in Maple? Any hint will be appreciated!




How can I plot standing waves with extra parameters. That is how can I plot something like 2A*sin(kx)*cos(wt) and vary the parameters to see what would happen if different types of waves traveling in different directions collided.

Page 1 of 1