You are on page 1of 54

SMA 2371: PARTIAL DIFFERENTIAL EQUATIONS

⃝Francis
c O. Ochieng
francokech@gmail.com

Department of Pure and Applied Mathematics


Jomo Kenyatta University of Agriculture and Technology

Course content
• Surfaces and curves in three dimensions. Simultaneous differential equations of the first order.
dx dy dz
Methods of solution of = = . Orthogonal trajectories of system of curves on a surface.
P Q R
• Linear partial differential equations of the first order.

• Partial differential equations of the second order: Laplace, Poisson, heat and wave equations.
Methods of the solution by separation of the variables for Cartesian, spherical polar and cylin-
drical polar coordinates, and by Laplace and Fourier transform.

• Applications to engineering.

References
[1] Elements of PDE by Ian N. Sneddon

[2] Advanced Engineering Mathematics (10th ed.) by Erwin Kreyszig

[3] Schaum’s Outline Series: Theory and problems of PDE

Lecture 1

1 Review of basic concepts


1.1 Partial differentials
Let u = u(x, y), where x = x(s, t) and y = y(s, t). The partial differential of u is defined by

∂u ∂u
∂u = ∂x + ∂y.
∂x ∂y
Therefore, the partial derivative of u with respect to s and t is defined by
∂u ∂u ∂x ∂u ∂y
= +
∂s ∂x ∂s ∂y ∂s
and
∂u ∂u ∂x ∂u ∂y
= + ,
∂t ∂x ∂t ∂y ∂t
respectively.

Example(s):

1
∂u ∂u
1. Given that u = x2 y + y 2 , x = 2st, and y = tes . Find and .
∂s ∂t

Solution
∂u ∂u ∂x ∂u ∂y
= + = (2xy)(2t) + (x2 + 2y)(tes ) = 2(2st · tes )(2t) + ((2st)2 + 2tes )(tes )
∂s ∂x ∂s ∂y ∂s
= 8st3 es + 4s2 t3 es + 2t2 e2s
∂u ∂u ∂x ∂u ∂y
= + = (2xy)(2s) + (x2 + 2y)(es ) = 2(2st · tes )(2s) + ((2st)2 + 2tes )(es )
∂t ∂x ∂t ∂y ∂t
= 8s2 t2 es + 4s2 t2 es + 2te2s

Exercise:

2. Given that u is a function of x and y. If x = r cos θ and y = r sin θ, show that


( ) ( ) ( ) ( )2
∂u 2 1 ∂u 2 ∂u 2 ∂u
(a) + 2 = +
∂r r ∂θ ∂x ∂y
2
∂ u 1 ∂u 1 ∂2u 2
∂ u ∂ u2
(b) + + = + 2
∂r2 r ∂r r2 ∂θ2 ∂x2 ∂y

1.2 Jacobian
Let F and G be functions of x, y and z and define a partial vector differential operator ∇
⃗ by

⃗ = î ∂ + ĵ ∂ + k̂ ∂

∂x ∂y ∂z
Thus,
⃗ = î ∂F + ĵ ∂F + k̂ ∂F
∇F ⃗ = î ∂G + ĵ ∂G + k̂ ∂G
and ∇G
∂x ∂y ∂z ∂x ∂y ∂z
The cross product of ∇F
⃗ and ∇G
⃗ is defined by

î k̂

∇F ⃗ = Fx
⃗ × ∇G
Fy Fz = (Fy Gz − Fz Gy )î + (Fz Gx − Fx Gz )ĵ + (Fx Gy − Fy Gx )k̂

Gx Gy Gz

F Fz F F
y z Fx x Fy
= î + ĵ + k̂
Gy Gz Gz Gx Gx Gy
∂(F, G) ∂(F, G) ∂(F, G)
= î + ĵ + k̂
∂(y, z) ∂(z, x) ∂(x, y)
= P î + Qĵ + Rk̂

The components of the above vector are called direction cosines or Jacobian of F and G.

2 Surfaces and curves in three dimensions


If the rectangular Cartesian coordinates (x, y, z) of a point P in three dimensions are connected by a
relation of the form

F (x, y, z) = 0 (1)

then the point P lies on the surface.

2
We call equation (1) the equation of a surface. For example, the equation x2 + y 2 + z 2 = a2 is the
equation of a sphere centre (0, 0, 0) and radius a. The total differential of equation (1) is given by
∂F ∂F ∂F
dF ≡ dx + dy + dz = 0
∂x ∂y ∂z
which can be interpreted in vector form as
( ) ( )
∂F ∂F ∂F ∂F ∂F ∂F
î + ĵ + k̂ · (dxî + dy ĵ + dz k̂) = 0 ⇒ , , · (dx, dy, dz) = 0
∂x ∂y ∂z ∂x ∂y ∂z
( )
∂F ∂F ∂F
Thus, , , are the direction ratios of the normal to the surface at point P while (dx, dy, dz)
∂x ∂y ∂z
are direction ratios of the tangent to the surface at the same point.

→ Note: a surface may be envisaged as being generated by a curve. A curve is obtained as the
intersection of any two surfaces. For instance, a conic is a curve obtained as the intersection of the
surface of a cone with a plane. Conics include hyperbola, parabola, and ellipse.

Example(s):
(a) Determine the direction cosines of the tangent at the point (x, y, z) to the conics, x2 y + xz = 0
and x2 + y 2 + z 2 = 0.

Solution
Here, F = x2 y + xz and G = x2 + y 2 + z 2 . So,
∂(F, G)
P = = Fy Gz − Fz Gy = 2x2 z − 2xy = 2x(xz − y)
∂(y, z)
∂(F, G)
Q = = Fz Gx − Fx Gz = 2x2 − 2z(2xy + z)
∂(z, x)
∂(F, G)
R = = Fx Gy − Fy Gx = 2y(2xy + z) − 2x3
∂(x, y)

(b) Show that the direction cosines of the tangent at the point (x, y, z) to the conics ax2 +by 2 +cz 2 = 1
and x + y + z = 1 are proportional to (by − cz, cz − ax, ax − by).

Solution
Here, F = ax2 + by 2 + cz 2 − 1 and G = x + y + z − 1. So,
∂(F, G)
P = = Fy Gz − Fz Gy = 2by − 2cz
∂(y, z)
∂(F, G)
Q = = Fz Gx − Fx Gz = 2cz − 2ax
∂(z, x)
∂(F, G)
R = = Fx Gy − Fy Gx = 2ax − 2by
∂(x, y)
Therefore, (P, Q, R) = 2(by − cz, cz − ax, ax − by) ⇒ (P, Q, R) ∝ (by − cz, cz − ax, ax −
by), where 2 is the constant of proportionality.

3
2.1 Simultaneous differential equations of the first order
Consider a curve in space which is the intersection of the surfaces F (x, y, z) = 0 and G(x, y, z) = 0.
It follows that
∂F ∂F ∂F ∂F ∂F ∂F
dF = 0 ⇒ dx + dy + dz = 0 ⇒ dx + dy = − dz · · · (i)
∂x ∂y ∂z ∂x ∂y ∂z
∂G ∂G ∂G ∂G ∂G ∂G
dG = 0 ⇒ dx + dy + dz = 0 ⇒ dx + dy = − dz · · · (ii)
∂x ∂y ∂z ∂x ∂y ∂z
In matrix form we have
   ∂F 
∂F ∂F  
 ∂x ∂y  
− dz 
  dx   ∂z 
  = 
   ∂G 
(2)
 ∂G ∂G  dy
− dz
∂x ∂y ∂z
 
∂F ∂F ∂F ∂F

 ∂x ∂y  ∂x ∂y
 
Let A = 

. Then, Det(A) = |A| =

= Fx Gy − Fy Gx . Solving equation (2) using

 ∂G ∂G  ∂G ∂G


∂x ∂y ∂x ∂y
Cramer’s rule we obtain

∂F ∂F

∂z dz ∂y



∂G ∂G
− dz
F y Gz − F z Gy dx dz
∂z ∂y
dx = = dz ⇒ =
|A| F x Gy − F y Gx Fy Gz − Fz Gy F x Gy − F y Gx
and

∂F ∂F

∂x
− dz
∂z


∂G ∂G
− dz Fz Gx − Fx Gz dy dz
dy = ∂x ∂z = dz ⇒ =
|A| Fx Gy − Fy Gx Fz Gx − Fx Gz Fx Gy − Fy Gx
Therefore,
dx dy dz dx dy dz
= = ⇒ = = (3)
Fy Gz − Fz Gy Fz Gx − Fx Gz Fx Gy − Fy Gx P Q R
Equations (3) are called symmetric equations and are the differential equations of the integral curves
(intersection of two surfaces).

Lecture 2

dx dy dz
2.2 Methods of solution of = =
P Q R
The reverse problem is that of finding the surfaces F (x, y, z) = 0 and G(x, y, z) = 0 from the equations
(3). We need to obtain two unique solutions (integral curves), say u(x, y, z) = c1 and v(x, y, z) = c2 ,
where c1 and c2 are arbitrary constants. There are 3 methods of solving equations (3):
1. Method of multipliers (intuition)

2. One variable absent (method of grouping)

3. Exact differential method

4
2.2.1 Method of Multipliers (method of intuition)
This method uses multipliers l, m and n (which are not necessarily constants) so that for a constant
k, equation (3) becomes

ldx + mdy + ndz


=k ⇒ ldx + mdy + ndz = k(lP + mQ + nR)
lP + mQ + nR

These multipliers are chosen such that the condition lP + mQ .+ nR = 0 is satisfied. Hence,

ldx + mdy + ndz = 0,

which on integration yields the first integral curve, u(x, y, z) = c1 . It may be possible to get another set
of multipliers l, m and n to obtain the second integral curve, v(x, y, z) = c2 . Therefore, the integral
surface generated by these curves is given by ϕ(u, v) = 0, where ϕ is an arbitrary function.

Example(s):
Find the integral curves and the integral surface of the following differential equations.
dx dy dz
(a) = =
x(y − z) y(z − x) z(x − y)

Solution
From the given equations we have P = x(y −z), Q = y(z −x) and R = z(x−y). Using the
multipliers l, m and n, we require that lP +mQ+nR = 0 · · · (∗) so that ldx+mdy+ndz = 0.
Now,
i) By intuition, condition (∗) is satisfied if we take l = 1, m = 1 and n = 1. Hence,
dx + dy + dz = 0. Integrating yields

x + y + z = c1
1 1 1
ii) Again by intuition, condition (∗) is satisfied if we take l = , m = and n = . Hence,
x y z
dx dy dz
+ + = 0. Integrating yields
x y z
ln x + ln y + ln z = ln c2 ⇒ xyz = c2

Therefore, the required integral curves are given by x + y + z = c1 and xyz = c2 , where
c1 and c2 are parameters. The integral surface generated by these curves is ϕ(c1 , c2 ) = 0.
That is,
ϕ(x + y + z, xyz) = 0

2.2.2 One variable absent


If one of the variables is absent in one of the equations, we can easily derive one of the solutions. Also,
it is possible to use the first solution to obtain a second solution by eliminating one of the variables
in one of the equations.

Example(s):
Find the integral curves of the following equations.
dx dy dz
(a) = =
x+z y z + y2

Solution
Since x is absent in the second and third equations, we take
dy dz dz 1
= ⇒ − z=y
y z + y2 dy y

5
This is a linear ODE in z with integrating factor
∫ −1 1
= e− ln y =
dy
µ=e y
y
( )
1 d z
Multiplying through by we get = 1. Integrating yields
y dy y
z
= y + c1 ⇒ z = y 2 + c1 y
y
Using the first solution to eliminate z in the first equation, we have
dx dy dx dy dx 1
= ⇒ = ⇒ − x = y + c1
x+z y x + y 2 + c1 y y dy y
This is a linear ODE in x with integrating factor
∫ −1 1
= e− ln y =
dy
µ=e y
y
( )
1 d x c1
Multiplying through by yields =1+ . Integrating yields
y dy y y
x
= y + c1 ln y + c2 ⇒ x = c1 y ln y + c2 y + y 2
y
Therefore, the required integral curves are given by z = c1 y + y 2 and x = c1 y ln y + c2 y + y 2 ,
where c1 and c2 are parameters.

2.2.3 Exact differential method


It is much simpler to try to cast the given differential equations into a form which suggests their
solution. Note that adding/subtracting the numerators and denominators of any two “fractions”
doesn’t alter their value. E.g, we may write
dx dy dz ldx + mdy + ndz dx + dy dx − dy − 2dz
= = = = = , e.t.c.
P Q R lP + mQ + nR P +Q P − Q − 2R
So that if lP + mQ + nR = 0, then ldx + mdy + ndz = 0 is an exact differential. This method is best
illustrated in the following example.

Example(s):
Find the integral curves of the following equations:
dx dy dz
(a) = = .
y(x + y) + az x(x + y) − az z(x + y)

Solution
We have
dx dy dz dx + dy xdx − ydy
= = = =
y(x + y) + az x(x + y) − az z(x + y) (x + y)2 az(x + y)
dx + dy dz dx + dy dz
From = ⇒ = ⇒ ln(x + y) = ln z + ln c1
(x + y)2 z(x + y) x+y z
⇒ x + y = c1 z
xdx − ydy dz
From = ⇒ xdx − ydy − adz = 0
az(x + y) z(x + y)

⇒ x2 − y 2 − 2az = c2

Therefore, the required integral curves are given by x + y = c1 z and x2 − y 2 − 2az = c2 ,


where c1 and c2 are parameters.

6
Exercise:
Use any method to find the integral curves of the following equations.
dx dy dz
(a) = = .
y 2 −xy x(z − 2y)

Solution
dx dy
From 2 = ⇒ xdx + ydy = 0
y −xy

⇒ x2 + y 2 = c1
dy dz
From = ⇒ zdy + ydz − 2ydy = 0 ⇒ d(zy) − 2ydy = 0
−xy x(z − 2y)

⇒ zy − y 2 = c2

Therefore, the integral curves of the given differential equations are the members of the
two-parameter family x2 + y 2 = c1 and zy − y 2 = c2 .
dx dy dz
(b) = = .
x2 −y −z
2 2 2xy 2xz

Solution
dy dz dy dz
From = ⇒ = ⇒ ln y = ln z + ln c1 ⇒ y = c1 z
2xy 2xz y z
xdx + ydy + zdz dy 2(xdx + ydy + zdz) dy
From = ⇒ =
x(x2 − − z ) + y(2xy) + z(2xz)
y2 2 2xy 2 2 2
(x + y + z ) y

⇒ ln(x2 + y 2 + z 2 ) = ln y + ln c2 ⇒ x2 + y 2 + z 2 = c2 y

Therefore, the integral curves of the given differential equations are the members of the
two-parameter family y = c1 z and x2 + y 2 + z 2 = c2 y.
dx dy dz
(c) = = .
xz − y yz − x 1 − z2

Solution
dx + dy dz dx + dy −dz
From = ⇒ =
xz − y + yz − x 1 − z2 x+y 1+z
⇒ (x + y)(1 + z) = c1
xdx − ydy zdz xdx − ydy zdz
From = ⇒ =
x(xz − y) − y(yz − x) z(1 − z 2 ) x −y
2 2 1 − z2

⇒ (x2 − y 2 )(1 − z 2 ) = c2

Therefore, the integral curves of the given differential equations are the members of the
two-parameter family (x + y)(1 + z) = c1 and (x2 − y 2 )(1 − z 2 ) = c2 .
dx dy dz
(d) = = . [ans: x2 + y 2 + z 2 = c1 , xyz = c2 ]
x(y 2 − z 2 ) y(z 2 − x2 ) z(x2 − y 2 )
dx dy dz
(e) = = 2 . [ans: x2 − y 2 + z 2 = c1 , xy − z = c2 ]
y − xz x + yz x + y2
dx dy dz
(f) = = . [ans: x4 + y 4 + z 4 = c1 , xyz 2 = c2 ]
x(2y 4 − z 4 ) y(z 4 − 2x4 ) z(x4 − y 4 )
dx dy dz x−y
(g) = 2 = 2 . [ans: = c1 , xy + yz + xz = c2 ]
x2 − yz y − xz z − xy y−z

7
dx dy dz
(h) = = . [ans: xy = c1 , (x + y)(x + y + z) = c2 ]
x(x + y) −y(x + y) −(x − y)(2x + 2y + z)

Lecture 3

2.3 Orthogonal trajectories of a system of curves on a surface


Given a surface

F (x, y, z) = 0 (4)

and a family (or system) of curves on it, we need to find another family of curves each of which lies on
the surface (4) and cuts every curve of the original family at right angles. The new family of curves
is called the family of orthogonal trajectories on the surface (4).

The original family of curves may be thought of as the intersections of the surface (4) with the one-
parameter family of surfaces
G(x, y, z) = k
From F (x, y, z) = 0 and G(x, y, z) = k, the tangential direction (dx, dy, dz) to the given curve through
the point (x, y, z) on the surface (4) satisfies the equations

dF = 0 i.e, Fx dx + Fy dy + Fz dz = 0

