Chapter 12 Characteristics
Chapter 12 Characteristics
524
11.3.5. Consider
au
at
a 2u
k dx'
au
ox (O,t)
A(t)
+ Q(:r, t)
u(x,O)
f(x)
au (L ,t;i
"'1
C.T
B(t),
(a) Solve for the appropriate Green's function using the method of eigen
function expansion.
(b) Approximate the Green's function of part (a), Under what conditions is
your approximation valid?
(c) Solve for the appropriate Green's function using the infinite space Green's
function.
(d) Approximate the Green's function of part (c). Under what cOlluitiulls is
your approximation valid?
(e) Solve for u(x, t) in terms of the Green's function.
11.3.6. Determine the Green's function for the. heat equation subject to zero bound
ary conditions at x - 0 and x = L by applying the lllp.thod of eigenfunction
expansions directly to the defining differential equation. [Hint: The answer is
given by (11.3.35)1
Chapter 12
The Method of
Characteristics
for Linear and Quasi-Linear
Wave Equations
12.1
Introduction
8 2u
') D2,U
(12.1.1)
,,(x.O) = f(:r)
(12.1.2)
au
at (:r.O)
= g(:r).
(12.1.3)
.mrct)
+ bn S111
L .
(12.1.4)
n=l
Further analysis of this solution [see (4.4.14) and Exercises 4.4.7 and 4.4.8j shows
that the solution can be represented as the Stun of a forward and backward moving
wave. In particular,
u(x, t)
= fix -
et)
+2 fix + ct + 2.
2e
525
x+d
x-c'
g(xo) dxo,
(12.1.5)
527
526
where f(x) and g(x) are the odd periodic extensions of the functions given in (12.1.2)
aV_Cav=o.
(12.2.5)
and (12.1.3). We also obtained (12.1.5) in Chapter 11 for the one- dimensional wave
iJt
ax
equation without boundaries, using the infinite space Green's function.
In this chapter we introduce the more powerful method of characteristics to solve
the one- dimensional wave equation. We will show in general that u(x, t) = F(x
12.2.2 Method of Characteristics for First-Order
ct) + G(x + ct), where F and G are arbitrary functions. We will show that (12.1.5)
Partial Differential Equations
follows for infinite space problems. Then we will discuss modifications needed to
We begin by discussing either one of these simple first-order partial differential
solve semi-infinite and finite domain problems. In Section 12.6, the method of
equations:
characteristics will be applied to quasi-linear partial differential equations. There
shock waves will be introduced when characteristics intersect.
aw
aw
tit +ca;: =
Wave Equations
12.2.1
The methods we will develop \vill be helpful in analyzing the one- dimensional wave
equation (12.2.1). We consider the rate of change of w(.r(t), t) as measured by a
moving observer, x = x(t). The chain rule l implies that
Introduction
[)2
U
-a
2 t
iJ2 u
c2 _ [ 2) =
x
o.
(12.2.6)
O.
aw
-d w(x(t), t) = -iJ
t
t
(12.2.1)
aw / iJ t
dxiJw
+ -dt -:;-.
U.r
(12.2.7)
(dx/dt)(oW/al') represents the change due to the fact that the observer moves
A short calculation shows that it can be "factored" in two ways:
+ c!!....)
(!!....
iJt
ax
into a region of possibly different w. Compare (12.2.7) with the partial differential
equation for w, equation (12.2.6). It is apparent that if the observer moves with
velocity C, that is , if
(iJU _ au) = 0
at
ax
iJ
a) (au
1ft + c au)
iJx = 0,
( at - c ax
au
au
v=lft+ciJx'
then
(12.2.2)
(12.2.8)
[B
(12.2.9)
dt
(12.2.3)
we see that the one _dimensional wave equation (involving second derivatives) yieldS
O.
would measure
ow
aw
tit+cax =0
x = ct + Xn,
(12.2.10)
(12.2.4)
1 Here
528
teri'5tics, x ~ 2t
+0
~~~
~~
L /~-
w(x, t)
w(x,O)
US
determine
'W
teristic)
if 2t
(12.2.11)
= P(x),
2t. Otherwise, by
= xo:
= 2t + xu.
~~"'-t=2
~
t=l
t=O
thus
(12.2.12)
dP
Ow
2t),
~t=3
w=o
Giveu x and t, the parameter is known from the characteristic. Xo = x - ct, and
and
<
0,
= w(xo, 0) = P(xo).
w(x, t)
2t)
or if x
then let
"
""
= 4(x -
= 0 if x > 2t + I
52
Same shape. In general w(x, t) = P(.T - et). At fixed t, thc solution of the
first-Order wave equation is the same shape shifted a distance ct (distance = velocity
times t.ime). We illustrate this in Fig. 12.2.3.
t=o
t = 11
d(J' - ct)
Ow
dP
O(x-d)
dP
_= .
.
=-r
at
d\x - et)
aI
. d(x - cf:)'
Example. Consider
ow
ow
_+2-=0.
at
ax
x=o
= ell
--0--------
~x
x<O
O<x<l
x>!.
530
EXERCISES 12.2
12.2.1. Show that the wave equation can be considered as the following system of
two coupled first-order partial differential equations:
au
au
--cat
ax
*12.2.2. Solve
Ow
aw
at
ax
ow
ow
--3-=0
12.2.3. Solve
ow
ow
-+c- at
01'
-+4-=0
f) t
a.r.
Vllt:-1JJ11H:;1J~lUllUl
.lL,.u.
vrctvt:
~LJua"lUl1
vve
O.
ij"
au
a-a
+ be>
=
x
uy
C,
where a, o. and c are fllnction~ of x, y and 11" show that the method of
characterititics (if necessary, see Section 12.6) )rield.;;
dx
dy
du
-;;=b"=-;;
12.2.4. Solve
ow
aw
-+c-=O
at
ax
w(x. 0)
f(x)
(c > 0)
x>p
w(O. t)
+ c~w
= e'x with W(I, 0) = f(x)
o:r:
~"( + x~:: = 1 with 11I(x, 0) = f(x}
~"( + t%'i- = 1 with w(x, 0) = f(x)
~~ + 3t~:: = w with w(:r, 0) ~ f(x)
(a) D.w
dt
(c)
*(d)
{)u
-+2u-=0
at
ax
12.3.1
Introduction
a2u
a'u- 0
ih,2 - ,
at 2 c.2 _
au
Method of Characteristics
for the One-Dimensional Wave Equation
t > O.
12.2.5. Solve using the method of characteristics (if necessary, see Section 12.6):
*(b)
12.3
u(x,O)
with
f(x).
have
ShO\\'1l
x < 0
.E > O.
et).
v = -
at
(12.3.2)
ax
(12.3.:J)
all
au
= -at - cax- = P(x -
The problem for V is identical (replace c by -c). Thus, we could have shown that
u is trl'lJlslRted unchanged at velocity e
0 and
1
x<O
u(x,O) = f(.r.) = { 1 + xlL O<x<L
x> L.
2
co 11.' / ax =
u(x,O) = f(I) = { 2
(123.1)
au
'"
ut = -[P(x
2
and thus
+ G(x + ct),
(123.4)
532
cnaractenSlJGj
1L.J.
where F and G are arbitrary functions (-cF' = tP and cG' = tQ) This result
was obtained by d'Alembert in 1747.
The general sulutiull is the sum of F(x ct)l a wave of fixed shapP moving to
the right with velocity c, and G(x + eI), a wave of fixed shape moving to the left
with velocity -c. The solution may be sketched if F(x) and G(x) are known. We
shift F(x) to the right a distance et and shift G(x) to the left a distance ct and add
the two. Although each shape is unchanged, the sum will in general be a shape that
is changing in time. In Sec. 12.3.2 we will show how to detcrmine F(x) and G(x)
from initial conditions.
g(x)
= _ dF + dG
dx
(12.3.9)
dJ'
We solve. for G(X) by eliminating F(x); for example, adding the derivative of (12.3.8)
to (12.3.9) yields
dG
= ~ (df + g(X)).
dx
2dx
c
By integrating this, we obtain
;l' + ci = constant,. For the one-dimensional wa,ve equation, (12.3.1), there are two
G(x) = -1 fix)
2
+ -2c1
1
1
F(x) = -fix)
- ---:
2
2,
1,'
1,"
()
g(7) d7 +k
,
(12.3.10)
g(E) d7 -k,
(123.11)
x-ct=a
",+cl=;3 ~
where the latter equation was obtained from (12.3.8). k can be nel(lectcd since
u("',I) b obtained from (12.3.5) by adding (12.3.10) and (12.3.11) (with appropriate
shifts).
/XX><IX><x.>
13
- -x
'"
2f (x)
12.3.2
533
and
11
2c
g(7) dE
'
[n Sec. 12.3.1 we showed that the general solution of the one - dimellBional wave
2. By addition and subtraction, from F(x) and G(x); see (12.3.10) and (12.3.11).
equation is
3. lraJlslate (shift) F(x) to the right a dbtance ct and G(x) to the left ct.
n(x, t)
= FCT -
(12.3.5)
Here we -will determine the arbitrary functions in order to satisfy the initial condi
tions:
U(x.O)
= fix)
ou( x,OJ.
)
at
= g(x
-oo<x<oo
00
<x <
(12.3.6)
,,(x, t)
F(x)
eI) + f(x
+ ct)].
(12.3.12)
The initial condition nix, 0) ~ f(x) sphts into twu parts; half moves to the lett and
half to the right.
00.
Example. Suppose that an infinite vibrating string is initially stretched into the
shape of a single rectangular pnlse and is let go from rest. The corresponding initial
conditions are
1 Ixl < h
u(x, 0) = fix) = { 0 Ixl > h.
fix)
= 2[J(x -
+ G(x)
L.
___
534
and
au
i)t(X, 0) =
g(x)
O.
!
f
l
j
t
=
f
,
!
L
~
I
J
~
I
L
.
J ~L ~]l
't-~ ,~_
1-
02
r\
o~___
1
-~ ~
~
~'----
~~_
-
~-<~.
~
~-,-4
8
6 ~__
--'
~ __
4
-~~~_~
0
0
6--------
t=
Ix] <h
Ixl > h.
x+d=h
10
x - ct = -h
F~ol
x+cf= -h
x-ct=h
G~OI
x
F=O
G~O
'__
,.
I
F~O
t/2
t> hie
F~
1/2 (x t)
g~o
,_o~,O
F_~ 1/2
",
x
F_G-~O
0_
0.4
F~ 0
F=G=o----~--G~11/2'
_~---.--.'----G=O
-h F=G=lI2
. _
'..
t<hlc
08
= C(x) = {
distance
2h
h
=_=_
veioel ty
2c
c
F(x)
::1
535
apart at velocity 2c. The ends are initially a distance 2h apart, and hence the time
at which the two pulses separate is
The solution io given by (12.3.12). By adding toget.he.r these two rectangular pulses,
we obtain Fig. 12.3.2. The pulses overlap until the left end of the right-moving one
passes the right end of the othf';f. Since each is traveling at :::;peed c, they are moving
1_
0.2
Figure 12.3.3: Method of characteristics for the one- dimensional wave equation.
o
10
U(x,O)
to
___..J
-h-et
~
.c:l
-h-et
-h+ct: h-et
1/2
III
h-ct ',-h+et
= f(.r)
au
ot (x,O) = g(x)
------h
Example not at rest. Suppose that a.n infinite otring is initially horizontally
stretched with prescribed initial velocity 1'1."\ follows:
Odd/e
o
{
I Ixl < h
o Ixl > h.
h+et
t>hle
h+et
Figure 12.3.2: Initial value problem for the one - dimensional wave equation.
-h x <-h
-h < x < It
x> h.
x
h
Thc solut.ion u(x, t) is the SUIn of F(x) shifted to the right (at velocity c) and G(x)
shifted to the left (at velocity c). F(x) and G(x) are sketched in Fig. 12.3.4, as is
536
537
(x,t)
x = Xu - ct
02
~'
-\i\ ~,~
\~
'--LiN,
.--------1]<..1=1 4
hic<t=ts
- -I---:-Ll T:-N--":--~--t----i-I--!--:!
~
-~-------:r~::P~H7"-t~
'
____
w
o
,.hj,
-~_ 11<1 = "2<h/c
O<f=i1<h!c
t =0
x-ct
------
The general solution of thE' OIle - dimensional wave equation can be simplified some
what. Substituting (12.3.10) and (12.3.11) into the general solution (12.3.5) yields
'u(x,t)
- ct)
(h)
12.3.1. Suppose that ulx, t) = F(x - ct) + G(x + et), where F and G are sketched
in Fig. 12.3.6. Sketch tIle solution for various times.
~~~L
(J
L __
x=2
Figure 12.3.6
--~~~
x=O
x=l
a2 u
or
_ fIx - ct)
u(x, t) -
+ fix + ct ) +;-:
2
2(.
1
f'+d::J
g(x) dx.
Xo
EXERCISES 12.3
x=o
d'Alembert's Solution
+ et) + fIx
their ::;hifted sum. The striking of the broad hammer causes the displacement of the
string to gradually increase near where the hammer hit and to have this disturbance
spread out to the left and right as time increase8. Eventually, thp, string reaches an
elevated rest position. Alternatively, the solution can be obtained in an algebraic
way (see Exercise 12.3.5). The characteristics sketched in Fig. 12.3.3 are helpfnl.
fix
x+ct
(a)
12.3.3
+ ct
tr
tf
I ,--',
x = xo
(12.3.13)
at"
u(x, t)
a'u + a(x)5(t)
.
c-.-
ox'
t < O.
x-d
a'u
a'u
at'
dx'
- - =c2 _ _
>0
~ = x - ct
and
'] = x
+ ct.
539
538
A condition is lH'ct'ssary at the bounclary
at .r = 0:
(ll)
(a) ~~ (x, 0)
{~
Du
iJt(x,O) = g(.r)
1.1'1> h.
= c \I
u.
Jl
a2 w
oj
8 2 1lJ
Dt' = c- Dp' .
Shuw that the mo~t genpral spherically symmetric solutlon of the wave
(b) equation COIl::iists of the ~um of two spherically synunetric waves, one
moving outward at speed c and the other inward at speed c. Note the
1 D2 u
PDE: I -:C-2
31
a2 u
c'-a
2
x
II
(12.4.5)
2c
l'
g(x) dx
.r
>0
(12.4.6)
1"
g(x) dx
x> O.
(12.4.7)
(I
2c
+ et) + ~
.dd
g(x) dx,
2c .[ .1 '-('t
x> ct,
d'Alembert's solution. However, here thb is not valid if x < ct. Since x
+ G(T + ct).
Howevpr. it is very important to note that (unlike the case of the infinite string)
(12.4.6) awl (12.4.7) art' v"lid only for T > 0; the arbitrary functions an' only de
tennined from tIll' initial conditions for po:-:;itive argument.... In the general solution,
G(L' + d) requires only positive argument.1:; of G (since x > 0 and t > 0). On the
other h'1nd, F(.T - ct) requires po~itive arguments if .T > ct but rp<1uires negative
arguments if.r < ct. As indicat.ed by a space-time diagram, Fig. 12.4.1. the in
formation that. there is a fixed end at x = 0 travpls at a finite velocity c. Thus, if
:r > ct, the string does not know that. there is any boundary. In this case (.1' > ctL
the ,olntion is oblained as before [using (12.4.6) and (12.4.7)],
12.4
+ -1
-1 f(x) - -1
G(.r )
\I'll = (l/rl)(D/Dp)(p'Du/3p).
-1 fl.r)
2
G(T)
(a)
(12.4.4)
iJt'
(Hint: Using charaeteristies a~ sketched in Fi.g. 12,3,3, show there are two
distinct regions t < hie and t > hie, In each, show that the solution h8.-':I five
a2 u
SUppOSf'
Alt.hongh a Fourier sine transform can be Ilsed, we prefer to indicate how to use the
general solution and the method of characteristics:
U(X,O) = f(.r)
O. \Ve
I u(O, I) = 01
DC:
1
12.3.5. Dptennine analytic fonnula::; fora(x t) if
J.."
G(l:
> 0:
+ et)
1
= ;;f(.r
~
+ el) + -1
2c
1'+'"
(12.4.8)
+ ct > 0:
g(x) dx,
IJ
as determined earlipl'. To obtain F for negative argument.s, we cannot use the initial
conditions. Inst.ead: the boundary condition must be utiliz.ed. n(O, t) = 0 implies
t
lCl
lC2:
u(X,O) = f(x)
3u
at(x,O) = g(x).
I~x~ct
- x
541
540
o = F(~ct) + G(c!)
for t
> O.
(12.4.9)
F(z) = -G(-z)
Thus, the solution for x - ct
n(r, t)
F(x - et)
for z
< O.
(12.4.10)
< 0 is
+ G(x + ctl
1
.
1
-If(x + et) - flct - x)] + 2
2c
1
.
1
-[f(.r + c!) - f(et - X)I + 2
2c
[1 x
+",
g(x) dx -
1)
Jo'
As further explanation, suppose that u(x, t) is any solution of the wave eqnation.
Since the wave equation is unchanged when;c is replaced by -;c, a( -;c, t) (and any
multiple of it) is also a solution of the wave equ<ttiuH. If the initial conditions
satisfied by 1L(.~, t) are odd functions of ;c, then hoth lI(;C, t) and -1L( -;c, t) solve
these initial conditions and r,he wave equation. Since the initial value problem has
a unique solution l u(;:r, t) = -11( -;T~ t); that is) u(;r t), which is odd initially, will
remain odd for all time. Thus, odd initial conditiom; yield a solution that will satisf:.r
a zero boundary condition at ;(: = O.
j
tt-x
,"(;c,t)
One wi\Y to obtain this is to extend the initial position f(x) for ;C > 0 as an odd
function [such that f( -.r) = - f(x)1 and also extend t.he initial velocity g(.r) for
;c > 0 as au odd function [then its integral,
g(x) dx, will be an even function].
in summary, the solution of the semi-infinite problem with u = 0 at x = 0
is the same as an infinite problem with the initial positions and velocities
extended as odd functions,
f(;c)
Since g(.x)
= 0,
4<x<5
otherwise.
it follows that
F(x)
= {
= G(;c)
1
= 2f(x)
={
1
6
4<;c<5
ot.herwise (with x
>
0).
F moves to the right; G mOves to the left, negatively reflecting off ;c = O. This can
also be interpreted as an initial condition (on an infinite domain) with f(x) and
g(;c) extended as odd functions. The solution is sketched in Fig. 12.4.4. Note the
negative reflection.
I
I
x=ct
I
I
I
_~
The negatively reflected wave -G(-(x - ct)) moves to the right. It behaves as
at t = 0 it were -G( -;c). If there were no boundary, the right-moving
wave F(;c _ et) would be initially F(;c). Thus, the reflected wave is exactly the wave
if initially
F(;c) = -G(-;c)
for;c
< 0,
Fconstant
or eqUivalently
1
21 f (X) - 2c
1"
0
1
1
g(x) dx= -2J(-;C)
- 2c
1-'
0
"- G constant
g(7) dx.
G constant
;c
Reflected
542
",,(O,t)
uT
J(X)}
g(x)
543
x> 0
t> O.
(b) Show that the solution of part (a) may be obtained by extending the
initial position and velocity as even functions (around x = 0),
o+
--<----~-~~~--c-2
J(x) = {
4<x<5
othcnvjse.
EXERCISES 12.4
12.4.5. (a) Show that if u(x,t) and 8u/at are initially even around x = Xn,
u(x,t) will remain even for all time.
8'u
8'u
_=(;2_
8/'
8x'
subject to u(x,O)
= 0,
~~ (x, 0)
= 0,
(b) Show that this type. of e.ven initial condition yields a solution that will
satisfy a zero derivative boundary condition at x = XQ.
x>O
and u(O, t)
= h(t).
a2 u
at2
282U
--=c
-
8 t2
8,,'
2
C
0? U .
&x 2
for x <.. 0 only,
t
*12.4.7. Solve
t> O.
where u(x, 0) = COS1' X < 0, %7(x,O) = 0 x < 0, u(O,t) = eDo not sketch the solution. However 1 draw a. space - time diagnull l including
all important characteristics.
forO<x<oc
00<X<2
1 2<x <~
{ Ox> 3
Determine the solution. Sketch the solution for various times. (Assume that
u is continuous at x = 0, t
==::
12.4.8. Solve
u(x,O) =
8'u
28'U x> 0
0.)
[)2 U
[) 2
8'u
c',...,.
with u(x,O) =
uX
t
subject to u(x, t) = y(t) along x = ~i(c > 0).
ui
12.4.4. (aJ Solve for x > 0, t > 0 (using the method of characteristics)
8'u
8'u
8 t' = c? 8Il
8u
0 and ""(,,,0) = 0,
PDE:
a'u
_ = c2 _8'u
8 t'
8x'
(12.5.1)
544
u(O.t) =0
ulL,t)=U
(12.5.2)
11(X,0) = f(x)
au
a;-(x,O) = g(x),
(12.5.3)
~.
B v.
Ie:
Figure 12.5.2:
characteristic-so
MUltiply reflected
using Fourier series methods. \Ve can obtain an equivatent 1 but in some ways more
useful, result by using the general solution of the one- dimensional wave equation:
u(x, t)
(12.5.4)
The initial conditions are prescribed only for 0 < x < L, <;tnd hence the formulas
for F(x) and G(x) previously obtained are valid only for 0 < x < L:
F(x).
G(x)
If 0 < x et < L and 0
solution is valid:
u(x, i) =
-1 f(x) -1
1
x
g(x) dx
(12.5.5)
r g(x) dx.
(12.5.6)
2c
+ 2e Jo
2f(x)
< x + ct < L
+ ct) + -1
1'+0'
2c
g(x) dx.
(12.5.7)
x-ct
In this region the string does not know that either boundary exists; the information
that there is a boundary propa~ates at velocity c from x = 0 and x = L.
t
l~~~~1
."=".,,C'_,"'''..
If one's position and time is such that signals from the boundary have already
arrived, then modifications in (12.5.7) must be made. The hOllndary condition at
x = 0 implies that
0= Fl ~et) + G(ct) for i > 0,
(12.5.8)
while at x = L we have
0= F(L ci)
+ GlL + et)
for t >
o.
These in turn imply reflections and multiple reflections, as illustrated in Fig. 12.5.2.
u(x, t)
= 2[f(x -
el)
+ f(x + Ci)],
Where f(x) is the odd periodic extension of tire given initiai position. This solution
is much simpler than the summation of the first 100 terms of its Fourier sine series.
546
EXERCISES 12.5
!nethod of characteristics, used to solve the wave equation, can be applied to partiaJ
differential equations of the form
12.5.1. Consider
a2 u
2 02U
D:(T, 0)
Dx'
at(x,O)
--=c--
Df'
u(O, t)
f(x) }
gCT)
u(L, f)
*(b) If g(]') ~ 0, show that part. (a) is equivalent. to the results of Chapter 12.
(c) If f(x) = 0, show that part (a) is equivalent to the results of Chapter 12.
characteri~tics:
iJ t2 =
u(x,O) = 0
n(O, t) = h(l)
12.5.3. Consider
dp
df = Q(p,x,!).
ax2
Bu(].
fi t ,
2u
{)2_U
_
_ _ (,2 _ _
iJ f' - .
ax'
'
0) =
au
8i(;r,O)
u(L, I) = O.
n(O,
di
t)
= [)
au
ax (L, f) = O.
= a and u(L, I) =
(12.6.2)
if
d.T
otherwise
= g(.T) = 0
o < x < 10
where c and Q may be functions of;T, t 1 and p. 'Vhen the coefficient. c depends on the
unknown solution p, (12.6.1) is not linear. Superposition i8 not valid. Nonetheless
(12.6.1) i~ called a quasi-linear partial differential equation, since it is linear in the
first part.ial derivatives, lip/a I and ap/a". To solve (12.6.1), we again consider an
observer moving in Some prescribed way .r(t). By comparing (12.2.7) and (12.6.1).
\VP obtain
2 82u
iJ2 n
(12.6.1 )
O.
a
l
aapt + c-!!.
ax Q,
O<x<L
(12.6.3 )
The partiaJ differential equation (12.6.1) reduC'c.-; to two coupled ordinary differen
tial equat.ions along the special traject.ory or direction defined by (12.6.,3), known
as a characteristic curve, or simply a characteristic for short. The velocity
defined by (12.6.3) is called the characteristic velocit.y, or local wave velocit.y.
A characteristic starting from x = ;ro, as illustrated in Fig. 12.6.1, is determined
from the coupled different.ial equations (12.6.2) and (12.6.3) using t.he init.ial condi
tions p(x,O) = f(x), Along the characterist.ic, the solution I' changes according to
(12.6.~). Other initial positions yield other characteristics. generating a family of
characteristics.
t
dx
(It = c
<ip~ Q
dt
p~p(xo,O) ~ f(.xo)
549
548
characteristic has the same constant velocity,
C{).
Thus, l,y taking the time-derivative inside the integral (making it a partial deriva
tive) and using (12.6.9) it follows that
op
at
op
op
a - + b - =c
ox
X,
if
oy
oq =
01
~l
(12.6.10)
(12.6.4)
since a and b are arbitrary (see Section 1.2). We call (12.6.10) conservation of
cars.
(12.65)
dy
dx
(12.6.6)
=-;;,
Car velocity. The number of cars per hour passing a place equals the density
of cars times the velocity of cars. By introducing u(x, t) as the car velocity. we
have
= pu. ,
(12.6.11)
(12.6.7)
In the mid-1950s, Lighthill and Whitham [1955J and, independently, Richards [1956]
made a simplifying assumption, namely, that the car velocity depends only on the
density, u = 1L(p), with cars slowing down as the traffic density increases; i.e.,
dujdp 0:: o. For further discussion, the interested reader is referred to Wb.itham
[1974] and Haberman [1977]. Under this assmnption, the traffic flow is only a
function of the traffic density, q = q(p). In this case, conservation of cars (12.6.10)
becomes
f:
op
op
at + c(p)&; =
12.6.3
0,
(12.6.12)
Method of Characteristics (Q = 0)
1
b
dt
d a p(x, t) dx = q(a, t) - q(b, t).
(12.6.8)
dp = 0
dt
(12.6.13)
along
Equation (12.6.8) is called tb.e integral form of conservation of cars. As with heat
flow, a partial differential equation may be derived from (12.6.8) in several equivalent
ways. One way is to note that the boundary contribution may be expressed as an
illtegral over the region:
b
q(a, t) - q(b, t)
=-
1
a
ox q(x, t) dx.
dx
dt
= c(p).
(12.6.14)
550
is thus a straight line (as in the case in which c(p) is a constant CO). However,
different characteristics will move at different constant velocities because they may
start with different densities. The characteristics, though each is straight, are not
parallel to one another. Consider the characteristic that is initially at the position
x = XO, as shown in Fig. 12.6.2. Along the curve dx/dt = c(p), dp/dt = 0 or pis
constant. Initially p equals the value at x = Xo (i.e., at t = 0). Thus, along this one
characteristic,
551
proce~s must be carried out for a large number of points (as is elementary to do on
any computer). In this way, we could obtain the density at time t.
(12.6.15)
line,
since x
XQ
c(f(xo))t + Xo.
at t = O. Different values of
XQ
XQ
dx
dt
2p.
x <0
x> O.
3
4
={
The density p(x, t) is constant moving with the characteristic velocity 2p:
(12.6.16)
teristics, perhaps as illustrated in Fig. 12.6.2. Along each characteristic, the traffic
density p is a constant; see (12.6.15). To determine the density at some later time,
the characteristic with parameter
op
ox
p(x,O)
which is a known constant. The local wave velocity that determines the character
op
ot
-+2p-, =0
p(x.t)
~ f(xo) Figure
~x
12.6.2:
p(x. t)
Possibly nonparallel
straight-line characteristics.
Xo
{4
x><
3
(12.6.17)
= 3. The characteristics,
8t
6t,
= 2pt,
for 3
< p < 4,
also sketched in Fig. 12.6.4. In this way, we obtain the density in the wedge-shaped
region
"
,,
,
~
Xo
--_
for 6t
which is linear in x (for fixed t). We note that the characteristics fan out from x = 6t
to x = 8t and hence are called fan-like characteristics. The resulting density is
sketched in Fig. 12.6.5. It could also be obtained by the graphical procedure.
,,
p(x,O)
/1
p = 2t
p(x,t)
.... /
xo + c(Po)t
12.6.4
Shock Waves
552
553
p ~ xj2t
p
~"~_X
p=4
p~3
(.J
x = 6t
Figure 12.6.5:
wave.
Expansion
4,
35
x = 8t
.. 8
2
H
0.5
"0
ap
at + c(p) ax
(12.6.18)
p(xM,t)
~,_,t)
.
In Fig. 12.6.6 t.wo characteristics arE' sketched, one starting at x = Xt, with p ::=
!(XI,O) '" PI e.nd the other starting at x = X2 with P = !(X2'O) '" P2' These
characteristics intersect if c(pJl > C(P2), the faster catching up to the slower. The
density is constant along characteristics. As time increases, the distance between the
densities PI and P2 decrea<;es. Thus, this is called a compression wave. We sketch
the initial condition in Fig. 12.6.7(a). The density distribution hecomes steeper as
time i.ncreases [Fig. 12.6.7(b) and (e)]. Eventually charaderistics intersect; the
theory predicts the denslty if> simultaneously PI and pz If we continue. to apply
I
P~P2
--
X,(t)
-x
3The partial differential equation~ describing the height of water wave'" near the shore i.e., in
shallow waleI') are similar to the equation:; for traffic density waves. In this situation the prediction
of breaking is then quite significant!
4The terminology .~h()ck wave is introduced because uf the analogous behavior that occurs in
gas dYnamics. There, changes in pressure and density of air, for example, propagate and are heard
(due to the sensitivity of the human ear). They are called sound wave.';. \\Then fluctuations of
prC.5sure and density are small, the equations describing sound waves can be linearized. Then
sound is propagated at a Constant speed known as the sound speed. However, if the amplitudes
of the fluctuations of pressure and density arc not ::;Illall. t}U,!H the partial differential equations
are quasi-linear. Characteristics may intersect. In this case, the pressure and density can be
mathematically modeled as being discontinuous, the result being called a shock 1l1avp. Exa.mples
are t.be 50und emitted from an explosion or the thunder resulting from lightning. If a shack wave
results from exceeding the sound barrier, it is known as a sonic boom.
554
Shock velocity.
dX.]
rh.,l.
ell
(l26.1Q)
d:f.~
elt
[q]
q(:r . +, t) - qCr,_, i)
=
[pi'
p(x.,+. t) - p,:r,_, t)
(12.6.20)
where we recall that q = pu and where we introduce the notation [q] and [pi for the
jumps in q and p~ respectively. In ga." dynamics, (12.6,U) is calkd the Hankiue
Hug;oniot condition. In summary, for the conservation law 8pI8 t+8q/8x = 0
(if the quantity p dx is actually conserved), the shuck velocity equals
the jump in the flow divided by the jump in the density of the conserved
quantity. At points of discontinuit,v, thb ~1rock condition replaces the use of the
partial differential equation, which i~ valid elsewhere. However. ViE' have not yet
explained where shock~ uccur and how to determine p(X1j+' t) and fI(X,,-, t).
.r
505
dt
q(4)
q(:3)
4_ 3
-
4' - 3'
, ,,= 7,
"'i-a
sinc> in thi....: case q = p2. Thus, the shock moves at a constant velocity. The
initial po1:iition of the shock is Known, giving a condition for this first-order ordinal'.r
diH'erential equation. In this case. the shock must initiate at x., = 0 at t = o.
COllsequently', applying che initial condition results in the position of the shock
::1:'8
= 7t.
The n>sulting spacE'- time diagram is sketch(-,(l ill Fig. 12.6.9(c). For any time t > 0,
the traffic density is rliscnntinuOlIS, lis shown in Fig. 12.G.I0.
at
(a)
2 ap_
I' ax - 0
4
p(x,O) = { 3
(bJ
(c)
< (J
x> O.
,1;
elx = 2(J
elt
"
t,
,,,
"A'
x = 2p("'u, OJt
0.(
".
+ xu
Initiation of a shock.
In the example considered, the density was initially discontinuous; thus, the shock
556
wave formed immediately. However 1 'we will now show that shock waves take a finiLe
time to form if the initial density is continuous. Supf.lose that the first shock 0('('Uf5
at t = r due to the intersection of two characteristics initially a distance D..x (not
necessarily small) itpart. However, any characteristic starting between the two at
t = 0 will almost always intersect one of the other two characteristic:; before t = r.
Thus shocks cannot first occur due to characteristics that are a finite distance ~x
apart. In,';tead~ the first shock actually occurs dup to the intersection of neighboring
charaderistics (the limit as t.x __ 0). We will show that even though fu -- 0, the
first intersection occurs at a finite positive time, the time of the earliest shock. The
density p is constant along <..:haracteri~ticsl satisfyjug d:rjdt = c(p). 'Ve will analyze
neighboring characteristics. Consider the characterbtic emanating from x = ;:ro at
t = 0, where p(x,O) = f(x),
(12.6.21)
x = c[J(xo)]t + Xu
and the characteristic :;tarting from .r -'
X
= elJ(xo
X(J
+ .6..x at t --::; 0,
+ t.";)]t + Xo
I t.x.
Ouly if clJ(xo)J > c[J(xo + i'lx); win the,c chmacteristicsintuscct (in" positive
time). Solving fUf the intersection point by pliminating X ~yield:"
c'J(XD)]t
+ Xv
~ CIJ(XO
5.S7
TIlis
7"
has also u,ed the result of partwl differentiation of (12.6.21) with re'pcet to
..
ax"
1-_
- 8T
[1 +-1
de]
d:eu'
The slope is inrinite at tho,e place' satisfying (12.6.22). Thi, shows that the turning
points of the triplc- valued solutiu!1 correspond to the intersection of neighboring
characteristics (the envelope of the eh"Taeteristies). Within the envelope> of charac
teristics, the 'olution is triple- valued. It is known that the envelope of the char
acteristics lS cU'P-shaped; aB indicated in Fig. 12.6.11. How{>ver, the triple-valued
,olution (within the cusp region) makes no seI"e. Iu,tcad, as d"cussed earlier. a
shock W"ve exists satis(yillg (12.0.20), initiating at the (;llSp point. The shock is
located within the envelope. In fact, the triple - valued solution, obtained by the
method of characteristics, may be used to determine the location of the shock.
Whitham [1974] ha' shown that the correct location of the shock may be deter
mined by cutting the lobes off to form equal arms (Fig. 12.6.12). The rpa."'11 for
thb is that the method of chamcteristics conserves cars and that, when a shock is
introoucpd. the number of cars (represented Ly the '"'ea Ip dx) must al,o be the
same aN it is initially.
+ L'>x)lt + Xo + D.x.
i'll;
elJ(xoIJ- c[J(xo
+ t.x)]
1
{clJ(xolJ - c[J(xu
--.
~~
+ t.x)]}/t.x
The characteristics aI'/? paths of obseryers following constant density. Then this
equation states that the time of intersection of the two characteristics is the initial
distance between the characteristics dividt:!d by the relative velocity of the two
characteristicti. Although the distance In hetween is small. the relative velocity is
also small. To consider neighboring chal'actel'istics 1 the limit as ~x --+ 0 must be
calculated:
(12.6.22)
Shock dynamics, We will show that the slope of the solution is infinite
where neighboring characteristics intersect. Since p(x, t) = p(xo, 0), we have
8p
8x
dp DXD
dx o 8x
= .:!:!!.- /
da o
[1 + dxo
de t] .
Figure 12.6.12:
area principle.
\Vhitham's equal-
~
xAt)
12,6,5
QuaSi-Linear Example
- - pP
8t
7h
= -2p,
(12.6.n)
l~Uj.
<..!uasi-linear }-'l)l'.,'s
559
558
Thus, an explicit solution can be obtained
subject to the initial conditions
p(x, 0)
(12.6.24)
= f(x).
Xo =
This could model a traffic flow problem (with p a scaled version of the density)
where cars are not conserved but irl,;tead leave the roadway (at exits) at a rate
proportional to the density (as though cars e"it the highway to avoid congestion).
The method of characteristics yields
dp _ -2p,
dt
(12.6.26)
dx
I+c
2t'
Note that for each :r and t there is only one characteristic Xo (because the initial
condition was chosen such that the family of characteristics ooes not intersect itself.)
From (12,6.28), the solution of the initial value problem for the partial differential
equation is
(12.6.25)
-=-p.
dt
2x
.
2xe- 2t
2x
Plx,t)
= 1
2, = - 1
'
+c
+e 2t"
2
'.
(12.6.28)
The pal'ameter Xu is constant along each characteristic. The solution (density) expo
nentially decays along the characteristk as time increases. Thus, the characteristic
velocity becomes
d:r
__
=-
p(x,t)
(12.6.27)
= dt.
dp _ dx
-2p - -p
dt
cle- 2t
cle-
2t
+c2'
In general) One constant can be an arbitrary function of the other contant. Thus
1
we obtain the general solution of (12.6.23),
p + f(pe").
EXERCISES 12.6
12.6.1 Determine the solution p(x, t) satisfying the initial condition p(x, 0) = f(x)
if
* (a)
* (c)
f()
xoe -2< .
~=O
~ = -3:rp
~=_~+~n
at
~ ~=X2~
(b1.
(12.6.29)
since x must equal Xo at t = O. Here, the characteristics are not straight lines
The parametric representation of the solution is obtained fWIll (12.6,28), where "'0
should be considered as a function of :r and t from (12.6.29). Usually an explicit
solution is impractical.
p(x,O)
f(x)
x = '2xoe
-2<
1 xo
+ "2
12.6.3. Suppose
1 + sinx
*(b) If co> 0, determine p(x, t) for:r > 0 and t > 0, where p(x, 0) = f(x) for
x> and p(O, t) = get) for t > 0.
(c) Show that part (b) cannot be solved if Co < O.
*12.6.4. If u(p) = a+ r3p, determine (} ancl,q such that u(O) =
0.
x.
(a) What is the flow as a function of density? Graph the flow as a function
of the density.
l~.U,
l..tW:LN-lIIH:::dl- rUjb
LlO.1
560
(b) At what density i, the flow ffiiL'Cimum? What i' the corresponding ve
locity? What is the maximum flow (called the capacity)?
p'j); = 31'
(b)
* (c) e.
at + t'pe.
a,T = _I'
p3/p~,ax)'
12.6.10. Solve
p(x,O) = O.
31'
31'
3t + "(1') ox
* (a) ~ -
+ t'~
(d) '!e
Dt + pe.
Ox = -xl'
12.6.12. Consider (12.6.8) if there is a moving shock x, such that a < x,(I) < b.
By differentiating the integral [with a discontinuous integrand at x,(I)], derive
(12.6.20).
x<O
0 < x < a
O x > a
PIT,ax
' ",ox
p
ma
p,,~,
(c) p(x, 0) =
(bl
(c)
+ p2~ = U
Wi +41'* =0
~ + 3pj); =
8
(a) What sign should v have for this expression to be physically reasonable?
(b) What equation now describes conservation of cars?
p(x, 0) = {
p(x,O)
p(x, 0)
={
,
x<o
X>O
31' +u
x < 1
{) t
= -p
ax
* (e) at
* (g) %i + xj); = t
p(x, 0) = 5
plO,I)=2
x>
1>0
fl x )
(d) E.
at
+ 5te.
ax = 31'
(f) E.
at
+ tze.
ax =
[1-~] 01'
Pmax
AX
v32p
Ox2 .
(12.6.30)
x<o
O<x<1
x>1
3x
(b) ~ + 3xj); =
* (a) !ift + c~ ~ e
=5
max
x> 1
J2. _ t"2!!''
v 31'
--,
I' 3x
where v is a constant.
<0
I> 0
E.
+ tE.
* (e) E.
() i
ax
= U(p) -
, {3
(a) p(x,O) = pmax for x < 0 and p(x,O) = for x > O. This corresponds to
the traffic density that results aft.er an infinite line of stopped traffic is
12.6.11. Solve ~ + (I + t)~ = 31' for I > 0 and x > -1/2 with p(x, 0) = f(l) for
x > and p(x, t) = 9(1) along x = -t/2.
= O.
Assume u(p) = u mnx (l- P/Pmax). Solve for p(x, t) if the initial conditions are
lb) p(x,O) =
if, + pj); =
VPmax cPx
1'=----,
U max
introduced independently by E. Hopf and J. D. Cole, transfuflns Burgers'
equation into a diffusion equation, ~ + U max ~ = v~. Use this to solve
;'OJ
the initial value problem ('Cr,O) = i(x) for -00 < x < 00. [In Whitham
[1974] it i~ shown that thi8 exact solnti01l can be asymptotically analy'Zed as
!J _ 0 using Laplace'::; method for exponential integrals to show that p(x, t)
approaches the solntion obta~nE'd for v = 0 using the method of characteristics
with shock dynamics.]
12.6.16. Suppose that the initIal traffic den"ity is p(x,O) = PD for x < 0 ann
p(x,O) = PI lor x > O. Consider the two case". Po < Pl and Pl < po For
'1L11lUX(1 -
pi PmB,x)' Determine
then oyer a few wave lengths thp. wave sees nearly constant c. However, over long
distances (relative to short wave lengths) we may be interE'sted in the effects of
variahle c. Another situl.1tion in which nearly plane waves arise is the reflection of a
plane wave by a curved boundary (or reflection and refraction by' a curved interface
between two rnedias with different indices of refraction). We assume the radius of
curvature of the boundar,V if:' much longer thaD typical wave lengths. III mallY of
these situations the temporal frequency w b fixed (by an incoming plane wave).
Thus.
'(
) -iwt ,
E =fixlye
p(x,t) if
* (a)
{)2A
{ ,,/,,,,
~
p(x.O) =
P',"'
'C'O
~: 0
(b) p(x,O) =
2/?;",
x<O
~>0
12.6.18. Assume that u(p) -:- 'Uma x(1 ~ (>'21 P~w,J Determine the traffic density p
(a)
Assume that P,
* (b)
> Pl
Assume that P,
< Pl
(b)
(c)
(d)
Yi + 4p!i: = 0
.
+ 3p* = 0
pix
0)
. '
(12.7.4)
exist if
={
x < 0
43 x>O
p(x, IJ}
={
(12.7.6)
The wave numbers k1 and k2 for uniform media are usually called p and q respec
x <1
{ 3
2
p(x,O)
A(:e,y) = R(x,y)e'"lx. y ).
> I
x <0
Ozx<l
x>l
6p*-Oforx>Ocmly
p(0,t)~5
t>O
f),1./.
{)x
(12.7.7)
Ou
Oy'
(12.7.8)
12.1
First-Order Nonlinear
Partial Differential Equations
12.7.1
+ ki)
(12.7 ..5)
For nearly plane \-"aves, we introduce the phase v(x, y) of the redueed wave
equation:
(12.7.3)
Again the temporal frequency W is fixed (and given) but c --.:. . c(J~, y) for inhomoge
neous media Or c = con:-:;tant for uniform media.
In 1lniform media (c = constant); plaue waves of the form .6' = Aoei(kp+k2y-wt)
or
A = Aoei(k1X-/-kZY)
2
= IJ
{)2A
w = c (kf
( a.1 Qe
at + p2Qe
[-Ix
(12.7.2)
w 2 = c'(p'
+ q').
(12.7.9)
{)2
2 iJ2E
{) t' = c (ax2
This is a first order nonlinear partial difff'l'ntial equation (not quasi-linear) for the
phase u(x, V), known as the eikonal equation
iJ2E
+ iJ y2 ).
Plane waves and their reflections were analyzed in Section 4.6. Nearly p~ane waV'1
exist under many circumstances. If the t:oefficient c is not constant but varies slowl
w2 =
(~)2
+ (iJU)'
{)x
iJy
(12.7.10)
!j(i5
564
where 1.4-' is a fixed reference temporal frequency and c = C\T, y) for inhomogeneous
media or c = constant for uniform media. Sometimes the index of refraction
n(x, y) is introduced proportional to~. The amplitude R(x, y) solves equations
!
Ii
~
~
P-a
x + q"
uy =
(which we do not discuss) known as the transport equations, which describe the
propagation of energy of these nearly plane waves.
~;,
~I
I,
Thus,
result
II
III
dx
p
(0 = constant),
!I!
(p'
au)' (au)'
w'
( ax + ay = c.,'
(12.7.11)
+ q')~
';? ~T,
p2 +q' =
-=
~,
dp
;=-q=O
{)p
uq
p_+q_=O.
()y
ay
I:'
1111
= dq =~.2
_ dp
0
w' /c
(12.7.17)
+ q2
= _
c'
IkII
incoming wave and the phase of the retlected wave must be the same:
If there is a boundary condition for p, then (12.7.14) can be solved for p since:
+ 2JAdy
+ q2!!:JL
=
a y = pdx + qdy = p2cix
p
p
slowly varying reflected wave will always have the same wave length as the incident
wave). We assume the boundary condition on the curved boundary is that the t.otal
field is zero (other boundary conditions yield the same equations for the phase):
o = eiik,.X-wt) + R(x, t)e;~(x'Y)e-;w'. Thus, on the boundary the phase of the
q=V
:r.
Can be interpreted as saying the slowly varying reflected wave number vector (P, q)
has the same length as the c.onstant incoming wave number vector (physically the
iJp
up
p-ur + q-uY = o.
dy
= dy
p2
dx
dB" dx
wish to determine the phase u(x, y) of the reflected wave. The eikonal equation
iJq
ax
p_+q- =0.
Since
(12.7.12)
&p
ax
(12.7.16)
The Characteristics are straight lines since p and q are constants along the charac
teristics.
where wand c are constants. Rather than solve for u(x, y) directly, we will show
that it is easier to solve first for p = ~~ and q = %; . Thus, we consider
W'
?i.
dx
I
~I
eikonal equation
11
= dy = dp = d q
The simplest example of the eikonal equation (12.7.10) occurs in uniform media
Ii
(12.7.15)
1\
O.
.'
~
k
x = XO(T)
y=yo(r)
(127.18)
567
566
Taking the derivative of (12.7.18) with respect to the parameter r shows that
0 y dr
dr
dT
dr
dxo
dr '
(12.7.19)
where we have noted that the vector (P, q) is the unknown reflected wave number
vector kR (because p and q are constant along the characteristic). Since dxo/ dr is
a vector tangent to the boundary, (12.7.19) shows that the tangential component of
the incoming and reflecting wave numbers must be the same. Since the magnitude
of the incident and reflecting wave number vectors are the same, it follows that the
normal component of the reflected wave must be minus the normal component of
the incident wave. Thus, the angle of reflection off a curved boundary is the same
as the angle of incidence. Thus at any point along the boundary the constant value
Fx
op
oq
+ Fup + Fp ax + Fq ox
= 0,
where we use the subscript notation for partial derivatives. For example F u =:
~~ keeping x,y,p,q con~tant. Since
= ~, we obtain a quasi-linear partial
op
Fp ax
op
= -p, - Fup.
uy
+ Fq" ,
of p and q is known for the reflected wave. Because q = J;?- p2 there are two
solutions of the eikonal equation: oue represents the incoming wave and the other
dx = dy =
dp
Fp
Fq
-F, - Fup
~; = ;?~ =
'lk:
ap
uy
oq
f};
oy
(12.723)
O.
u(x, y) = \kI1
_ ( x - XO)
p
+ kI . Xo,
along a specific characteristic. The equation for the characteristics ply - YO) =
q(x _ xa) corresponds to the angle of reflection equaling the angle of incidence.
Since p2 + q2 = \kI\2, the more pleasing representation of the phase (solution of the
eikonal equation) follows along a specific characteristic:
u(x, y) = p(x - xo)
+ q(y -
YO)
+ kI
. Xo,
(12.7.20)
where u(xo, YO) = kI . Xo is the phase of the incident wave on the boundary.
12.7.3
oq
+ Fqay
= -Fy
,
ruq.
dy
Fq
dp
-F" - Fup
-Fy
dq.
- Fuq
(12.7.24)
In order to solve for u, we want to derive a differential equation for u(x, y) along
the characteristics:
du
ou
7>:'dx
(.IX
au
dx
dy
dx
+ ",dy
= pdx + qdy = pFp'F + qFq-F, = (pFp + qFq)'F
uy
p
q
p
Any first-order nonlinear partial differential equation can be put in the form
ou ou)=o.
F ( x,y,u, ox' oy
dx
Fp
dy
Fq
dp
dq
-F" - Fup = -Fy -
du
~!q
pFp
+ qFq '
(12.7.25)