One thing that you really need to understand "deep down in your bones" is how functions involving spatial dimensions and time behave. So this is a chance to explore this idea and convince yourself of a few basic properties.
Consider a function of one variable, . These are the ones you know and love. All you have to do to turn any function into a traveling wave is to add in a time dependence. Basically all you have to do is replace all the 's in the original with 's. No kidding.
Try this. Fire up our very good friend Maple and using the plot command plot any function of you want. It doesn't matter what function it is. For starters try to choose a function which is not periodic since it makes it easier to see what's happening. If you are at a loss for a function to use try using a Gaussian, . Choose plotting limits that give you a reasonable view of the function.
OK, now that you have your function lets "wavify" it. Replace all the 's with 's. Use the brackets since it'll calculate out properly that way. Now you have two options on how to proceed.
> with(plots);
> plot3d(,=[range of 's], =[range of 's], style=wireframe);
where I have used to represent the function you chose above.
Note: the style parameter just speeds up the plotting.
Also you have to wait a while for the plot to be calculated.
You should now have a surface plotted over a plane defined by
and coordinate axes. However, this really is not
a normal way to look at functions with time dependence.
Another more natural (at least to me) way to look at
time dependent functions is to watch them change over time like a movie.
This is part 2:
> animate((,=[range of 's], =[range of 's]);
You should get a 2d plot with VCR-like playback buttons on the bottom.
Press play and watch the display. That's the basic idea.
> animate((x-t+4)^ 2+(x+t-4)^ 2,x=-10..10,t=0..10);
Do you understand why you are seeing the behaviour you observe? What would you see for
> animate((x-t+4)^ 2-(x+t-4)^ 2,x=-10..10,t=0..10); ?