and
dG = 0 i.e, Gx dx + Gy dy + Gz dz = 0
We solve the above two equations using Cramer’s rule to obtain
dx dy dz ∂(F, G) ∂(F, G) ∂(F, G)
= = , where P = , Q= , and R =
P Q R ∂(y, z) ∂(z, x) ∂(x, y)

The curve through (x, y, z) of the orthogonal family has tangential direction (dx′ , dy ′ , dz ′ )

which lies on the surface (4), so that

Fx dx′ + Fy dy ′ + Fz dz ′ = 0 (5)

and is perpendicular to the original system of curves. Also since the vectors (dx, dy, dz) and (dx′ , dy ′ , dz ′ )
are orthogonal, then

(dx, dy, dz) · (dx′ , dy ′ , dz ′ ) = 0 ⇒ dxdx′ + dydy ′ + dzdz ′ = 0

i.e.,

P dx′ + Qdy ′ + Rdz ′ = 0 (6)

Solving for dx′ , dy ′ and dz ′ between equations (5) and (6) using Cramer’s rule, we obtain

dx′ dy ′ dz ′
= =
RFy − QFz P Fz − RFx QFx − P Fy

8
This can be rewritten as:

dx′ dy ′ dz ′ F Fz
b b = Fz Fx , R
b = Fx Fy
= = , where P = y , Q (7)
Pb b
Q b
R Q R R P P Q

The solution of equations (7) alongside with (4) gives the system of orthogonal trajectories.

Example(s):

(a) Find the orthogonal trajectories on the surface x2 + y 2 = αz 2 of its intersections with the family
of planes parallel to xy-plane (i.e, z = k)

Solution
Let F (x, y, z) = x2 + y 2 − αz 2 = 0 and G(x, y, z) = z = k. Then,

∂(F, G)
P = = Fy Gz − Fz Gy = 2y − (−2αz)(0) = 2y
∂(y, z)
∂(F, G)
Q = = Fz Gx − Fx Gz = (−2αz)(0) − 2x(1) = −2x
∂(z, x)
∂(F, G)
R = = Fx Gy − Fy Gx = 2x(0) − 2y(0) = 0
∂(x, y)


F Fz 2y −2αz

Pb = y = = −4αxz
Q R −2x 0

F Fx −2αz 2x
b
Q = z = = −4αyz
R P 0 2y

F Fy 2x 2y
b
R = x = = −4x2 − 4y 2
P Q 2y −2x

The symmetric equations for the orthogonal trajectories are given by:
dx dy dz dx dy dz dx dy αzdz
= = ⇒ = = ⇒ = = 2
Pb b
Q b
R −4αxz −4αyz −4x − 4y 2
2 x y x + y2

dx dy dx dy
From = ⇒ = ⇒ ln x = ln y + ln c1 ⇒ x = c1 y, where c1 is a
x y x y
parameter.

xdx + ydy αzdz


From 2 2
= 2 ⇒ xdx + ydy = αzdz ⇒ x2 + y 2 = αz 2 + c2 ⇒
x +y x + y2
c2 = 0
∴ x2 + y 2 = αz 2 . Hence F ≡ 0 is necessarily one of the solutions. Therefore, the orthogonal
trajectories are the curves
x = c1 y and x2 + y 2 = αz 2

(b) Find the equations of the system of curves on the cylinder 2y = x2 orthogonal to its intersections
with the hyperboloids of the one-parameter system xy = z + c, where c is a parameter.

Solution
Let F = 2y − x2 = 0 and G = xy − z = c. The partial derivatives are:

⇒ Fx = −2x, Fy = 2, Fz = 0, Gx = y, Gy = x, Gz = −1

9
∂(F, G)
P = = Fy Gz − Fz Gy = −2
∂(y, z)
∂(F, G)
Q = = Fz Gx − Fx Gz = −2x
∂(z, x)
∂(F, G)
R = = Fx Gy − Fy Gx = −2x2 − 2y = −2(x2 + y)
∂(x, y)


F Fz 2
y 0
Pb = = = −4(x2 + y)
Q R −2x −2(x + y)
2

F Fx −2x
b z 0
Q = = = −4x(x2 + y)
R P −2(x2 + y) −2

F Fy −2x 2
b = x
R = = 4(x2 + 1)
P Q −2 −2x

dx dy dz
The symmetric equations for the orthogonal trajectories are = =
Pb b
Q b
R
dx dy dz dx dy −dz
⇒ = = ⇒ = = 2
−4(x + y)
2 −4x(x + y)
2 2
4(x + 1) x2+y 2
x(x + y) x +1

dx dy x2 c1
From = ⇒ xdx = dy ⇒ =y+ ⇒ x2 = 2y + c1
x2 + y x(x2 + y) 2 2

⇒ c1 = 0 ∴ x2 = 2y

dx −dz x2
From = . Substituting y = yields
x2 + y x2 + 1 2

dx −dz 2dx −dz 2(x2 + 1)dx


x2
= ⇒ = 2 ⇒ = −3dz
x2 + 2
x2 + 1 3x2 x +1 x2
( ) ( )
1 1
3dz + 2 1 + dx = 0. Integrating yields 3z + 2 x − = c2
x2 x
Therefore, the orthogonal trajectories are the curves
( )
1
3z + 2 x − = c1 , 2y = x2
x

Exercise:

(a) [Assignment 1 ] Find the orthogonal trajectories on surface of the sphere x2 + y 2 + z 2 = a2 of


its intersections with the paraboloids xy = cz, where c is a parameter. [ans:
a 2 − x2
x2 + y 2 + z 2 = a2 , = c2 ]
a2 − y 2
(b) Show that the orthogonal trajectories on the hyperboloid x2 + y 2 − z 2 = 1 of the conics in
which it is cut by the system of planes x + y = c are its curves of intersection with the surfaces
(x − y)z = k, where k is a parameter.

(c) Find the orthogonal trajectories on the conicoid (x + y)z = 1 of the conics in which it is cut by
the system of planes x − y + z = k, where k is a parameter. [ans: The orthogonal trajectories
1 1
are the curves x = z − 3 + + c2 , (x + y)z = 1]
6z 2z

Lecture 4

10
3 Pfaffian differential equations
A differential equation of the form:

n
Fi (x1 , x2 , · · · , xn )dxi = 0
i=1

is called a Pfaffian differential equation in n variables x1 , x2 , · · · , xn . Thus, a Pfaffian differential


equation in 3 variables is an equation of the form

P (x, y, z)dx + Q(x, y, z)dy + R(x, y, z)dz = 0 (8)

If equation (8) has a solution, we say that it is integrable. The following theorem gives the necessary
and sufficient condition for equation (8) to be integrable.

Theorem 3.1. Let X ⃗ · curlX


⃗ = (P, Q, R), then equation (8) is integrable if and only if X ⃗ =0

Example(s):
Verify that the equation (x2 z − y 3 )dx + 3xy 2 dy + x3 dz = 0 is integrable.

Solution
Let X⃗ = (P, Q, R) where P = x2 z − y 3 , Q = 3xy 2 , R = x3

î ĵ k̂

∂ ∂ ∂
⃗ =
curlX = 0î − (3x2 − x2 )ĵ + (3y 2 + 3y 2 )k̂ = (0, −2x2 , 6y 2 )
∂x ∂z
∂y
x2 z − y 3 3xy 2 x3
⃗ · curlX
X ⃗ = (x2 z − y 3 , 3xy 2 , x3 ) · (0, −2x2 , 6y 2 ) = 0 − 6x3 y 2 + 6x3 y 2 = 0, hence integrable.

3.1 Methods of solution of P dx + Qdy + Rdz = 0


The following methods are employed in solving Pfaffian differential equations in three variables:

1. Variables separable

2. Re-grouping (inspection)

3. One variable separable

4. Homogeneous equations

5. Natani’s method

3.1.1 Variables separable


If equation (8) can be rearranged to take ∫the form P (x)dx
∫ + Q(y)dy
∫ + R(z)dz = 0, then we integrate
directly in order to obtain a solution i.e., P (x)dx + Q(y)dy + R(z)dz = c, where c is a constant
of integration.

Example(s):
Solve 2zydx + zxdy + xy(1 + z)dz = 0.

Solution
⃗ · curlX
Clearly, the equation is integrable i.e. X ⃗ = 0.
2dx dy (1 + z)dz
Dividing through by xyz we get + + = 0. Integrating yields
x y z

2 ln x + ln y + z + ln z = − ln c ⇒ cx2 yz = e−z

11
3.1.2 Re-grouping (inspection)
This method employs complete methods like.
i) d(xy) = xdy + ydx
( )
y xdy − ydx
ii) d =
x x2
2(xdx + ydy)
iii) d(ln(x2 + y 2 )) =
x2 + y 2

Example(s):
Solve (x2 z − y 3 )dx + 3xy 2 dy + x3 dz = 0.

Solution
⃗ · curlX
Clearly, the equation is integrable i.e., X ⃗ = 0. Now, expanding and regrouping the given
equation yields x zdx − y dx + 3xy dy + x dz = 0 ⇒ x2 (zdx + xdz) + 3xy 2 dy − y 3 dx = 0
2 3 2 3
( )
3xy 2 dy − y 3 dx y3
⇒ (zdx + xdz) + =0 ⇒ d(zx) + d =0
x2 x

y3
Integrating yields zx + =c
x

3.1.3 One variable separable


Suppose one variable, say z, is separable then equation (8) takes the form
P (x, y)dx + Q(x, y)dy + R(z)dz = 0 (9)
⃗ · curlX
Since the equation is integrable, then X ⃗ = 0. Now,

î ĵ k̂
( ) ( )
∂ ∂ ∂ ∂Q ∂P ∂Q ∂P
⃗ =
curlX = (0 − 0) î − (0 − 0) ĵ + − k̂ = 0, 0, −
∂x ∂z
∂y ∂x ∂y ∂x ∂y
P (x, y) Q(x, y) R(z)
( ) ( )
∂Q ∂P ∂Q ∂P
X · curlX = (P, Q, R) · 0, 0,
⃗ ⃗ − =R − = 0. But R ̸= 0
∂x ∂y ∂x ∂y
∂Q ∂P ∂Q ∂P
⇒ − =0 ⇒ =
∂x ∂y ∂x ∂y
Thus, P dx + Qdy is an exact differential i.e., there exists a function ϕ(x, y) such that dϕ = P dx + Qdy.
∂ϕ ∂ϕ ∂ϕ ∂ϕ ∂P . ∂Q
This means that dx + dy = P dx + Qdy ⇒ = P, = Q ⇒ = .
∂x ∂y ∂x ∂y ∂y ∂x
Therefore, equation (8) reduces to
.
dϕ + R(z)dz =0

Example(s):
Solve x(y 2 − a2 )dx + y(x2 − z 2 )dy − z(y 2 − a2 )dz = 0.

Solution
⃗ · curlX
Clearly, the given equation is integrable i.e. X ⃗ = 0.
Dividing through by (y − a )(x − z ) yields
2 2 2 2

xdx ydy zdz xdx − zdz y


+ − =0 ⇒ + 2 dy = 0
x2 − z 2 y 2 − a2 x2 − z 2 x2 − z 2 y − a2
1 1 1
Integrating yields ln(x2 − z 2 ) + ln(y 2 − a2 ) = ln c ⇒ c = (y 2 − a2 )(x2 − z 2 ), where c
2 2 2
is a constant.

12
Exercise:
z
1. Solve x(x − z)dx + x2 zdy − x(1 + xy)dz = 0. [ans: ln x + + zy = c]
x
2. Solve xz 3 dx − zdy + 2ydz = 0. [ans: x2 z 2 − 2y = cz 2 ]

Lecture 5

3.1.4 Homogeneous equations


Equation (8) is said to be homogeneous of degree n if P, Q and R are homogeneous and of the same
degree n. Note that a function f (x, y, z) is said to be homogeneous of degree n if there exists a real
number λ such that
f (λx, λy, λz) = λn f (x, y, z)
For example, the function f (x, y, z) = x2 y + xyz + y 2 z is homogeneous of degree 3. If equation (8) is
homogeneous of degree n then we can solve it by making the following substitutions:

y = ux ⇒ dy = udx + xdu
z = vx ⇒ dz = vdx + xdv

Thus, equation (8) becomes

P (x, ux, vx)dx + Q(x, ux, vx)[udx + xdu] + R(x, ux, vx)[vdx + xdv] = 0
⇒ xn P (u, v)dx + xn Q(u, v)[udx + xdu] + xn R(u, v)[vdx + xdv] = 0
⇒ P (u, v)dx + Q(u, v)[udx + xdu] + R(u, v)[vdx + xdv] = 0
⇒ [P (u, v) + uQ(u, v) + vR(u, v)]dx + x[Q(u, v)du + R(u, v)dv] = 0
dx Q(u, v)du + R(u, v)dv dx
⇒ + =0 ⇒ + A(u, v)du + B(u, v)dv = 0
x [P (u, v) + uQ(u, v) + vR(u, v)] x
which can now be solved using the method of one variable separable.

Example(s):
Solve the following equations.
(a) ydx − (x + z)dy + ydz = 0.

Solution
⃗ · curlX
Clearly, the given equation is integrable i.e., X ⃗ = 0. The given equation is homogeneous
of degree 1. Thus, we use the following substitutions

y = ux ⇒ dy = udx + xdu

z = vx ⇒ dz = vdx + xdv
Substituting in the given equation yields

uxdx − (x + vx)[udx + xdu] + ux[vdx + xdv] = 0


⇒ udx − (1 + v)[udx + xdu] + u[vdx + xdv] = 0
⇒ [u + uv − (1 + v)u]dx − x[(1 + v)du − udv] = 0 ⇒ (1 + v)du − udv = 0
du dv
⇒ − =0
u 1+v
Integrating yields
∫ ∫ ∫
du dv
− = 0 ⇒ ln u − ln(1 + v) = ln c ⇒ u = c(1 + v)
u 1+v

13
Back substitution yields
( )
y z
=c 1+ ⇒ y = c(x + z) ⇒ x + z = c1 y
x x

(b) yz(y + z)dx + xz(x + z)dy + xy(x + y)dz = 0

Solution
⃗ · curlX
Clearly, the given equation is integrable i.e., X ⃗ = 0. It is also homogeneous
Put y = ux ⇒ dy = udx + xdu and z = vx ⇒ dz = vdx + xdv. Substituting we have

x2 uv(ux + vx)dx + x2 v(x + xv)[udx + xdu] + x2 u(x + ux)[vdx + xdv] = 0


⇒ uv(u + v)dx + v(1 + v)[udx + xdu] + u(1 + u)[vdx + xdv] = 0
⇒ [uv(u + v) + uv(1 + v) + uv(1 + u)]dx + xv(1 + v)du + xu(1 + u)dv = 0
dx v(1 + v)du u(1 + u)dv
⇒ + + =0
x 2uv(u + v + 1) 2uv(u + v + 1)
2dx (1 + v)du (1 + u)dv
⇒ + + = 0 · · · · · · · · · (i)
x u(u + v + 1) v(u + v + 1)
(1 + v) A B
By partial fractions, let = + ⇒ A(u + v + 1) + Bu = 1 + v
u(u + v + 1) u (u + v + 1)
Putting u = 0 ⇒ A = 1. Putting u = −(v + 1) ⇒ B = −1. Substituting yields
(1 + v) 1 1
= −
u(u + v + 1) u (u + v + 1)
Similarly,
(1 + u) 1 1
= −
v(u + v + 1) v (u + v + 1)
2dx du du dv dv
Substituting in equation (i) we get + − + − =0
x u (u + v + 1) v (u + v + 1)
2dx du dv du + dv
⇒ + + − =0
x u v (u + v + 1)
Integrating yields

2 ln x + ln u + ln v − ln(u + v + 1) = ln c ⇒ x2 uv = c(u + v + 1)

Back substitution yields


( )
2y
z y z
x =c + +1 ⇒ xyz = c(x + y + z)
xx x x

3.1.5 Natani’s method


Step 1: suppose one variable, say z, is a constant ⇒ dz = 0. Thus, equation (8) reduces to

P dx + Qdy = 0

We then solve the above equation and equate the solution, say ϕ(x, y, z), to an arbitrary function of
z i.e.,
ϕ(x, y, z) = f (z) · · · (i), (this is the solution provided f (z) is determine).
Step 2: let either of the remaining variables, say x, to be equal to 1 or 0. For instance, if x = 1, ⇒
dx = 0. Thus, equation (8) reduces to

Q(y, z)dy + R(y, z)dz = 0

Let the solution to this equation be


ψ(y, z) = c · · · (ii)

14
Also put x = 1 in equation (i) to obtain

ϕ(y, z) = f (z) · · · (iii)

Eliminate y between equations (ii) and (iii) to obtain f (z). Substitute the value of f (z) into equation
(i) to obtain the solution for the given differential equation.

Example(s):
Verify that the following equations are integrable and find their primitives (solutions).

(a) (x2 z − y 3 )dx + 3xy 2 dy + x3 dz = 0.

