Section 1.9 First order linear PDE
¶Note: 1 lecture, can safely be skipped
We only considered ODE so far, so let us solve a linear first order PDE. Consider the equation
where \(u(x,t)\) is a function of \(x\) and \(t\text{.}\) The initial condition \(u(x,0) = f(x)\) is now a function of \(x\) rather than just a number. In these problems it is useful to think of \(x\) as position and \(t\) as time. The equation describes the evolution of a function of \(x\) as time goes on. Below, the coefficients \(a\text{,}\) \(b\text{,}\) \(c\text{,}\) and the function \(g\) are mostly going to be constant or zero. The method we describe works with nonconstant coefficients, although the computations may get difficult quickly.
This method we use is the method of characteristics. The idea is that we find lines along which the equation is an ODE that we solve. We will see this technique again for second order PDE when we encounter the wave equation in Section 4.8.
Example 1.9.1.
Consider the equation
This particular equation, \(u_t + \alpha u_x = 0\text{,}\) is called the transport equation.
The data will propagate along curves called characteristics. The idea is to change to the socalled characteristic coordinates. If we change to these coordinates, the equation simplifies. The change of variables for this equation is
Let's see what the equation becomes. Remember the chain rule in several variables.
The equation in the coordinates \(\xi\) and \(s\) becomes
or in other words
That is trivial to solve. Treating \(\xi\) as simply a parameter, we have obtained the ODE \(\frac{d u}{d s} = 0\text{.}\)
The solution is a function that does not depend on \(s\) (but it does depend on \(\xi\)). That is, there is some function \(A\) such that
The initial condition says that:
so \(A=f\text{.}\) In other words,
Everything is simply moving right at speed \(\alpha\) as \(t\) increases. The curve given by the equation
is called the characteristic. See Figure 2.9.2. In this case, the solution does not change along the characteristic.
In the \((x,t)\) coordinates, the characteristic curves satisfy \(t = \frac{1}{\alpha} ( x \xi)\text{,}\) and are in fact lines. The slope of characteristic lines is \(\frac{1}{\alpha}\text{,}\) and for each different \(\xi\) we get a different characteristic line.
We see why \(u_t + \alpha u_x = 0\) is called the transport equation: everything travels at some constant speed. Sometimes this is called convection. An example application is material being moved by a river where the material does not diffuse and is simply carried along. In this setup, \(x\) is the position along the river, \(t\) is the time, and \(u(x,t)\) the concentration the material at position \(x\) and time \(t\text{.}\) See Figure 2.9.3 for an example.
We use similar idea in the more general case:
We change coordinates to the characteristic coordinates. Let us call these coordinates \((\xi,s)\text{.}\) These are coordinates where \(a u_x + b u_t\) becomes differentiation in the \(s\) variable.
Along the characteristic curves (where \(\xi\) is constant), we get a new ODE in the \(s\) variable. In the transport equation, we got the simple \(\frac{du}{ds} = 0\text{.}\) In general, we get the linear equation
We think of everything as a function of \(\xi\) and \(s\text{,}\) although we are thinking of \(\xi\) as a parameter rather than an independent variable. So the equation is an ODE. It is a linear ODE that we can solve using the integrating factor.
To find the characteristics, think of a curve given parametrically \(\bigl(x(s),t(s)\bigr)\text{.}\) We try to have the curve satisfy
Why? Because when we think of \(x\) and \(t\) as functions of \(s\) we find, using the chain rule,
So we get the ODE (7), which then describes the value of the solution \(u\) of the PDE along this characteristic curve. It is also convenient to make sure that \(s=0\) corresponds to \(t=0\text{,}\) that is \(t(0) = 0\text{.}\) It will be convenient also for \(x(0) = \xi\text{.}\) See Figure 2.9.4.
Example 1.9.2.
Consider
We find the characteristics, that is, the curves given by
So
for some \(c_1\) and \(c_2\text{.}\) At \(s=0\) we want \(t=0\text{,}\) and \(x\) should be \(\xi\text{.}\) So we let \(c_1 = \xi\) and \(c_2 = 0\text{:}\)
The ODE is \(\frac{du}{ds} + u = x\text{,}\) and \(x = s+\xi\text{.}\) So, the ODE to solve along the characteristic is
The general solution of this equation, treating \(\xi\) as a parameter, is \(u = C e^{s}+s+\xi1\text{,}\) for some constant \(C\text{.}\) At \(s=0\text{,}\) our initial condition is that \(u\) is \(e^{\xi^2}\text{,}\) since at \(s=0\) we have \(x=\xi\text{.}\) Given this initial condition, we find \(C=e^{\xi^2}  \xi +1\text{.}\) So,
Substitute \(\xi = xt\) and \(s=t\) to find \(u\) in terms of \(x\) and \(t\text{:}\)
See Figure 2.9.6 for a plot of \(u(x,t)\) as a function of two variables.
When the coefficients are not constants, the characteristic curves are not going to be straight lines anymore.
Example 1.9.3.
Consider the following variable coefficient equation:
We find the characteristics, that is, the curves given by
So
At \(s=0\text{,}\) we wish to get the line \(t=0\text{,}\) and \(x\) should be \(\xi\text{.}\) So
OK, the ODE we need to solve is
This is for a fixed \(\xi\text{.}\) At \(s=0\text{,}\) we should get that \(u\) is \(\cos(\xi)\text{,}\) so that is our initial condition. Consequently,
We make a few closing remarks. One thing to keep in mind is that we would get into trouble if the coefficient in front of \(u_t\text{,}\) that is the \(b\text{,}\) is ever zero. Let us consider a quick example of what can go wrong:
This problem has no solution. If we had a solution, it would imply that \(u_x(x,0) = \cos(x)\text{,}\) but \(u_x(x,0) + u(x,0) = \cos(x) + \sin(x) \not= 0\text{.}\) The problem is that the characteristic curve is now the line \(t=0\text{,}\) and the solution is already provided on that line!
As long as \(b\) is nonzero, it is convenient to ensure that \(b\) is positive by multiplying by \(1\) if necessary, so that positive \(s\) means positive \(t\text{.}\)
Another remark is that if \(a\) or \(b\) in the equation are variable, the computations can quickly get out of hand, as the expressions for the characteristic coordinates become messy and then solving the ODE becomes even messier. In the above examples, \(b\) was always \(1\text{,}\) meaning we got \(s=t\) in the characteristic coordinates. If \(b\) is not constant, your expression for \(s\) will be more complicated.
Finding the characteristic coordinates is really a system of ODE in general if \(a\) depends on \(t\) or if \(b\) depends on \(x\text{.}\) In that case, we would need techniques of systems of ODE to solve, see Chapter 3 or Chapter 8. In general, if \(a\) and \(b\) are not linear functions or constants, finding closed form expressions for the characteristic coordinates may be impossible.
Finally, the method of characteristics applies to nonlinear first order PDE as well. In the nonlinear case, the characteristics depend not only on the differential equation, but also on the initial data. This leads to not only more difficult computations, but also the formation of singularities where the solution breaks down at a certain point in time. An example application where first order nonlinear PDE come up is traffic flow theory, and you have probably experienced the formation of singularities: traffic jams. But we digress.
Subsection 1.9.1 Exercises
Exercise 1.9.1.
Solve
\(u_t +9u_x = 0\text{,}\) \(u(x,0) = \sin(x)\text{,}\)
\(u_t 8u_x = 0\text{,}\) \(u(x,0) = \sin(x)\text{,}\)
\(u_t +\pi u_x = 0\text{,}\) \(u(x,0) = \sin(x)\text{,}\)
\(u_t + \pi u_x + u = 0\text{,}\) \(u(x,0) = \sin(x)\text{.}\)
Exercise 1.9.2.
Solve \(u_t +3u_x = 1\text{,}\) \(u(x,0) = x^2\text{.}\)
Exercise 1.9.3.
Solve \(u_t +3u_x = x\text{,}\) \(u(x,0) = e^x\text{.}\)
Exercise 1.9.4.
Solve \(u_x+u_t+xu = 0\text{,}\) \(u(x,0) = \cos(x)\text{.}\)
Exercise 1.9.5.

