Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
30 views12 pages

Pde Intro

The document introduces partial differential equations (PDEs), focusing on three canonical equations: the Heat Equation, the Wave Equation, and the Laplace Equation. It details the derivation and solution methods for the Heat Equation, including separation of variables and boundary conditions, and briefly discusses the Wave Equation and its derivation. The document emphasizes the lack of a general solution method for PDEs, necessitating individual approaches for each equation.

Uploaded by

coder.spidey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views12 pages

Pde Intro

The document introduces partial differential equations (PDEs), focusing on three canonical equations: the Heat Equation, the Wave Equation, and the Laplace Equation. It details the derivation and solution methods for the Heat Equation, including separation of variables and boundary conditions, and briefly discusses the Wave Equation and its derivation. The document emphasizes the lack of a general solution method for PDEs, necessitating individual approaches for each equation.

Uploaded by

coder.spidey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Partial Differential Equations

An Introduction
Tyler McMillen

1 Introduction
A partial differential equation (PDE) is an equation of a function of 2 or more variables, involving 2
or more partial derivatives in different variables. Unlike the case for ordinary differential equations,
(ODE’s) there is no complete theory for solving a general PDE – equations must be solved “one at
a time.”
Although there is no general method for solving an arbitrary PDE, there are several “canonical”
equations which arise in many different contexts and have been studied extensively. We will look
at three canonical equations which are ubiquitous in mathematics:

1) The Heat Equation:


∂u
− k ∇2 u = 0
∂t
2) The Wave Equation:
∂2u
− c2 ∇2 u = 0
∂t2
3) The Laplace Equation:
∇2 u = 0

Notation:
∂u
= ∂x u = ux
∂x

 ∂x2 1 − D
2
∇ =△=∇·∇= ∂x + ∂y2 2 − D
2
 2
∂x + ∂y2 + ∂z2 3 − D

2 The Heat Equation

∂u ∂2u
= k (one dimension) (1)
∂t ∂x2
∂u
= k ∇2 u (multi-dimensional) (2)
∂t
The heat equation (2) governs the dispersal of heat or diffusion of a substance. It is also
sometimes called the diffusion equation.

1
2.1 Derivation of the Heat Equation
We will derive the 1-D heat equation ut − k uxx = 0. Derivation of the equation in more dimensions
is analogous. Consider a long, thin tube filled with water, with a concentration of dye present in
the water. If the tube is much longer than the diameter of the tube, we may approximate the
tube as one-dimensional. We model the diffusion of the dye through the tube. Let u(x, t) be the
concentration of the dye in the tube at position x at time t. In the section of the tube from x0 to
x1 , the mass M (t) of dye at time t is (see figure 1)
Z x1 Z x1
dM
M (t) = u(x, t)dx, so = ut (x, t)dx.
x0 dt x0

The mass in this section of the tube cannot change except by flowing in or out of its ends. Fick’s
Law says that the rate of change of the total mass is the difference between the flow in and the
flow out of the section of the tube:
total mass M bet
ween
x and x
0 1

flow out flow in

x0 x1

Figure 1: Flow in a tube.

The flow of dye across a given point in the tube is just the change in concentration across that
point, or in other words, the x derivative of the concentration. In terms of the concentration, then,
dM
= flow in − flow out = k ux (x1 , t) − k ux (x0 , t),
dt
where k is a proportionality constant. In the case where we are considering heat, instead of
concentration, we can think of heat as flowing in and out of a section of the tube. The previous
two equations are equal: Z x1
ut (x, t)dx = kux (x1 , t) − kux (x0 , t).
x0

Differentiating with respect to x1 , we get

ut = k uxx ,

the heat equation.

2.2 Solving the Heat Equation – Separation of Variables


The heat equation (1) is linear and homogeneous (there are only terms involving u and its
derivatives). This means that if u1 (x, t) and u2 (x, t) are two solutions of (1), then

c1 u1 + c2 u2