Solution
⃗ · curlX
Clearly, the given equation is integrable i.e., X ⃗ = 0. By Natani’s method:
Step 1: we note that the solution is simpler if we treat x to be a constant, ⇒ dx = 0. So the
given differential equation reduces to

3xy 2 dy + x3 dz = 0 ⇒ 3y 2 dy + x2 dz = 0

Integrating yields
∫ ∫ ∫
2
3y dy + 2
x dz = 0 ⇒ y 3 + x2 z = f (x) · · · (i)

Equation (i) is the required solution provided that f (x) is determined.

Step 2: put y = 1 in the given differential equation, ⇒ dy = 0. So the differential equation


reduces to
dx dx
(x2 z − 1)dx + x3 dz = 0 ⇒ zdx + xdz − =0 ⇒ d(zx) − =0
x2 x2
Integrating yields
∫ ∫ ∫
dx 1 cx − 1
d(zx) − = 0 ⇒ zx + =c ⇒ z= · · · (ii),
x2 x x2
where c is an arbitrary constant. Also, putting y = 1 in equation (i) we get

1 + x2 z = f (x) · · · (iii)

Eliminating z between equations (ii) and (iii) (i.e., substituting equation (ii) in equation (iii))
yields { }
cx − 1
1 + x2 = f (x) ⇒ f (x) = cx · · · (iv)
x2
Substituting equation (iv) in equation (i) yields y 3 + x2 z = cx, which is the solution to the given
differential equation.

(b) z(z + y 2 )dx + z(z + x2 )dy − xy(x + y)dz = 0.

Solution
⃗ · curlX
Clearly, the given equation is integrable i.e., X ⃗ = 0. By Natani’s method:
Step 1: we note that the solution is simpler if we treat y to be a constant, ⇒ dy = 0. So the
differential equation reduces to
dx ydz
z(z + y 2 )dx − xy(x + y)dz = 0 ⇒ − = 0 − − − (∗)
x(x + y) z(z + y 2 )

15
By partial fractions:
1 A B
Let = + ⇒ A(x + y) + Bx = 1
x(x + y) x x+y
1 1
Putting x = 0 ⇒ A= . Putting x = −y ⇒ B = − . Therefore,
y y
1 1 1
= −
x(x + y) x x+y

Similarly,
y A B
Let 2
= + ⇒ A(z + y 2 ) + Bz = y
z(z + y ) z z + y2
1 1
Putting z = 0 ⇒ A= . Putting z = −y 2 ⇒ B = − . Therefore,
y y
y 1 1
2
= −
z(z + y ) z z + y2

Hence, equation (∗) becomes


( ) ( )
1 1 1 1
− dx + 2
− dz = 0
x x+y z+y z
Integrating yields
∫ ( ) ∫ ( ) ∫
1 1 1 1
− dx+ − dz = 0 ⇒ ln x−ln(x+y)+ln(z+y 2 )−ln z = ln |f (y)|
x x+y z + y2 z

x(z + y 2 )
= f (y) · · · (i)
z(x + y)
Equation (i) is the required solution provided that f (y) is determined.

Step 2: put z = 1 in the given differential equation, ⇒ dz = 0. So the differential equation


reduces to
dx dy
(1 + y 2 )dx + (1 + x2 )dy = 0 ⇒ 2
+ =0
1+x 1 + y2
Integrating yields
∫ ∫ ∫
dx dy
+ = 0 ⇒ tan−1 x + tan−1 y = tan−1 c − − − (∗)
1 + x2 1 + y2
tan A+tan B
Note: tan(A + B) = 1−tan A tan B . Taking tan on both sides of equation (∗) yields
( ) x+y c−y
tan tan−1 x + tan−1 y = c ⇒ =c ⇒ x= · · · (ii),
1 − xy cy + 1

where c is an arbitrary constant. Also, putting z = 1 in equation (i) we get

x(1 + y 2 )
f (y) = · · · (iii)
(x + y)

Eliminating x between equations (ii) and (iii) (i.e., substituting equation (ii) in equation (iii))
yields
c−y 1 + y2
f (y) = ·{ } ⇒ f (y) = 1 − c−1 y = 1 − c1 y · · · (iv)
cy + 1 c−y
+y
cy + 1
Substituting equation (iv) in equation (i) yields x(z + y 2 ) = z(x + y)(1 − c1 y).

16
Exercise:
Solve the following differential equations

(a) 2y(a − x)dx + [z − y 2 + (a − x)2 ]dy − ydz = 0. [ans: (a − x)2 + z = y(c − y)]

(b) (1 + yz)dx + x(z − x)dy − (1 + xy)dz = 0. [ans: yz + 1 = (xy + 1)(cy + 1)]


2yz
(c) yzdx + (x2 y − zx)dy + (x2 z − xy)dz = 0. [ans: y 2 + z 2 − = c]
x
(d) (y 2 + yz)dx + (z 2 + xz)dy + (y 2 − xy)dz = 0. [ans: y(x + z) = c(y + z)]

(e) (y 2 + yz + z 2 )dx + (z 2 + xz + x2 )dy + (x2 + xy + y 2 )dz = 0. [ans: xy + yz + xz = c(x + y + z)]

(h) zydx + 3zxdy − 2xydz = 0. [ans: xy 3 = Cz 2 ]

17
Lecture 6

4 Linear partial differential equations of the first order


A PDE is a differential equation which contains derivative(s) of a function with respect to more than
one independent variables. For example,

∂2z ∂2z ∂2z ∂z ∂z


x + − y + + = 2(x + y)
∂x2 ∂x∂x ∂y 2 ∂x ∂y
The order of a PDE is the order of the highest ordered derivative occurring in the equation. For
example, if the dependent variable z is a function of x, y, and t, then the equation
∂z ∂z ∂z
x +y + =0
∂x ∂y ∂t
is a first order equation in three independent variables while the equation

∂z ∂2z
= c2 2
∂t ∂x
is a second order equation in two independent variables. The degree of a PDE is the greatest power
of the highest-ordered derivative occuring in the equation.

First-order PDEs arise in gas flow problems, traffic flow problems, phenomenon of shock waves, the
motion of wave fronts, Hamilton-Jacobi theory, nonlinear continum mechanics and quantum mechan-
ics etc.

A first order PDE in two independent variables x, y and the dependent variable z takes the general
form
∂z ∂z
f (x, y, z, p, q) = 0, where z = z(x, y), p= , q= (10)
∂x ∂y

The equations of the type (10) arise in many applications in geometry and physics. Equation (10) is
said to be linear if it satisfies the following three conditions:

(i) Dependent variable z and its derivatives are of power 1 only.

(ii) No product of the dependent variable, z, and/or its derivatives are present.

(iii) No transcendental functions of the dependent variable, z, and its derivatives occur. For example,
cos(z), ln z or ez is absent.

For example, the equation


( ) ∂z ∂z
cos xy 2 − y2 = tan(x2 + y 2 )
∂x ∂y
is linear. An equation which is not linear is said to be nonlinear. Examples of nonlinear equations
are:
∂z ∂z
+z = 0 (shock wave)
∂x ∂y
∂2z ∂2z
− + z 3 = 0 (wave with interaction)
∂t2 ∂x2
∂z ∂z ∂3z
+z + 3 = 0 (dispersive wave)
∂t ∂x ∂x

4.1 Formation of first-order PDEs


A first-order PDE can be formed either by eliminating arbitrary constants or an arbitrary function
involved.

18
4.1.1 Elimination of arbitrary constants
Consider an equation of the form

F (x, y, z, a, b) = 0, (∗)

where a and b are arbitrary constants. Let z be regarded as a function of x and y. Differentiating
equation (∗) with respect to x and y, respectively, we get
∂F ∂F ∂z ∂F ∂F ∂z
+ =0 and + =0
∂x ∂z ∂x ∂y ∂z ∂y
∂F ∂F ∂F ∂F
⇒ +p =0 and +q =0 (∗∗)
∂x ∂z ∂y ∂z
Eliminating a and b between equations (∗) and (∗∗), we obtain an equation of the form

F (x, y, z, p, q) = 0,

which is a PDE of first order. Similarly, if there are more arbitrary constants than the number of
independent variables, the above procedure of elimination will give rise to a PDE of highest order
than the first.

Example(s):
1. Construct the PDE from the following primitives.
(a) z = ax2 + by 3 .

Solution
zx zy
zx = 2ax ⇒ a= , zy = 3by 2 ⇒ b = . Substituting a and b in the given
2x 3y 2
zx 2 zy
primitive yields z = x + 2 y 3 ⇒ 6z = xzx + yzy ⇒ xp + yq = 6z.
2x 3y
(b) z = a(x + y) + b(x − y) + abt + c, where a, b, c are arbitrary constants.

Solution
zx = a + b, zy = a − b, zt = ab. Now, (a + b)2 − (a − b)2 = 4ab

⇒ (zx )2 − (zy )2 = 4zt ⇒ p2 − q 2 = 4zt

(c) ax2 + by 2 + z 2 = 1.

Solution
−zzx
Differentiating partially wrt x yields 2ax + 2zzx = 0 ⇒ a=
x
−zzy
Differentiating partially wrt y yields 2by + 2zzy = 0 ⇒ b=
y
Substituting a and b in the given primitive yields
−zzx 2 −zzy 2
x + y + z2 = 1 ⇒ −z(xzx + yzy ) + z 2 = 1 ⇒ zxp + zyq = z 2 − 1
x y
2. Form partial differential equations by eliminating arbitrary constants from the following rela-
tions:
(a) z = (x − a)2 + (y − b)2 . [ans: p2 + q 2 = 4z]
(b) z = a(x + y)2 + b. [ans: p = q]
(c) z = ax + by + ab. [ans: z = xp + yq + pq]
(d) z = ax + a2 y 2 + b. [ans: q = 2yp2 ]
(e) z = (x + a)(y + b). [ans: z = pq]
(f) 2z = (ax + y)2 + b. [answer: xp + yq = q 2 ]

19
4.1.2 Elimination of arbitrary function
Consider the equation
F (u, v) = 0, (∗)
where u and v are functions of x, y, z and F is an arbitrary function of u, v. If we treat z as a dependent
variable while x and y as independent variables, we differentiate equation (∗) with respect to x and
y, respectively, to get
∂F ∂u ∂F ∂u ∂z ∂F ∂v ∂F ∂v ∂z ∂F ∂u ∂F ∂u ∂z ∂F ∂v ∂F ∂v ∂z
+ + + =0 and + + + =0
∂u ∂x ∂u ∂z ∂x ∂v ∂x ∂v ∂z ∂x ∂u ∂y ∂u ∂z ∂y ∂v ∂y ∂v ∂z ∂y
( ) ( ) ( ) ( )
∂F ∂u ∂u ∂F ∂v ∂v ∂F ∂u ∂u ∂F ∂v ∂v
⇒ +p + +p =0 and +q + +q =0
∂u ∂x ∂z ∂v ∂x ∂z ∂u ∂y ∂z ∂v ∂y ∂z
( ) ( ) ( ) ( )
∂F / ∂F ∂v ∂v / ∂u ∂u ∂F / ∂F ∂v ∂v / ∂u ∂u
⇒ =− +p +p and =− +q +q
∂u ∂v ∂x ∂z ∂x ∂z ∂u ∂v ∂y ∂z ∂y ∂z
Therefore, ( ) ( ) ( ) ( )
∂v ∂v / ∂u ∂u ∂v ∂v / ∂u ∂u
+p +p = +q +q
∂x ∂z ∂x ∂z ∂y ∂z ∂y ∂z
( )( ) ( )( )
∂v ∂v ∂u ∂u ∂u ∂u ∂v ∂v
⇒ +p +q = +p +q
∂x ∂z ∂y ∂z ∂x ∂z ∂y ∂z
∂u ∂v ∂u ∂v ∂u ∂v  ∂u ∂v
∂u ∂v ∂u ∂v ∂u ∂v 
∂u ∂v
⇒ +q +p + pq = +q +p + pq
∂y ∂x ∂z ∂x ∂y ∂z  ∂z ∂z ∂x ∂y ∂x ∂z ∂z ∂y  ∂z ∂z
( ) ( )
∂u ∂v ∂u ∂v ∂u ∂v ∂u ∂v ∂u ∂v ∂u ∂v
⇒ − p+ − q= −
∂y ∂z ∂z ∂y ∂z ∂x ∂x ∂z ∂x ∂y ∂y ∂x
∂(u, v) ∂(u, v) ∂(u, v)
⇒ p+ q=
∂(y, z) ∂(z, x) ∂(x, y)

Example(s):

1. Eliminate the arbitrary function F from the equation F (x2 + y 2 + z 2 , z 2 − 2xy) = 0.

Solution
Let F (u, v) = 0, where u(x, y) = x2 + y 2 + z 2 , v(x, y) = z 2 − 2xy and z = z(x, y). Now,

ux = 2x + 2zzx , uy = 2y + 2zzy , vx = 2zzx − 2y, and vy = 2zzy − 2x

Differentiating partially with respect to x and y in turn we have


Fu y − zzx
Fu ux + Fv vx = 0 ⇒ Fu (2x + 2zzx ) + Fv (2zzx − 2y) = 0 ⇒ = · · · (i)
Fv x + zzx
and
Fu x − zzy
Fu uy + Fv vy = 0 ⇒ Fu (2y + 2zzy ) + Fv (2zzy − 2x) = 0 ⇒ = · · · (ii)
Fv y + zzy

From equations (i) and (ii) we have


y − zzx x − zzy
= ⇒ (y − zzx )(y + zzy ) − (x + zzx )(x − zzy ) = 0
x + zzx y + zzy

⇒ y 2 + yzzy − yzzx − z 2 zx zy − x2 + xzzx − xzzy + z 2 zx zy = 0


⇒ y 2 − x2 + yzzy − yzzx + xzzx − xzzy = 0
⇒ y 2 − x2 + yz(zy − zx ) − xz(zy − zx ) = 0 ⇒ y 2 − x2 + z(y − x)(zy − zx ) = 0
⇒ z(y − x)p − z(y − x)q = y 2 − x2

20
2. Eliminate the arbitrary function f from the equations

(a) x + y + z = f (x2 + y 2 + z 2 ). [ans: (y − z)p + (z − x)q = x − y]

Solution
Let x + y + z = f (u), where u = x2 + y 2 + z 2 and z = z(x, y). Now,

ux = 2x + 2zzx and uy = 2y + 2zzy

Differentiating partially with respect to x and y in turn we have


1 + zx
1 + zx = fu · ux ⇒ 1 + zx = (2x + 2zzx )fu ⇒ fu = · · · (i)
2x + 2zzx
and
1 + zy
1 + zy = fu · uy ⇒ 1 + zy = (2y + 2zzy )fu ⇒ fu = · · · (ii)
2y + 2zzy

From equations (i) and (ii) we have


1 + zx 1 + zy
= ⇒ (1 + zx )(2y + 2zzy ) − (2x + 2zzx )(1 + zy ) = 0
2x + 2zzx 2y + 2zzy

⇒ 2y + 2zzy + 2yzx + 2zzx zy − 2x − 2zzx − 2xzy − 2zzx zy = 0


⇒ 2y + 2zzy + 2yzx − 2x − 2zzx − 2xzy = 0
⇒ y + zq + yp − x − zp − xq = 0 ⇒ (y − z)p + (z − x)q = x − y

(b) z = f (x2 − y 2 ). [ans: yp + xq = 0]


(c) z = xn f (y/x). [ans: xp + yq = nz]
(d) z = eax+by f (ax − by). [ans: bp + aq = 2abz]
(e) z = xy + f (x2 + y 2 ). [ans: py − qx = y 2 − x2 ]
(f) z = x + y + f (xy). [ans: xp − yq = x − y]
(g) z = f ( xy
z ). [ans: xp − yq = 0]

Lecture 7

4.2 Lagrange’s equation


This is an equation of the form

P p + Qq = R, (11)

∂z ∂z
where p = and q = . Equation (11) is said to be:
∂x ∂y
• Linear if P, Q and R are functions of x and y only.

• Semilinear if P and Q are functions of x and y only but R is a function of x, y and z.

• Quasi-linear if P, Q and R are functions of x, y and z.

→ Note: An equation that does not fit into one of the above categories is called nonlinear.

21
4.2.1 Formation of Lagrange’s equation

Example(s):

1. Find the Lagrange equation whose solution is given by ϕ(xyz, x2 + y 2 + z 2 ) = 0

Solution
Let ϕ(u, v) = 0 where u = xyz and v = x2 + y 2 + z 2

∂(u, v) uy uz
P = = = uy vz − uz vy = (xz)(2z) − (xy)(2y) = 2x(z 2 − y 2 )
∂(y, z) vy vz

∂(u, v) uz ux
Q = = = uz vx − ux vz = (xy)(2x) − (yz)(2z) = 2y(x2 − z 2 )
∂(z, x) vz vx

∂(u, v) ux uy
R = = = ux vy − uy vx = (yz)(2y) − (xz)(2x) = 2z(y 2 − x2 )
∂(x, y) vx vy

The Lagrange’s equation is given by

P p + Qq = R ⇒ 2x(z 2 − y 2 )p + 2y(x2 − z 2 )q = 2z(y 2 − x2 )

