Unit 12, lesson 70

First-Order Transport and Characteristics

How the method of characteristics reduces transport equations to ODEs along curves, where inflow boundary data belong, and how variable speed, a source term and Burgers' equation with weak solutions change the picture.

  • Video 70
  • PDE Classification and Transport

A puff of dye released into a pipe with a steady flow drifts downstream, and if nothing mixes it, the puff keeps its shape. Knowing the concentration along the pipe at time zero, what is it at a later time and another place? Throughout, u(x,t)u(x, t) depends on a position xx and a time tt, and subscripts denote partial derivatives, so ut=∂u/∂tu_t = \partial u/\partial t and ux=∂u/∂xu_x = \partial u/\partial x. This lesson answers the question by following the curves along which information travels, and it uses the same curves to decide where boundary data belong and when a smooth solution stops existing.

Key terms

Transport equation

Definition Let cc be a real constant. The transport equation with speed cc is

ut+c ux=0,u_t + c\,u_x = 0,

posed for all real xx and t≥0t \ge 0 with the initial condition u(x,0)=f(x)u(x, 0) = f(x). If ff is continuously differentiable on R\mathbb{R}, this problem has exactly one continuously differentiable solution,

u(x,t)=f(x−ct).u(x, t) = f(x - ct).

It is a solution because ut=−c f′(x−ct)u_t = -c\,f'(x - ct) and ux=f′(x−ct)u_x = f'(x - ct). It is the only one because, for any continuously differentiable solution, the function t↦u(ξ+ct,t)t \mapsto u(\xi + ct, t) has the derivative ut+c uxu_t + c\,u_x evaluated on the line x=ξ+ctx = \xi + ct, which is zero, so uu keeps the value f(ξ)f(\xi) along that whole line. The sign of cc gives the direction. For c>0c > 0 the profile moves right, and for c<0c < 0 it moves left.

In plain words The equation describes a profile that slides at a constant speed without changing its shape. The value found at position xx and time tt is the value that started at the position x−ctx - ct.

Example With c=2c = 2 and f(x)=e−x2f(x) = e^{-x^2} the solution is u=e−(x−2t)2u = e^{-(x - 2t)^2}. Writing w=x−2tw = x - 2t for the shifted coordinate,

ut=4w e−w2,ux=−2w e−w2,\begin{gathered} u_t = 4w\,e^{-w^2}, \\[0.4em] u_x = -2w\,e^{-w^2}, \end{gathered}

so ut+2ux=0u_t + 2u_x = 0, and u(x,0)=e−x2u(x, 0) = e^{-x^2}. The peak sits at x=2tx = 2t with height 11 at every time, so the bump moves right at speed 22 without spreading or shrinking. The formula e−(x+2t)2e^{-(x + 2t)^2} would move the bump left, and it solves ut−2ux=0u_t - 2u_x = 0 instead.

Method of characteristics

Definition Consider a linear first-order equation

ut+a(x,t) ux=q(x,t),u_t + a(x, t)\,u_x = q(x, t),

where aa and qq are continuous and aa is continuously differentiable in xx. A characteristic curve is the graph in the (x,t)(x, t) plane of a solution x(t)x(t) of the ordinary differential equation

dxdt=a(x,t).\frac{dx}{dt} = a(x, t).

Along such a curve the chain rule gives

ddt u(x(t),t)=ut+dxdt ux=q(x(t),t).\begin{aligned} \frac{d}{dt}\,u(x(t), t) &= u_t + \frac{dx}{dt}\,u_x \\[0.4em] &= q(x(t), t). \end{aligned}

The method of characteristics solves the path equation with x(0)=ξx(0) = \xi, integrates the value equation starting from u=f(ξ)u = f(\xi) at t=0t = 0, and finally expresses ξ\xi in terms of the point (x,t)(x, t). The hypothesis on aa makes the characteristic through each point unique, so two characteristics of a linear equation never cross. This determines uu at every point whose characteristic, traced backward, reaches the initial line without leaving the region where the problem is posed.

In plain words Stop watching one fixed spot and ride along with the flow instead. On the right path the partial differential equation says exactly how the carried value changes, so one partial differential equation splits into two ordinary ones, one for where the path goes and one for what it carries.

Example For a constant speed a=ca = c and q=0q = 0, the path equation gives x=ξ+ctx = \xi + ct and the value equation keeps u=f(ξ)u = f(\xi). Solving for the starting point gives ξ=x−ct\xi = x - ct, which reproduces u=f(x−ct)u = f(x - ct). To evaluate the Gaussian solution above at x=5x = 5 and t=1.5t = 1.5, trace back to ξ=5−2(1.5)=2\xi = 5 - 2(1.5) = 2 and read off

u(5,1.5)=f(2)=e−4,u(5, 1.5) = f(2) = e^{-4},