is also a solution for any constants c1 and c2 . We will find a general solution to a particular problem
by adding up infinitely many solutions. This is a favorite mathematician’s trick: reduce a hard
problem to a series of easy problems.

2
To derive the equation, suppose the ends of the tube of water with some dye in it are placed
in a large bath of water, so that the concentrations of the dye at the ends of the tube are held
essentially constant. We may assume the constant is zero by setting v = u − a and solving for v,
where a is the constant concentration at the ends. Let the initial concentration of dye in the tube
be described by a function φ(x) which tells us the concentration at any point x. To make things
simple, let’s assume that the ends of the tube are x = 0 and x = 1. (This assumption can, in
fact, always be made, since we can re-scale if necessary.) Then the following initial/boundary value
problem governs the diffusion of the dye in the tube:

 ut − k uxx = 0 0<x<1
u(0, t) = u(1, t) = 0 (“Dirichlet” boundary conditions) (3)

u(x, 0) = φ(x)

(Note: This equation also governs the temperature u of a fluid in a tube with initial temperature
φ(x), where the ends of the tube are held at temperature 0.)
We look for a solution of (3) of the form

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

where X is a function that depends only on x and T is a function that depends only on t. This
is called separation of variables because we are separating out the x and t dependencies. There
is no guarantee that this will work for any given equation, but it is often a good thing to try.
Substituting this into (3),
XT ′ − k X ′′ T = 0
X ′′
Dividing by kXT and adding X to both sides, we get

T′ X ′′
= .
kT X
Now, notice that the LHS of the above equation depends only on t, while the RHS depends only
on x. So the only way they can both be equal is if they are both constant. Let’s call the constant
they are both equal to −λ (the minus sign is there just to make things easier in the end). Then we
get
T′ X ′′
= = −λ.
kT X
Now we actually have two equations:

T ′ = −λk T , X ′′ + λX = 0 ,
√ √
which have solutions T (t) = A e−λkt , X(x) = B cos( λx) + C sin( λx) .

A, B and C are constants of integration. Now u(x = 0, t) = u(x = 1, t) = 0 implies that


X(0) = X(1) = 0, so it must be that B = 0, but λ can take on any of the values

λ = nπ , n = 0, 1, 2, 3, . . . .

For each integer n, there is a λ that satisfies the equation. These values of λ are called the
eigenvalues. We label them according to n as

λ = λn = n 2 π 2 .

Corresponding to each n, there is a solution of the X equation,

Xn (x) = sin(nπx).

3
(We absorb C into the other coefficients.) For each λn there is also the corresponding T solution:
2 π2 t
Tn (x) = An e−k n
2 2
So what do we have? Well, for each n, un = Xn Tn = An e−k n π t sin(nπx) solves ut − k uxx = 0.
Since the sum of solutions is another solution, the sum of all the solutions is also a solution:

X
u(x, t) = un
n=0
X∞
= Xn Tn
n=0
X∞
2 π2 t
= An e−k n sin(nπx) (4)
n=0

This (4) is the solution to (3) as long as it satisfies the initial condition. That is, if

X ∞
X
u(x, 0) = φ(x) = Xn (x)Tn (0) = An sin(nπx). (5)
n=0 n=0

In other words, as long as we can find a sequence of numbers An that satisfies the above (5), then
we have solved the equation. Actually, as long as φ is piecewise continuously differentiable (it has
a continuous derivative on all but a finite number of points), we can find An to satisfy (5), and
thus solve the heat equation (3) completely! This remarkable fact is due to what is called the
“completeness” of the trigonometric functions on the space of piecewise continuously differentiable
functions. Equation (5) is actually just the Fourier sine expansion of φ(x).
That’s nice, but does it do us any good? In order to be useful, we must be able to actually
determine the constants An . In fact, we can. To find An , multiply (5) by sin(mπx), then integrate
from 0 to 1: Z 1 X∞ Z 1
φ(x) sin(mπx)dx = An sin(nπx) sin(mπx)dx
0 n=0 0

Now we use the fact that


Z 1  1
2 if n = m
sin(nπx) sin(mπx)dx =
0 0 if n 6= m