⇒ x(z 2 − y 2 )p + y(x2 − z 2 )q = z(y 2 − x2 )

2. Form a linear partial differential equation whose solution is ϕ(x2 ez , ye−z ) = 0. [6 Marks]

3. Form a linear partial differential equation whose solution is f (x2 + y 2 + z 2 , 2z + 2xy) = 0. [10
Marks]

4.2.2 Methods of solving P p + Qq = R


There are two methods of solving Lagrange’s equation: (1) method of characteristics and (2) Lagrange’s
method of solution.

2. Lagrange’s method of solution

This method is applicable to all the three cases i.e., linear, semi-linear, and quasi-linear La-
grange’s equations. The method depends on the introduction of subsidiary equations.

Theorem 4.1. The general solution of the Lagrange’s equation P p + Qq = R is ϕ(u, v) = 0,


where u ≡ u(x, y, z) = c1 and v ≡ v(x, y, z) = c2 are the integral curves of the subsidiary
equations
dx dy dz
= = , − − −(i)
P Q R
and ϕ is an arbitrary function.

Proof. The curves u ≡ u(x, y, z) = c1 and v ≡ v(x, y, z) = c2 are solutions of the system of
equations (i). Hence, the equations

∂u ∂u ∂u ∂v ∂v ∂v
du = dx + dy + dz = 0, dv = dx + dy + dz = 0
∂x ∂y ∂z ∂x ∂y ∂z

are compatible with equations (i). Thus, we must have

∂u ∂u ∂u ∂v ∂v ∂v
P +Q +R =0 and P +Q +R =0
∂x ∂y ∂z ∂x ∂y ∂z

22
In matrix form, we have
 
∂u ∂u ( )  ∂u

 ∂x
 ∂y 
 P −R ∂z 
 ∂v ∂v  Q =  ∂v 
−R
∂x ∂y ∂z
Solving these equations for P, Q and R using Cramer’s rule, we obtain
P Q R
= =
∂u ∂v ∂u ∂v ∂u ∂v ∂u ∂v ∂u ∂v ∂u ∂v
− − −
∂y ∂z ∂z ∂y ∂z ∂x ∂x ∂z ∂x ∂y ∂y ∂x
P Q R
⇒ = = − − − (a)
∂(u, v) ∂(u, v) ∂(u, v)
∂(y, z) ∂(z, x) ∂(x, y)
Also, we need to eliminate the arbitrary function ϕ from the equation ϕ(u, v) = 0 − − − (∗).
From differential calculus, if ϕ = ϕ(u, v), then

∂ϕ ∂ϕ
dϕ = du + dv
∂u ∂v
and z = z(x, y) gives
∂z ∂z
dz = dx + dy = pdx + qdy
∂x ∂y
Differentiating equation (∗) with respect to x and y, respectively, we have

∂ϕ du ∂ϕ dv ∂ϕ du ∂ϕ dv
+ =0 and + = 0 − − − (∗∗)
∂u dx ∂v dx ∂u dy ∂v dy
Now,
du ∂u ∂u du ∂u ∂u
= +p , and = +q
dx ∂x ∂z dy ∂y ∂z
Similarly,
dv ∂v ∂v dv ∂v ∂v
= +p , and = +q ,
dx ∂x ∂z dy ∂y ∂z
∂z ∂z
where p = and q = . Substituting in equations (∗∗), we get
∂x ∂y
ϕu vx + pvz
ϕu (ux + puz ) + ϕv (vx + pvz ) = 0 ⇒ =−
ϕv ux + puz
ϕu vy + qvz
ϕu (uy + quz ) + ϕv (vy + qvz ) = 0 ⇒ =−
ϕv uy + quz
Therefore,

vx + pvz vy + qvz ∂(u, v) ∂(u, v) ∂(u, v)


= ⇒ p+ q= − − − (b)
ux + puz uy + quz ∂(y, z) ∂(z, x) ∂(x, y)

Using equations (a) and (b), we obtain P p + Qq = R, which shows that ϕ(u, v) = 0 is a solution
to equation (i).

Example(s):

1. (a) Find the general solution of the equation x2 p + y 2 q = (x + y)z.

Solution

23
x2 p + y 2 q = (x + y)z ⇒ P = x2 , Q = y 2 , R = (x + y)z. The subsidiary equations
are given by
dx dy dz dx dy dz
= = ⇒ 2
= 2 =
P Q R x y z(x + y)
dx dy
From = 2
x2 y
∫ ∫ ∫
dx dy 1 1 x−y
⇒ − = 0 ⇒ − = c1 ⇒ = c1 ≡ u
x2 y2 y x xy
dx − dy dz
From =
x2 − y 2 z(x + y)
∫ ∫ ∫
d(x − y) dz x−y
⇒ − = 0 ⇒ ln(x − y) − ln z = ln c2 ⇒ = c2 ≡ v
x−y z z
x−y x−y
Hence, the integral curves are u = and v = . The general solution is given
( xy) z
x−y x−y
by ϕ(u, v) = 0 ⇒ ϕ , = 0. Therefore, the general solution may be
xy z
written as
( )
x−y
z = (x − y)f , where f is an arbitrary function.
xy
(b) Find the integral surface of the quasi-linear PDE x(y 2 + z)p − y(x2 + z)q = z(x2 − y 2 )
which contains the straight lines x + y = 0, z = 1.

Solution
Given x(y 2 + z)p − y(x2 + z)q = z(x2 − y 2 ); x + y = 0 and z = 1. Here, P =
x(y 2 + z), Q = −y(x2 + z), and R = (x2 − y 2 )z. The subsidiary equations are
dx dy dz
= =
2
x(y + z) −y(x + z)
2 z(x − y 2 )
2

xdx + ydy dz xdx + ydy dz


From = ⇒ =
x2 (y 2 + z) − y (x + z)
2 2 z(x − y 2 )
2 z(x − y )
2 2 z(x − y 2 )
2

x2 y 2 c1
⇒ xdx + ydy − dz = 0 ⇒ + −z =
2 2 2
∴ x2 + y 2 − 2z = c1 ≡ u
1
x dx + y1 dy 1
z dz dx dy dz
From = ⇒ + + =0
(y 2 + z) − (x2 + z) (x2 − y 2 ) x y z
⇒ ln x + ln y + ln z = ln c2 ⇒ ∴ xyz = c2 ≡ v

Therefore, the integral curves are u = x2 + y 2 − 2z and v = xyz. So the integral surface
is ϕ(u, v) = 0. Now,

z=1 ⇒ u + 2 = x2 + y 2 and v = xy

Also,

x+y =0 ⇒ (x + y)2 = 0 ⇒ x2 + y 2 + 2xy = 0 ⇒ u + 2 + 2v = 0.

Substituting the original values of the integral curves, u and v, we obtain

x2 + y 2 − 2z + 2 + 2xyz = 0

Alternatively, the parametric equations of the curve may be taken to be x = t, y =


−t, z = 1 so that u = 2t2 − 2, v = −t2 ⇒ u = −2v − 2 ⇒ u + 2v + 2 = 0

⇒ x2 + y 2 − 2z + 2xyz + 2 = 0

24
2. Find the general solution of the partial differential equations.
(a) x(x + y)p − y(x + y)q = (y − x)(2x + 2y + z). [ans: xy = c1 , (x + y)(x + y + z) = c2 ]
(b) (xz + y 2 )p + z(y − x)q + 2xy + z 2 = 0. [ans: F (yz + x2 , 2xz − y 2 ) = 0]
x2 + y 2
(c) (x2 + y 2 + yz)p + (x2 + y 2 − xz)q = z(x + y). [ans: z − x + y = c1 , = c2 ]
z2
(d) z(x + y)p + z(x − y)q = x2 + y 2 . [ans: 2xy − z 2 = c1 , x2 − y 2 − z 2 = c2 ]
3. Find the equation of the integral surface of the differential equation 2y(z −3)p +(2x −z)q =
y(2x − 3) which passes through the circle z = 0, x2 + y 2 = 2x. [ans:
x + y − z − 2x + 4z = 0]
2 2 2

4. Find the integral surface of the partial differential equation (x − y)p + (y − x − z)q = z
through the circle z = 1, x2 + y 2 = 1. [ans:
z (x + y + z) + (y − x − z) − 2z (x + y + z) + 2z (y − x − z) = 0]
4 2 2 4 2

5. Find the integral surface of the equation (x − y)y 2 p + (y − x)x2 q = (x2 + y 2 )z through the
curve xz = a3 , y = 0. [ans: z 3 (x3 + y 3 )2 = a9 (x − y)3 ]
6. Find the integral surface of the differential equation (x2 − yz)p + (y 2 − xz)q = z 2 − xy which
pass through the line z = 1, y = 0. [ans: (x − y)(xy + yz + xz) + y − z = 0]
2 2 2
7. Find the integral surface of x p + y q + z = 0 which pass through the hyperbola xy =
x + y, z = 1. [ans: yz + 2xy + xz = 3xyz]
8. Find the general integral of the equation (2x − y)y 2 p + 8(y − 2x)x2 q = 2(4x2 + y 2 )z and
1
deduce the solution of the Cauchy problem when z(x, 0) = on a portion of the x-axis.
( )3 2x
2x − y
[ans: (8x3 + y 3 )2 = ]
z
9. Find the equation of the surface satisfying the equation 4yzp + q + 2y = 0 and passing
through y 2 + z 2 = 1, x + z = 2. [ans: y 2 + z 2 + x + z − 3 = 0, 8mks]

Lecture 8

5 Partial differential equations of the second order


These types of PDEs arise in connection with various physical problems such as the motion of a
vibrating string, heat flow, electricity, magnetism and fluid dynamics. A second order linear PDE in
two independent variables takes the general form
∂2u ∂2u ∂2u
A + B + C = F (x, y, u, p, q), (12)
∂x2 ∂x∂y ∂y 2
∂u ∂u
where A, B and C are continuous functions of the independent variables x and y, p = and q = .
∂x ∂y
By analogy with the criteria for a conic to be hyperbolic, parabolic, or elliptic, equation (12) is said
to be
Hyperbolic: if B 2 − 4AC > 0
Parabolic: if B 2 − 4AC = 0
Elliptic: if B 2 − 4AC < 0
The simplest, and in elementary applications, the most important examples of hyperbolic, parabolic,
and elliptic PDEs are:
∂2u ∂2u
Wave equation: 2
= c2 2 , A = c2 , B = 0, C = −1 ⇒ B 2 − 4AC = 4c2 > 0 (hyperbolic)
∂t ∂x
∂u ∂2u
Heat equation: = α 2 , A = k, B = 0, C = 0 ⇒ B 2 − 4AC = 0 (parabolic)
∂t ∂x
∂2u ∂2u
Laplace equation: + 2 = 0, A = 1, B = 0, C = 1 ⇒ B 2 − 4AC = −4 < 0 (elliptic)
∂x2 ∂y

25
→ Note: For the heat equation, α > 0 is the diffusivity. For the wave equation, c > 0 is the velocity
of the wave.

5.1 Methods of the solution of PDEs of the second order


5.1.1 Method of separation of variables
This method applies to problems where:

• The PDE is linear and homogeneous (not necessarily constant coefficients)

• The boundary conditions are linear and homogeneous.

→ Note: we are interested in a nontrivial solution. Furthermore, for the case of the wave equation,
we are interested in a solution which has physical significance (i.e., a periodic solution).

Example(s):
∂u ∂u
(a) Use the method of separation of variables to solve −4 = 0; u(0, y) = 8e−3y .
∂x ∂y

Solution
Let the solution of the given equation be

u(x, y) = X(x)Y (y),

∂u
where X is a function of x alone and Y is a function of y alone. Then, = Y X ′ and
∂x
∂u
= XY ′ .Substituting in the given equation yields
∂y

X′ Y′
Y X ′ − 4XY ′ = 0 ⇒ = · · · · · · (∗)
4X Y
The left hand side of equation (∗) is independent of y. So the right hand side, which is identically
equal to the expression on the left, must be independent of y too. Similarly, the right hand side
is independent of x. So the left hand side must be independent of x too. Therefore, both sides
must be independent of both x and y. So each side of equation (∗) must be a constant, say −λ2 .
So we have
X′ Y′
= =k
4X Y
X′
From = k ⇒ X ′ − 4kX = 0 whose solution is X = A1 e4kx
4X
Y′
From = k ⇒ Y ′ − kY = 0 whose solution is Y = A2 eky . Therefore,
Y

u(x, y) = A1 e4kx · A2 eky = Ae4kx+ky

Applying the condition u(0, y) = 8e−3y , we get u(0, y) = 8e−3y = Aeky ⇒ A = 8, k = −3.
Hence,
u(x, y) = 8e−12x−3y

∂u ∂2u
(b) Solve by the method of separation of variables the heat equation = , 0 < x < 2, t > 0
∂t ∂x2
subject to the conditions u(0, t) = 0, u(2, t) = 0 and u(x, 0) = sin(πx).

SolutionUsing the method of separation of variables, we let the solution of the given equation
be

u(x, t) = X(x)T (t) (13)

26
Hence,

∂u ∂2u
= XT ′ and = T X ′′
∂t ∂x2
Substituting in the given equation, we obtain

T′ X ′′
XT ′ = T X ′′ ⇒ = =k (A)
T X
Since we need to consider only physical solutions, there are three cases to investigate. That is,
case 1 : k < 0, case 2 : k = 0 and case 3 : k > 0.

Case 1: k = −λ2 < 0, where λ is a nonzero real number.


From equations (A), we obtain the following set of ODEs:

X ′′
= −λ2 ⇒ X ′′ + λ2 X = 0
X
T′
= −λ2 ⇒ T ′ + λ2 T = 0
T
d d
Let Dx = and Dt = . Then,
dx dt
[ ]
X ′′ + λ2 X = 0 ⇒ Dx2 + λ2 X = 0 ⇒ Dx = ±iλ ⇒ X = A1 cos(λx) + B1 sin(λx)

and [ ]
T ′ + λ2 T = 0 T = A2 e−λ
2t
⇒ Dt + λ2 T = 0 ⇒ Dt = −λ2 ⇒
Substituting in equation (13) yields

u(x, t) = e−λ t (A cos λx + B sin λx)


2
(14)

We now determine the value of the λ, and constants A and B. Using the boundary condition
u(0, t) = 0 in equation (14), we get

0 = e−λ t (A)
2
⇒ A = 0 (for non-trivial solution)

Thus, equation (14) reduces to the simpler form

u(x, t) = Be−λ t sin λx


2
(15)

Using the second boundary condition u(2, t) = 0 in equation (15), we get

0 = Be−λ t sin 2λ
2
⇒ sin 2λ = 0 (for non-trivial solution)

Thus, sin 2λ = 0 ⇒ λn =for n = 1, 2, 3, · · · . Here, λn ’s are called the eigenvalues and
2
the function un (x, t) corresponding to any λn is called an eigen function. Hence, equation (15)
reduces to the simpler form (for each eigen function)
( )

un (x, t) = Bn e−λn t sin(λn x) = Bn e−(n
2 2 π 2 /4)t
sin x , for n = 1, 2, 3, · · ·
2
Since the given equation is linear, then by the principle of superposition, the superposition of
all the linear solutions is a general solution of the given equation. Hence, the general solution is
given by


u(x, t) = un (x, t)
n=1
∑∞ ( )

Bn e−(n
2 π 2 /4)t
= sin x (16)
n=1
2

27
The general solution (16) can be recognized as the Fourier half-range sine series. To determine
the Fourier coefficients, Bn , we apply the initial condition u(x, 0) = sin πx. Thus, we have

∑ ( )