which is about 0.01830.0183.

Inflow boundary

Definition Pose the transport equation ut+c ux=0u_t + c\,u_x = 0 with a constant c≠0c \ne 0 on the quarter plane x≥0x \ge 0, t≥0t \ge 0, with initial data u(x,0)=f(x)u(x, 0) = f(x) for x≥0x \ge 0. If c>0c > 0, the characteristics x=ξ+ctx = \xi + ct move right and enter the region through the edge x=0x = 0. That edge is an inflow boundary, and one condition u(0,t)=g(t)u(0, t) = g(t) is prescribed there. The solution is u=f(x−ct)u = f(x - ct) in the region x≥ctx \ge ct, whose characteristics start on the initial line, and

u(x,t)=g ⁣(t−xc)u(x, t) = g\!\left(t - \frac{x}{c}\right)

in the region 0≤x<ct0 \le x < ct, whose characteristics start on the boundary at the time t−x/ct - x/c. If c<0c < 0, every characteristic through a point of the quarter plane traces back to the initial line, the values u(0,t)=f(−ct)u(0, t) = f(-ct) are already determined, and x=0x = 0 is an outflow boundary where no independent condition can be imposed. On an interval 0≤x≤L0 \le x \le L with c>0c > 0, data go at the left end only. The two pieces join continuously across the line x=ctx = ct exactly when g(0)=f(0)g(0) = f(0). If ff and gg are continuously differentiable, the solution is continuously differentiable exactly when also

g′(0)=−c f′(0),g'(0) = -c\,f'(0),

which is the transport equation evaluated at the corner, where ut=g′(0)u_t = g'(0) and ux=f′(0)u_x = f'(0).

In plain words Information travels along characteristics in the direction of the speed. Data can be supplied only where characteristics enter the region, and an end where they leave already receives its values from inside.

Example Take c=2c = 2, f(x)=e−xf(x) = e^{-x} and g(t)=e2tg(t) = e^{2t}. The corner values agree, g(0)=f(0)=1g(0) = f(0) = 1, and the derivatives satisfy g′(0)=2=−2f′(0)g'(0) = 2 = -2f'(0). The two branches give the same expression,

f(x−2t)=e2t−x,g ⁣(t−x2)=e2t−x,\begin{gathered} f(x - 2t) = e^{2t - x}, \\[0.4em] g\!\left(t - \tfrac{x}{2}\right) = e^{2t - x}, \end{gathered}

so u=e2t−xu = e^{2t - x} is one smooth solution on the whole quarter plane. With the boundary data g(t)=1g(t) = 1 instead, the values still match at the corner, but g′(0)=0≠2g'(0) = 0 \ne 2. The solution is then e2t−xe^{2t - x} for x≥2tx \ge 2t and 11 for x<2tx < 2t. It is continuous and solves the equation on each side of the line x=2tx = 2t, but uxu_x jumps from 00 to −1-1 across that line.

Variable speed

Definition In the equation ut+a(x,t) ux=0u_t + a(x, t)\,u_x = 0, with a speed that depends on position or time and is continuous and continuously differentiable in xx, the characteristics solve dx/dt=a(x,t)dx/dt = a(x, t) and are curves rather than parallel lines. The value uu is still constant along each of them, so u(x,t)=f(ξ)u(x, t) = f(\xi) at every point whose characteristic traces back to a starting point ξ\xi on the initial line. Where characteristics spread apart the profile is stretched, and where they draw together it is compressed, but every value it carries is kept. This advective form differs from the conservation law ρt+(aρ)x=0\rho_t + (a\rho)_x = 0 for a density ρ\rho, which expands to ρt+aρx=−axρ\rho_t + a\rho_x = -a_x\rho and changes the carried value wherever ax≠0a_x \ne 0.

In plain words A variable speed bends the paths, but the strategy stays the same. Each path still carries its starting value, and only the map from starting points to current positions becomes more complicated.

Example For ut+x ux=0u_t + x\,u_x = 0 on x>0x > 0, the path equation dx/dt=xdx/dt = x gives x=ξetx = \xi e^{t}, so ξ=xe−t\xi = x e^{-t} and u=f(xe−t)u = f(x e^{-t}). The line x=0x = 0 is itself a characteristic, so every point with x>0x > 0 traces back to a starting point ξ>0\xi > 0 and no boundary data are needed. With f(ξ)=ξ2f(\xi) = \xi^2 the solution is u=x2e−2tu = x^2 e^{-2t}, and

ut=−2x2e−2t,x ux=2x2e−2t,\begin{aligned} u_t &= -2x^2 e^{-2t}, \\[0.4em] x\,u_x &= 2x^2 e^{-2t}, \end{aligned}

which cancel. The characteristic that starts at ξ=1\xi = 1 reaches x=e≈2.718x = e \approx 2.718 at t=1t = 1, and there u=e2e−2=1u = e^2 e^{-2} = 1, the value it started with.