We then deduce that Z 1


Am = 2 φ(x) sin(mπx)dx,
0
which gives us the last piece of the solution to (3).

Example: Suppose k = 1, and the initial density is

φ(x) = sin(πx)

Examine (5) to convince yourself that A1 = 1 and Am = 0 m 6= 1. Then the solution to (3) is
2
u(x, t) = e−π t sin(πx).

The concentration of the dye (or temperature) decreases exponentially to zero, as seen in Figure 2.

4
1

0.9

0.8

0.7
t=0
0.6

0.5

0.4
t=0.1

0.3

0.2 t=0.2
0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Figure 2: Solution of the heat equation at various times.

2.3 Different Boundary Conditions


If in (3) we used the boundary conditions

ux (0, t) = ux (1, t) = 0,

called Neumann boundary conditions, we would get a cosine series instead of a sine series. The
final solution (try it!) would be
X 2 2
u(x, t) = A0 + An e−n π t cos nπx.

This corresponds to restricting the flow of dye out of the tube - ux = 0 means the concentration is
not changing in the x direction. Thus the concentration approaches the constant A0 exponentially.
You can solve the equation (3) with a variety of different boundary conditions and get variations
on the solution we obtained. In each case we use the orthoganality of the trig functions and the
facts:
Z 1 Z 1  1
sin(nπx) sin(mπx)dx = cos(nπx) cos(mπx)dx = 2 m=n
0 0 0 m 6= n
Z 1
sin(nπx) cos(mπx)dx = 0 all m, n
0

We will not look here at diffusion on the whole real line, which requires a different technique.

3 The Wave Equation


∂2u
− c2 ∇2 u = 0 (6)
∂t2
The wave equation (6) governs the propagation (you guessed it!) of waves through a medium,
e.g. light, water waves, plucked strings, etc.

3.1 Derivation of the Wave Equation


We will derive the wave equation for a 1-D string undergoing small transverse vibrations in a plane.
At each point x the string has an amplitude u(x, t) at time t. If the string is pulled (plucked) out

5
of its equilibrium shape, a tension T (x, t) will be exerted at each point of the string, exerting a
force on the string that is tangential to the string. The slope of the string at each point is ux (x, t).
We write down Newton’s law (F=ma) for the part of the string between any two points x0 and x1 .
Let ρ be the (constant) density of the string.

u
θ0 θ1

T0 T1

x
x0 x1

Figure 3: Tension on a string

We assume that there is no motion of the string in the x-direction. Then we can write Newton’s
law in its longitudinal and transverse components, respectively:

T cos θ1 − T0 cos θ0 = 0
|1 {z }
x component of force on section of string
rate of change of momentum
T1 sin θ1 − T0 sin θ0 =
| {z } of section of string
y component of force on section of string
Next we use the fact that the tangent angle θ between the tangent to the curve and x-axis is
1 ux
cos θ = p , sin θ = p .
2
1 + ux 1 + u2x
Then we write Newton’s laws in terms of ux :
x1
T
p = 0
1 + u2x x0
x1 Z x1
T ux d2
and p = ρu dx.
1 + u2x dt2 x0
x0

The RHS’s are the components of the mass times the acceleration integrated over the piece of string.
(There is no longitudinal motion.) Now we assume that the motion is small, or in particular that
|ux | is small. We then use the approximation
p
1 + u2x ≈ 1.

We also assume that T is constant (in x and t). Differentiating the second equation with respect
to x1 , we get
(T ux )x = ρ utt
q
With c = Tρ this is just
utt = c2 uxx ,
the wave equation!

6
3.2 Solving the Wave Equation – D’Alembert’s Formula
Notice that the wave equation is second order and linear. Thus we will need two auxilary (initial
or boundary) conditions to specify a unique solution. Linearity and homogeneity imply that if u1
and u2 are two solutions of (6), then αu1 + βu2 is also a solution for any constants α and β.
Let’s examine the one-dimensional wave equation on the whole real line (−∞ < x < ∞). The
equation then governs the amplitude of an infinitely long vibrating string. We need two initial
conditions. We will take as given the profiles of the initial amplitude and velocity of the string.
The problem then is to solve