sin πx = Bn sin x
n=1
2
( ) ( )
π 3π
= B1 sin x + B2 sin (πx) + B3 sin x + ···
2 2
{
1, if n = 2
Comparing the coefficients of like terms, we obtain Bn = . Substituting in
0, otherwise
equation (16) we get the solution:

u(x, t) = e−π t sin πx


2

Case 2: k = 0.
From equations (A), we obtain the following set of ODEs:

X ′′
=0 ⇒ X ′′ = 0 ⇒ X = A1 x + B1
X
T′
=0 ⇒ T′ = 0 ⇒ T =C
T
Therefore, the general solution is

u(x, t) = (A1 x + B1 ) (C) = Ax + B,

where A and B are arbitrary constants. Using the boundary conditions u(0, t) = 0, we get
0 = A · 0 + B ⇒ B = 0. Hence, the solution reduces to

u(x, t) = Ax

Using the boundary conditions u(2, t) = 0, we get 0 = A · 2 ⇒ A = 0. Hence, the solution


reduces to
u(x, t) = 0,
which is a trivial solution. Thus, the possibility that k = 0 leads to no solution of interest to us.

Case 3: k = λ2 > 0, where λ is a nonzero real number.


From equations (A), we obtain the following set of ODEs:

X ′′
= λ2 ⇒ X ′′ − λ2 X = 0
X
T′
= λ2 ⇒ T ′ − λ2 T = 0
T
Thus,
X = A1 e−λx + B1 eλx
2t
and T = A 2 eλ
Substituting in equation (13) yields

u(x, t) = eλ t (Ae−λx + Beλx ),


2
(17)

where A and B are arbitrary constants. To determine A and B, we use the boundary conditions.
Using the boundary condition u(0, t) = 0 in equation (17), we get

0 = e−λ t (A + B)
2
⇒ A + B = 0 (for non-trivial solution)

Thus, equation (17) reduces to the simpler form

u(x, t) = Aeλ t (e−λx − eλx )


2
(18)

28
Using the second boundary condition u(2, t) = 0 in equation (18), we get

0 = Aeλ t (e−2λ − e2λ ) since (e−2λ − e2λ ) ̸= 0 as λ ̸= 0.


2
⇒ A = 0,

Thus, equation (18) reduces to the simpler form

u(x, t) = 0,

which is a trivial solution. Thus, there is no nontrivial solution to equation (A) for the case
k > 0.

Exercise:
∂2u ∂2u
(a) Use the method of separation of variables to solve the 1D wave equation 2 = c2 2 −−−−−(∗)
∂t ∂x
subject to the following conditions:

Boundary conditions: u(0, t) = 0 and u(50, t) = 0


Initial conditions: ut (x, 0) = 0 and u(x, 0) = f (x)

Solution
Using the method of separation of variables, we let the solution of equation (∗) to be

u(x, t) = X(x)T (t) − − − − − (∗∗)

Thus,

∂2u ∂2u
= XT ′′ and = T X ′′
∂t2 ∂x2
Substituting in equation (∗) we get

T ′′ X ′′
XT ′′ = c2 T X ′′ ⇒ = = −λ2 , (for periodic solution)
c2 T X
This leads to the following two ODEs:
X ′′
= −λ2 ⇒ X ′′ + λ2 X = 0
X
T ′′
= −λ2 ⇒ T ′′ + (cλ)2 T = 0
c2 T
d d
Let Dx = and Dt = . Then,
dx dt
X ′′ + λ2 X = 0 ⇒ (Dx2 + λ2 )X = 0 ⇒ Dx = ±iλ ⇒ X = A1 cos λx + B1 sin λx

and

T ′′ + (cλ)2 T = 0 ⇒ (Dt2 + (cλ)2 )T = 0 ⇒ Dt = ±icλ ⇒ T = A2 cos cλt + B2 sin cλt

Substituting in equation (∗∗) yields

u(x, t) = (A1 cos λx + B1 sin λx)(A2 cos cλt + B2 sin cλt) − − − −(∗ ∗ ∗)

Applying the boundary condition u(0, t) = 0 to equation (∗ ∗ ∗), we get

A1 (A2 cos cλt + B2 sin cλt) = 0 ⇒ A1 = 0 (for non-trivial solution)

Thus, equation (∗ ∗ ∗) reduces to the simpler form

u(x, t) = sin(λx) [A cos(cλt) + B sin(cλt)] − − − −(∗ ∗ ∗)′

29
Applying the boundary condition u(50, t) = 0 to equation (∗ ∗ ∗), we get

sin(50λ) [A cos(cλt) + B sin(cλt)] = 0 ⇒ sin(50λ) = 0 (for non-trivial solution)

From sin(50λ) = 0, we obtain



λn = for n = 1, 2, 3, · · ·
50
Hence, equation (∗ ∗ ∗)′ reduces to the simpler form
nπ nπc nπc
un (x, t) = (sin x)(An cos t + Bn sin t), for n = 1, 2, 3, · · ·
50 50 50
Now, by the principle of superposition we have

∑ nπ nπc nπc
u(x, t) = (sin x)(An cos t + Bn sin t) − − − −(a)
n=1
50 50 50

Differentiating equation (a) partially wrt t, we obtain



∑ nπ nπc nπc nπc nπc
ut (x, t) = (sin x)(−An sin t + Bn cos t)
n=1
50 50 50 50 50

Applying the initial velocity condition ut (x, 0) = 0, we get



∑ nπ ( nπc )
(sin x) Bn =0 ⇒ Bn = 0 for n = 1, 2, 3, · · ·
n=1
50 50

Thus, equation (a) reduces to the simpler form



∑ nπ nπc
u(x, t) = An sin( x) cos( t) − − − − − (b)
n=1
50 50

Applying the initial condition u(x, 0) = f (x) to equation (b), we get



∑ nπ
f (x) = An sin( x)
n=1
50

This is Fourier sine expansion of f (x) over the interval [0, 50]. Thus, the Fourier coefficient An
is given by
∫50
2 nπ
An = f (x) sin( x)dx
50 50
0

Substituting in equation (b) we get the solution


[ ∫50 ]
2 ∑ nπ nπ nπc
u(x, t) = f (x) sin( x)dx sin( x) cos( t)
50 n=1 50 50 50
0

(b) A rod whose surface is insulated has a length of 3 units and deformity of 2 units. The ends
of the rod are kept at 0o C and its initial temperature at any point x, 0 ≤ x ≤ 3, is given by
u(x, 0) = 5 sin 4πx − 3 sin 8πx + 2 sin 10πx. Find the temperature of the rod at any time t [ans:
u(x, t) = 5e−(4πc) t sin(4πx) − 3e−(8πc) t sin(8πx) + 2e−(10πc) t sin(10πx)]
2 2 2

Solution
The PDE to be solved is the 1D heat equation

ut = c2 uxx − − − (∗),

30
where u(x, t) is the temperature of the rod at time t, subject to the boundary conditions
u(0, t) = 0 and u(3, t) = 0 and the initial condition u(x, 0) = 5 sin 4πx − 3 sin 8πx + 2 sin 10πx.

Using the method of separation of variables, we let the solution of equation (∗) to be
u(x, t) = X(x)T (t) − − − (∗∗)
Thus,
ut = X(x)T ′ (t), and uxx = X ′′ (x)T (t)
Substituting in equation (∗) we get
T ′ (t) X ′′ (x)
X(x)T ′ (t) = c2 X ′′ (x)T (t) ⇒ = = −λ2 , (for periodic solution)
c2 T (t) X(x)
This leads to the following two ODEs:
X ′′ (x)
= −λ2 ⇒ X ′′ (x) + λ2 X(x) = 0
X(x)
T ′ (t)
= −λ2 ⇒ T ′ (t) + (cλ)2 T (t) = 0
c2 T (t)
d d
Let Dx = and Dt = . Then,
dx dt
X ′′ + λ2 X = 0 ⇒ (Dx2 + λ2 )X = 0 ⇒ Dx = ±iλ ⇒ X = A1 cos λx + B1 sin λx
and
T ′ + (cλ)2 T = 0 T = A2 e−(cλ)
2t
⇒ (Dt + (cλ)2 )T = 0 ⇒ Dt = −(cλ)2 ⇒
Substituting in equation (∗∗) we get the solution to be
u(x, t) = (A1 cos λx + B1 sin λx)A2 e−(cλ) t = (A cos λx + B sin λx)e−(cλ) t − − − (∗ ∗ ∗)
2 2

Applying the boundary condition u(0, t) = 0 to equation (∗ ∗ ∗), we get


0 = Ae−(cλ)
2t
⇒ A=0 (for non-trivial solution)
Thus, equation (∗ ∗ ∗) reduces to the simpler form
u(x, t) = Be−(cλ) t sin λx − − − (∗ ∗ ∗)′
2

Applying the boundary condition u(3, t) = 0 to equation (∗ ∗ ∗)′ , we get


0 = Be−(cλ) t sin 3λ
2
⇒ sin 3λ = 0 (for non-trivial solution)
From sin 3λ = 0, we obtain

, for n = 1, 2, 3, · · ·
λn =
3
Thus, equation (∗ ∗ ∗)′ reduces to the simpler form

un (x, t) = Bn e−( 3 c) t sin( x), for n = 1, 2, 3, · · ·
nπ 2

3
Now, by the principle of superposition we have

∑ nπ
Bn e−(
nπ 2
u(x, t) = 3
c) t
sin( x) − − − (a)
n=1
3
Applying the initial condition u(x, 0) = 5 sin 4πx − 3 sin 8πx + 2 sin 10πx, we get

∑ nπ
Bn sin( x) = 5 sin 4πx − 3 sin 8πx + 2 sin 10πx
n=1
3
Comparing the coefficients of like terms, we obtain B12 = 5, B24 = −3, B30 = 2 and Bn = 0 for
n∈/ {12, 24, 30}. Therefore, equation (a) reduces to
u(x, t) = 5e−(4πc) t sin(4πx) − 3e−(8πc) t sin(8πx) + 2e−(10πc) t sin(10πx)
2 2 2

31
∂2u ∂2u
(c) Use the method of separation of variables to solve = 4 ; u(0, y) = 0, u(1, y) = 0.
∂x2 ∂y 2
(d) Use the method of separation of variables to determine the general solution to the one di-
∂2u 1 ∂u
mensional heat equation 2
= , 0 ≤ x ≤ L, t > 0 subject to the boundary condition
∂x λ ∂t
u(0, t) = u(L, t) = 0 and the initial conditions u(x, 0) = f (x). Hence, determine the particular
solution when f (x) = x2 .
(e) Use the method of separation of variables to determine the general solution to the one dimen-
∂2u 2
2 ∂ u , 0 ≤ x ≤ L, t > 0 subject to the boundary conditions
sional wave equation = c
∂t2 ∂tx2
u(0, t) = u(L, t) = 0 and the initial conditions u(x, 0) = f (x) and ut (x, 0) = g(x). Hence,
determine the particular solution given that f (x) = 0 and g(x) = x.

Lecture 9

Reduction to cylindrical coordinate system


If the domain under consideration is cylindrical, then it is appropriate to first transform the indepen-
dent variables from Cartesian coordinates (x, y, z) to cylindrical coordinates (r, θ, z).

→ Note: In the polar system, the solution must be periodic in θ, with period 2π (this means that
u(r, θ + 2π) = u(r, θ) -i.e., the solution repeats itself every θ = 2π). Also, u(r, θ) should remain finite
as r → 0.

Example(s):
∂2u ∂2u
1. Consider the Laplace equation + = 0 (∗), where u(x, y) represents the velocity
∂x2 ∂y 2
potential of a fluid particle in a certain domain. For example, we need to determine u(x, y)
inside a circular disk x2 + y 2 < a2 , when its values on the circumference and at the center are
finite.

Solution
In obtaining the solution of equation (∗), we make the following transformations of the indepen-
dent variables:
x = r cos θ, y = r sin θ, and u = u(r, θ)

⇒ r= x2 + y 2 , and θ = tan−1 (y/x)
Thus,
∂r x r cos θ ∂r y r sin θ
=√ 2 = = cos θ, = √ = = sin θ
∂x x + y2 r ∂y x2 + y 2 r
∂θ −y −r sin θ 1 ∂θ x r cos θ 1
= 2 2
= 2
= − sin θ, = 2 2
= 2
= cos θ
∂x x +y r r ∂y x +y r r
Using chain rule, we know that:
∂u ∂u ∂r ∂u ∂θ ∂u 1 ∂u
= + = cos θ − sin θ
∂x ∂r ∂x ∂θ ∂x ∂r r ∂θ

32
∂u ∂u ∂r ∂u ∂θ ∂u 1 ∂u
= + = sin θ + cos θ
∂y ∂r ∂y ∂θ ∂y ∂r r ∂θ
Thus, we observe that
∂ ∂ 1 ∂ ∂ ∂ 1 ∂
= cos θ − sin θ and = sin θ + cos θ
∂x ∂r r ∂θ ∂y ∂r r ∂θ
Therefore, by chain rule and product rule for partial derivatives, we have
( ) ( )( )
∂2u ∂ ∂u ∂ 1 ∂ ∂u 1 ∂u
= = cos θ − sin θ cos θ − sin θ
∂x2 ∂x ∂x ∂r r ∂θ ∂r r ∂θ
( ) ( )
∂ ∂u 1 ∂u 1 ∂ ∂u 1 ∂u
= cos θ cos θ − sin θ − sin θ cos θ − sin θ
∂r ∂r r ∂θ r ∂θ ∂r r ∂θ
{ } { }
2 2 2
2 ∂ u 1 ∂ u 1 ∂u 1 ∂ u ∂u
= cos θ 2 − cos θ sin θ − − sin θ cos θ − sin θ
∂r r ∂r∂θ r2 ∂θ r ∂r∂θ ∂r
{ }
1 ∂2u ∂u
+ 2 sin θ sin θ 2 + cos θ
r ∂θ ∂θ
∂2u 1 2
2 ∂ u 2 ∂2u 1 ∂u 2 ∂u
= cos2 θ + sin θ − cos θ sin θ + sin2 θ + 2 cos θ sin θ (i)
∂r2 r2 ∂θ2 r ∂r∂θ r ∂r r ∂θ

( ) ( )( )
∂2u ∂ ∂u ∂ 1 ∂ ∂u 1 ∂u
= = sin θ + cos θ sin θ + cos θ
∂y 2 ∂y ∂y ∂r r ∂θ ∂r r ∂θ
( ) ( )
∂ ∂u 1 ∂u 1 ∂ ∂u 1 ∂u
= sin θ sin θ + cos θ + cos θ sin θ + cos θ
∂r ∂r r ∂θ r ∂θ ∂r r ∂θ
{ } { }
2 2 2
2 ∂ u 1 ∂ u 1 ∂u 1 ∂ u ∂u
= sin θ 2 + cos θ sin θ − + cos θ sin θ + cos θ
∂r r ∂r∂θ r2 ∂θ r ∂r∂θ ∂r
{ }
1 ∂2u ∂u
+ 2 cos θ cos θ 2 − sin θ
r ∂θ ∂θ
∂2u 1 2
2 ∂ u 2 ∂2u 1 ∂u 2 ∂u
= sin2 θ 2
+ 2
cos θ 2
+ cos θ sin θ + cos2 θ − 2 cos θ sin θ (ii)
∂r r ∂θ r ∂r∂θ r ∂r r ∂θ
Hence, substituting in the given PDE (i.e., add equations (i) and (ii)), we get the transformed
equation:
∂ 2 u 1 ∂u 1 ∂2u
+ + =0 (∗∗)
∂r2 r ∂r r2 ∂θ2
The boundary condition for equation (∗∗) is given by u(1, θ) = f (θ) for 0 ≤ θ ≤ 2π. By using
the method of separation of variables, we let the solution of equation (∗∗) to be

u(r, θ) = R(r)Θ(θ),

from which we obtain


∂u ∂2u ∂2u
= R′ Θ, = R′′ Θ, and = RΘ′′
∂r ∂r2 ∂θ2
Substituting in equation (∗∗), we get
1 1 ( )
R′′ Θ + R′ Θ + 2 RΘ′′ = 0 ⇒ r2 R′′ + rR′ Θ = −RΘ′′
r r
Separating the variables yields
( )
r2 R′′ + rR′ Θ′′
=− = k, (∗ ∗ ∗)
R Θ
where is a constant.

33
Case 1: k = 0.
From equations (∗ ∗ ∗), we obtain the following set of ODEs:
1
R′′ + R′ = 0 and Θ′′ = 0
r
Solving yields
R(r) = a ln r + b and Θ(θ) = Cθ + D
Therefore,
u(r, θ) = (a ln r + b) (Cθ + D)
The solution has to be periodic in θ, with period 2π. This implies that C = 0. Hence,

u(r, θ) = A ln r + B

Also, the solution has to remain finite as r → 0, then A = 0. Hence, u(r, θ) = B, a constant.
For convenience, we write this solution in the form
A0
u0 (r, θ) =
2

Case 2: k = n2 > 0, where n = 1, 2, 3, · · · .


From equations (∗ ∗ ∗), we obtain the following set of ODEs:

r2 R′′ + rR′ − n2 R = 0 (i) and Θ′′ + n2 Θ = 0 (ii)

Equation (i) is a Cauchy-Euler type equation and its solution can be obtained by making the
dR dR d2 R d2 R dR
following substitution: r = et ⇒ t = ln r, r = , and r2 2 = 2
− .
dr dt dr dt dt
Hence, equation (i) becomes
d2 R
− n2 R = 0,
dt2
whose general solution is given by

R(t) = En e−nt + Fn ent ⇒ R(r) = En e−n ln r + Fn en ln r ⇒ R(r) = En r−n + Fn rn ,

where En and Fn are arbitrary constants. The solution of equation (ii) is given by

Θ(θ) = Cn cos nθ + Dn sin nθ,

where Cn and Dn are arbitrary constants. Therefore,


( )
u(r, θ) = En r−n + Fn rn (Cn cos nθ + Dn sin nθ) (iii)

From physical ground, we are looking for a solution which is periodic in θ, with period 2π.
Clearly, equation (iii) is periodic in θ, with period 2π. Also, the solution has to remain finite as
r → 0. This is only possible if En = 0. Therefore, equation (iii) reduces to

un (r, θ) = Fn rn (Cn cos nθ + Dn sin nθ) = rn (An cos nθ + Bn sin nθ) , n = 1, 2, 3, · · · ,

A0
where u0 (r, θ) = . By the principle of superposition, we have
2

A0 ∑
u(r, θ) = + rn (An cos nθ + Bn sin nθ) (iv)
2 n=1

Applying the boundary condition u(a, θ) = f (θ), we get



A0 ∑
f (θ) = + an (An cos nθ + Bn sin nθ)
2 n=1

34
This is a Fourier series with cosine coefficients an An and sine coefficients an Bn , over the interval
[0, 2π]. The Fourier coefficients are given by

∫2π ∫2π
1 1
An = f (θ) cos(nθ)dθ ⇒ Bn = f (θ) sin(nθ)dθ
πan πan
0 0

Substituting in equation (iv), we get the solution:


 2π   2π  
∫2π ∞ ∫  ∫ 
1 1 ∑
u(r, θ) = f (θ)dθ + rn  f (θ) cos(nθ)dθ cos(nθ) + f (θ) sin(nθ)dθ sin(nθ)
2π π    
0 n=1 0 0

Case 3: k = −n2 < 0, where n = 1, 2, 3, · · · .


From equations (∗ ∗ ∗), we obtain the following set of ODEs:

r2 R′′ + rR′ + n2 R = 0 and Θ′′ − n2 Θ = 0

Solving yields

R(r) = An r−n + Bn rn and Θ(θ) = Cn cosh nθ + Dn sinh nθ

Therefore, ( )
u(r, θ) = An r−n + Bn rn (Cn cosh nθ + Dn sinh nθ)
The solution has to be periodic in θ, with period 2π. This implies that Cn = Dn = 0. Hence,

u(r, θ) = 0 (trivial solution.)

Exercise:

2. The electrostatic potential of electrical charges in the domain D that is free of these charges is
governed by the Laplace equation
∂2u ∂2u
+ 2 =0
∂x2 ∂y
Use the method of separation of variables to show that the potential u(x, y) in a cylindrical
capacitor defined by D = {0 ≤ r ≤ a, 0 ≤ θ ≤ 2π} when the upper half of the capacitor is
kept at the potential U (i.e., u(r, θ) = U for 0 ≤ θ ≤ π) and the lower half of the capacitor is
grounded (i.e., u(r, θ) = 0 volts for π < θ ≤ 2π).

Solution
From example 1, the polar form of equation (∗) is given by

∂ 2 u 1 ∂u 1 ∂2u
+ + =0 (∗∗)
∂r2 r ∂r r2 ∂θ2

35
The boundary condition for equation (∗∗) is given by u(1, θ) = f (θ) for 0 ≤ θ ≤ 2π. By using
the method of separation of variables, we let the solution of equation (∗∗) to be

u(r, θ) = R(r)Θ(θ),

from which we obtain


∂u ∂2u ∂2u
= R′ Θ, = R′′ Θ, and = RΘ′′
∂r ∂r2 ∂θ2
Substituting in equation (∗∗), we get
1 1 ( )
R′′ Θ + R′ Θ + 2 RΘ′′ = 0 ⇒ r2 R′′ + rR′ Θ = −RΘ′′
r r
Separating the variables yields
( )
r2 R′′ + rR′ Θ′′
=− = k, (∗ ∗ ∗)
R Θ
where is a constant.

Case 1: k = n2 > 0.
From equations (∗ ∗ ∗), we obtain the following set of ODEs:

r2 R′′ + rR′ − n2 R = 0 (i) and Θ′′ + n2 Θ = 0 (ii)

Equation (i) is a Cauchy-Euler type equation and its solution can be obtained by making the
dR dR d2 R d2 R dR
following substitution: r = et ⇒ t = ln r, r = , and r2 2 = − .
dr dt dr dt2 dt
Hence, equation (i) becomes
d2 R
− n2 R = 0,
dt2
whose general solution is given by

R(t) = En e−nt + Fn ent ⇒ R(r) = En e−n ln r + Fn en ln r ⇒ R(r) = En r−n + Fn rn ,

where En and Fn are arbitrary constants. The solution of equation (ii) is given by

Θ(θ) = Cn cos nθ + Dn sin nθ,

where Cn and Dn are arbitrary constants. Therefore,


( )
u(r, θ) = En r−n + Fn rn (Cn cos nθ + Dn sin nθ) (iii)

From physical ground, we are looking for a solution which is periodic in θ, with period 2π.
Clearly, equation (iii) is periodic in θ, with period 2π. Also, the solution has to remain finite as
r → 0. This is only possible if En = 0. Therefore, equation (iii) reduces to

un = Fn rn (Cn cos nθ + Dn sin nθ) = rn (An cos nθ + Bn sin nθ) , n = 1, 2, · · ·

By the principle of superposition, we have




u(r, θ) = g + rn (An cos nθ + Bn sin nθ) (iv)
n=1
{
U if 0 ≤ θ ≤ π,
Applying the voltage boundary condition u(a, θ) = we get
0 if π < θ ≤ 2π


{
∑ U if 0 ≤ θ ≤ π,
n
g+ a (An cos nθ + Bn sin nθ) =
n=1 0 if π < θ ≤ 2π

36
Integrating both sides from 0 to 2π yields:
∫2π ∞
∑ U
g+ an (An cos nθ + Bn sin nθ) dθ = πU ⇒ 2πg = πU ⇒ g=
n=1
2
0
Therefore,


U
u(a, θ) = + an (An cos nθ + Bn sin nθ)
2 n=1
We apply the orthogonality relationships:
∫2π ∫2π ∫2π ∑

U
u(a, θ) cos mθdθ = cos mθdθ + an (An cos nθ + Bn sin nθ) cos mθdθ
2
0 0 0 n=1
∫π
⇒ U cos mθdθ = 0 + Am am π ⇒ 0 = Am am π ⇒ Am = 0, for all m
0
Similarly,
∫2π ∫2π ∫2π ∑

U
u(a, θ) sin mθdθ = sin mθdθ + an (An cos nθ + Bn sin nθ) sin mθdθ
2
0 0 0 n=1
∫π [ ]2π
U cos mθ 2U
⇒ U sin mθdθ = + B m am π ⇒ = Bm am π, for odd m = (2n − 1)
2 m 0 m
0
Therefore, equation (iv) becomes


U 2U.
u(r, θ) = + r(2n−1) sin(2n − 1)θ
2 n=1 (2n − 1)πa(2n−1)

Case 2: k = 0.
From equations (∗ ∗ ∗), we obtain the following set of ODEs:
1
R′′ + R′ = 0 and Θ′′ = 0
r
Solving yields
R(r) = a ln r + b and Θ(θ) = Cθ + D
Therefore,
u(r, θ) = (a ln r + b) (Cθ + D)
The solution has to be periodic in θ, with period 2π. This implies that C = 0. Hence,
u(r, θ) = A ln r + B
Also, the solution has to remain finite as r → 0, then A = 0. Hence,
u(r, θ) = B, a constant

Case 3: k = −n2 < 0.


From equations (∗ ∗ ∗), we obtain the following set of ODEs:
r2 R′′ + rR′ + n2 R = 0 and Θ′′ − n2 Θ = 0
Solving yields
R(r) = An r−n + Bn rn and Θ(θ) = Cn cosh nθ + Dn sinh nθ
Therefore, ( )
u(r, θ) = An r−n + Bn rn (Cn cosh nθ + Dn sinh nθ)
The solution has to be periodic in θ, with period 2π. This implies that Cn = Dn = 0. Hence,
u(r, θ) = 0 (trivial solution.)

37
Lecture 10

5.1.2 Laplace transform


The methods of Laplace and Fourier transforms are powerful whenever a BVP is to be solved over an
infinite or semi-infinite domain. The philosophy in these methods lies in the fact that by taking the
transform of the given PDE, we can reduce the number of independent variables by 1. The formal
step is that the given PDE with its boundary and initial conditions is transformed with respect to one
of its independent variables. In doing so, we assume that the differential operator can be interchanged
with the Laplace transform operator L or Fourier transform operator F .

The Laplace transform is very useful for semi-infinite range, i.e., 0 < x < ∞ and 0 < t < ∞. The
Laplace transform method is as follows:

Suppose a function f (t) is defined for t ≥ 0. Also, let L be the Laplace transform operator, then the
Laplace transform, with respect to t, of f (t) is a function defined by
∫∞
L [f (t)] = e−st f (t)dt = F (s), Re(s) > 0, where s is a dummy variable.
0
Similarly, the Laplace transform, with respect to t, of u(x, t) is defined by
∫∞
L [u(x, t)] = e−st u(x, t)dt = U (x, s)
t=0

Example(s):
Find the Laplace transform of the following functions:
(a) f (t) = 1
(b) f (t) = eat
(c) f (t) = t2

Exercise:
Verify the following properties of the Laplace transform.
1 [ ] 1
L[1] = L eat =
s s−a
n! [ at n ] n!
L [t ] = n+1 , n ≥ 0 L e t =
n
s (s − a)n+1
s [ at ] s−a
L [cos bt] = 2 L e cos bt =
s +b 2 (s − a)2 + b2
b [ at ] b
L [sin bt] = 2 L e sin bt =
s +b 2 (s − a)2 + b2
s [ at ] s−a
L [cosh bt] = 2 L e cosh bt =
s −b 2 (s − a)2 − b2
b [ ] b
L [sinh bt] = 2 L eat sinh bt =
s − b2 (s − a)2 − b2

Laplace transform of partial derivatives

To obtain the Laplace transform of partial derivatives, say ux , uxx , ut and utt , we simply take the
Laplace transform as follows:
[ ] ∫∞ ∫∞
∂u −st ∂u ∂ d
L[ux ] = L = e dt = e−st u(x, t)dt = L [u(x, t)]
∂x ∂x ∂x dx
t=0 t=0
[ ] ∫∞ ∫∞
∂2u −st ∂
2u ∂2 d2
L[uxx ] = L = e dt = e−st u(x, t)dt = L [u(x, t)]
∂x2 ∂x2 ∂x2 dx2
t=0 t=0

38
and
[ ] ∫∞
∂u ∂u
L[ut ] = L = e−st dt. Integration by parts yields:
∂t ∂t
t=0
∂u
put z = e−st , dv = dt ⇒ dz = −se−st dt, v = u. Substituting yields
∂t
∫∞ ∫∞ [ ]∞ ∫∞
−st ∂u
e dt = [zv]∞
0 − vdz = u(x, t)e −st
+s e−st u(x, t)dt = −u(x, 0) + sL[u(x, t)]
∂t t=0
t=0 t=0 t=0
∴ L[ut ] = sL[u(x, t)] − u(x, 0)

[ ] ∫∞
∂2u ∂2u
L[utt ] = L = e−st dt. Integration by parts yields:
∂t2 ∂2t
t=0
∂2u ∂u
put z = e−st , dv = dt ⇒ dz = −se−st dt, v = = ut . Substituting yields
∂2t ∂t
∫∞ 2u ∫∞ [ ]∞ ∫∞
−st ∂
e dt = [zv]∞
0 − vdz = ut (x, t)e −st
+s e−st ut dt = −ut (x, 0) + sL[ut ]
∂t2 t=0
t=0 t=0 t=0
∴ L[utt ] = sL[ut ] − u(x, 0)
[ ]
= s sL[u(x, t)] − u(x, 0) − ut (x, 0)
= s2 L[u(x, t)] − su(x, 0) − ut (x, 0)

Generally,
[ ]
∂nu ∂ n−1 u(x, 0)
L = s n
L[u(x, t)] − sn−1
u(x, 0) − s n−2
u t (x, 0) − sn−3
u tt (x, 0) − · · · −
∂tn ∂tn−1

Example(s):
∂u ∂2u
(a) Use Laplace transform to solve the 1D heat conduction equation = , 0 < x < 2, t > 0
∂t ∂x2
subject to the conditions u(0, t) = 0, u(2, t) = 0 and u(x, 0) = sin(πx).

Solution
Taking the Laplace transform of the given equation, with respect to t, we get
[ ] [ ]
∂u ∂2u d2
L =L ⇒ sL [u(x, t)] − u(x, 0) = L [u(x, t)]
∂t ∂x2 dx2

d2
Applying the initial condition, we obtain sL [u(x, t)] − sin(πx) = L [u(x, t)].
dx2
( )
d2
⇒ − s L [u(x, t)] = − sin(πx) (19)
dx2

Equation (23) is a non-homogeneous second order linear constant coefficient equation. Let
d
D= . Then, equation (23) becomes
dx
( )
D2 − s L [u(x, t)] = − sin(πx) (20)
( ) √
The auxiliary equation is D2 − s = 0 ⇒ D = ± s. Thus the complimentary solution of
equation (27) is √ √
Lc [u(x, t)] = A(s)e− sx + B(s)e sx ,

39
where A(s) and B(s) are constants to be determined. The particular solution of equation (27)
is given by
1 1
Lp [u(x, t)] = 2 [− sin(πx)] = sin(πx).
D −s s + π2
Therefore, the general solution of equation (27) is L [u(x, t)] = Lc [u(x, t)] + Lp [u(x, t)] i.e.,
√ √ 1
L [u(x, t)] = A(s)e− sx
+ B(s)e sx
+ sin(πx) (21)
s + π2
From the condition u(0, t) = 0 ⇒ L[u(0, t)] = 0. Substituting in equation (28) yields
√ √ 1
0= A(s)e− s·0 + B(s)e s·0 + sin(0) ⇒ A(s) + B(s) = 0. Therefore, equation (28)
s + π2
reduces to
√ √ 1
L [u(x, t)] = A(s)e− sx
− A(s)e sx
+ sin(πx) (22)
s + π2
From the condition u(2, t) = 0 ⇒ L[u(2, t)] = 0. Substituting in equation (29) yields
√ √ 1 ( √ √ )
0= A(s)e−2 s− A(s)e2 s
+ sin(2π) ⇒ A(s) e −2 s − e2 s = 0 ⇒ A(s) = 0.
s + π2
1
Therefore, equation (29) reduces to L [u(x, t)] = sin(πx). Taking the inverse Laplace
s + π2
transform we have
[ ]
−1 1
= e−π t sin(πx)
2
u(x, t) = sin(πx)L 2
s+π

∂2u ∂2u
(b) Solve the wave equation = 4 using Laplace transform method subject to the conditions
∂t2 ∂x2
u(0, t) = 0, u(5, t) = 0, u(x, 0) = 0 and ut (x, 0) = 5 sin(πx).

Solution
Taking the Laplace transform, with respect to t, on both sides yields
[ ] [ ]
∂2u ∂2u d2
L 2
= 4L ⇒ s2 L [u(x, t)] − su(x, 0) − ut (x, 0) = 4 L [u(x, t)]
∂t ∂x2 dx2

d2
Applying the initial conditions, we obtain sL [u(x, t)] − 5 sin(πx) = 4 L [u(x, t)].
dx2
( )
d2
⇒ 4 2 − s2 L [u(x, t)] = −5 sin(πx) (23)
dx

Equation (23) is a non-homogeneous linear second order with constant coefficient.


d ∂2
Let D = ⇒ D2 = . Then in terms of the D operator, equation (23) becomes
dx ∂x2
( )
4D2 − s2 L [u(x, t)] = −5 sin(πx) (24)
( ) s
The auxiliary equation is 4D2 − s2 = 0 ⇒ D = ± . Thus the complementary solution of
2
equation (27) is
Lc [u(x, t)] = A(s)e−sx/2 + B(s)esx/2 ,
where A(s) and B(s) are constants to be determined. The particular solution of equation (27)
is given by
1 5
Lp [u(x, t)] = [−5 sin(πx)] = 2 sin(πx).
4D2 − s2 s + 4π 2
Therefore, the complete solution of equation (27) is L [u(x, t)] = Lc [u(x, t)] + Lp [u(x, t)] i.e.,
5
L [u(x, t)] = A(s)e−sx/2 + B(s)esx/2 + sin(πx) (25)
s2 + 4π 2

40
From the condition u(0, t) = 0 ⇒ L[u(0, t)] = 0. Substituting in equation (28) yields
5
0= A(s)e−s·0/2 + B(s)es·0/2 + sin(0) ⇒ A(s) + B(s) = 0. Therefore, equation (28)
s2 + 4π 2
reduces to
5
L [u(x, t)] = A(s)e−sx/2 − A(s)esx/2 + sin(πx) (26)
s2 + 4π 2
From the condition u(5, t) = 0 ⇒ L[u(5, t)] = 0. Substituting in equation (29) yields
5s 5s ( )
− 5
0 = A(s)e 2 − A(s)e 2 + 2 sin(5π) ⇒ A(s) e −5s/2 − e5s/2 = 0 ⇒ A(s) = 0.
s + 4π 2
5
Therefore, equation (29) reduces to L [u(x, t)] = 2 sin(πx). Taking the inverse Laplace
s + 4π 2
transform we have
[ ] [ ]
−1 5 5 2π
u(x, t) = sin(πx)L = sin(πx)L−1 ·
s2 + 4π 2 2π s2 + (2π)2
5
= sin(πx) sin(2πt)

Exercise:
∂u ∂2u
(a) Use Laplace transform to solve the 1D heat equation = c2 2 subject to the initial and
∂t ∂x
boundary conditions u(x, 0) = 5; u(0, t) = 10; u(x, t) → 0 as x → ∞.

Solution
∂u ∂2u
Given: = c2 2 . Applying the Laplace Transform we get
∂t ∂x
[ ] [ ]
∂u ∂2u2
L = c L
∂t ∂x2
d2
⇒ sL [u(x, t)] − u(x, 0) = c2L [u(x, t)]
dx2
d2
⇒ sL [u(x, t)] − 5 = c2 2 L [u(x, t)]
( ) dx
d2
⇒ c2 − s L [u(x, t)] = −5 (27)
dx2

d ( )
Let D = . Then, c2 D2 − s L [u(x, t)] = −5.
dx
( )
write c2 D2 − s Lc [u(x, t)] = 0. The auxiliary equation is
i) Complementary solution: we √
( 2 2 ) s
c D −s =0 ⇒ D =± . Thus CF of equation (27) is
c
√ √
s s
Lc [u(x, t)] = A(s)e− c
x
+ B(s)e c x
1 5
ii) Particular integral: we write Lp [u(x, t)] = (−5) =
(c2 D2 − s) s
Hence, the general solution of equation (27) is
√ √
s s 5
L [u(x, t)] = A(s)e− c
x
+ B(s)e c x+ (28)
s
From the condition

u(∞,

t) = 0 ⇒ L[u(∞, t)] = 0. Substituting in equation (28) yields
s s 5
0 = A(s)e− c ∞ + B(s)e c ∞ + ⇒ B(s) = 0. Therefore, equation (28) reduces to
s

s 5
L [u(x, t)] = A(s)e− c
x
+ (29)
s

41
10
From the condition u(0, t) = 10 ⇒ L[u(0, t)] = L[10] = . Substituting in equation (29)
√ s
10 s 5 5
yields = A(s)e− c 0 + ⇒ A(s) = . Therefore, equation (29) reduces to
s s s
 √   √    √  
− s
x − s
x − s
x [ ]
e c 1 e c 1 e c 1 
L [u(x, t)] = 5  +  ⇒ u(x, t) = 5L−1  +  = 5 L−1   + L−1
s s s s s s

[ ] [ √ ]
1 e−a s [ ( )]
Recall: L−1 = 1 and L−1 = 1 − erf a

2 t
, where erf is the error function.
s s
[ ( )]
x
∴ u(x, t) = 5 2 − erf √
2c t
∫z
2
e−x dx.
2
→ Note: the error function is defined by erf (z) = √
π
0
( ) ( )
(b) Using Laplace transform, show that y(x, t) = b cos λ t − xc H t − xc is the solution to the 1D
wave equation ytt = c2 yxx (∗) subject to the following initial and boundary conditions:

Boundary conditions: y(0, t) = b cos(λt), y(∞, t) < ∞


Initial conditions: y(x, 0) = 0, yt (x, 0) = 0

Solution
Taking the Laplace transform of equation (∗) wrt t we have L[ytt ] = c2 L[yxx ]
d2
⇒ s2 L[y(x, t)] − sy(x, 0) − yt (x, 0) = c2 2 L[y(x, t)]
dx
Using the Initial Conditions we have
( )2
d2 s s s
L[y(x, t)] − L[y(x, t)] = 0 ⇒ (D − )(D + )L[y(x, t)] = 0
dx2 c c c
The general solution of this ODE is given by

L[y(x, t)] = A(s)e c x + B(s)e− c x , (∗)′


s s

where A(s) and B(s) are arbitrary functions. To determine A(s) and B(s), we apply the Bound-
ary Conditions as follows:

From y(∞, t) < ∞: taking Laplace transform wrt t yields L[y(∞, t)] < ∞. Putting x = ∞ in
equation (∗)′ , we get

L[y(∞, t)] = A(s)e c ∞ + B(s)e− c ∞ = Ae c ∞ < ∞


s s s
⇒ A(s) = 0

So equation (∗)′ reduces to

L[y(x, t)] = B(s)e− c x (∗)′′


s

From y(0, t) = b cos(λt): taking Laplace transform wrt t yields

bs
L[y(0, t)] = bL[cos(λt)] =
s2 + λ2
Putting x = 0 in equation (∗)′′ , we get

bs
L[y(0, t)] = B(s)e− c ·0 = B(s)
s
⇒ B(s) =
s2 + λ2

42
Substituting in equation (∗)′′ we have

bs
e− c x − − − (i)
s
L[y(x, t)] =
s2 +λ 2

Recall from the second shifting theorem that if L [f (t)] = F (s), then

L [f (t − a) · H(t − a)] = F (s)e−sa − − − (ii)


{
1, if t > a
where the unit step function (Heaviside function) is defined as H(t − a) = .
0, if t < a
Comparing equations (i) and (ii) we have

bs x
y(x, t) = f (t − a) · H(t − a), F (s) = and a =
s2 +λ 2 c
So,
[ ] ( ) ( )
bs x x
f (t) = L−1 [F (s)] = L−1 = b cos λt ⇒ f (t − a) = f t − = b cos λ t −
s + λ2
2 c c
Therefore, ( ) ( )
x x
y(x, t) = b cos λ t − H t−
c c
This result represents a wave traveling to the right along the string with velocity c.
∂y ∂y
(c) Use Laplace transform to solve +x = 0 subject to the following initial and boundary
∂x ∂t
conditions: y(x, 0) = 0; y(0, t) = t.

Solution
Taking the Laplace transform of the given equation wrt t we have
[ ] [ ]
∂y ∂y
L + xL =0
∂x ∂t
[ ]
∂  
:0
⇒ L [y(x, t)] + x sL [y(x, t)] −  
y(x, 0) = 0
∂x
d
⇒ L [y(x, t)] + xsL [y(x, t)] = 0 (30)
dx
∂z ∂z
Let z = L [y(x, t)]. Then, + sxz = 0 ⇒ + sx∂x = 0. Integrating yields
∂x z
x2 x2 x2
ln z + s = A(s) ⇒ ln z = A(s) − s ⇒ z = A(s)e−s 2 ,
2 2
where A(s) is a constant of integration. Hence, the general solution of equation (30) is
x2
L [y(x, t)] = A(s)e−s 2 (31)
1
From the condition y(0, t) = t ⇒ L[y(0, t)] = L[t] = 2 . Substituting in equation (31) yields
s
1 02 1
2
= A(s)e−s 2 ⇒ A(s) = 2 . Therefore, equation (31) reduces to
s s
1 −s x2
L [y(x, t)] = e 2 − − − (i)
s2
Recall from the second shifting theorem that if L [f (t)] = F (s), then

L [f (t − a) · H(t − a)] = F (s)e−sa − − − (ii)

43
{
1, if t ≥ a
where the unit step function (Heaviside function) is defined by H(t − a) = .
0, if t < a
Comparing equations (i) and (ii) we have

1 x2
y(x, t) = f (t − a) · H(t − a), F (s) = and a =
s2 2
So, ( ) ( )
[ ]
−1 −1 1 x2 x2
f (t) = L [F (s)] = L =t ⇒ f (t − a) = f t − = t−
s2 2 2
Therefore, ( ) ( )
x2 x2
y(x, t) = t− H t−
2 2

∂u ∂2u
(d) [Assignment 2 ] Use Laplace transform to solve the boundary value problem = 4 2 subject
∂t ∂x
to the conditions: u(0, t) = u(3, t) = 0 and u(x, 0) = 10 sin(2πx) − 6 sin(4πx).
∂u ∂u
(e) Use Laplace transform method to solve the equation + = x, x > 0, t > 0 with initial and
∂x ∂t
(t − x)2 t2
boundary condition: u(x, 0) = 0 and u(0, t) = 0. [ans: u(x, t) = H (t − x) − + xt]
2 2
∂u ∂2u
(f) Use the method of Laplace transform to solve the heat equation = , 0 < x < 2, t > 0
∂t ∂x2
subject to the conditions u(0, t) = 0, u(2, t) = 0 and u(x, 0) = 3 sin(2πx). [ans:
u(x, t) = 3e−4π t sin(2πx)]
2

∂2u ∂2u
(g) Solve the 1D wave equation = + sin(πx), 0 < x < 1, t > 0 using Laplace transform
∂t2 ∂x2
subject to the following initial and boundary conditions: u(x, 0) = 0; ut (x, 0) = 0; u(0, t) =
1
0; u(1, t) = 0. [ans: u(x, t) = 2 [1 − cos(πt)] sin(πx)]
π
(h) Solve by Laplace transform;

i) ux + ut + u = 0, x > 0, t > 0 subject to u(0, t) = 0 t > 0 and u(x, 0) = 0 x > 0. [ans:


u(x, t) = e−t [cos t sin x − cos x sin t − sin(t − x) · H(t − x)]]
ii) ux + 2xut = 2x, u(x, 0) = 1, u(0, t) = 1. [ans: u(x, t) = 1 + t − (t − x2 ) · u(t − x2 )]
∂u ∂u
(i) Using the Laplace transform method, solve the partial differential equation = u− . Subject
∂t ∂x
to the initial condition u(x, 0) = e−7x , x > 0, t > 0. [15 mks]

Lecture 11

5.1.3 Fourier transform


Fourier transform is useful when the domain of definition with respect to x and t are −∞ < x < ∞
and −∞ < t < ∞. The Fourier integral of a function f (x) defined on the interval (−∞, ∞) is given
by:
∫∞
1
f (x) = [A(ω) cos(ωx) + B(ω) sin(ωx)] dω, (32)
π
0

where the Fourier coefficients are defined by


∫∞ ∫∞
A(ω) = f (t) cos(ωt)dt and B(ω) = f (t) sin(ωt)dt
−∞ −∞

44
Substituting the Fourier coefficients in equation (32) yields:
∫∞ ∫∞
1
f (x) = f (t) [cos(ωt) cos(ωx) + sin(ωt) sin(ωx)] dtdω − − − (I)
π
0 −∞

In order to motivate the definition of Fourier transform, we first express complex form of the Fourier
integral as follows. Using the identity cos(AB) = cos A cos B + sin A sin B, we write the integral (I)
as.
∫∞ ∫∞
1
f (x) = f (t) [cos ω(x − t)] dtdω
π
0 −∞

eiθ + e−iθ
Since cos θ = , we obtain
2
∫∞ ∫∞ [ ]
1
f (x) = f (t) eiω(x−t) + e−iω(x−t) dtdω

0 −∞
∫∞ ∫∞ ∫∞ ∫∞
1 1
= f (t)e iω(x−t)
dtdω + f (t)e−iω(x−t) dtdω
2π 2π
0 −∞ 0 −∞

Replacing ω by −ω in the second term on the right hand side and adjusting limits from −∞ to 0, we
obtain
 
∫∞ ∫∞ ∫∞  ∫∞ 
1 1
f (x) = f (t)eiω(x−t) dtdω = e−iωt f (t)dt eiωx dω
2π 2π  
−∞ −∞ −∞ −∞

which is the complex form of the Fourier integral of f . This leads to following pair of transforms.
Definition 5.1.1 (Fourier transform). The Fourier transform of a function f (x), with respect to x,
is defined by
∫∞
F [f (x)] = e−iωx f (x)dx .= U (ω), (−∞ < ω < ∞)
−∞

provided this integral exists.


Similarly, the Fourier transform of a function u(x, t) for −∞ < x < ∞, with respect to x is given by
∫∞
F [u(x, t)] = e−iωx u(x, t)dx = U (ω, t), (−∞ < ω < ∞ and t > 0)
−∞

Example(s):
Find the Fourier transform of the function defined by
{
1 for |x| ≤ L,
f (x) =
0 for |x| > L

Solution
Using the definition of Fourier transform, we have
∫∞ ∫L
−iωx
F [f (x)] = e f (x)dx = e−iωx dx, (since |x| ≤ L)
−∞ −L
( )
1 [ −iωx ]L 2 eiωL − e−iωL 2
= − e = = sin(ωL)
iω −L ω 2i ω

→ Note: only functions that tend to zero sufficiently fast as x → ±∞ (rapidly decreasing to zero
functions) have Fourier transform. Thus, the nonzero constant function C, sin x, ex and x2 do not
have Fourier transform.

45
Definition 5.1.2 (Inverse Fourier transform). The inverse Fourier transform of a function U (ω), for
−∞ < ω < ∞, is defined as
∫∞
−1 1
F [U (ω)] = f (x) = U (ω)eiωx dω, (−∞ < x < ∞)

−∞

provided this integral exists.

→ Note: ω = 2πf represents the angular frequency, f being the oscillation frequency.

Theorem 5.1 (Convolution theorem). If F −1 [U (ω)] = f (x) and F −1 [G(ω)] = g(x), then
∫∞
−1
F [U (ω)G(ω)] = f (s)g(x − s)ds
−∞

Fourier transform of partial derivatives

Let u = u(x, t) be a function defined for −∞ < x < ∞ and t ≥ 0. If u(x, t) → 0 as x → ±∞, and
F [u(x, t)] = U (ω, t), then the Fourier transform of ux (x, t), with respect to x, is
∫∞
∂u
F [ux (x, t)] = e−iωx dx. Integration by parts yields:
∂x
−∞
[ ]∞ ∫∞
−iωx
= u(x, t)e + iω e−iωx u(x, t)dx = iωU (ω, t).
−∞
−∞

If, in addition, ux (x, t) → 0 as x → ±∞, then the Fourier transform of uxx (x, t), with respect to x, is
∫∞ [ ]
−iωx ∂ ∂u
F [uxx (x, t)] = e dx. Integration by parts yields:
∂x ∂x
−∞
[ ]∞ ∫∞
−iωx
= ux (x, t)e + iω e−iωx ux (x, t)dx
−∞
−∞
= iω {F [ux (x, t)]} = iω {iωU (ω, t)]} = −ω 2 U (ω, t).

Similarly, the Fourier transform of ut (x, t) and utt (x, t), with respect to x, are given by
∫∞ ∫∞
−iωx ∂u d d d
F [ut (x, t)] = e dx = e−iωx u(x, t)dx = F [u(x, t)] = U (ω, t)
∂t dt dt dt
−∞ −∞
∫∞ 2u ∫∞
−iωx ∂ d2 d2 d2
F [utt (x, t)] = e dx = e−iωx u(x, t)dx = F [u(x, t)] = U (ω, t)
∂t2 dt2 dt2 dt2
−∞ −∞

Example(s):

1. An infinitely long string extending from −∞ < x < ∞ under tension is displaced into a curve
u = f (x) and let go from rest. Find the displacement u(x, t) of the string at any point at any
subsequent time.

Solution
The PDE to be solved is the 1D wave equation

∂2u 2
2∂ u
= c , −∞ < x < ∞, t > 0 − − − (∗)
∂t2 ∂x2

46
subject to the initial conditions:

u(x, 0) = f (x) and ut (x, 0) = 0, −∞ < x < ∞

with u(x, t) → 0, ux (x, t) → 0 as x → ±∞, t > 0.

Taking the Fourier transform of both sides of equation (∗) with respect to x, we obtain
[ ] [ ]
∂2u 2 ∂2u
F = c F
∂t2 ∂x2
or
∫∞ [ ]
d2 −iωx ∂ ∂u
F [u(x, t)] = c2 e dx. Use integration by parts
dt2 ∂x ∂x
−∞
 
 ∞ ∫∞  ∫∞

−iωx −iωx ∂u ∂u
= 2
c ux (x, t)e + iω e 2
dx = ic ω e−iωx dx
 −∞ ∂x  ∂x
−∞ −∞
 
 ∞ ∫∞  ∫∞
−iωx −iωx
= ic ω2
u(x, t)e + iω e u(x, t)dx = −c ω
2 2
e−iωx u(x, t)dx
 −∞ 
−∞ −∞

d2
⇒ F [u(x, t)] = −c2 ω 2 F [u(x, t)]
dt2
d
Let the differential operator D = . Then, in terms of the D operator, the above differential
dt
equation becomes
[D2 + c2 ω 2 ]F [u(x, t)] = 0
The root of the auxiliary equation are D = ±ikω. Thus, the general solution is given by

F [u(x, t)] = A(ω) cos(kωt) + B(ω) sin(kωt) − − − (∗∗)

Applying the initial conditions u(x, 0) = f (x) ⇒ F [u(x, 0)] = F [f (x)] = U (ω), yields
U (ω) = A(ω). Hence, equation (∗∗) becomes

F [u(x, t)] = U (ω) cos(cωt) + B(ω) sin(cωt) − − − (∗ ∗ ∗)

Applying the initial conditions ut (x, 0) = 0 ⇒ F [ut (x, 0)] = 0, yields 0 = B(ω). Hence,
equation (∗ ∗ ∗) becomes
F [u(x, t)] = U (ω) cos(cωt)
Taking the inverse Fourier transform, we get
∫∞
−1 1
u(x, t) = F [U (ω) cos(cωt)] = U (ω) cos(cωt)eiωx dω

−∞
∫∞ ( )
1 eicωt + e−icωt
= U (ω) eiωx dω
2π 2
−∞
∫∞ ( )
1
= U (ω) eiω(x+ct) + eiω(x−ct) dω

−∞
 
∫∞ ∫∞
1 1 1 
= U (ω)eiω(x+ct) dω + U (ω)eiω(x−ct) dω
2  2π 2π 
−∞ −∞
1
= {f (x + ct) + f (x − ct)}
2

47
In obtaining this result, we have used the fact that the Fourier integral representation of the
∫∞
1
function f (x) can be written as: f (x) = U (ω)eiωx dω.

−∞

Exercise:
∫∞
1
f (s)e−(x−s) /4kt ds
2
2. Use the complex form of the Fourier transform to show that u(x, t) = √
2 πkt
−∞
is a solution of the BVP below, governing the heat conduction in a very long metal bar which
extends from −∞ to ∞.

ut = kuxx ; u(x, 0) = f (x), −∞ < x < ∞.

Solution
The 1D heat conduction equation is subject to the boundary conditions:

u(−∞, t) = u(∞, t) = 0 and ux (−∞, t) = ux (∞, t) = 0, t > 0

and initial conditions:

u(x, 0) = f (x) and ut (x, 0) = 0, −∞ < x < ∞

Taking the Fourier transform of the given equation with respect to x, we get
[ ] [ ]
∂u ∂2u
F = kF
∂t ∂x2
or
∫∞ [ ]
d ∂ ∂u
F [u(x, t)] = k e−iωx dx. Use integration by parts
dt ∂x ∂x
−∞
 
 ∞ ∫∞ 
∂u
= k ux (x, t)e−iωx + iω e−iωx dx
 −∞ ∂x 
−∞
  
 ∞ ∞ ∫∞ 

= k ux (x, t)e−iωx + iω u(x, t)e−iωx + iω e−iωx u(x, t)dx
 −∞ −∞ 
−∞

{[ ]∞ }
d −iωx
⇒ F [u(x, t)] = k {ux (x, t) + iωu(x, t)} e − ω F [u(x, t)]
2
dt −∞

Applying the boundary conditions yields


d
F [u(x, t)] = −kω 2 F [u(x, t)]
dt
d
Let the differential operator D = . Then, in terms of the D operator, the above differential
dt
equation becomes
[D + kω 2 ]F [u(x, t)] = 0
The root of the auxiliary equation is D = −kω 2 . Thus, the general solution is given by

F [u(x, t)] = A(ω)e−kω t − − − (∗)


2

Applying the initial conditions u(x, 0) = f (x) ⇒ F [u(x, 0)] = F [f (x)] = U (ω), yields
U (ω) = A(ω). Hence, equation (∗) becomes

F [u(x, t)] = U (ω)e−kω


2t

48
Taking the inverse Fourier transform, we get
[ ]
u(x, t) = F −1 U (ω)e−kω
2t

If we can find a function g(x, t) whose Fourier transform with respect to x is G(ω, t) = e−kω t ,
2

then we can write

u(x, t) = F −1 [U (ω)G(ω, t)], where U (ω) = F [f (x)]

and conclude from the convolution theorem that


∫∞
u(x, t) = f (s)g(x − s, t)ds − − − (i)
−∞

Now, we find g(x, t) by evaluating the integral


∫∞ ∫∞
1 1
e−kω t · eiωx dω
iωx 2
g(x, t) = G(ω, t)e dω =
2π 2π
−∞ −∞
∫∞
1
e−kω t [cos ωx + i sin ωx] dω
2
=

−∞
∫∞
1
e−kω t cos ωxdω (since e−kω t sin ωx is an odd function of ω).
2 2
=

−∞
∫∞
1
e−kω t cos ωxdω (since e−kω t cos ωx is an even function of ω).
2 2
=
π
0

We now introduce a new variable of integration by making the substitution


z 1
z 2 = kω 2 t ⇒ ω=√ ⇒ dω = √ dz
kt kt
Hence, we get
∫∞ ( )
1 −z 2 xz
g(x, t) = √ e cos √ dz
π kt kt
0
∫∞
1 x
e−z cos(uz)dz,
2
= √ where u = √ .
π kt kt
0
1
= √ I, − − −(ii)
π kt
∫∞
e−z cos(uz)dz. This is an elementary function which can be determined explicitly.
2
where I =
0
Thus,
∫∞
dI
ze−z sin(uz)dz
2
=−
du
0

Using −z dz. Thus, dp = u cos(uz)dz and 2


∫ integration by parts: put p = sin(uz) and dv = ze
1
v = ze−z dz = − e−z . Hence,
2 2

2
   
∞ ∫∞
  [ 1 ]∞ ∫∞ 
dI u
= − pv − vdp = − − e−z sin(uz) e−z cos(uz)dz
2 2
+
du  0   2 0 2 
0 0
∫∞
u u
e−z cos(uz)dz = − I
2
= −
2 2
0

49
dI u
Therefore, we obtain the ordinary differential equation = − I, whose general solution is
du 2
∫∞ √
−u 2 /4 −z 2 π
given by I = Ce , where C is an arbitrary constant. Now, I(0) = e dz = .
2
√ 0
π
Applying this initial condition, we get C = . Hence,
2

π −u2 /4
I= e
2
Substituting in equation (ii), we obtain

1 π −u2 /4 1
e−x /4kt
2
g(x, t) = √ · e = √
π kt 2 2 πkt
Therefore,
1
e−(x−s) /4kt
2
g(x − s, t) = √
2 πkt
Substituting in equation (i), we get
∫∞
1
f (s)e−(x−s)
2 /4kt
u(x, t) = √ ds
2 πkt
−∞

3. A bar whose surface is insulated has a length of 3 units and diffusivity 2 units. If the ends are
kept at temperature zero units and initial temperature is u(x, 0) = 5 sin(4πx) − 3 sin(8πx), find
the temperature distribution at any point x at any time t using Fourier transform.

5.1.4 Fourier sine and cosine transforms


When f (x) is an even function on the interval (−∞, ∞), then the product f (x) cos(ωx) is also an even
function whereas f (x) sin(ωx) is an odd function. As a consequence B(ω) = 0 and
∫∞
A(ω) = 2 f (t) cos(ωt)dt
0

Hence, the Fourier integral (32) reduces to the simpler form


 
∫∞ ∫∞ ∫∞ 
1 2
f (x) = A(ω) cos(ωx)dω = f (t) cos(ωt)dt cos(ωx)dω
π π  
0 0 0

Similarly, when f (x) is an odd function on the interval (−∞, ∞), then the product f (x) cos(ωx) is
also an odd function whereas f (x) sin(ωx) is an even function. Thus, A(ω) = 0 and
∫∞
B(ω) = 2 f (t) sin(ωt)dt
0

Hence, the Fourier integral (32) reduces to the simpler form


 
∫∞ ∫∞ ∫∞ 
1 2
f (x) = B(ω) sin(ωx)dω = f (t) sin(ωt)dt sin(ωx)dω
π π  
0 0 0

From these Fourier integrals, we define the following Fourier transform pairs.
Definition 5.1.3 (Fourier cosine transform). The Fourier transform of an even function f is called
Fourier cosine transform of f , and is defined as:
∫∞
Fc [f (x)] = f (x) cos(ωx)dx = U (ω), (0 ≤ ω < ∞)
0

50
The inverse Fourier cosine transform of a function U (ω), for 0 ≤ ω < ∞, is defined as
∫∞
2
Fc−1 [U (ω)] = f (x) = U (ω) cos(ωx)dω, (0 ≤ x < ∞)
π
0

Definition 5.1.4 (Fourier sine transform). The Fourier transform of an odd function f is called
Fourier sine transform of f , and is defined as:
∫∞
Fs [f (x)] = f (x) sin(ωx)dx = U (ω), (0 ≤ ω < ∞)
0

The inverse Fourier sine transform of a function U (ω), for 0 ≤ ω < ∞, is defined as
∫∞
2
Fs−1 [U (ω)] = f (x) = U (ω) sin(ωx)dω, (0 ≤ x < ∞)
π
0

→ Note: the Fourier cosine and sine transforms are appropriate for problems over semi-infinite inter-
vals (i.e., when the range of the variables selected extends from 0 to ∞) in a spatial variable in which
the function or its derivative are prescribed on the boundary.

Example(s):
Find the Fourier sine transform and Fourier cosine transform of the function defined by
{
1 if 0 ≤ x ≤ 2,
f (x) =
0 if x > 2

Solution

i) Using the definition of Fourier sine transform of f (x) with respect to x, we have

∫∞ ∫2
Fs [f (x)] = f (x) sin(ωx)dx = sin(ωx)dx, (since 0 ≤ x ≤ 2)
0 0
1[ ]2 1
= − cos(ωx) = [1 − cos(2ω)]
ω 0 ω

ii) Using the definition of Fourier cosine transform of f (x) with respect to x, we have

