Graphing solutions to PDEs at various times

Click For Summary
SUMMARY

This discussion focuses on graphing solutions to partial differential equations (PDEs) using D'Alembert's solution for wave equations. The specific function discussed is defined piecewise as \( f(x) \) with values of 3 and 2 in specified intervals, and 0 otherwise. The solution is expressed as \( u(x,t) = \frac{1}{2} \left(f(x+t) + f(x-t)\right) \), with the wave speed \( c \) set to 1. Participants emphasize the importance of visualizing the overlapping waves at various time intervals, specifically \( t = 0, 1, 2, \) and beyond, to understand the behavior of the solution.

PREREQUISITES
  • Understanding of wave equations and D'Alembert's solution
  • Familiarity with piecewise functions and their graphical representations
  • Basic knowledge of graphing techniques for functions of two variables
  • Concept of wave propagation and superposition principle
NEXT STEPS
  • Learn how to graph piecewise functions effectively
  • Study the concept of wave superposition in detail
  • Explore numerical methods for solving PDEs
  • Investigate graphical software tools for visualizing wave equations
USEFUL FOR

Students studying differential equations, mathematicians interested in wave phenomena, and educators teaching graphing techniques for PDEs.

sxal96
Messages
15
Reaction score
1

Homework Statement


Graph snapshots of the solution in the x-u plane for various times t if

\begin{align*}
f(x) =
\begin{cases}
& 3, \text{if } -4 \leq x \leq 0 \\
& 2, \text{if } 4 \leq x \leq 8 \\
& 0, \text{otherwise}
\end{cases}
\end{align*}

Homework Equations


Assuming that c=1 and g(x) = 0, D'Alembert's solution for this question is $$f(x) = \frac{1}{2} \left(f(x+ct) - f(x-ct)\right)$$

The Attempt at a Solution


I'm struggling with this problem in its entirety. I don't understand how to graph the solution and why it's a rectangular box that is basically reversal of what seems to make sense when plugging in various values for x based off of the equation's characteristics. Conceptually, I realize that it is an infinite string and there's shifting of two waves that will overlap for some points. What I don't understand is how to go about drawing these graphs by hand. I confirmed with a classmate that the 'endpoints' for t are t = 2, t = 4, t = 4, and t = 6, based on the fact that t = distance/velocity.

Please explain this to me like I'm 5. I tried Googling the concept to death and came short, and my professor and the textbook aren't particularly helpful. Any guidance would be very much appreciated.
 
Physics news on Phys.org
sxal96 said:

Homework Statement


Graph snapshots of the solution in the x-u plane for various times t if

\begin{align*}
f(x) =
\begin{cases}
& 3, \text{if } -4 \leq x \leq 0 \\
& 2, \text{if } 4 \leq x \leq 8 \\
& 0, \text{otherwise}
\end{cases}
\end{align*}

Homework Equations


Assuming that c=1 and g(x) = 0, D'Alembert's solution for this question is $$f(x) = \frac{1}{2} \left(f(x+ct) - f(x-ct)\right)$$

That would be ##u(x,t)= \frac{1}{2} \left(f(x+ct) + f(x-ct)\right)##. Don't call the solution ##f(x)## and note the two terms are added, not subtracted.

The Attempt at a Solution


I'm struggling with this problem in its entirety. I don't understand how to graph the solution and why it's a rectangular box that is basically reversal of what seems to make sense when plugging in various values for x based off of the equation's characteristics. Conceptually, I realize that it is an infinite string and there's shifting of two waves that will overlap for some points. What I don't understand is how to go about drawing these graphs by hand. I confirmed with a classmate that the 'endpoints' for t are t = 2, t = 4, t = 4, and t = 6, based on the fact that t = distance/velocity.

Please explain this to me like I'm 5. I tried Googling the concept to death and came short, and my professor and the textbook aren't particularly helpful. Any guidance would be very much appreciated.

So ##c=1## and your equation is $$u(x,t)= \frac{1}{2} \left(f(x+t) + f(x-t)\right)= \frac{1}{2} f(x+t) + \frac 1 2 f(x-t)$$.
When ##t=0## you have ##u(x,0) = \frac{1}{2} f(x) + \frac 1 2 f(x)=f(x)##. I presume you can draw that, right? Now say you want a picture when ##t=1## so you want to draw ##u(x,1) = \frac{1}{2} f(x+1) + \frac 1 2 f(x-1)##. So start with a graph of ##\frac 1 2 f(x)## drawn very lightly. Then draw on the same picture, maybe with two colored pencils, one copy of your light graph translated left one unit and one translated right one unit. Now you can erase the light graph, and with a dark pencil add the ordinates visually of your two translated functions. This dark graph is ##u(x,1)##. The two waves have moved one unit. Now do it with ##t=2## and other values of ##t##. The graph of ##u(x,t)## gets more interesting when the waves overlap and add. You will want to do enough values of ##t## to see what happens once the waves get past overlapping.
 
  • Like
Likes   Reactions: sxal96
LCKurtz said:
That would be ##u(x,t)= \frac{1}{2} \left(f(x+ct) + f(x-ct)\right)##. Don't call the solution ##f(x)## and note the two terms are added, not subtracted.
So ##c=1## and your equation is $$u(x,t)= \frac{1}{2} \left(f(x+t) + f(x-t)\right)= \frac{1}{2} f(x+t) + \frac 1 2 f(x-t)$$.
When ##t=0## you have ##u(x,0) = \frac{1}{2} f(x) + \frac 1 2 f(x)=f(x)##. I presume you can draw that, right? Now say you want a picture when ##t=1## so you want to draw ##u(x,1) = \frac{1}{2} f(x+1) + \frac 1 2 f(x-1)##. So start with a graph of ##\frac 1 2 f(x)## drawn very lightly. Then draw on the same picture, maybe with two colored pencils, one copy of your light graph translated left one unit and one translated right one unit. Now you can erase the light graph, and with a dark pencil add the ordinates visually of your two translated functions. This dark graph is ##u(x,1)##. The two waves have moved one unit. Now do it with ##t=2## and other values of ##t##. The graph of ##u(x,t)## gets more interesting when the waves overlap and add. You will want to do enough values of ##t## to see what happens once the waves get past overlapping.
Thanks for your response. So, if I wanted to have a graph represent ##0 \leq x \leq 2##, would I essentially combine the translated graphs for ## t = 0, t = 1,## and ## t = 2##? Or would there be an emerging trend/'pattern' between values for ##t## that I would graph?
 
sxal96 said:
Thanks for your response. So, if I wanted to have a graph represent ##0 \leq x \leq 2##, would I essentially combine the translated graphs for ## t = 0, t = 1,## and ## t = 2##? Or would there be an emerging trend/'pattern' between values for ##t## that I would graph?

You will want several values of ##t##, enough so that the waves pass through each other. I would plot the graph pn something like ##[-10,15]## so you can see what is happening. You can always look at just ##[0,2]## when you are done. You might be interested to see the animation on my web page showing a vibrating string as the sum of traveling waves. Look at math.asu.edu/~kurtz if you are interested.
 
Last edited:
  • Like
Likes   Reactions: sxal96

Similar threads

Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 105 ·
4
Replies
105
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K