Exercise 2: TT 2 XX Ax T
Exercise 2: TT 2 XX Ax T
Exercise 2: TT 2 XX Ax T
4 - Exercise 2 Page 1 of 11
Exercise 2
Solve utt = c2 uxx + eax , u(x, 0) = 0, ut (x, 0) = 0.
Solution
Let
v = (∂t − c∂x )u
so that the PDE becomes
(∂t + c∂x )v = eax .
The second-order PDE we started with has thus been reduced to the following system of
first-order PDEs that can be solved with the method of characteristics.
ut − cux = v (1)
ax
vt + cvx = e (2)
We will solve the second one for v first, and once that is known, the first equation for u will be
solved. For a function of two variables φ = φ(x, t), its differential is defined as
∂φ ∂φ
dφ = dt + dx.
∂t ∂x
If we divide both sides by dt, then we get the relationship between the ordinary derivative of φ
and its partial derivatives.
dφ ∂φ ∂φ dx
= + (3)
dt ∂t ∂x dt
Comparing this with equation (2), we see that along the curves in the xt-plane that satisfy
dx
= c, (4)
dt
the PDE for v(x, t) reduces to an ODE.
dv
= eax (5)
dt
Because c is a constant, equation (4) can be solved by integrating both sides with respect to t.
x = ct + ξ, (6)
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 2 of 11
where ξ is a characteristic coordinate. Substitute this expression for x into equation (5) to obtain
an ODE that only involves t (ξ is regarded as a constant).
dv
= ea(ct+ξ)
dt
Distribute a and split the exponential function into two.
dv
= eact eaξ
dt
Integrate both sides with respect to t.
eaξ act
v(ξ, t) = e + f (ξ),
ac
where f is an arbitrary function of the characteristic coordinate ξ. In order to write v in terms of
x and t, solve equation (6) for ξ.
x = ct + ξ → ξ = x − ct
Hence,
ea(x−ct) act
v(x, t) = e + f (x − ct)
ac
eax
= + f (x − ct).
ac
As a result, equation (1) becomes
eax
ut − cux = + f (x − ct).
ac
Comparing this equation with equation (3), we see that along the curves in the xt-plane that
satisfy
dx
= −c, (7)
dt
the PDE for u(x, t) reduces to an ODE.
du eax
= + f (x − ct) (8)
dt ac
Because c is a constant, equation (7) can be solved by integrating both sides with respect to t.
x = −ct + η, (9)
where η is another characteristic coordinate. Substitute this expression for x into equation (8) to
obtain an ODE that only involves t (η is regarded as a constant).
du ea(−ct+η)
= + f (−ct + η − ct)
dt ac
du eaη −act
= e + f (η − 2ct)
dt ac
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 3 of 11
x = −ct + η → η = x + ct
Hence,
ea(x+ct) −act
u(x, t) = − e + F (x + ct − 2ct) + g(x + ct)
a2 c2
e ax
= − 2 2 + F (x − ct) + g(x + ct).
a c
This is the general solution to utt = c2 uxx + eax . If we apply the two initial conditions, we can
determine F and g. Before doing so, take a derivative of the solution with respect to t.
Even though this system is in terms of x, it’s really in terms of w, where w is any expression we
choose.
eaw
− + F (w) + g(w) = 0
a2 c2
−cF 0 (w) + cg 0 (w) = 0
eaw ea(x−ct)
F (w) = + C1 ⇒ F (x − ct) = + C1
2a2 c2 2a2 c2
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 4 of 11
Use the first equation to solve for g(w) and obtain an expression for g(x + ct).
eaw
g(w) = − F (w)
a2 c2
e aw eaw
= 2 2 − 2 2 − C1
a c 2a c
e aw ea(x+ct)
= 2 2 − C1 ⇒ g(x + ct) = − C1
2a c 2a2 c2
The general solution for u(x, t) becomes
eax
u(x, t) = − + F (x − ct) + g(x + ct)
a2 c2
eax ea(x−ct) ea(x+ct)
=− 2 2 + + C1 + −
C
1
a c 2a2 c2 2a 2 c2
eax
1 1
= 2 2 −1 + e−act + eact
a c 2 2
eax
= 2 2 (−1 + cosh act)
a c
Therefore,
eax
u(x, t) = (cosh act − 1).
a2 c2
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 5 of 11
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 6 of 11
Hence,
∂2u
= c[(−c)(uξη − uξξ ) + (c)(uηη − uξη )] = c2 (uξξ − 2uξη + uηη )
∂t2
∂2u
= (1)(uξξ + uξη ) + (1)(uξη + uηη ) = uξξ + 2uξη + uηη .
∂x2
Substituting these expressions into the PDE, utt − c2 uxx = eax , we obtain
ha i
c2 (ξξ − 2uξη + H
u uηη ) − c2
(uξξ
+ 2uξη + u
Hηη ) = exp (η + ξ) .
H H 2
Simplify the left side. ha i
−4c2 uξη = exp (η + ξ)
2
Divide both sides by −4c2 .
∂2u 1 ha i
= − 2 exp (η + ξ)
∂ξ∂η 4c 2
This is known as the first canonical form of the PDE. Integrate both sides of it partially with
respect to η.
ˆ η 2 ˆ η
∂ u 1 ha i
ds = − exp (s + ξ) ds + f (ξ),
∂ξ∂η η=s 4c2 2
∂u 1 2 ha iη
= − 2 exp (s + ξ) + f (ξ)
∂ξ 4c a 2
∂u 1 ha i
=− exp (η + ξ) + f (ξ)
∂ξ 2ac2 2
Now integrate both sides partially with respect to ξ.
ˆ ξ ˆ ξ
∂u 1 ha i
ds = − exp (η + s) + f (s) ds + g(η),
∂ξ ξ=s 2ac2 2
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 7 of 11
Even though this system is in terms of x, it’s really in terms of w, where w is any expression we
choose.
eaw
− + F (w) + g(w) = 0
a2 c2
−cF 0 (w) + cg 0 (w) = 0
eaw ea(x−ct)
F (w) = + C1 ⇒ F (x − ct) = + C1
2a2 c2 2a2 c2
Use the first equation to solve for g(w) and obtain an expression for g(x + ct).
eaw
g(w) = − F (w)
a2 c2
eaw eaw
= 2 2 − 2 2 − C1
a c 2a c
e aw ea(x+ct)
= 2 2 − C1 ⇒ g(x + ct) = − C1
2a c 2a2 c2
The general solution for u(x, t) becomes
eax
u(x, t) = − + F (x − ct) + g(x + ct)
a2 c2
eax ea(x−ct) ea(x+ct)
=− 2 2 + + C
1
+ −
C
1
a c 2a2 c2 2a 2 c2
ax
e 1 1
= 2 2 −1 + e−act + eact
a c 2 2
eax
= 2 2 (−1 + cosh act)
a c
Therefore,
eax
u(x, t) = (cosh act − 1).
a2 c2
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 8 of 11
Apply Green’s theorem (essentially the divergence theorem in two dimensions) to the double
integral on the left to turn it into a counterclockwise line integral around the triangle’s boundary
bdy D.
ffi ˆ t0 ˆ x0 −c(t−t0 )
2
(ut dx + c ux dt) = − eax dx dt
0 x0 +c(t−t0 )
bdy D
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 9 of 11
The line integral is the sum of three integrals, one over each leg.
ˆ ˆ ˆ ˆ t0 ˆ x0 −c(t−t0 )
(ut dx + c2 ux dt) + (ut dx + c2 ux dt) + (ut dx + c2 ux dt) = − eax dx dt
L1 L2 L3 0 x0 +c(t−t0 )
On L1 On L2 On L3
t=0 x − x0 = −c(t − t0 ) x − x0 = c(t − t0 )
dt = 0 dx = −c dt dx = c dt
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 10 of 11
www.stemjock.com
Strauss PDEs 2e: Section 3.4 - Exercise 2 Page 11 of 11
www.stemjock.com