∫∞ ∫2
Fc [f (x)] = f (x) cos(ωx)dx = cos(ωx)dx, (since 0 ≤ x ≤ 2)
0 0
1[ ]2 sin(2ω)
= sin(ωx) =
ω 0 ω

Fourier cosine and sine transform of partial derivatives

Let u = u(x, t) be a function defined for 0 ≤ x < ∞ and t ≥ 0. If u(x, t) → 0 as x → ∞, then

i) Fourier sine transform of ux (x, t), with respect to x, is


∫∞
∂u
Fs [ux (x, t)] = sin(ωx) dx. Integration by parts yields:
∂x
0
[ ]∞ ∫∞
= u(x, t) sin(ωx) −ω u(x, t) cos(ωx)dx = −ωFc [ux (x, t)]
0
0

51
If, in addition, ux (x, t) → 0 as x → ∞, then the Fourier sine transform of uxx (x, t), with respect
to x, is written as follows:
∫∞ [ ]
∂ ∂u
Fs [uxx (x, t)] = sin(ωx) dx. Integration by parts yields:
∂x ∂x
0
[ ]∞ ∫∞ ∫∞
∂u ∂u
= ux (x, t) sin(ωx) −ω cos(ωx) dx = −ω cos(ωx) dx. Integrate by parts.
0 ∂x ∂x
0 0
 