Source term

Definition A source term is a right side qq in the equation

ut+a(x,t) ux=q(x,t,u),u_t + a(x, t)\,u_x = q(x, t, u),

with qq continuous. Along a characteristic x(t)x(t) the carried value U(t)=u(x(t),t)U(t) = u(x(t), t) is no longer constant but obeys the ordinary differential equation

dUdt=q(x(t),t,U).\frac{dU}{dt} = q\big(x(t), t, U\big).

When qq does not depend on uu, integration gives the carried value at time tt as the starting value plus the accumulated source,

U(t)=f(ξ)+∫0tq dτ,U(t) = f(\xi) + \int_0^t q\,d\tau,

with qq evaluated at (x(τ),τ)(x(\tau), \tau) along the characteristic. The speed decides where information travels, and the source decides how the carried value changes on the way.

In plain words Each path now carries a value that is topped up or drained at the rate qq as it travels. Find the path first, then add up what the source contributed along it.

Example For ut+2ux=3u_t + 2u_x = 3 with u(x,0)=e−x2u(x, 0) = e^{-x^2}, the characteristics are still x=ξ+2tx = \xi + 2t, and the value grows at the rate 33 along each one, so

u=e−(x−2t)2+3t.u = e^{-(x - 2t)^2} + 3t.

The Gaussian part contributes 00 to ut+2uxu_t + 2u_x as before, and the term 3t3t contributes 33, so the left side equals the source exactly. The bump keeps its shape and speed while the whole profile rises at the rate 33. A source that depends on uu, such as q=−kuq = -ku with a constant k>0k > 0 and a constant speed cc, gives the solution u=e−ktf(x−ct)u = e^{-kt} f(x - ct), a profile that moves and decays at the same time.

Inviscid Burgers’ equation

Definition The inviscid Burgers’ equation is

ut+u ux=0,u_t + u\,u_x = 0,

a transport equation whose speed is the unknown itself. For smooth solutions it can be written in the conservation form ut+(12u2)x=0u_t + \left(\tfrac{1}{2}u^2\right)_x = 0. Take u(x,0)=f(x)u(x, 0) = f(x) with ff continuously differentiable. Each characteristic carries the constant value f(ξ)f(\xi) and therefore moves on the straight line

x=ξ+f(ξ) t.x = \xi + f(\xi)\,t.

While these lines do not cross, the solution is classical, with ux=f′(ξ)/(1+f′(ξ) t)u_x = f'(\xi)/(1 + f'(\xi)\,t) at the point reached by the line from ξ\xi. If f′≥0f' \ge 0 everywhere, they never cross, and a classical solution exists for all t≥0t \ge 0. If inf⁡f′=−m\inf f' = -m with 0<m<∞0 < m < \infty, the largest interval [0,T)[0, T) on which a classical solution exists has

T=1m,T = \frac{1}{m},

and uxu_x becomes unbounded as tt increases to TT. A weak solution of the conservation form with initial data ff is a locally bounded function uu with

∬Q(u φt+12u2φx)dx dt+∫Rf(x) φ(x,0) dx=0\begin{gathered} \iint_Q \left(u\,\varphi_t + \tfrac{1}{2}u^2\varphi_x\right)dx\,dt \\[0.4em] + \int_{\mathbb{R}} f(x)\,\varphi(x, 0)\,dx = 0 \end{gathered}

for every continuously differentiable φ\varphi that vanishes outside a bounded set, where QQ is the half plane t>0t > 0. Classical solutions are weak solutions, and weak solutions may contain jumps. Across a jump along a smooth curve x=s(t)x = s(t), with the value u−u_- on its left and u+u_+ on its right, the weak form forces the Rankine-Hugoniot condition

s′(t)=u−+u+2.s'(t) = \frac{u_- + u_+}{2}.

Weak solutions with the same data need not be unique. An admissibility condition, such as the entropy condition u−>u+u_- > u_+ that the limit of vanishing viscosity satisfies, selects the physical one.

In plain words Larger values of uu move to the right faster. Where the values decrease from left to right, fast characteristics catch up with slow ones, the profile steepens, and at the time TT the smooth solution breaks. Weak solutions go on past that moment by allowing a jump, called a shock, which moves at the average of the values on its two sides.

Example For f(x)=−xf(x) = -x the characteristic from ξ\xi carries −ξ-\xi, so x=ξ(1−t)x = \xi(1 - t). For t<1t < 1 this inverts to ξ=x/(1−t)\xi = x/(1 - t), and

u=−x1−t,t<1.u = -\frac{x}{1 - t}, \qquad t < 1.