utt − c2 uxx = 0 − ∞ < x < ∞
(7)
u(x, 0) = φ(x) ut (x, 0) = ψ(x)

We write
utt − c2 uxx = (∂t − c∂x )(∂t + c∂x )u = 0
This implies that
ut − cux = 0 or ut + cux = 0 (8)
These equations are examples of the “transport equation,”

avt + bvx = 0 (9)

which governs the flow of a one-dimensional fluid. To solve (9) we notice that along the lines
x(t) = ab t + x0 , called the characteristic lines,
d
dt v(x(t), t) = vt + vx dx
dt
= vt + vx ab
= 0.

so v is constant on the characteristic lines. Thus, on any of these lines v has the same value as at
x(0) = x0 . Therefore
v(x, t) = v(x(o), t = 0)
= v(x − ab t, 0)
= h(x − ab t)
is a solution for any (differentiable) function h. You can verify that this actually does solve the
transport equation (9) and that if h(x) is the initial condition of (9), it satisfies the initial conditions
as well.
Now back to the wave equation. The two equations (8) we can now solve as we did the transport
equation. We obtain respectively

u1 (x, t) = f (x + ct) and u2 (x, t) = g(x − ct)

as solutions to (8) for any f, g. Both of these solve the wave equation, utt − c2 uxx = 0, thus their
sum also solves it. Thus, the general solution is

u(x, t) = f (x + ct) + g(x − ct) (10)

Now to satisfy the initial conditions. We calculate

u(x, 0) = φ(x) = f (x) + g(x)


ut (x, 0) = ψ(x) = cf ′ (x) − cg′ (x)
⇒ f ′ = 12 (φ′ + 1c ψ)
and g′ = 12 (φ′ − 1c ψ)

7
Integrating, we obtain Z s
1 1
f (s) = φ(s) + ψ(s)ds + A, and
2 2c 0
Z s
1 1
g(s) = φ(s) − ψ(s)ds + B
2 2c 0
A and B are arbitrary, but since φ = f + g, A + B = 0. Combining these facts we obtain the
solution to the wave equation (6).
Z x+ct
1 1
u(x, t) = [φ(x + ct) + φ(x − ct)] + ψ(s)ds (11)
2 2c x−ct

Equation (11) is the famous D’Alembert formula for the solution to the wave equation, due to the
Frenchman, circa 1746. Notice that u is the sum of a left travelling f (x + ct) and right travelling
g(x − ct) wave. If ψ = 0 then each have the same shape as the initial profile of the wave, but 1/2
the amplitude.

3.3 The Wave Equation on a Finite Interval – Separation of Variables


Of course, there is no such thing as an infinitely long string. So let’s now examine the more
physically realistic situation of a string in a finite interval. Suppose we have a string (such as a
guitar or violin string) clamped at it’s endpoints x = 0 and x = 1. We give the string an intial
profile φ(x) (a pluck) and velocity ψ(x). Then the equation governing the string’s amplitude is

 utt − c2 uxx = 0 0<x<1
u(0) = u(1) = 0 (Dirichlet boundary conditions) (12)

u(x, 0) = φ(x), ut (x, 0) = ψ(x)

As we did with the heat equation, we try the separation of variables technique and look for a
solution of the form
u(x, t) = X(x)T (t)
Then
XT ′′ − c2 X ′′ T = 0
Dividing by c2 XT , we get
T ′′ X ′′
= = −λ
c2 T X
λ must, of course, be constant. We thus arrive at the two equations:

T ′′ + c2 λT = 0√ √ X ′′ + λX = 0 √ √
T (t) = A cos(c λt) + B sin(c λt) X(x) = C cos( λx) + D sin( λx)

Again, u(0) = u(1) = 0 ⇒ X(0) = X(1) = 0 which implies that A = 0, and



λ = nπ ⇒ λn = n2 π 2

