Professional Documents
Culture Documents
4.1 Introduction
4.1.1 Motivation
Most physical phenomena, whether in the domain of fluid dynamics, electricity, magnetism,
mechanics, optics or heat flow, can be in general (and actually are) described by partial differ-
ential equations.
This area has a long-standing close relationship with the physical sciences, especially physics,
thermodynamics, and quantum mechanics: for many of the topics in the field, the origins of
the problem and the qualitative nature of the solutions are best understood by describing the
corresponding result in physics, as we shall do below.
Roughly corresponding to the initial values in an ODE problem, PDEs are usually solved in
the presence of boundary conditions. For example, the Dirichlet problem (actually introduced
by Riemann) asks for the solution of the Laplace condition on an open subset D of the plane,
with the added condition that the value of u on the boundary of D was to be some prescribed
function f. (Physically this corresponds to asking, for example, for the steady-state distribution
of electrical charge within D when prescribed voltages are applied around the boundary.) It is
a nontrivial task to determine how much boundary information is appropriate for a given PDE.
Linear differential equations occur perhaps most frequently in applications (in settings in which
a superposition principle is appropriate.) When these differential equations are first-order, they
share many features with ordinary differential equations. (More precisely, they correspond to
families of ODEs, in which considerable attention must be focused on the dependence of the
solutions on the parameters.)
Historically, three equations were of fundamental interest and exhibit distinctive behavior.
These led to the clarification of three types of second-order linear differential equations of great
interest. The Laplace equation
∂ 2u ∂ 2u
+ = 0 (4.1.1)
∂x2 ∂y 2
applies to potential energy functions u = u(x, y) for a conservative force field in the plane.
PDEs of this type are called elliptic. The Heat Equation
∂ 2u ∂ 2u ∂u
2
+ 2 = (4.1.2)
∂x ∂y ∂t
143
CHAPTER 4. PARTIAL DIFFERENTIAL EQUATION
applies to the temperature distribution u(x, y) in the plane when heat is allowed to flow from
warm areas to cool ones. PDEs of this type are parabolic. The Wave Equation
∂ 2u ∂ 2u ∂ 2u
+ = (4.1.3)
∂x2 ∂y 2 ∂t2
applies to the heights u(x, y) of vibrating membranes and other wave functions. PDEs of this
type are called hyperbolic. The analysis of these three types of equations are quite distinct in
character. Allowing non-constant coefficients, we see that the solution of a general second-order
linear PDE may change character from point to point. These behaviors generalize to nonlinear
PDEs as well. Modern approaches seek methods applicable to non-linear PDEs as well as linear
ones. In this context existence and uniqueness results, and theorems concerning the regularity
of solutions, are more difficult. Since it is unlikely that explicit solutions can be obtained for
any but the most special of problems, methods of ”solving” the PDEs involve analysis within
the appropriate function space – for example, seeking convergence of a sequence of functions
which can be shown to approximately solve the PDE, or describing the sought-for function
as a fixed point under a self-map on the function space, or as the point at which some real-
valued function is minimized. Some of these approaches may be modified to give algorithms
for estimating numerical solutions to a PDE.
4.1.2 Definition
In mathematics and engineering, partial differential equations (PDE) are a type of differential
equation, i.e., a relation involving an unknown function (or functions) u of several independent
variables and its (or their) partial derivatives with respect to those variables.
Partial differential equations (PDEs) are of vast importance in applied mathematics and engi-
neering since so many real physical situations can be modeled by them. PDEs are made up of
partial derivatives . PDEs tend to be divided into three categories - hyperbolic, parabolic
and elliptic.
Standard hyperbolic equations include the wave equation and the advection (convection or
transport) equation. These equations are time-dependent; they model the transient movement
of signals. The wave equation models acoustic and electromagnetic fields, the advection equa-
tion models the translation of waves such as water waves.
Partial differential equations are used to formulate, and thus aid the solution of, problems in-
volving functions of several variables; such as the propagation of sound or heat, electrostatics,
electrodynamics, fluid flow, and elasticity. Seemingly distinct physical phenomena may have
identical mathematical formulations, and thus be governed by the same underlying dynamic.
A Partial Differential Equation (PDE) is an equation relating a function of two or more inde-
pendent variables and its partial derivatives, that is
1.) has an unknown function (dependent variable) depending on at least two independent
variables,
2.) contains some partial derivatives of the unknown function (dependent variable).
4.1.3 Notation
1.) t, x, y, z - the independent variables (here, t represents time while the other variables are
space coordinates),
2.) u = u(t, x, . . .) - the dependent variable (the unknown function),
3.) The partial derivatives will be denoted as follows
∂ 2u
∂u ∂u ∂ ∂u
ut = , ux = , uxy = =
∂t ∂x ∂x∂y ∂y ∂x
1.) Order of the equation 4.) Kinds of coefficients 7.) Kind of second order PDEs
(hyperbolic, parabolic, or el-
2.) Number of variables 5.) Homogeneity
liptic)
3.) Linearity 6.) Degree of a PDE
Definition 4.1.2 The order of a PDE is the highest ordered partial derivative appearing in
the equation.
Example 4.1.2 uxx + 2xuxy + uyy = ey is a second order PDE.
Example 4.1.3 uxxy + xuyy + 8u = 7y is a third order PDE.
Example 4.1.4
first order : ut = ux ,
second order : ut = uxx , uxy = 0,
third order : ut + uuxxx = sin x,
fourth order : uxxxx = utt
Definition 4.1.3 PDEs may be classified by the number of their independent variables, that
is, the number of variables the unknown function depends on.
Example 4.1.5
PDE in two variables : ut = uxx , (u = u(t, x))
1 1
PDE in three variables : ut = urr + ur + 2 uθθ , (u = u(t, r, θ)) ,
r r
PDE in four variables : ut = uxx + uyy + uzz , (u = u(t, x, y, z))
Definition 4.1.4 A PDE is said to be linear if it is linear in the unknown function u and all
its derivatives with coefficients depending on the independent variables (all the independent
coefficients are linear). In other words, if a linear combination of the unknown function and its
derivatives u, ux , uy , uz , uxx , . . ..
In other words, a PDE is linear if the dependent variable and all its derivatives appear in a
linear fashion (highest power as one).
Definition 4.1.5 A PDE is said to be nonlinear if it is not linear.
Example 4.1.6 The following are non-linear equations
Definition 4.1.6 PDE can be with constant or variable coefficients (if at least one of the
coefficients is a function of (some of) independent variables) - kinds of coefficients.
Example 4.1.8
constant coefficients : utt + 5uxx − 3uxy = cos x,
variable coefficients : ut + exp(−t)uxx = 0.
Definition 4.1.7 PDE is homogeneous if the free term (the right-hand side term) is zero.
homogeneous : utt − uxx = 0,
nonhomogeneous : utt − uxx = x2 sin t.
Definition 4.1.8 A degree of a PDE is the highest power of the highest partial derivative in
the equation.
Example 4.1.9
4 6
∂ 3u ∂ 2u
∂u
first degree : + −5 = 0,
∂x3 ∂x 2 ∂x
3 2 4 3
∂ 2u ∂ u ∂ u
fourth order, third degree : + 2
+ (x + 1) 4
= xy 2 .
∂x∂y ∂x ∂y ∂x
Example 4.1.10 Second order Partial Differential Equations
∂ 2u 2
2x ∂ u
2
− e 2
= u3 ,
∂x ∂t
is non-linear PDE.
Definition 4.1.9 A PDE is said to be semi-linear if the highest derivatives appear in a linear
fashion and their coefficients do not depend on the unknown function or its derivatives. In
other words, a nonlinear equation is semi-linear if the coefficients of the highest derivative are
functions of the independent variables only.
Example 4.1.11 The following are semi-linear equations
1.) (x + 3)ux + xy 2 uy = u3 3.) ut + ux + u2 = 0
5.)
∂u ∂u
+ (x3 + y)y = u3
∂x ∂y
Example 4.1.12 The partial differential equation
ut + uux = 0
is not semi-linear.
Definition 4.1.10 A PDE is said to be quasi-linear if the highest derivatives m appear in a
linear fashion and their coefficients depend on the independent variables, the unknown function
and derivatives of order < m.
Example 4.1.13 The following are quasi-linear equations
1.) " 2 # " 2 # 2
∂ 2u ∂u ∂u ∂ 2 u
∂u ∂u ∂ u
1+ 2
−2 + 1+ =0
∂y ∂x ∂x ∂y ∂x∂y ∂x ∂y 2
2.)
∂u ∂u
x2 u
+ (y + u) = u3
∂x ∂y
Example 4.1.14 The partial differential equations ut + uux = 0 is quasi-linear but not semi-
linear.
Definition 4.1.11 A PDE is said to be fully nonlinear if the highest derivatives appear in a
nonlinear fashion.
Example 4.1.15 The following are fully non-linear equations
1.) uxx uyy − (uxy )2 = x + y 2.) u2x + u2y = 1
Example 4.1.19 For each of the following PDEs, state whether it is linear, quasi-linear or
non-linear. If it is linear state whether it is homogeneous or non-homogeneous.
Definition 4.1.12 A mathematical PDE is said to be properly posed if it satisfies the following
requirements
1.) Existence: The problem has a solution. There is at least one solution.
3.) Continuity or Stability: The solution depends continuously on data. In other wards, a small
change in the given data produces a small change in the solution.
Otherwise, it is ill-posed.
Remark 4.1.2 A PDE with initial and boundary conditions constitutes the so-called initial-
boundary-value problem (IBVP). Such problems are mathematical models of most physical
phenomena.
utt − c2 uxx = 0
⇒ A = −c2 , B = 0, C = 1
B 2 − 4AC = 0 − (4)(−c2 )(1) = 4c2 > 0 ⇒ Hyperbolic
ut − kuxx = 0
⇒ A = −k, B = 0, C = 0
2
B − 4AC = 0 − (4)(−k)(0) = 0 ⇒ Parabolic
Example 4.1.23 Determine the conditions on y for the equation to be hyperbolic, parabolic
or elliptic
√
uxx − yuxy + xuyy + (2x + y)ux − 3yuy + 4u = sin(x2 − 2y)
√
⇒ A = 1, B = − y, C = x
B 2 − 4AC = y − (4)(1)(x) = y − 4x
If y > 4x ⇒ Hyperbolic
If y = 4x ⇒ P arabolic
If y < 4x ⇒ Elliptic
Example 4.1.24 Determine the regions in the xy plane where the following equation is hy-
perbolic, parabolic, or elliptic.
1
uxx + yuyy + uy = 0
2
Since B 2 − 4AC = −4y
If y < 0 ⇒ Hyperbolic
If y = 0 ⇒ P arabolic
If y > 0 ⇒ Elliptic
2. Advection equation
∂u ∂u
+c = 0
∂t ∂x
Hyperbolic PDEs describe transport, advection process, and have a wave like character (wave
propagation). Still a wave, but has moved (advected- some acceleration due to velocity gradi-
ents)
Hyperbolic Physical modeling include, Fluid flow, electro-magnetic, acoustic and elastic waves.
Hyperbolic equations;
∂u ∂ 2u
= ν 2
∂t ∂x
Typical behavior of parabolic equations are
1. Equilibrium processes.
2. Time dependent.
4u = f
∂ u ∂ 2u
2
+ = 0, Laplacian
∂x2 ∂y 2
∂ 2u ∂ 2u
+ = f (x, y), Poisson
∂x2 ∂y 2
Physical applications are in Electric potential, structural mechanics, potential flow.
Example 4.1.34 Consider a 2D, inviscid, linearized, compressible Prandth-Glauert fluid flow
equation over a thin body
2
∂ 2φ ∂ 2φ
1 − M∞ + = 0 (4.1.5)
∂x2 ∂y 2
where
U∞
M∞ = : Mach number in the free stream
C∞
C∞ : Speed of sound
φ : Velocity pottential
Let
u = φx
v = φy
φxy = φyx
⇒ uy − vx = 0
∂u ∂u
+B A = C
∂x ∂y
2
1 − M∞ 0 ux 0 1 uy 0
+ =
0 −1 vx 1 0 vy 0
p −1
λ1 = 2
M∞ − 1
p −1
λ2 = − 2
M∞ − 1
1
η1
= p
η2 2 −1
M∞
1
ζ1
= p
ζ2 2 −1
− M∞
2
Thus the system depends on whether M∞ is bigger, equal or smaller than 1.
If
2
(i) M∞ < 1 ⇒ λ1 , λ2 are Complex numbers, thus an elliptic system, a subsonic flow. If
disturb a flow on one point, there is a change/disturbance in all points of flow.
2
(ii) M∞ > 1 ⇒ Either Hyperbolic, a supersonic flow. Convective behavior, disturbance will
convect downstream but not upstreams, do not affect all system.
2
(iii) M∞ = 1 ⇒ λ1 , λ2 are real numbers but both equal to zero, with only one eigen vector
thus a parabolic system, a transonic flow.
Note 4.1.1 Thus characteristics can tell a lot about the flow.
∂u ∂ 2u
= ν 2
∂t ∂x
Rewrite as a system of 1st order differential PDE
Let
v = ux
ut − νvx = 0
ux = v
∂u ∂u
+B A = C
∂t ∂x
1 0 ut 0 −ν ux 0
+ =
0 0 vt 1 0 vx 0
B − λA = 0
0 −ν 1 0
−λ = 0
1 0 0 0
−λ −ν
= 0
1 0
λ1 , λ2 are undefined (λi = ∞), but since a 2 × 2 matrix, they are two of them. and eigen vectors
B − λA X = 0
That gives
η1 0
=
η2 1
Has only one eigen vector. Since two eigen values with only one corresponding eigen vector,
the system is Parabolic.
1 λν
Note 4.1.2 If we interchange matrices A and B, we will have = 0 to have λ1 =
−λ 0
η1 1
λ2 = 0 and = , thus still a parabolic partial differential equation.
η2 0
Definition 4.1.17 A solution to PDE is, generally speaking, any function (in the independent
variables) that satisfies the PDE.
uxx − uyy = 0
ux = 3(x + y)2
uxx = 6(x + y)
uy = 3(x + y)2
uyy = 6(x + y)
Such that uxx − uyy = 6(x + y) − 6(x + y) = 0, thus u(x, y) = (x + y)3 is a solution.
ux = cos(x − y)
uxx = − sin(x − y)
uy = − cos(x − y)
uyy = − sin(x − y)
Such that uxx − uyy = − sin(x − y) − (− sin(x − y)) = 0, thus u(x, y) = sin(x − y) is a solution.
Note 4.1.3 The example above indicates that PDE classical solution can exist.
Exercise 4.1 Show that the given function is a solution to the given partial differential equa-
tion. Assume that κ, ω, a and c are constants.
5) u(x, y) = ex sin y for uxx + uyy = 0 10) u(x, t) = f (x − ct) for utt = c2 uxx
Find u and v and show that both satisfy Laplace’s equation-that is, that
∂ 2u ∂ 2u ∂ 2v ∂ 2v
+ = 0 and + =0
∂x2 ∂y 2 ∂x2 ∂y 2
In addition, show that u and v satisfy the Cauchy-Riemann Equations
ux = vy , uy = −vx
Example 4.1.39 Show that u(x, y) = x2 − y 2 and u(x, y) = ex sin y are a solution to
uxx + uyy = 0
ux = ex sin y
uxx = ex sin y
uy = ex cos y
uyy = −ex sin y
Such that uxx + uyy = ex sin y + (−ex sin y) = 0, thus u(x, y) = ex sin y is a solution.
uxy = uyx
Remark 4.1.3 We have so far seen how to show that a function is a solutions, however,
analytically, first and second order PDEs can be solved using the method of
dx dy
= (4.2.3)
x y
Z Z
dx dy
⇒ =
x y
⇒ ln x = ln y + C
x
⇒ = eC = A = φ(B)
y
dx du
= (4.2.4)
x Z3u Z
dx du
⇒ =
x 3u
1
⇒ ln x = ln u + C
3
js, ddw de ii: Lecture Notes Page 158 of 249
4.2. METHOD OF CHARACTERISTIC EQUATIONS - - FIRST
ORDER PDES
x
⇒ 1 = eC
u 3
x3
⇒ = e3C = B = φ(A)
u
But for any constants A, B, C, D can express one constant in terms of the others.
D = AC + B
Therefore, the solution is
x3
x
=A +B
u y
Example 4.2.3 Solve the PDE
∂u ∂u
2 +3 =1
∂x ∂y
using the characteristic equations
dx dy du
= =
2 3 1
dx du
= (4.2.5)
2 1
⇒ x − 2u = 2C = φ(B)
dx dy
= (4.2.6)
2 3
⇒ 3x − 2y = 6C = φ(A)
The final solution is
(x − 2u) = A (3x − 2y) + B
Remark 4.2.1 You always equate those to have better integration
Example 4.2.4 Solve the PDE
∂u ∂u
y2u − x2 u = x2 y
∂x ∂y
using the characteristic equations.
dx dy du
= =
y2u −x2 u x2 y
With
dx dy
= (4.2.7)
y2u −x2 u
x3 y 3
⇒ − − =A
3 3
⇒ x3 + y 3 = −3A = φ(B)
Using
dy du
= (4.2.8)
−x2 u x2 y
y 2 u2
⇒ + =C
2 2
⇒ y 2 + u2 = 2C = φ(A)
The solution is thus
(y 2 + u2 ) = A x3 + y 3 + B
Exercise 4.5 Solve the linear first order partial differential equation
∂u
=0
∂x
Solving the equation
x − y = const
Consequently, the general form of the solution is
u(x, y) = F (x − y)
Exercise 4.6 Solve the linear first order partial differential equation
∂u ∂u
+ =0
∂x ∂y
Exercise 4.7 Solve the linear first order partial differential equation
1 ∂u 1 ∂u
+ =0
x ∂x y ∂y
u(x, y) = F (x2 − y 2 )
Substituting in the problem, it is evident that the latter is satisfied for all choices of F . With
the initial condition, a specific form of the solution can be obtained as
u(x, y) = µ(x2 − y 2 )
∂u ∂u
2y +u = 2yu2
∂x ∂y
1 y2 2 2
u = e = Aey ⇒ A = ue−y
A
1 1
x = Be− u ⇒ B = xe u , ⇒
A = φ(B) + C
1
−y 2
ue = φ xe u + C
Or
2 2 2 2
u = Aey , & Ax + e−y = B, ⇒ B = Ax + e−y = (1 + xu)e−y
to have h i
2 2
u(x, y) = ey F (1 + xu)e−y
A = F (B)
xux + 2xuuy = u
and then seek those solutions (if they exist) subject to:
1.) u = 2x on y = 2x2 + 1;
3.) u = x2 on y = x3 − 1.
dy
x = Au ⇒ u = Ax & = 2u = 2Ax ⇒ y = Ax2 + B ⇒ A = F (B)
dx
Example 4.2.6 Find the general solution of
ux + 2xuy = u2
1
y = x2 + A & − u
=x−B
uxx = −u
∂u ∂u
c + =0
∂x ∂t
It is easier to understand what is happening if we define z = x − ct, so that u = F (z). Hence,
the partial derivatives, on using the chain rule, are
∂u ∂u
= F 0 (z).1, = F 0 (z).(−c).
∂x ∂t
Therefore,
∂u ∂u
c + = 0,
∂x ∂t
for any functional form for F . This illustrates an important point. Ordinary differential
equations have arbitrary constants but Partial differential equations have arbitrary functions.
The function F is determined by an initial condition.
Example 4.2.14 Assume that the initial condition, at t = 0, is u(x, 0) = f (x), where f is a
prescribed function. Now if
u(x, t) = f (x − ct).
−x2
As an illustration, if f (x) = e , then
2
u(x, t) = e−(x−ct) ,
satisfies Equation
∂u ∂u
c + =0
∂x ∂t
and the initial condition.
Example 4.2.15 Solve the first order PDE with initial condition using the method of charac-
teristic equations
∂u ∂u
2 + = 0, −∞ < x < ∞, t > 0,
∂x ∂t
with the initial condition
1
u(x, 0) = ,
1 + x2
The solution is
1
u(x, t) =
1 + (x − 2t)2
A little bit of thought about this last example will soon illustrate a major problem. If the wave
speed is negative, i.e. c < 0, then there is in general no solution to the initial-boundary-value
problem. This is because the characteristics intersect both boundaries and u cannot be defined
by two different values (resulting from values of f (x) and g(t)) on the same characteristics.
u2 = x − u2 t,
u2 (1 + t) = x,
x
u2 = ,
1+t
and so the final solution is r
x
u= , x > 0, t > 0.
1+t
We can easily check that this is the solution to the problem by calculating the partial derivatives,
∂u 1
= x−1/2 (1 + t)−1/2 ,
∂x 2
∂u 1
= − x1/2 (1 + t)−3/2 ,
∂t 2
Therefore,
2 ∂u x 1 1 x1/2 ∂u
u = 1/2 1/2
= 3/2
=−
∂x (1 + t) 2x (1 + t) 2 (1 + t) ∂t
Example 4.2.20 Obtain a solution, u(x, t), to the equation
∂ 2u
+ u = 0.
∂t2
Note that there are only derivatives with respect to t and none with respect to x. Thus, we
can treat the equation like an ordinary differential equation and use first year work to write
the solution.
u(x, t) = A cos t + B sin t
However, unlike the ordinary differential equation case A and B are not constants but are, in
fact, functions of the other independent variable. Hence, the actual solution is
x 2 − y 2 = c1 , y 3 − u 3 = c2
du dt
= ⇔ ln u = t + ln A ⇔ u = Aet ; u(0) = ξ ⇒ A = ξ
u 1
u = ξet (4.2.9)
dx dt dx 2
= ⇔ = 2tdt ⇔ ln x = t2 + ln A ⇔ x = Aet ; x(0) = ξ ⇒ A = ξ
2xt 1 x
2
x = ξet (4.2.10)
2
From (4.2.10), ξ = xe−t to have
2 2
u(x, t) = ξet = xe−t · et = xet−t
x = ξey
u = ξ 2 e−y
u(x, y) = x2 e−3y
Consider u along a curve t = t(x) (the independent variable should be the first partial derivative,
whose coefficient is 1 in the PDE). On this curve we have
d ∂u ∂u dt
u(x, t(x)) = +
dx ∂x ∂t dx
such that the ordinary differential equations
d
u(x, t(x)) = x
dx
dt
= p(x, t) = 5
dx
Then on solutions of
du 1 1
= x ⇔ u = x2 + A; u(x, 0) = sin 2πx = sin 2πx(0) = sin 2πξ ⇒ A = sin 2πξ − ξ 2
dx 2 2
to have
1 1
u = x2 + sin 2πξ − ξ 2 .
2 2
and
dt
= 5 ⇔ t = 5x + B; x(0) = ξ ⇒ B = −5ξ ⇒ t = 5x − 5ξ
dx
Solving for ξ in terms of (x, t) to have
(5x − t)
ξ=
5
and substituting into the formula for u.
2
1 1 1 5x − t 1 5x − t
u = u(x, t) = x2 + sin 2πξ − ξ 2 = x2 + sin 2π −
2 2 2 5 2 5
Consider u along a curve x = x(t) (the independent variable should be the first partial deriva-
tive, whose coefficient is 1 in the PDE). On this curve we have
d ∂u ∂u dx
u(x(t), t) = +
dt ∂t ∂x dt
such that the ordinary differential equations
d
u(x(t), t) = 0
dt
dx
= p(x, t) = 3
dt
Then on solutions of
du 2 2 2
= 0 ⇔ u = A; u(0) = xe−x = x(0)e−x(0) = ξe−ξ
dt
to have
2
u = ξe−ξ .
and
dx dx
=3 ⇔ = 3; x(0) = ξ
dt dt
Since the right hand side does not involve the unknown x we can integrate to obtain
Z
x(t) = 3dt = 3t + A ; x(0) = ξ ⇒ A = ξ ⇔ x = 3t + ξ
dx
= p(x, y) = u
dy
Then on solutions of
du
= 0 ⇔ u = A; u(0) = ξ 2
dy
to have
u = ξ2.
and
dx dx
=u ⇔ = ξ 2 ; x(0) = ξ
dy dy
Since the right hand side does not involve the unknown x we can integrate to obtain
Z
x(y) = ξ 2 dy = ξ 2 y + A ; x(0) = ξ ⇒ A = ξ ⇔ x = ξ 2 y + ξ
That can be solved by either Matrix Method (Undetermined coefficient or order reduction if
non-homogeneous system).
d ∂u ∂u dx
u(x(y), y) = +
dy ∂y ∂x dy
such that the ordinary differential equations
d dx
u(x(y), y) = (−u + y) , = p(x, y) = (x + 1)
dy dy
That is
dx
= (x + 1)
dy
du
= (−u + y)
dy
This is a non-homogeneous linear system of two first order differential equations
dX x 1 0 1
= AX + f (y), where X = , and A = , f (y) =
dy u 0 −1 y
That can be solved by either method of Undetermined Coefficient or Order Reduction technique.
The matrix A with the characteristic polynomial of (1 − λ)(−1 − λ) = 0 whose eigen values
and their corresponding eigen vectors given by
η1 1
λ1 = 1 , =
η2 0
η1 0
λ2 = −1 , =
η2 1
Real and distinct eigen values, to have the complimentary (homogeneous part) solutions as
x y 1 −y 0
= c1 e + c2 e
u 0 1
1
Since f (y) = only a polynomial of degree 1, then let the particular solutions Xp be
y
defined as
a1 y + a2 0 a1
Xp = ⇒ Xp =
b1 y + b2 b1
A particular solution is a solution, so satisfys the linear system of ordinary differential equations.
Substituting in the formula X 0 = AX + f (y) to have
Xp0 = AXp + f (y)
a1 1 0 a1 y + a2 1
= +
b1 0 −1 b1 y + b2 y
Equating the coefficients of y and coefficients of a constant respectively are :
ay + (a1 − a2 + 1) = 0 a1 = 0 , a2 = −1
⇒
(1 − b1 )y + (−b2 − b1 ) = 0 b1 = 1 , b2 = −1
The particular solutions is therefore given by
a1 y + a2 −1
Xp = =
b1 y + b2 y−1
The general solutions (sum of complimentary and particular solutions) is given by
X G = Xc + Xp
x y 1 −y 0 −1
= c1 e + c2 e +
u 0 1 y−1
So that
x = c1 ey − 1 (4.2.16)
u = c2 e−y + y − 1 (4.2.17)
Applying the initial and boundary conditions u(ξ, 0) = ξ, u(0, η) = η − 1, we gets the specific
solutions.
Case i)
Looking at base curves x(y) which pass through initial points u(ξ, 0) = ξ ⇒ x(0) = ξ. From
(4.2.16) and (4.2.17), we must have
ξ = c1 − 1 ⇒ c1 = ξ + 1
ξ = c2 (1) + (0) − 1 ⇒ c2 = ξ + 1
Therefore,
x − ey + 1
x = c1 ey − 1 = (ξ + 1)ey − 1 ⇒ ξ =
ey
x − ey + 1
−y −y
u = c2 e + y − 1 = (ξ + 1)e + y − 1 = + 1 e−y + y − 1 = (x + 1)e−2y + y − 1
ey
Case ii)
c1 = e−η
x+1
e−η =
ey
c2 = 0
u(x, y) = y − 1
The difference between the two cases, (x + 1)e−2y , corresponds to the discontinuity in u prop-
agating along the curve x = ey − 1.
Example 4.2.28 Using the method of characteristics, solve the first order equation
∂u ∂u
2y + (3x2 − 1) =0
∂x ∂y
We first divide the PDE by 2y obtaining
∂u 3x2 − 1 ∂u
+ =0
∂x 2y ∂y
Consider u along a curve y = y(x) (the independent variable should be the first partial deriva-
tive, whose coefficient is 1 in the PDE). On this curve we have
d ∂u ∂u dy
u(x, y(x)) = +
dx ∂x ∂y dx
such that the ordinary differential equations
du
= 0
dx
dy 3x2 − 1
=
dx 2y
Then on solutions of
du
=0 ⇔ u=A
dx
js, ddw de ii: Lecture Notes Page 173 of 249
CHAPTER 4. PARTIAL DIFFERENTIAL EQUATION
and
dy 3x2 − 1
= ⇔ 2ydy = (3x2 − 1)dx ⇒ y 2 = x3 − x + B
dx 2y
Hence
u(x, y) = φ y 2 − x3 + x
u(x, 0) = x.
The dependent variable can be written as u = u(x(t), y(t)) in terms of a dummy variable t. On
the characteristic curve we have
d ∂u dx ∂u dy
u(x(t), y(t)) = +
dt ∂x dt ∂y dt
which is
du ∂u dx ∂u dy
= + (4.2.19)
dt ∂x dt ∂y dt
Comparing (4.2.18) and (4.2.19) will generate a set of ordinary differential equations
dx
= a(x, y, u)
dt
dy
= b(x, y, u)
dt
du
= c(x, y, u)
dt
Note 4.2.1 Note that, for a linear first order PDE, the dummy variable t is one of the inde-
pendent variable to have (4.2.19) for u = u(x, y(x)) written as (where t = x)
du ∂u ∂u dy
= + (4.2.20)
dx ∂x ∂y dx
or for u = (x(y), y) to get (where t = y)
du ∂u ∂u dx
= + (4.2.21)
dy ∂y ∂x dy
that have been used in the previous section 4.2
du ∂u dx ∂u dy
= +
dt ∂x dt ∂y dt
The system ode is given by
dx
= y−u (4.2.22)
dt
dy
= x−y (4.2.23)
dt
du
= u−x (4.2.24)
dt
1). Adding (4.2.22), (4.2.23) and (4.2.24)
d
(x + y + u) = 0
Z dt Z
d
(x + y + u)dt = 0 dt
dt
(x + y + u) = A (4.2.25)
2).
d du dy
(yu) = y +u
dt dt dt
d d
(yu) = y(u − x) + u(x − y) ⇒ (yu) = −x(y − u)
dt dt
d dx
(yu) = −x
Z dt Z dt Z Z
d dx d
(yu)dt = −x dt ⇒ (yu)dt = −xdx
dt dt dt
x2
(yu) = − + B
2
to have
(2yu) + x2 = B (4.2.26)
(x + y + u) = φ 2yu + x2
du ∂u dx ∂u dy
= +
dt ∂x dt ∂y dt
The characteristic equations are
dx
= x(y − u) (4.2.34)
dt
dy
= y(x + u) (4.2.35)
dt
du
= (x + y)u (4.2.36)
dt
1). Equations (4.2.34) and (4.2.35) give
dx dy
y +x = xy 2 − xyu + yx2 + xyu
dt dt
dx dy
y +x = xy(x + y)
dt dt
dx dy 1 du
y +x = xy
dt dt u dt
using (4.2.36).
Now, consider
1 d 1 dy 1 du
+ =
x dt y dt u dt
⇔
d xy
ln = 0
dt u
⇔
xy
= c1 (4.2.37)
u
dx dy du
− = xy − xu − xy − yu = −u(x + y) = −
dt dt dt
⇔
d
(x + u − y) = 0
dt
⇔
x + u − y = c2 (4.2.38)
u = x2 + 1, on y = x
From (4.2.38)
c2 = x + u − y
= ξ + ξ2 + 1 − ξ
= ξ2 + 1
To have
x + u − y = ξ2 + 1 (4.2.39)
xy ξ2
= 2 (4.2.40)
u ξ +1
xy ξ2
= 2
u ξ +1
xy x+u−y−1
=
u x+u−y
So, finally the solution is
xy x+u−y−1
= . Rearrange to finish!
u x+u−y
Exercise 4.22 Solve the equation
dx dy du
= =
x(y 2 2
−u ) 2 2
−y(u + x ) u(x + y 2 )
2
x2 + y 2 + u2 = c1 , yu = xc2 .
Remark 4.2.2 Equation (4.2.43) was solved before (4.2.42) in order to have a u to substitute
into equation (4.2.42).
Remark 4.2.3 When solving such characteristics directly, we will need not only to eliminate
the constants, but also the parameter t.
1
c1 =
1−ξ
c2 = 0
c3 = ξ
To have
u2 u2
t = u, ⇒ y = + ξ, ⇒ ξ = y−
2 2
u2
1−ξ 1− y− 2
x = = u2
1 − u (1 − ξ)
1−u 1− y− 2
3 2
u u
x − ux + uyx − x = 1 − y +
2 2
To have the final solution as
u2 x
y= +1−
2 1 + ux
To find the invariants, return to solved characteristics equations and solve for constants in
terms of x, y and u. We only need two, so put for instance c1 = 1 and so y = et . Then,
c3 1 c3 1
x= + (1 + c2 )y and u = − + (c2 − 1)y
y 2 y 2
Solve for c2 and c3
x+u x+u 1
c2 = ⇒ φ= . c3 = (x − u − y)y ⇒ ψ = (x − u − y)y
y y 2
2. Solve the equation with respect to the dummy variable t, and apply the initial data (param-
eterised by ξ) at t = 0. Eliminate ξ and t; find invariants by solving for constants.
Exercise 4.25 Solve the following initial value problem using method of characteristics
x2 ∂u
∂x
+ y 2 ∂u
∂y
= u2 ,
u(x, 2x) = 1
F (x, y, u, ux , uy ) = 0 (4.2.47)
To find (x(t), y(t)), we abbreviating α(t) = (x(t), y(t)) and assuming that we have a solution u
of (4.2.47). We let
Next we differentiate the equation (4.2.47) with respect to x and then with respect to y to get
Fx + Fz · ux + Fp · uxx + Fq · uyx = 0
Fy + Fz · uy + Fp · uxy + Fq · uyy = 0
and
Fy (γ(t)) + Fz (γ(t)) uy (α(t)) + Fp (γ(t)) uxy (α(t)) + Fq (γ(t)) uyy (α(t)) = 0
To eliminate the second partial derivatives uxx , uxy , uyy from the last two equations we set
and
Fy (γ(t)) + Fz (γ(t)) · uy (α(t)) + q 0 (t) = 0.
Hence the equations for p and q are
x0 (t) = Fp (γ(t))
y 0 (t) = Fq (γ(t))
z 0 (t) = Fp (γ(t)) · p(t) + Fq (γ(t)) · q(t) (4.2.50)
p0 (t) = −Fx (γ(t)) − Fz (γ(t)) · p(t)
q 0 (t) = −Fy (γ(t)) − Fz (γ(t)) · q(t)
To incorporate initial condition we write x(t, ξ), y(t, ξ), z(t, ξ)), p(t, ξ), q(t, ξ) to denote solu-
tions of (4.2.50) which satisfy the initial condition
x(0, ξ) = x0 (ξ), y(0, ξ) = y0 (ξ), z(0, ξ) = u0 (ξ), p(0, ξ) = p0 (ξ), q(0, ξ) = q0 (ξ)
at t = 0. The initial values for x, y and z are given by the initial curve Γ(ξ). However, the
initial values p0 (ξ) and q0 (ξ) for p and q have to be found. They can’t be prescribed arbitrarily
and they must satisfy the following condition. First they satisfy the equation,
Further, since u0 (ξ) = u(x0 (ξ), y0 (ξ)), we get after differentiating this with respect to ξ we get
u̇0 (ξ) = ux [x0 (ξ), y0 (ξ)] · ẋ0 (ξ) + uy [x0 (ξ), y0 (ξ)] · ẋ0 (ξ)
If the curves p0 (ξ) and q0 (ξ) satisfy (4.2.51)-(4.2.52), we say that the initial data
are compatible with the PDE (4.2.47). Having solve the system of characteristic equation
(4.2.50) with the compatible initial condition, we have to invert the map
and express t and ξ as functions of x and y, t = t(x, y) and ξ = ξ(x, y). If this can be done,
then the solution u is given by
∂x
= Fp = p + q − y
∂t
∂y
= Fq = p + q − x
∂t
∂u
= pFp + qFq = p(p + q − y) + q(p + q − x)
∂t
js, ddw de ii: Lecture Notes Page 185 of 249
CHAPTER 4. PARTIAL DIFFERENTIAL EQUATION
∂p
= p+q−y
∂t
∂q
= p+q−x
∂t
The initial conditions for x, y, u are
x(0, ξ) = ξ, y(0, ξ) = 0, u(0, ξ) = 0.
The initial condition p0 (ξ) and q0 (ξ) for p and q satisfy
1 2
p0 (ξ) + q02 (ξ) + [p0 (ξ) − ξ] q0 (ξ) = 0
2
p0 (ξ) · 1 + q0 (ξ) · 0 = 0
So, p0 = 0 and either q0 = 0 or q0 (ξ) = 2ξ. Consequently, we have two sets of initial conditions:
x(0, ξ) = ξ, y(0, ξ) = 0, u(0, ξ) = 0, p0 (ξ) = 0, q0 (ξ) = 2ξ
and
x(0, ξ) = ξ, y(0, ξ) = 0, u(0, ξ) = 0, p0 (ξ) = 0, q0 (ξ) = 0.
We consider only the first set of the initial conditions. From the equations we get
(x − p)0 = 0 and (y − q)0 = 0
which after integration gives
x = ξ + p and y = q − 2ξ.
Adding the fourth and the fifth equation and then subtracting the first gives
(p + q − x)0 = p + q − x
at the initial condition (p + q − x)(0, ξ) = ξ so that
p + q − x = ξet .
Adding the fourth and the fifth equation and subtracting the second gives
(p + q − y)0 = p + q − y, (p + q − y)(0, ξ) = 2ξ
which gives
p + q − y = 2ξet .
Hence
x = ξ(e2t − 1)
y = ξ(et − 1)
p = 2ξ(et − 1)
q = ξ(et + 1)
Substituting to the third equation and integrating gives
5
u(t, ξ) = ξ 2 e2t − 1 − 3ξ 2 (et − 1)
2
Solving the first two equations above for t and ξ in terms of x and y, one gets
y−x
et = and ξ = x − 2y
2y − x
Consequently,
y(4x − 3y)
u(x, y) = u (t(x, y), ξ(x, y)) = .
2
js, ddw de ii: Lecture Notes Page 186 of 249
4.2. METHOD OF CHARACTERISTIC EQUATIONS - - FIRST
ORDER PDES
Here the initial curve Γ(ξ) = (0, ξ, ξ 2 ) and F (x, y, z, p, q) = pq − z. So the system of character-
istic equations is as follows,
x0 = q
y0 = p
z0 = 2pq
p0 = p
q0 = q
Here x = x(t, ξ), y = y(t, ξ), z = z(t, ξ), p = p(t, ξ) and q = q(t, ξ), and ’ stands for the
derivative with respect to t. We have to find the initial condition p0 (ξ), q0 (ξ) for p(t, ξ) and
q(t, ξ). The curve (p0 (ξ), q0 (ξ)) has to satisfy the equations
and
u00 (ξ) = p0 (ξ)ẋ0 (ξ) + q0 (ξ)ẏ0 (ξ) i.e., 2ξ = q0 (ξ).
ξ
Hence q0 (ξ) = 2ξ and p0 (ξ) = 2
and full set of the initial condition for the system of character-
istic equations above is
ξ
x(0, ξ) = 0, y(0, ξ) = ξ, z(0, ξ) = ξ 2 , p(0, ξ) = , q(0, ξ) = 2ξ.
2
Solving the system for p and q we find that
ξ
p(t, ξ) = et , q(t, ξ) = 2set .
2
Then z 0 = 2ξ 2 e2t so that
z(t, ξ) = ξ 2 e2t .
Finally, x0 (t, ξ) = 2ξet and y 0 (t, ξ) = ξ 2 et together with the initial condition give
ξ t
x(t, ξ) = 2ξ et − 1 , y(t, ξ) =
e +1 .
2
ξ
Next we have to solve the system x = 2ξ [et − 1] and y = 2
[et + 1] for (t, ξ) in terms of (x, y).
After this the solution u is given by
2
u(x, y) = z(t, ξ) = ξ 2 e2t = ξet .
u2x + u2y = 1
Moreover, let
F (x, y, z, p, q) = p2 − q 2 − 1.
Then if u is a solution of the eikonal equation, we have F (x, y, u, ux , uy ) = 0. Hence the system
of characteristic equations is given by
x0 = Fp = 2p
y0 = Fq = 2q
z0 = pFp + qFq = 2p2 + 2q 2
p0 = −Fx − pFz = 0
q0 = −Fy − qFz = 0,
where x = x(t, ξ), y = y(t, ξ), z = z(t, ξ), p = p(t, ξ), and q = q(t, ξ). The initial condition for
solutions x, y, and z are
If the initial conditions (p0 (ξ), q0 (ξ)) for p and q should satisfy
which gives
p0 (ξ)2 + q0 (ξ)2 = 1
and
u00 (ξ) = p0(ξ) · x00 (ξ) + q0 (ξ) · y00 (ξ),
which gives
0 = p0 (ξ) · (− sin ξ) + q0 (ξ) · cos ξ.
Geometrically, by the first equation the point (p0 (ξ), q0 (ξ)) lies on the unit circle and the
second equation means that the dot product
so that the vector (p0 (ξ), q0 (ξ)) is perpendicular to the vector (− sin ξ, cos ξ). It follows that
there are two sets of solutions (p0 (ξ), q0 (ξ)), namely,
and
p0 (ξ) = − cos ξ, q0 (ξ) = − sin ξ.
Consider the first case. Then the initial condition for the characteristic system above is
Then
p(t, ξ) = cos ξ and q(t, ξ) = sin ξ.
Since our solution has to satisfy the initial condition, we must take consider t ≥ −1/2. So
p
2t + 1 = x2 + y 2 .
Then p
u(x, y) = z [t(x, y), ξ(x, y)] = 2t(x, y) = −1 + x2 + y 2 .
Let us consider the case p0 (ξ) = − cos ξ, q0 (ξ) = − sin ξ. Then the characteristic curves are
x(t, ξ) = −2t cos ξ + cos ξ = (1 − 2t) cos ξ,
y(t, ξ) = −2t sin ξ + sin ξ = (1 − 2t) sin ξ,
z(t, ξ) = 2t,
p(t, ξ) = − cos ξ,
q(t, ξ) = − sin ξ.
Set x = (1 − 2t) cos ξ and y = (1 − 2t) sin ξ. Then
x2 + y 2 = (1 − 2t)2 and
p
x2 + y 2 = |1 − 2t|.
1 − 2t, t ≤ 21
|1 − 2t| =
−1 + 2t, t > 12
1
and the interval t > 2
doesn’t contain t = 0, we see that
p
x2 + y 2 = 1 − 2t.
So, p
u(x, y) = z [t(x, y), ξ(x, y)] = 2t(x, y) = 1 − x2 + y 2
the general solutions for the fully non-linear first order PDE.
Remark 4.2.5 z can be replaced by u straight from the start of derivations.
Step I Generate the partial derivatives to substitute back into the PDE
ux = X 0Y
uxx = X 00 Y
uy = XY 0
uxy = X 0Y 0
uyy = XY 00
Step II Separate the variables, X on one side and Y on the other and equal to a constant.
Solve the odes in one variables.
Step III Substitute back solutions for X(x) and Y (y) into the general solutions
Step IV Apply the principal of superposition to sum the solutions as the general solutions.
Step V Use the Boundary and Initial conditions. Apply Fourier series or Fourier Sine se-
ries or Fourier cosine series (depending on the interval and the u(x, t) generated) to
determine the coefficients.
ut = kuxx , 0<x<L
u(0, t) = u(L, t) = 0 , t≥0 (4.3.2)
u(x, 0) = f (x) , 0<x<L (4.3.3)
Since a PDE in (x, t) not (x, y), by separation of variables, we assume a solution
where X(x) is a solution and T (t) is also a solution that satisfy the original problem.
ux = X 0 T
uxx = X 00 T
ut = XT 0
ut = kuxx
XT 0 = kX 00 T
X 00 T0
=
X kT
Note 4.3.1 For easy computations, all constants must be on the side of T s not Xs.
Note 4.3.2 Since the left hand side is a function of x alone and the right hand side is a function
of t alone, this is impossible (we could change the value of x, at a fixed time, and the left hand
side would have a different value but the right hand side would remain the same) unless they
are both equal to a constant say −α2 (the selection of the constant is special for the nature
of equation to generate, if choose a positive constant, the solution might not exist).. Thus, we
have
X 00 T0
= = − α2
X kT
to imply
X 00
= −α2 (4.3.5)
X
T0
= −α2 (4.3.6)
kT
Solving the two equations for X(x) and T (t), From Equation (4.3.5)
X 00
= −α2
X
js, ddw de ii: Lecture Notes Page 191 of 249
CHAPTER 4. PARTIAL DIFFERENTIAL EQUATION
X 00 + α2 X = 0
X(x) = A cos αx + B sin αx
Lets now concentrate on X(x). The boundary conditions (4.3.2) imply that
If we let T (t) = 0, then we will obtain the solution u(x, t) = 0 for all t. This is called the trivial
solution since it is the solution corresponding to the string not moving at all. To avoid the
trivial solution, we thus assume that
using X(0) = 0
Using X(L) = 0
X(x) = B sin αx
nπ
0 = B sin αL ⇒ αL = nπ ⇒ α =
L
nπ
Xn (x) = Bn sin x (4.3.8)
L
Using Equation (4.3.6)
T0 dT 2
= −α2 ⇔ = −α2 kdt ⇔ T (t) = Ce−α kt
kT T
nπ 2
Tn (t) = Cn e−( L ) kt
(4.3.9)
Remark 4.3.1 If we used a positive scalar, say λ > 0, however, then temperature T (t) = Ceλkt
would grow to ∞ which is not physically possible (Negative is ok, since exponential bounded
by zero below). Thus, we assume that λ is negative, which is to say that λ = −α2 for some
number α. Another reason for Note 4.3.2 is to develop a sine-cosine solutions of X which is an
orthogonal set whose coefficients can easily be by Fourier series.
ay 00 + by 0 + cy = 0 (4.3.13)
Equation (4.3.14) is clearly a quadratic equation and in principle, if r1 and r2 are roots of such
an equation we can write (4.3.14) as
m2 − (r1 + r2 )m + r1 r2 = 0. (4.3.15)
r1 = α + iβ
r2 = α − iβ
be two complex conjugate roots of the characteristic equation am2 + bm + c = 0. Then general
solution is then
y = eαx (A cos βx + B sin βx).
Example 4.3.1 Find the formal solution to the given initial-boundary value problem.
ut = 5uxx 0<x<1
u(0, t) = u(1, t) = 0 t≥0
u(x, 0) = (1 − x)x2 0<x<1
By separation of variables
u = XT, ux = X 0 T, uxx = X 00 T, ut = XT 0
X 00 T0
= = − α2
X 5T
X 00
= −α2
X
X 00 + α2 X = 0
X(x) = A cos αx + B sin αx
X(0, t) = 0 ⇒ X(0) = 0 ⇒ A = 0
⇒ X(x) = B sin αx
using the other boundary condition
u(x, t) = T (t)X(x)
X∞
u(x, t) = T (t)X(x)
n=1
∞
X 2
u(x, t) = Cn e−(nπ) 5t Bn sin nπx
n=1
∞
X 2
u(x, t) = bn e−(nπ) 5t
sin nπx
n=1
u(x, 0) = (1 − x)x2
X∞
2
(1 − x)x = bn sin nπx
n=1
and by the Fourier sine series (the equation above is in that form)
2 L 2 1 [−8(−1)n − 4]
Z nπ Z
bn = f (x) sin x dx = (1 − x)x2 sin nπx dx =
L 0 L 1 0 (nπ)3
Thus the general solution is given by
∞
X
u(x, t) = bn T (t)X(x)
n=1
∞
X [−8(−1)n − 4] 2
u(x, t) = e−(nπ) 5t
sin nπx
n=1
(nπ)3
Example 4.3.2 Solve the partial differential equation
∂u 2
= 3 ∂∂xu2
∂t
0<x<1
u(0, t) = u(1, t) = 0 t≥0
u(x, 0) = e−2x 0<x<1
Xn = Bn sin nπx
2
Tn = Cn e−3(nπ) t
∞
X 2nπ −2 n
−3(nπ)2 t
u(x, t) = 2π2 + 4
1 − e (−1) e sin nπx
n=1
n
Example 4.3.3 Solve the second order equation
∂u 2
∂t
= 4 ∂∂xu2 0<x<p
u(0, t) = u(p, t) = 0 t≥0
u(x, 0) = x(p − x) 0<x<p
p2 [−1 + (−1)n ]
bn = −4
π 3 n3
0, n even;
= 8p2
π 3 n3
, n odd.
∞
8p2 X 1 −4n2 π 2 t
nπ
u(x, t) = exp sin x
π 3 n=1 n3 p2 p
n odd
or
∞
p2 [−1 + (−1)n ] −4n2 π 2 t
X nπ
u(x, t) = −4 3 3
exp 2
sin x
n=1
π n p p
Example 4.3.4 Solve the partial differential equation
ut = 0.003uxx
u(0, t) = u(1, t) = 0
u(x, 0) = 50 x (1 − x) 0 < x < 1.
1
200 (−1)n
Z
200 0 if n even,
bn = 2 50 x (1 − x) sin(nπx) dx = 3 3 − = 400
0 π n π 3 n3 π 3 n3
if n odd.
The solution for 0 ≤ t ≤ 100, is given by the series:
∞
X 400 2 2
u(x, t) = 3 3
sin(nπx) e−n π 0.003 t
n=1
π n
n odd
Xn = 6 Bn sin nx
Xn = An cos nx
2
Tn = Cn e−9n t
∞
2
X
u(x, t) = an cos nx e−9n t
n=0
∞
a0 X 2
u(x, t) = + an cos nx e−9n t , to have a Fourier cosine form
2 n=1
∞
P
Note 4.3.5 We can start with n = 0, since for cos 0 6= 0, unlike when u(x, t) = sin · · ·
n=1
∞ ∞
π − 2 2 X 1 + (−1)n
a0 X −9n2 t 2
u(x, t) = + an cos nx e = + 2
cos nx e−9n t
2 n=1
π π n=1 −1 + n
Hint: Use the fact that u(x, t) = 100x is a solution satisfying ut = uxx , u(0, t) = 0, u(1, t) = 100.
See Section 4.3.3.
Hence, the solution to the PDE problem, plotted in is given by the series
∞
25 X −200 2 2
u(x, t) = + 2 2
cos(nπx) e−n π 0.003 t
3 n=2
π n
Exercise 4.32 Find the steady state temperature solution as a function of x alone, by letting
t → ∞ in the solution from exercises 4.27 and 4.28. Verify that it satisfies the equation uxx = 0.
Exercise 4.33 Suppose that one end of the wire is insulated (say at x = 0) and the other end
is kept at zero temperature. That is, find a series solution of
ut = kuxx
ux (0, t) = u(L, t) = 0
u(x, 0) = f (x) 0 < x < L.
Exercise 4.34 [See Section 4.3.3] Suppose that the wire is circular and insulated, so there are
no ends. You can think of this as simply connecting the two ends and making sure the solution
matches up at the ends. That is, find a series solution of
ut = kuxx
u(0, t) = u(L, t)
ux (0, t) = ux (L, t)
u(x, 0) = f (x) 0 < x < L.
Remark 4.3.2 If the initial and boundary conditions are insufficient, solving a partial differ-
ential equation becomes harder.
u(0, t) = u(1, t) = 0,
with, "Z #
1/2 Z 1
nπ nπ
bn = 2 x sin xdx + (1 − x) sin x dx
0 l 1/2 l
Integration by parts yields, for even n = 2m,
1
b2m = (−1)m ,
m2 π 2
and
b2m+1 = 0,
for odd n = 2m + 1.
For problems involving heat flow there is no reason why the temperature should have the same
value at each end of the rod. The next few examples will show the effect of different boundary
conditions.
∂u ∂ 2u
= ,
∂t ∂x2
subject to
Instead of specifying the value of the temperature at the ends of the rod we could fix ∂u
∂x
instead.
This corresponds to fixing the heat flux that enters or leaves the system. For example, if ∂u
∂x
= 0,
then no heat enters the system and the ends are said to be insulated.
∂ 2u
1 ∂u
∂∂x x − 2 = x2 ,
x ∂x ∂t
Example 4.3.12 The following example illustrates the case when one end is insulated and
the other has a fixed temperature.
u(x, 0) = 1.
In this case the steady state solution must satisfy the boundary conditions and is simply
ν(x) = 0.
Again we look for a seperable solution of the form
A = 0,
and the condition at x = 1 gives
Bp cos p = 0,
so that, in this case p must be an odd integer times π/2. Thus,
π
p = (2n + 1) .
2
Hence, the solution is
∞
X π 2 2
u(x, t) = an sin(2n + 1) xe−(2n+1) π t/4 .
n=0
2
Finally, the initial condition is given by inverting the Fourier series at t = 0. Thus,
∞
X π
u(x, 0) = an sin(2n + 1) x = 1.
n=0
2
Again multiply by sin(2m + 1) π2 x and integrate between x = 0 and 1 to get
Z 1
π 4
am = 2 sin(2m + 1) xdx = .
0 2 (2m + 1)π
Example 4.3.13 Second order Partial Differential Equations
∂ 2u ∂u
2
+4 = 0,
∂x ∂t
is linear PDE.
substituting into PDE (4.3.18) generates the separable ordinary differential equations
xX 0 yY 0
=3− = β
X Y
which can be solved as
dX dx
=β ⇔ ln X = β ln x + ln c1 ⇔ X = c1 xβ
X x
and
dY dy
= (3 − β) ⇔ ln Y = (3 − β) ln y + ln c2 ⇔ Y = c2 y 3−β
Y y
We recombine them to generate the general solution as
where c is an arbitrary constant. Not identical to solutions for Example 4.2.2 on page (p. 158)
but can be readily verified that this solution satisfies the original PDE eqn (4.3.18).
If let ξ = (x − 3t). Notice that, with separation of variables, we need more conditions in order
to get out the all the scalars.
Example 4.3.19 Solve the partial differential equation
∂u ∂u
+u =0
∂y ∂x
By separation of variables, we let
Alternatively, see Example 4.2.25 on page (p. 169). Try to apply the initial conditions on page
(p. 169), we realise, more is needed.
Example 4.3.20 Find the separated solution to
ux + 2xuy = 0
Using
X0 Y0
= = β
−2xX Y
Generates
2
X = c1 e−βx
Y = c2 eβy
u(x, y) = y − x2
Still the separated solution will again be different if −2 was on side of Y and not X.
Exercise 4.40 Find the separated solution to each of the following partial differential equa-
tions. Assume that κ, a, c and τ are constant.
∂u ∂u
1) ∂t
= ∂x
5) ux + 3x2 uy = 0
∂u
2) ∂t
= −κ ∂u
∂x
6) ux + ut = u
∂u ∂u ∂u ∂u
3) ∂x
+ ∂y
=0 7) ∂x ∂y
=u
4) ux + e−x uy = 0 8) ∂u
∂x
= −2x ∂u
∂y
Exercise 4.41 Find a separated solution of the following nonlinear wave equation:
∂u ∂u
= cu
∂t ∂x
Either ut = kuxx + h
or u(0, t) 6= 0
or u(L, t) 6= 0
or all
ug = uc + up
u(x, t) = w(x, t) + ν(x) if h = h(x)
u(x, t) = w(x, t) + ν(t) if h = h(t)
u(x, t) = w(x, t) + ν(x, t) if h = h(x, t)
1.) The general solution satisfy the partial differential equation. Substitute u(x, t) into the
PDE.
3.) The particular solutions ν do satisfy the boundary conditions. The particular solution can
be solved fully.
4.) The complimentary solutions (after replacing u with u = w + ν) will therefore satisfy a
homogeneous PDE
wt = wtt
w(0, t) = w(L, t) = 0
w(x, 0) = f (x) − ν
which can be solved using separation of variables.
5.) The final solution will be the sum of complimentary and particular solutions.
2 L
Z nπ
an = [f (x) − ν(x)] sin x dx
L 0 π
2 π
3
π2
Z
x
= (sin x) − − + x sin nx dx
π 0 3 3
Z π 3 2
4(−1)n
2 x π
= sin x + − x sin nx dx =
π 0 3 3 n3
∞ ∞ ∞
4(−1)n
−2n2 t 2
X X X
w(x, t) = X(x)T (t) = an Xn Tn = an e sin nx = 3
sin nxe−2n t
n=1 n=1 n=1
n
ut = 3uxx + 5 0<x<π
u(0, t) = u(π, t) = 1 t≥0
u(x, 0) = 1 0<x<π
in order to remain with a homogeneous one (particular solutions always satisfy boundary con-
ditions)
0 = 3νxx + 5 0<x<π
ν(0) = ν(π) = 1
To have
5 5 5
ν 00 (x) = − ⇒ ν 0 (x) = − x + c1 ⇒ ν(x) = − x2 − c1 x + c2
3 3 6
With the boundary conditions ν(0, t) = ν(π, t) = 1
5π 5 5π
c2 = 1, c1 = ⇒ ν(x) = − x2 + x+1
6 6 6
The steady state solution and a transformation to simplify (4.3.23) to the homogeneous problem
wt = 3wxx 0<x<π
w(0, t) = w(π, t) = 0 t≥0
w(x, 0) = 65 x2 − 5π
6
x 0<x<π
By separation of variables
nπ
Xn (x) = Bn sin x = Bn sin nx
L
nπ 2
Tn (t) = Cn e−( L ) kt = Cn e−3n t
2
2 L 2 π
Z Z
5 2 5π
an = [f (x) − ν(x)] sin nπx dx = 1+ x − x − 1 sin nπx dx
L 0 π 0 6 6
2 π 5 2 5π
Z
10 n 0 n even
= x − x sin nπx dx = [(−1) − 1] = 20
π 0 6 6 3πn 3 − 3πn3 n is odd
∞ ∞ ∞
X 20
2 2
X X
w(x, t) = X(x)T (t) = an Xn Tn = an e−3n t sin nx = − 3
e−3n t sin nx
n=1 n=1 n=1
3πn
where ν is a solution of the equation ν 0 (t) = A cos αt satisfying ν(0) = 0. Find the equation for
w. Then " #t
Z t
A A
ν(t) = ν(0) + A cos αs ds = sin αs = sin αt.
0 α α
0
where Z 1 Z 1
2
B0 = (1 + cos πx) dx and Bn = 2 (1 + cos2 πx) cos nπx dx.
0 0
We have Z 1
3
B0 = (1 + cos2 πx)dx =
0 2
and for n ≥ 1,
Z 1 Z 1
2
Bn = 2 (1 + cos πx) cos nπx dx = (3 + cos 2πx) cos nπx dx
0 0
Z 1 Z 1 1
2
, n=2
= 3 cos nπx dx + cos 2πx cos nπx dx =
0 0 0, n = 2.
Hence
3 1 2 A
u(x, t) = + cos(2πx)e−4kπ t + sin αt.
2 2 α
Remark 4.3.5 ν 6= ν(x), but ν = ν(t) since RHS is function in t and not x.
Since a PDE in (x, t) not (x, y), by separation of variables, we assume a solution
where X(x) is a solution and T (t) is also a solution that satisfy the original problem.
ux = X 0T
uxx = X 00 T
ut = XT 0
utt = XT 00
utt = c2 uxx
XT 00 = c2 X 00 T
X 00 T 00
= 2
X cT
Note 4.3.11 All constants must be on the side of T s not Xs.
X 00 T 00
= = − α2
X c2 T
X 00
= −α2 (4.3.25)
X
T 00
= −α2 (4.3.26)
c2 T
Solving the two equations for X(x) and T (t),
X 00
= −α2
X
X 00 + α2 X = 0
X(x) = A cos αx + B sin αx
using X(0, t) = 0
0 = A cos 0 + B sin 0
⇒ A=0
⇒ X = B sin αx
using X(L, t) = 0
X(x) = B sin αx
0 = B sin αL
⇒ αL = nπ
nπ
⇒ α =
L nπ
⇒ Xn (x) = Bn sin x (4.3.27)
L
T 00
= −α2
c2 T
T 00 + α2 c2 T = 0
T (t) = D cos cαt + E sin cαt
h nπ i h nπ i
Tn (t) = D cos c t + E sin c t (4.3.28)
L L
using the principle of superposition -Now, we have a solution for every integer value of n. Thus,
to form the most general solution we must add together all the possible solutions - with
∞ h
X nπ nπ i nπ
u(x, t) = Dn cos c t + En sin c t sin x (4.3.29)
n=1
L L L
Z L
2 nπ
En = g(x) sin x dx (4.3.31)
nπc 0 L
using the definitions of Dn and En , the final solution to the wave equation, that satisfies both
the initial and boundary conditions is
∞
X nπ nπc nπc
u(x, t) = sin x Dn cos t + En sin t .
n=1
L L L
Notice that, although the solution was obtained by looking for solutions that were separable in
x and t, the final answer is NOT separable (unless all the coefficients are zero except one).
Example 4.3.27 Using the geometric series
1
= 1 + x + x2 + x3 + · · · ,
1−x
we see that we can express
∞
1 X 1
1 = n
sinn x cosn t.
1 − 2 sin x cos t n=0 2
Each term in the sum is separable, having the form sinn x cosn t, but the left hand side cannot
be expressed as a function of x times a function of t.
Example 4.3.28 We can relate our solution to d’Alembert’s solution as follows. using the
trigonometric identities
nπ nπc 1 nπ nπ
sin x cos t= sin (x − ct) + sin (x + ct) ,
L L 2 L L
and
nπ nπc 1 nπ nπ
sin x sin t= cos (x − ct) − cos (x + ct) .
L L 2 L L
These expressions are both of the form of F (x − ct) and G(x + ct). The solution that was
obtained in (4.3.29) corresponds to standing waves whereas d’Alembert’s solution corresponds
to travelling waves we see that standing waves can be considered as the superposition of an
inifinite number of travelling waves travelling to the left and right but interacting in such a way
as to produce standing waves.We now illustrate the method of separation with a few examples
corresponding to different initial conditions. We choose different forms for f (x) and g(x). In
all these examples we choose L = π and c = 1.
Example 4.3.29 Consider
∂u
u(x, 0) = f (x) = sin x, and (x, 0) = g(x) = 0.
∂t
From (4.3.31) we have En = 0 for all n and from (4.3.30) we have D1 = 1 and Dn = 0 for
n > 1. We can verify this quite easily. Consider
1
sin x sin nx = [cos(1 − n)x − cos(1 + n)x] ,
2
for n 6= 1. Clearly,
Z π π
1 sin(1 − n)x sin(1 + n)x
sin x sin nxdx = − + ,
0 2 1−n 1+n 0
and so π
sin(1 − n)π sin(1 + n)π
Z
1
sin x sin nxdx = − + − (0) = 0.
0 2 1−n 1+n
Finally,
π
1 π
Z Z
2 π
sin xdx = (1 − cos 2x) dx = .
0 2 0 2
Thus, the only term in the Fourier series that is non-zero is the first term and so D1 = 1.
and
∂u
= g(x) = − sin x
∂t
so that there is an initial velocity and well as an initial displacement. However, since the
functions only involve a single sine term, the solution will simply be
It is easily verified that this solution does indeed satisfy the initial conditions.
we obtain
8 nπ
En = sin
n3 π 2 2
Hence, the solution to the wave equation is
∞
8 X (−1)n
u(x, t) = 2 sin [(2n + 1)x] sin [(2n + 1)t]
π n=0 (2n + 1)3
where X(x) is a solution and Y (y) is also a solution that satisfy the original problem.
ux = X 0Y
uxx = X 00 Y
uy = XY 0
uyy = XY 00
2.)
zc = c1 et + c2 e2t
1
zp1 = Ae−t = e−t
2
7 9
zp2 = A cos 3t + B sin 3t = cos 3t + sin 3t
13 13
zg = zc + zp
1 7 9
= c1 et + c2 e2t + e−t + cos 3t + sin 3t
2 13 13
js, ddw de ii: Lecture Notes Page 220 of 249
4.3. METHOD OF SEPARATION OF VARIABLES - - SECOND
ORDER PDES
3. use Fourier series to superimpose the solutions to get the final solution that satisfies both
the heat,wave or Laplace equation and the given initial conditions.
∂ 2u
− u = 0.
∂y∂x
Again we set
dX dY
= XY.
dx dy
Dividing by (dX/dx)Y , instead of XY , we obtain
1 dY 1
=X .
Y dy dX/dx
Since the left hand side is a function of y alone and the right hand side is function of x
alone, the only possible solution is if they are both equal to a constant, say k. Thus, we get
two ordinary differential equations of the form
dY
= kY,
dy
and
dX 1
= X.
dx k
These are easily solved in terms of exponential functions to give
Y (y) = Aeky ,
and
X(x) = Bex/k .
Thus, the general solution to the partial differnetial equation is
u(x, y) = Ceky+x/k .
Example 4.3.39 This example shows how the method of separation of variables can be ap-
plied to problems for which the coefficients are functions of x and y. For the separation to work
the coefficients do need to have particular forms. Here
∂ 2u
x2 + 3y 2 u = 0.
∂y∂x
Again we set
u(x, y) = X(x)Y (y),
substitute into the equation and divide by X(dY /dy) to obtain
dX 1 1
x2 = −3y 2 Y .
dx X dY /dy
Here the left hand side is a function of x alone, whereas the right hand side is a function of y
alone and so they must both equal a constant, k. Thus, the two equations are
dX
x2 = kX,
dx
dY y2
= −3 Y
dy k
These equations are both separable first order equations and so we obtain, for the x dependence
dX k k
= 2 dx ⇒ ln X = − + c,
X x x
and hence
X(x) = Ae−k/x .
The y dependence gives
dY y2 y3
= −3 Y ⇒ log Y = − + c,
Y k k
so that
3 /k
Y (y) = Be−y .
Thus, the general solution to the equation is
3 /k
u(x, y) = Ce−k/x−y .
D12 + k1 D1 D2 + k2 D22 u = 0.
(4.4.2)
D1
= m1 , m2 . (4.4.4)
D2
1.
dx dy du
(D1 − m2 D2 )u = 0 ⇔ ux − m2 uy = 0 ⇔ = =
1 −m2 0
⇔ y + m2 x = a and u = b
⇔ u = φ(y + m2 x).
2.
dx dy du
(D1 − m1 D2 )u = 0 ⇔ ux − m1 uy = 0 ⇔ = =
1 −m1 0
⇔ y + m1 x = a and u = b
⇔ u = f (y + m1 x).
u = f (y + m1 x) + φ(y + m2 x).
2.) Case II. If the roots are equal, i.e., m1 = m2 , then (4.4.5) is equivalent to
(D1 − m1 D2 )2 u = 0. (4.4.6)
ux − m1 uy = φ(y + m1 x).
4.) Case 4. F (x, y) is any function of x and y. To evaluate (4.4.8) we resolve 1/d(D1 , D2 )
into partial fractions treating d(D1 , D2 ) as a function of D1 alone and operate each partial
fraction on F (x, y), remembering that
Z
1
F (x, y) = F (x, c − mx)dx (4.4.11)
D1 − mD2
where c is replaced by y + mx after integration. To show this,
Proof: We let
1
F (x, y) = φ(x, y)
D1 − mD2
so that (D1 − mD2 )φ(x, y) = F (x, y) for which
dx dy dφ
= =
1 −m F (x, y)
and hence y + mx = c, and
Z
dφ
dx = ⇔ φ(x, y) = F (x, c − mx)dx.
F (x, c − mx)
clearly Case 2 fails as (D1 − 2D2 ) = 0. However, we can apply Case 4. For this we note that
for the equation (D1 − 2D2 )v = e2x+y the solution is
Z Z
v(x, y) = F (x, c − mx)dx = e2x+(c−2x) dx = xec = xe2x+y
Now since (D1 − 2D2 )up = v = y sin x + 3 cos x, the particular solution is
Z
up (x, y) = [(c − 2x) sin x + 3 cos x] dx = (c − 2x)(− cos x) − (−2)(− sin x) + 3 sin x
= sin x − y cos x.
Alternatively, using partial fractions for the particular solutions
1 1 1
up (x, y) = y cos x = · y cos x
(D1 − 2D2 )(D1 + 3D2 ) (D1 − 2D2 ) (D1 + 3D2 )
Z
1
= · [(c + 3x) cos x] dx by (4.4.11)
(D1 − 2D2 )
1
= {y sin x + 3 cos x}
(D1 − 2D2 )
Z
= [(c − 2x) sin x + 3 cos x] dx by (4.4.11)
= sin x − y cos x
Hence, the general solution is
ug = uc + up
u(x, y) = f1 (y − 3x) + f2 (y + 2x) + sin x − y cos x
Example 4.4.6 Solve the inhomogeneous partial differential equation
uxxx − 2uxxy = 2e2x + 3x2 y
the auxiliary equation is m3 − 2m2 = 0, m = D1 /D2 , which gives m1 = 0, m2 = 0, m3 = 2.
Hence, its complementary function is
uc (x, y) = f1 (y) + xf2 (y) + f3 (y + 2x).
For the particular solutions
1 1
up (x, y) = 3 2
2e2x + 3x2 y = 2 2e2x + 3x2 y
(D1 − 2D1 D2 ) D1 (D1 − D2 )
1 1 2x 2 1 2x 3 3 4
= · 2e + 3x y = 2 · e + (x + y)x − x
D12 (D1 − D2 ) D 4
1
1 1 1 1 1 2x 1 4 1 1 1 1 6
= · e2x + x3 y + x4 = e + x y + x5 = e2x + x5 y + x
D1 D1 4 D1 2 4 20 4 20 120
Hence, the general solution is
1 1 1 6
u(x, y) = f1 (y) + xf2 (y) + f3 (y + 2x) + e2x + x5 y + x
4 20 120
Exercise 4.45 Solve the following second, third and fourth-order linear partial DEs:
4.) u = f1 (y + x) + f2 (y − 5x) + 12 x2 y 2 − 43 x3 y + 74 x4
7.) u = f1 (y + x) + f2 (y − x) + xf3 (y − x)
1 x+2y
8.) u = f1 (y − x) + f2 (y + 2x) + xf3 (y + 2x) + 27
e
Example 4.5.1 Use the Laplace transform to solve the following partial differential equation
problem
∂ 2u 2
2∂ u
− c = 0 x ≥ 0, t ≥ 0
∂t2 ∂x2
∂u
(0, t) = 0 t≥0
∂x
∂u
u(x, 0) = 0, (x, 0) = e−ax x ≥ 0, a ≥ 0
∂t
Taking Laplace transforms on both sides
∂ 2 û ∂ 2 û ∂ 2 û
s û − su(0) − u0 (0) − c2 2 = s2 û − 0 − e−ax − c2 2 = s2 û − e−ax − c2 2 = 0
2
∂x ∂x ∂x
∂ û
This can be viewed as a second order ODE with boundary conditions (0, s) = 0 and û(x, 0) = 0.
∂t
Rewriting the equation as
d2 û s2 1 −ax
− û = − e ,
dx2 c2 c2
the general solution can be seen to take the form
sx sx e−ax
û(x, s) = c1 exp + c2 exp − + 2 2 .
c c c a − s2
For H, the heaviside function, with Laplace inverse, it can be shown that
1 x h x i e−ax
u(x, t) = H t − cosh ca t − −1 − sinh(cat).
ca c c ca
Exercise 4.46 Consider the initial value problem:
utt + ω 2 u = 0, u(0) = 0, ut (0) = ω
2 2
−1 ω
s +ω û = ω ⇒ u = L = sin(ωt)
s + ω2
2
∂u ∂ 2u
= 0 < x < 2, t > 0
∂t ∂x2
u(0, t) = u(2, t) = 0 t>0
u(x, 0) = 3 sin(2πx) 0<x<2
∂2
û(x, s) − sû(x, s) = 3 sin(2πx)
∂x2
Equivalent to an ordinary differential equation
d2
û(x, s) − sû(x, s) = 3 sin(2πx)
dx2
The general solution can be written as
∂ 2u ∂ 2u
= + sin(πx) 0 < x < 1, t > 0
∂t2 ∂x2
u(0, t) = u(1, t) = 0 t>0
u(x, 0) = ut (x, 0) = 0 0<x<1
∂2 d2
û(x, s) = û(x, s) = s2 û(x, s) − su(x, 0) − ut (x, 0) = s2 û(x, s)
∂t2 dt2
d2 sin(πx)
⇒ s2 û(x, s) = 2 +
dx s
js, ddw de ii: Lecture Notes Page 231 of 249
CHAPTER 4. PARTIAL DIFFERENTIAL EQUATION
sin(πx)
û(x, s) = c1 esx + c2 e−sx +
s(s2 + π 2 )
sin(πx)
=
s(s2 + π 2 )
−1 sin(πx) −1 1 1 −1 1 s
u(x, t) = L =L sin(πx) = 2 L − sin(πx)
s(s2 + π 2 ) s(s2 + π 2 ) π s (s2 + π 2 )
1
= [1 − cos(πt)] sin(πx)
π2
Integrating the second equation with respect y, one finds that u(x, y) = (x3 + x)y + A(x). Then
ux = (3x2 + 1)y + A0 (x) and using the first equation, one finds that A0 (x) = 0. Hence the
function A is constant. say A(x) ≡ a. Hence u(x, y) = (x3 + x)y + a, Then u(0, 0) = a = 0,
implies that the solution of the system is given by u(x, y) = (x3 + x)y.
As in first system after integrating the second equation one finds that u(x, y) = (x3 +x)y+A(x).
ux = (3x2 + 1)y + A0 (x) and using the first equation, one finds that A0 (x) = −0.01x2 y. Now,
this is impossible since 0.01x2 y is a function of two variables x and y while A0 (x) only depends
on x. Consequently, the system doesn’t have a solution.
Exercise 4.50 Consider the equation
yux − xuy = 0 for (x, y) ∈ R × (0, ∞).
Check for each of the following initial conditions whether the problem is solvable. If it is
solvable, find a solution. If not, explain why.
(a) u(x, 0) = x2 .
u(x, y) = x2 + y 2 the only solution of the P.D.E.
(b) u(x, 0) = x.
There are no solution for this problem
(c) u(x, 0) = x, x > 0.
p
u(x, y) = x2 + y 2 is a solution of the P.D.E.
x0 = x, y 0 = y, u0 = λu
Here λ = 4 and the initial curve is given by ξ 7→ (cos ξ, sin ξ, 1). So, the characteristic
curves satisfying the initial condition are
Now, one needs to solve x = et cos ξ and y = et sin ξ for t and ξ in terms of x and y.
Squaring both equations and then adding, one gets x2 + y 2 = e2t . Since a solution u is
defined by u(x, y) = e4t , it follows that
u(x, y) = (x2 + y 2 )2 .
(c) Let λ = 2. Find two solutions that satisfy u(x, 0) = x2 for x > 0.
Here λ = 2 and the initial curve is given by (ξ, 0, ξ 2 ). So, the characteristic curves
satisfying the initial condition are
Note that the projection of the characteristic curves and of the initial curve are the same
(the x axis in the (x, y) plane). This means that there is no unique solution.
Also not that the characteristic curve (ξet , 0, ξ 2 e2t ) and the initial curve (ξ, 0, ξ 2 ) are the
same in R3 . This means that the P.D.E. has infinitely many solutions.
2.)
xux − uuy = y
u(1, y) = y.
Is the solution unique? What is the maximal domain where it is defined?
3.)
ux + u2 uy = 0
u(x, 0) = 1
4.)
x2 ux + y 2 uy = u2
u(x, 2x) = 1
u2x + uy + u = 0
u(x, 0) = x.
x0 = Fp = 2p
y0 = Fq = 1
u0 = pFp + qFq = 2p2 + q (4.6.1)
p0 = −Fx − pFz = −p
q0 = −Fy − qFz = −q.
The initial conditions p0 (ξ) and q0 for p and q should satisfy the following equations
and
u00 (ξ) = x00 (ξ)p0 (ξ) + y00 (ξ)q0 (ξ), i.e., 1 = p0 (ξ).
Thus, the initial conditions for p and q are
Solving the second and the last two equations of (4.6.1) with the initial conditions, we obtain
Substituting to the first and the third equation and integrating, we find that
Finally, we have to invert the map (t, ξ) 7→ (x(t, ξ), y(t, ξ)). We get
Hence
u(x, y) = (x − 1)e−y + e−2y .
2.)
u2y ux = 1
u(x, 0) = x.
3.)
1
2
u2x + u2y + (ux − x)(uy − y) = u
u(x, 0) = 1.
Exercise 4.57 Solve the following problem
ut + uux = 0 (x, t) ∈ R × (0, ∞)
u(x, 0) = sin x.
What are the characteristics of the equation? Do the characteristics intersect? For what values
of t does the classical solution exist?
Exercise 4.58 Solve the linear equation
ux + uy + u = 1
subject to the initial condition
u(x, x + x2 ) = sin x for x > 0.
The solutions (characteristics) of the equations are
x(t, ξ) = t + ξ, y(t, ξ) = t + ξ + ξ 2 , u(t, ξ) = 1 − [1 − sin ξ]e−t .
with p √ √
ξ = |ξ| = ξ 2 = y − x, t = x − ξ = x − y − x.
Consequently, √ √
u(x, y) = 1 − 1 − sin y − x e−x+ y−x
What are the characteristics of the equation? For what values of t does the solution exist?
c2 = c1 A1 + A2
y2
− u = A1 xe−y + A2
2
y2
+ A3 xe−y + A4
u =
2
Using the initial conditions, we get
y2
⇒ u(x, y) = + x2 e−2y
2
which holds ∀x, y, z.
y−u
6.) y = c1 u, x2 + y 2 + u2 = uc2 = c1 , xy + yu + xu = c2 x−y
3.)
Exercise 4.62
Exercise 4.63 Solve the following first-order linear partial differential equations:
Exercise 4.63
Exercise 4.64 Solve the following first-order nonlinear partial differential equations:
u2
u√ √
3.) 2
± 2
u2 − 4a2 − 2a2 ln u + u2 − 4a2 = 2ax + 2y + b
4.) ln(a − ax) = y − a ln(a + y) + b
p √ p n p o
5.) Put u2 = U, u2 = b+x (x2 + a2 )+a ln x + x2 + a2 +y (y 2 − a2 )+a ln y + y 2 − a2
1 d (u2 − c2 y 2 )
6.) p = cdx ⇒ u2 = (a + cx)2 + c2 y 2
2 u −c y
2 2 2
hence the equation is hyperbolic. Solve µ2 + 3µ − 4 = 0 to get two real solutions, µ1 = −4 and
µ2 = 1. There are two characteristic equations
dx dx
= 4 and = −1
dt dt
whose solutions are
x − 4t = c1 and x + t = c2 .
Define the change of coordinates by ξ = x − 4t and η = x + t. Then
ξx = 1, ξt = −4, ηx = 1, ηt = 1.
ux = νξ + νη
ut = −4νξ + νη
uxx = νξξ + 2νξη + νηη
uxt = −4νξξ + 2νξη + νηη
utt = 16νξξ − 3νξη + νηη .
for any two twice continuously differentiable functions F and G. Hence, the solution u is equal
to
u(x, t) = F (x − 4t) + G(x + t)
where F and G are as above. The derivative ut (x, t) is equal to
Example 4.6.7 By Canonical method (method of characteristics), solve the following Cauchy
problem:
utt − 4uxx = ex + sin t (x, t) ∈ R × (0, ∞)
u(x, 0) = 0 x∈R
1
ut (x, 0) = 1+x2 x∈R
The solution u of is given by
x+2t Z t "Z x+2(t−s)
#
φ(x + 2t) + φ(x − 2t) 1
Z
1
u(x, t) = + ψ(y)dy + f (y, s)dy ds
2 4 x−2t 4 0 x−2(t−s)
1
where φ = 0, ψ = 1+x2
and f (y, s) = ey + sin s. So,
,
Z "Z x+2(t−s) #
1 x+2t 1 1 t
Z
u(x, t) = dy + ey + sin s dy ds.
4 x−2t 1 + y 2 4 0 x−2(t−s)
Example 4.6.8 Find the formal solution of the problem by Fourier series (separation of
variables) method
utt − uxx = 0 0 < x < π, t > 0
u(0, t) = u(π, t) = 0 t≥0
u(x, 0) = sin3 x 0≤x≤π
ut(x, 0) = sin 2x 0 ≤ x ≤ π.
Note that
X X
u(x, 0) = sin3 x = An sin nx and ut (x, 0) = sin 2x = (nBn ) sin x.
n≥1 n≥1
From the second equality we get that 2B2 = 1 and nBn = 0 for all n ≥ 2. So, B2 = 1/2 and
Bn = 0 for all n 6= 2. The coefficient An is given by
2 π 3
Z
An = sin x sin nxdx.
π 0
Using sin3 x = 14 [3 sin x − sin 3x]
Z π Z π
2 3 1 2
An = sin x sin nx dx − [3 sin x − sin 3x] sin x sin nx dx
π 0 0 4 π
3
3
Z π
1
Z π 4, n = 1,
= sin x sin nx dx − sin 3x sin x sin nx dx = −1, n = 3,
2π 0 2π 0 4
0, otherwise.
Hence
3 1 1
cos t sin x + sin 2t sin 2x − cos 3t sin 3x.
u(x, t) =
4 2 4
Clearly u is smooth and after differentiating twice with respect to t and with respect to x and
then substituting to the equations, one sees that u solves the equation. Hence u is a classical
solution.
Exercise 4.65 Solve the heat equation with Dirichlet (constant) boundary conditions by
separation of variables
ut − uxx = 0, 0 < x < π, t > 0
0, t ≥ 0
u(0, t) = u(π, t) =
x, 0 ≤ x ≤ π/2
u(x, 0) = φ(x) =
π − x, π/2 ≤ x ≤ π
∞ ∞
X 4 X (−1)n+1
−n2 t 2
u(x, t) = Bn (sin nx) e = 2
sin [(2n − 1)x] e−(2n−1) t
n=1
π n=1 (2n − 1)
Z π
2 π/2 2 π
Z Z
2 4 nπ
Bn = φ(x) sin nxdx = x sin nxdx + (π − x) sin nxdx = 2
sin .
π 0 π 0 π π/2 πn 2
nπ 0, n = 2k
sin = k+1 (4.6.4)
2 (−1) , n = 2k − 1
where
1, − π < x < 0,
φ(x) =
0, − 0 < x < π.
The formal solution u has the form
2
X
u(x, t) = A0 + [Bn cos nt + Cn sin nt] e−n t ,
n≥1
where
Z π Z π Z π
1 1 1
A0 = φ(x)dx, Bn = φ(x) cos nx dx, Cn = φ(x) sin nx dx.
2π −π 2π −π 2π −π
We compute A0 = 21 ,
1 π 1 0
Z Z
Bn = φ(x) cos nx dx = cos nx dx = 0,
π −π π π
1 π 1 0
Z Z
1
Cn = φ(x) sin nx dx = sin nx dx = − [cos nx]0−π
π −π π −π nπ
1 0, n is even,
= [(−1n ) − 1] = 2
nπ − nπ , n is odd.
Consequently,
1 2X 1 2
u(x, t) = − sin(2n − 1)xe−(2n−1) t .
2 π n≥1 2n − 1
x2 2t2 1
u(x, t) = + (1 − cos t) + + sin 6t cos 3x.
2π π 6
Remark 4.6.2 The particular solution is not ν = ν(x) nor ν = ν(t) but for ν = ν(x, t). See
Section 4.4.2.
Exercise 4.67 Solve the problem
ut − uxx = e−t sin 3x 0 < x < π, t > 0
u(0, t) = 0, u(π, t) = 1 t≥0
u(x, 0) = φ(x) 0≤x≤π
Example 4.6.10 Use the method of separation of variables to find the formal solution of the
following problem.
ut − uxx − hu = 0 0 < x < π, t > 0
u(0, t) = u(π, t) = 0 t≥0
u(x, 0) = x(π − x) 0≤x≤π
where h is a real constant.
X(0) = X(π) = 0
The eigenvalues of the later and the corresponding eigenfunctions are
λn = n2 , Xn (x) = sin nx, n ≥ 1.
Given λn , the solution of (4.6.6) is
2
Tn (t) = An e−(λn −h)t = An eht e−n t .
Thus we obtain a sequence of product solutions
2
un (x, t) = An eht e−n t sin nx, n ≥ 1
which we combine to form the series
2
X
u(x, t) = eht An e−n t sin nx.
n≥1
At t = 0, we have X
x(π − x) = u(x, 0) = An sin nx.
n≥1
Thus,
0 n = 2k,
An = 8
n3 π
n = 2k − 1,
so that 2
8eht X e−(2n−1) t
u(x, t) = sin(2n − 1)x.
π n≥1 (2n − 1)3
Example 4.6.11 Use the method of separation of variables to solve the telegraphic equation
with the initial boundary conditions
utt + ut − uxx = 0 0 < x < 2, t > 0
u(0, t) = u(2, t) = 0 t≥0
u(x, 0) = 0 0≤x≤2
ut (x, 0) = x 0 ≤ x ≤ 2.
We let u(x, t) = X(x)T (t). Then
T 00 (t) T 0 (t) X 00 (x)
+ = = −λ
T (t) T (t) X(x)
for some constant λ. This gives to equations
T 00 + T 0 + λT = 0 (4.6.7)
and
X 00 + λX = 0X(0) = X(2) = 0 (4.6.8)
The problem (4.6.8) has the following eigenvalues and corresponding eigenfunctions
!2
nπ nπx
λn = , Xn (x) = sin , n ≥ 1.
2 2
For given λn , we have to solve (4.6.7). Its characteristic equation is s2 + s + λs = 0. Since
1 − 4λn = 1 − n2 π 2 < 0 for all n ≥ 1, the characteristic equation has two complex solutions
√ √
1 4n 1 4n
s1 = − − i and s2 = − + i
2 2 2 2
2 2
where 4n = n π − 1. So the solutions Tn of (4.6.7) with λ = λn is given by
√ √
−t/2 4n −t/2 4n
Tn (t) = An e cos t + Bn e sin t
2 2
and with the product solution u(n(x, t) = Xn (x)Tn (x), the proposed solution for the problem
is " √ √ #
X X 4n 4n nπx
u(x, t) = un (x, t) = e−t/2 An cos t + Bn sin t sin .
n≥1 n≥1
2 2 2
At t = 0, √
−t/2
X nπx
0 = u(x, 0) = e An sin
n≥1
2
so that An = 0 for all n ≥ 1. Differentiating u with respect to t at t = 0, we get
X √ 4n √
nπx
x = ut (x, 0) = Bn sin
n≥1
2 2
form which we obtain
√ !
4n 2 2 4(−1)n+1
Z
nπx
Bn = x sin dx = , n ≥ 1.
2 2 0 2 nπ
Hence
8(−1)n+1
Bn = √
n 4n π
and so,
√ !
8e−t/2 X 1 4n t nπx
u(x, t) = √ sin sin .
π n≥1 n 4n π 2 2
and at t = 0
X
1 + cos 2πx = w(x, 0) = Tn (0) cos nπx. (4.6.12)
n≥0
νss = 0
ν(r, s) = sφ(r) + ψ(r)
u(x, y) = xφ(y − 2x) + ψ(y − 2x)
2.) Find the solution u which satisfies u(x, 0) = sin x and uy (x, 0) = cos x.
u(x, y) = xφ(y − 2x) + ψ(y − 2x)
y − 2x y − 2x y − 2x y − 2x 3 y − 2x y − 2x
= 3x cos +3 cos − sin = y cos − sin .
2 2 2 2 2 2 2
Exercise 4.72 Consider the equation
y 5 uxx − yuyy + 2uy = 0.
1.) Find the canonical form of the equation and the general solution u.
B 2 − 4AC = 02 − 4(y 5 )(−y) = y 6 > 0 ⇒ hyperbolic equation
y 2 uxx + x2 yuyy + u = 0.
u = 0.
1 1 41/3
νrr + νss + νr + νs + 4/3 4/3 ν = 0.
2s 3r 3 r s
Remark 4.6.3 If f (x, t) is u or a constant, is still separable. That is why for Example 4.6.10
and Exercise 4.68 never bothered to take it to zero. However for Exercise 4.68 we could use
ν(x, t) = 12 x2 + x sin t but will not satisfy the boundary conditions.