Here ut=−x/(1−t)2u_t = -x/(1 - t)^2 and ux=−1/(1−t)u_x = -1/(1 - t), so u ux=x/(1−t)2u\,u_x = x/(1 - t)^2 and the equation holds. At t=0t = 0 the formula gives −x-x. Every characteristic reaches x=0x = 0 at t=1t = 1, where ux=−1/(1−t)u_x = -1/(1 - t) blows up, in line with T=1/mT = 1/m for m=1m = 1. For a jump, take f=1f = 1 for x<0x < 0 and f=0f = 0 for x>0x > 0. The characteristics from the left move at speed 11 and run into the resting ones on the right at once. The function equal to 11 for x<t/2x < t/2 and to 00 for x>t/2x > t/2 is a weak solution with the shock speed (1+0)/2=1/2(1 + 0)/2 = 1/2, and it meets the entropy condition, since u−=1>u+=0u_- = 1 > u_+ = 0.

Check yourself

  1. Solve ut−3ux=0u_t - 3u_x = 0 with u(x,0)=1/(1+x2)u(x, 0) = 1/(1 + x^2). In which direction does the profile move, and where is its peak at t=2t = 2?
Show the answer

The speed is c=−3c = -3, so u=f(x−ct)=f(x+3t)u = f(x - ct) = f(x + 3t), that is

u(x,t)=11+(x+3t)2.u(x, t) = \frac{1}{1 + (x + 3t)^2}.

The profile moves left at speed 33. Its peak sits where x+3t=0x + 3t = 0, so at t=2t = 2 it is at x=−6x = -6, still with height 11. Writing f(x−3t)f(x - 3t) is a common slip. That function moves right and solves ut+3ux=0u_t + 3u_x = 0 instead.

  1. Pose ut+3ux=0u_t + 3u_x = 0 on 0≤x≤10 \le x \le 1, t≥0t \ge 0, with u(x,0)=sin⁡2(πx)u(x, 0) = \sin^2(\pi x). A classmate imposes both u(0,t)=0u(0, t) = 0 and u(1,t)=0u(1, t) = 0. Which condition belongs to the problem, what is the solution with that condition alone, and why is the other one a mistake?
Show the answer

The speed is positive, so characteristics enter at x=0x = 0 and leave at x=1x = 1. The left end is the inflow boundary, and u(0,t)=0u(0, t) = 0 belongs to the problem. The corner conditions hold, because g(0)=0=f(0)g(0) = 0 = f(0) and f′(x)=2πsin⁡(πx)cos⁡(πx)f'(x) = 2\pi\sin(\pi x)\cos(\pi x) gives f′(0)=0f'(0) = 0, so g′(0)=0=−3f′(0)g'(0) = 0 = -3f'(0). The solution is u=sin⁡2(π(x−3t))u = \sin^2(\pi(x - 3t)) for x≥3tx \ge 3t and u=0u = 0 for x<3tx < 3t, and it is zero on the whole interval once t≥1/3t \ge 1/3. At the outflow end the solution gives

u(1,t)=sin⁡2(π(1−3t))u(1, t) = \sin^2\big(\pi(1 - 3t)\big)

for 0≤t≤1/30 \le t \le 1/3, for instance u(1,1/6)=sin⁡2(π/2)=1u(1, 1/6) = \sin^2(\pi/2) = 1. The value at x=1x = 1 is already decided by the initial data, so the extra condition u(1,t)=0u(1, t) = 0 contradicts it and leaves the problem with no solution.

  1. For Burgers’ equation ut+u ux=0u_t + u\,u_x = 0 with u(x,0)=e−x2u(x, 0) = e^{-x^2}, find the time at which the classical solution breaks down and the place where the gradient first becomes infinite.
Show the answer

The data have f′(x)=−2xe−x2f'(x) = -2x e^{-x^2}, and f′′(x)=(4x2−2)e−x2f''(x) = (4x^2 - 2)e^{-x^2} vanishes at x=±1/2x = \pm 1/\sqrt{2}. The smallest value of f′f' is at x=1/2x = 1/\sqrt{2}, where f′=−2 e−1/2f' = -\sqrt{2}\,e^{-1/2}. So m=2 e−1/2m = \sqrt{2}\,e^{-1/2} and

T=1m=e2≈1.166.T = \frac{1}{m} = \sqrt{\frac{e}{2}} \approx 1.166.

Neighboring characteristics first meet along the one from ξ=1/2\xi = 1/\sqrt{2}, which carries the value e−1/2e^{-1/2}. At time TT it is at

x=12+e−1/2e2=2≈1.414.\begin{aligned} x &= \frac{1}{\sqrt{2}} + e^{-1/2}\sqrt{\frac{e}{2}} \\[0.4em] &= \sqrt{2} \approx 1.414. \end{aligned}

The front of the bump, where the values fall from left to right, steepens into the shock, while the back, where f′>0f' > 0, spreads out.

How this lesson connects