Differential Equations for EngineersXYZ Homework Edition

⇩ Download ▾

1.9 First Order Linear PDE

We only considered ODE so far, so let us solve a linear first order PDE. Consider the equation

a(x,t)ux+b(x,t)ut+c(x,t)u=g(x,t),u(x,0)=f(x),<x<,t>0,a(x,t) \, u_x + b(x,t) \, u_t + c(x,t) \, u = g(x,t), \qquad u(x,0) = f(x), \qquad -\infty < x < \infty, \quad t > 0, \nonumber

where u(x,t)u(x,t) is a function of xx and tt. The initial condition u(x,0)=f(x)u(x,0) = f(x) is now a function of xx rather than just a number. In these problems, it is useful to think of xx as position and tt as time. The equation describes the evolution of a function of xx as time goes on. Below, the coefficients aa, bb, cc, and the function gg 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. 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.

We use similar idea in the more general case:

aux+but+cu=g,u(x,0)=f(x).a u_x + b u_t + c u = g, \qquad u(x,0) = f(x). \nonumber

We change coordinates to the characteristic coordinates. Let us call these coordinates (ξ,s)(\xi,s). These are coordinates where aux+buta u_x + b u_t becomes differentiation in the ss variable.

Along the characteristic curves (where ξ\xi is constant), we get a new ODE in the ss variable. In the transport equation, we got the simple duds=0\frac{du}{ds} = 0. In general, we get the linear equation

duds+cu=g.\label{eq:fopde:charode} \frac{du}{ds} + c u = g.

(1.9.1)

We think of everything as a function of ξ\xi and ss, 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 (x(s),t(s))\bigl(x(s),t(s)\bigr). We try to have the curve satisfy

dxds=a,dtds=b.\frac{dx}{ds} = a, \qquad \frac{dt}{ds} = b. \nonumber

Why? Because when we think of xx and tt as functions of ss we find, using the chain rule,

duds+cu=(uxdxds+utdtds)duds+cu=aux+but+cu=g.\frac{du}{ds} + c u = \underbrace{\left( u_x \frac{dx}{ds} + u_t \frac{dt}{ds}\right)}_{\frac{du}{ds}} + c u = a u_x + b u_t + c u = g. \nonumber

So we get the ODE (1.9.1), which then describes the value of the solution uu of the PDE along this characteristic curve. It is also convenient to make sure that s=0s=0 corresponds to t=0t=0, that is t(0)=0t(0) = 0. It will be convenient also for x(0)=ξx(0) = \xi. See Figure 3\PageIndex{3}.

The graph contains (epsilon,0) at x=0 and goes through (x(s),t(s)).
Figure 3\PageIndex{3}: General characteristic curve.

When the coefficients are not constants, the characteristic curves are not going to be straight lines anymore.

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 utu_t, that is the bb, is ever zero. Let us consider a quick example of what can go wrong:

ux+u=0,u(x,0)=sin(x).u_x + u = 0, \qquad u(x,0) = \sin(x). \nonumber

This problem has no solution. If we had a solution, it would imply that ux(x,0)=cos(x)u_x(x,0) = \cos(x), but ux(x,0)+u(x,0)=cos(x)+sin(x)=0u_x(x,0) + u(x,0) = \cos(x) + \sin(x) \not= 0. The problem is that the characteristic curve is now the line t=0t=0, and the solution is already provided on that line!

As long as bb is nonzero, it is convenient to ensure that bb is positive by multiplying by 1-1 if necessary, so that positive ss means positive tt.

Another remark is that if aa or bb 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 examples above, bb was always 11, meaning we got s=ts=t in the characteristic coordinates. If bb is not constant, your expression for ss will be more complicated.

Finding the characteristic coordinates is really a system of ODE in general if aa depends on tt or if bb depends on xx. In that case, we would need techniques of systems of ODE to solve, see Chapter 3 or Chapter 8. In general, if aa and bb 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.

Adapted from Differential Equations for Engineers by Jiří Lebl (https://www.jirka.org/diffyqs/), © Jiří Lebl, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.