Last time we derived the general solution of a linear, homogeneous PDE with constant coefficients: . Physically, we can interpret such an equation as describing the flow of some chemical through water moving at a constant speed . Suppose, however, that the water does not move at a constant speed. Suppose that and are themselves functions. In other words, suppose our PDE looks like this:
It turns out that it’s not very difficult to extend the method of characteristics for this situation. Let’s graph it, though, to get a better idea of what we’re doing:
As you can see, instead of characteristic lines we now have characteristic curves. Instead of the vector , we now have the vector-valued function . So pretty much everything is the same as before. Our solution is still a function of the characteristics, and our job, as before, is to find the equation for these characteristics. The only difference is that we cannot eyeball the form of the characteristic equation as we did in the previous case. We have to actually calculate it.
What information do we have? Well, we know , which describes each of the curves. From that, we can easily get that . Here we’re just extending the concept of the slope to account for a changing curve. So now we have an ODE which, hopefully, we’ll be able to solve. Suppose that we can solve it, and let be the solution (this is an implicit equation describing the characteristic curves). From our previous discussion, then, .
Let’s do an example. Suppose we have the PDE . Let’s normalize it to get . From this, we get the ODE . You can solve this ODE using separation of variables. Rearrange the equation to get:
Solving, we get that , or . Thus .
As before, to solve for a specific solution, you need an initial condition . Suppose that . Plugging into the solution, we get . Make a substitution and solve for . We get . This transforms our equation into the form .
Well here, is simply a dummy variable. We already know that , for some . So just let . Then . Plug this into the PDE to see that it in indeed a solution.