Find the characteristic coordinates for the following equations:
1) \(u_x+u_t + u = 1\text{,}\) \(u(x,0) = \cos(x)\text{,}\) 2) \(2u_x+2u_t +2u = 2\text{,}\) \(u(x,0) = \cos(x)\text{.}\)
Solve the two equations using the coordinates.
Explain why you got the same solution, although the characteristic coordinates you found were different.
Exercise 1.9.6.
Solve \((1+x^2) u_t + x^2 u_x + e^x u = 0\text{,}\) \(u(x,0) = 0\text{.}\) Hint: Think a little out of the box.
Exercise 1.9.101.
Solve
\(u_t  5u_x = 0\text{,}\) \(u(x,0) = \frac{1}{1+x^2}\text{,}\)
\(u_t + 2u_x = 0\text{,}\) \(u(x,0) = \cos(x)\text{.}\)
a) \(u = \frac{1}{1+{(x+5t)}^2}\) b) \(u = \cos(x2t)\)
Exercise 1.9.102.
Solve \(u_x+u_t+tu = 0\text{,}\) \(u(x,0) = \cos(x)\text{.}\)
\(u = \cos(xt)e^{t^2/2}\)
Exercise 1.9.103.
Solve \(u_x+u_t = 5\text{,}\) \(u(x,0) = x\text{.}\)
\(u = x + 4t\)