[ ]∞ ∫∞ 
= −ω u(x, t) cos(ωx) +ω u(x, t) sin(ωx)dx
 0 
0
= ωu(0, t) − ω 2 Fs [u(x, t)]

Similarly, the Fourier sine transform of ut (x, t) and utt (x, t), with respect to x, are given by
∫∞ ∫∞
∂u d d d
Fs [ut (x, t)] = sin(ωx) dx = u(x, t) sin(ωx)dx = Fs [u(x, t)] = Us (ω, t)
∂t dt dt dt
0 0
∫∞ ∫∞
∂2u d2 d2 d2
Fs [utt (x, t)] = sin(ωx) 2
dx = u(x, t) sin(ωx)dx = F s [u(x, t)] = Us (ω, t)
∂t dt2 dt2 dt2
0 −∞

ii) Fourier cosine transform of ux (x, t) and uxx (x, t), with respect to x, are given by
∫∞
∂u
Fc [ux (x, t)] = cos(ωx) dx. Integration by parts yields:
∂x
0
[ ]∞ ∫∞
= u(x, t) cos(ωx) +ω u(x, t) sin(ωx)dx = −u(0, t) + ωFs [ux (x, t)]
0
0

∫∞ [ [ ] ]∞ ∫∞
∂ ∂u ∂u
Fc [uxx (x, t)] = cos(ωx) dx = ux (x, t) cos(ωx) + ω sin(ωx) dx
∂x ∂x 0 ∂x
0 0
∫∞
∂u
= −ux (0, t) + ω sin(ωx) dx. Integrate by parts again.
∂x
0
 
