All published worksheets from http://sagenb.org
Image: ubuntu2004
Suppose my initial traffic density is given by . I'll call this initial function , so .
Looking at the plot, we see a high-density area centered around on the roadway at time 0.
Furthermore, suppose that the partial differential equation modeling my traffic density is . Then from what we did in lecture, .
The method of characteristics helps us understand that for this type of partial differential equation, will have the same values along the line , where is some constant. Let's draw a bunch of those lines on the plane. First, we'll solve for in terms of , to get for a constant (we know that , but it is still just a constant).
Along each of the lines in the plot below, the function is constant. In other words, these are level curves or contour lines of .
To solve for , we need to find the traffic density, given a position and a time . Suppose we were given the position and time .
Since we know that is the same along any level curve above, we know that value is the same as the value of . In other words, has the same value for both points shown below, since they are on the same level curve.
We know what is, since . So .
In fact, since the slope of each contour line is , if I'm at the point , then the point is also on the same contour line (since then the slope would be ). Therefore, .
Now we can find the densities at specific places and times easily, like a distance of 6 at time .
Now that we know what is, let's plot it in 3d.
We can also check our contour lines for .
We can also plot the density for various values of to see how the traffic density "moves" with time.
Or we can animate it.
Or we could make it an interact.