where n is an integer are the only allowed values of λ. Thus for each n we have the X and T
solutions
Xn (x) = sin(nπx), Tn (t) = An cos(cnπt) + Bn sin(cnπt)

8
The Tn ’s are the “harmonics” of the string. Each un = Xn Tn solves the wave equation. The sum

X
u(x, t) = Xn (x)Tn (t)
n=0
X∞
= [An cos(cnπt) + Bn sin(cnπt)] sin(nπx) (13)
n=0

is also a solution. Equation (13) is the solution if it satisfies the initial conditions, i.e. if

X ∞
X
u(x, 0) = φ(x) = Xn (x)Tn (0) = An sin(nπx)
n=0 n=0

and

X ∞
X
ut (x, 0) = ψ(x) = Xn Tn′ (0) = Bn cnπ sin(nπx)
n=0 n=0

Again, as long as φ and ψ are piecewise continuously differentiable, then we can find An and Bn
to satisfy these equations. As we did for the heat equation we find
Z 1 Z 1
2
Am = 2 φ(x) sin(mπx)dx and Bm = ψ(x) sin(mπx)dx (14)
0 cmπ 0

Thus, with (13) and (14) we have the complete solution to the wave equation (12).

Example: Suppose we have the initial conditions

φ(x) = sin(πx), ψ(x) = 0

This corresponds to the situation where the string is plucked, but not given any initial velocity.
We find that Bm = 0 for all m, A1 = 1 and Am = 0 for m 6= 1. Thus the solution is:

u(x, t) = sin(πx) cos(cπt)

The string vibrates in time indefinitely with frequency of oscillation c/2. By changing the tension
in the string you change the frequency of oscillation – this is intuitively obvious, but the equation
tells us quantitatively how to change the frequency.

3.4 Other Boundary Conditions


Another typical boundary condition is

ux (0, t) = ux (1, t) = 0,

the Neumann boundary condition. This corresponds to the case where the ends of the string are
allowed to move along a rod, but the angle of the string is held constant at the ends. In this case
we get a cosine series instead of a sine series.

9
4 The Laplace Equation
∇2 u = 0 (15)
Although a simple looking equation, the Laplace equation arises in numerous contexts in
mathematics. A function which satisfies it (15) is called a harmonic function. In order to
specify a solution to (15) in a certain domain D, we must know the conditions on the boundary of
D, ∂D (the boundary conditions). Thus, the Laplace equation is usually posed as:

∇2 u = 0 in D
(16)
u(~x) = h(~x) on ∂D

or something like this, where h is some given function. In general, this equation is very difficult
to solve analytically unless D has a high degree of symmetry, for example if D is a circle, wedge,
annulus or rectangle. We will look at one example shortly.

Contexts in which Laplace’s Equation Arises

1) Complex Variables: If f (z) = f (x + iy) = u(x, y) + iv(x, y) is analytic (differentiable)


then u and v are both harmonic functions. Conversely, if u is a harmonic function then there
is a harmonic function v such that f = u + iv is analytic. For example, f (z) = z 2 is analytic.
f (x + iy) = x2 − y 2 + i2xy, so u(x, y) = x2 − y 2 and v(x, y) = 2xy are both harmonic. (Check it!)
2) Electrostatics: From Maxwell’s equations, one has ∇ × E = 0 and ∇ · E = 4πρ, where ρ is
the charge density. The first equation implies E = −∇φ for a scalar function φ (called the electric
potential). Therefore,
∇2 φ = ∇ · ∇φ = −∇ · E = −4πρ.
If the charge density is zero (empty space) this is Laplace’s equation.
3) Steady Fluid Flow: Assume that the flow of a fluid is irrotational (no eddies) so that
∇ × v = 0, where v is the velocity of the fluid, assumed independent of time. Assume that the
fluid is incompressible (e.g. water) and that there are no sources or sinks. Then ∇ · v = 0. Hence
v = −∇φ for some φ (called the velocity potential) and ∇2 φ = ∇ · v = 0, which is Laplace’s
equation again.
4) Steady States: In general, Laplace’s equation describes a steady state, or ground state. For
example, in the heat equation, if u is not changing in time (∂t u = 0) then we just have Laplace’s
equation. This means that the equilibrium state of a diffused substance is described by the Laplace
equation.