[ ]∞ ∫∞ 
= −ux (0, t) + ω u(x, t) sin(ωx) −ω u(x, t) cos(ωx)dx
 0 
0
= −ux (0, t) − ω 2 Fc [u(x, t)]

Similarly, the Fourier cosine transform of ut (x, t) and utt (x, t), with respect to x, are given by
∫∞ ∫∞
∂u d d d
Fc [ut (x, t)] = cos(ωx) dx = u(x, t) cos(ωx)dx = Fc [u(x, t)] = Uc (ω, t)
∂t dt dt dt
0 0
∫∞ ∫∞
∂2u d2 d2 d2
Fc [utt (x, t)] = cos(ωx) dx = u(x, t) cos(ωx)dx = F c [u(x, t)] = Uc (ω, t)
∂t2 dt2 dt2 dt2
0 −∞

→ Note: The choice of cosine or sine transform is decided by the form of the boundary conditions at
the lower limit of the variable selected. For instance, if u(0, t) is given as a boundary condition, the
Fourier sine transform is appropriate. On the other hand, if ux (0, t) is given as a boundary condition,
the Fourier cosine transform is suitable.

Example(s):

52
1. consider the 1D heat conduction equation in a semi-infinite metal bar 0 ≤ x < ∞. The PDE
which governs this process is written as

ut = kuxx , 0 ≤ x < ∞, t > 0,

where k is the thermal diffusivity of the metal bar, with boundary conditions u(0, t) = u0 , t > 0
and initial condition u(x, 0) = 0, x > 0. Find the temperature at any time t and position x.

Solution
Since the temperature u(0, t) = u0 is given when x = 0, the Fourier sine transform is appropriate
for this problem. We define
∫∞
Fs [u(x, t)] = u(x, t) sin(ωx)dx = Us (ω, t)
0

Taking the Fourier sine transform of the given equation, we get


∫∞ ∫∞
Fs [ut ] = kFs [uxx ] ⇒ ut sin(ωx)dx = k uxx sin(ωx)dx
0 0

d [ ]
⇒ Fs [u(x, t)] = k ωu(0, t) − ω 2 Fs [u(x, t)]
dt
d
⇒ Fs [u(x, t)] + kω 2 Fs [u(x, t)] = kωu0 ,
dt
d
which is an ODE. Let D = . Then in terms of the D operator, the above ODE becomes
dt
(D + kω 2 )Fs [u(x, t)] = kωu0

The general solution is given by


u0
Fs [u(x, t)] = A(ω)e−kω t +
2

ω
u0
Applying the initial condition u(x, 0) = 0 ⇒ Fs [u(x, 0)] = 0 yields A(ω) = − . Hence,
ω
u0 ( )
1 − e−kω t
2
Fs [u(x, t)] =
ω
Taking the inverse Fourier sine transform, we obtain
[ )] ∫∞
u0 ( 2u0 ( ) sin(ωx)
Fs−1 −kω 2 t
1 − e−kω t
2
u(x, t) = 1−e = dω
ω π ω
0
∫∞ ∫∞
2u0 sin(ωx) 2u0 sin(ωx)
e−kω
2t
= dω − dω
π ω π ω
0 0
 
∫∞  ∫∞
2u0 π 2u0 −kω 2 t sin(ωx) 2 −kω 2 t sin(ωx) 
= · − e dω = u0 1 − e dω
π 2 π ω  π ω 
0 0

The infinite integral can be expressed in terms of the error function by using the well-known
result
∫∞
π −u2 /λ2
e−λ x cos(2ux)dx =
2 2
e

0
and integrating with respect to u from 0 to u. Therefore,
[ ( )]
x
u(x, t) = u0 1 − erf √
2 kt

53
2. The steady-state temperature in a semi-infinite plate is determined from

∂2u ∂2u
+ 2 = 0, y > 0
∂x2 ∂y

subject to the conditions u(0, y) = 0, u(π, y) = e−y and uy (x, 0) = 0. Solve for u(x, y).

Solution
The domain of the variable y and the prescribed condition at y = 0 indicate that the Fourier
cosine transform is suitable for the problem. We define
∫∞
Fc [u(x, y)] = u(x, y) cos(ωy)dy = Uc (x, ω)
0

Taking the Fourier cosine transform of the given equation, we get


[ ] [ ]
∂2u ∂2u
Fc + F c = Fc [0]
∂x2 ∂y 2

d2
⇒ Fc [u(x, y)] − ω 2 Fc [u(x, t)] − uy (x, 0) = 0
dx2
d2
⇒ Fc [u(x, y)] − ω 2 Fc [u(x, t)] = 0
dx2
Since the domain of x is a finite interval, we choose to write the solution of the above ODE as

Fc [u(x, y)] = C1 cosh(ωx) + C2 sinh(ωx)

Applying the boundary condition u(0, y) = 0 ⇒ Fc [u(0, y)] = 0, we obtain C1 = 0. Hence,

Fc [u(x, y)] = C2 sinh(ωx)

Applying the boundary condition u(π, y) = e−y .


∫∞
[ −y ] 1
⇒ Fc [u(π, y)] = Fc e = e−y cos(ωy)dy =
1 + ω2
0

1
Thus, we obtain C2 = . Hence,
(1 + ω 2 ) sinh ωπ

sinh(ωx)
Fc [u(x, y)] =
(1 + ω 2 ) sinh ωπ

Taking the inverse Fourier cosine transform, we obtain


[ ] ∫∞
sinh(ωx) 2 sinh(ωx) cos ωy
u(x, t) = Fc−1 2
= dω
(1 + ω ) sinh ωπ π (1 + ω 2 ) sinh ωπ
0

54

You might also like