Laplace’s Equation in a Box

Consider the simple example of the 2-D problem in a box:


 2
 ∇ u = uxx + uyy = 0 0 < x, y < 1
u(0, y) = u(1, y) = u(x, 1) = 0 (17)

u(x, 0) = φ(x)

This problem corresponds to the equilibrium temperature inside a box where all sides are held at
temperature 0 except the bottom side. We try the separation of variables technique again and look
for a solution of the form u(x, y) = X(x)Y (y). Substituting this into (17), we get

X ′′ Y + XY ′′ = 0

10
Dividing by XY we obtain
X ′′ Y ′′
=− = −λ
X Y
where λ is constant. We have the two equations:

X ′′ + λX = 0 √ √ Y ′′ − λY = 0 √ √
X(x) = A cos( λx) + B sin( λx) Y (y) = C cosh( λy) + D sinh( λy)

Now, u(0, y) = u(1, y) = 0 ⇒ X(0) = X(1) = 0, which implies that A = 0 and



λ = nπ ⇒ λ = λn = n2 π 2

where n is an integer are the only allowed values (the eigenvalues) of λ. For each n we have the X
and Y solutions

Xn (x) = sin( λx), Yn (y) = Cn cosh(nπy) + Dn sinh(nπy)

Now, u(x, 1) = 0 ⇒ Y (1) = 0, which implies that

Dn = −Cn coth(nπ)

All we need now are the Cn ’s. These will be determined by φ(x). We take the sum of all the
solutions un = Xn Yn to get
n=∞
X
u(x, t) = Xn (x)Yn (y)
n=0
n=∞
X
= Cn sin(nπx)[cosh(nπy) − coth(nπ) sinh(nπy)] (18)
n=0

To find the Cn ’s we do as before:


n=∞
X n=∞
X
u(x, 0) = φ(x) = Xn (x)Yn (0) = Cn sin(nπx)
n=0 n=0

Multiplying by sin(mπx) and integrating, we arrive at the following formula for Cm :


Z 1
Cm = 2 φ(x) sin(mπx)dx (19)
0

Thus (18) and (19) furnish us with the solution of the Laplace equation (17).
In this simple case we have found a solution. However, for more general boundary conditions
the separation of variables technique will not work. (Try it!) Imagine, then, trying to solve the
problem in an irregularly shaped region instead of a box. In fact, this is an advanced problem for
which much research has been devoted. Analytical solutions are generally not possible, so research
has been mostly involved with trying to find good numerical techniques for approximating the
solution.

(A few) General Properties of Harmonic Functions:

11
Although we cannot in general solve the equation analytically, we can make qualitative
statements about the behavior of the solution to the general Laplace equation (16). We state
two of these (without proof) here:
1) The maximum/minimum principle: Suppose u solves (16), where D is connected, and
that u is continuous on D ∪ ∂D. Then the maximum and minimum values of u are achieved on ∂D
and nowhere in D, unless u is constant.
2) Differentiability: Suppose u is harmonic in an open set D. Then u possesses all partial
derivatives of all orders in D, i.e. u is infinitely differentiable in D.
3) Mean Value Property: (In 2-D) Let u be a harmonic function in a disk D, continuous
on its closure D ∪ ∂D. Then the value of u at the center of D equals the average of u on its
circumference. If D is the disk centered at the origin, with radius a,
Z
~ 1
u(0) = u(~x)ds
2πa |~x|=a

Analagous statements exist for all dimensions.


4) Dirichlet’s Principle: If we define the energy as
Z
1
E(u) = |∇u|2 dx,
2 D

then among all functions which satisfy u(x) = h(x) on ∂D, the one that minimizes the energy E is
the one that is harmonic in D.

12

You might also like