WWW - Math.iitb - Ac.in/ Swapneel/207: Partial Differential Equations
WWW - Math.iitb - Ac.in/ Swapneel/207: Partial Differential Equations
Swapneel Mahajan
www.math.iitb.ac.in/˜swapneel/207
1
1 Power series
For instance,
∞
X 1 1 1
(x−1) = 1+ (x−1)+ (x−1)3 +. . .
n
n=0
n+1 2 3
2
A power series centered at 0 has the form
∞
X
an xn = a0 + a1 x + a2 x2 + . . . .
n=0
For instance,
∞
X 1 n 1 1 3
x = 1 + x + x + ...
n=0
n+1 2 3
3
What can we do with a power series?
4
Lemma. Suppose a power series centered at x0
converges for some real number x1 6= x0 . Let
|x1 − x0 | = r.
Then the power series is convergent for all x such that
|x − x0 | < r.
That is, the power series is convergent in the open
interval of radius r centered at x0 .
{x | |x − x0 | < R}.
5
We assume from now on that R > 0.
A power series determines a function in its interval of
convergence.
6
Hence
and in general,
f (n) (x0 )
an = .
n!
7
2 Real analytic functions
8
Let f : U → R be a real-valued function on an open
set U .
that is,
∞
X
f (x) = an (x − x0 )n
n=0
holds in some open interval around x0 .
9
Corollary. Suppose f is real analytic on U .
f (n) (x0 )
an = .
n!
Just like continuity or differentiability, real analyticity is a
local property.
10
Example. Polynomials such as x3 − 2x + 1 are real
analytic on all of R.
For instance,
1 + 2x + x2 = 4 + 4(x − 1) + (x − 1)2 .
11
Fact. A power series is real analytic in its interval of
convergence.
12
Example. The sine, cosine and exponential functions
are real analytic on all of R.
x3 x5
sin(x) = x − + + ...
3! 5!
x2 x4
cos(x) = 1 − + + ...
2! 4!
x 2 x3
ex = 1 + x + + + ....
2! 3!
One can show that these identities are valid for all x.
For example,
π3 π5
sin(π) = π − + + ....
3! 5!
13
Example. Consider the function
1
f (x) = 2
.
1+x
It is real analytic on all of R.
This is possible.
14
Even though a function is real analytic, one may not be
able to represent it by just one power series.
15
Example. The function f (x) = x1/3 is defined for all
x.
It is not differentiable at 0 and hence not real analytic at
0.
However it is real analytic at all other points.
For instance,
16
Example. The function
e−1/x2 if x =
6 0,
f (x) =
0 if x = 0,
is infinitely differentiable.
17
For a function f , never say “convergence of f ”, instead
say “convergence of the Taylor series of f ”.
18
3 Solving a linear ODE by the power
series method
y 0 − y = 0, y(0) = 1.
19
This yields the equations
a1 = a0 , 2a2 = a1 , 3a3 = a2 , . . . .
In general,
(n + 1)an+1 = an for n ≥ 0.
a1 = 1, a2 = 1/2, a3 = 1/6, . . . .
In general,
an = 1/n!.
Thus
∞
X 1 n
y(x) = x
n=0
n!
which we know is ex .
20
Example. Consider the first order linear ODE
y 0 − 2xy = 0, y(0) = 1.
and a1 = 0.
So all odd coefficients are zero.
21
For the even coefficients, put n = 2k .
This yields
This yields
a2k = 1/k!.
Thus
∞
X 1 2k
y(x) = x
k=0
k!
2
which we know is ex .
22
Example. Consider the second order linear ODE
y 00 + y = 0.
Solving we obtain
x2 x4 x3 x5
y(x) = a0 (1− + +. . . )+a1 (x− + +. . . ).
2! 4! 3! 5!
Thus,
y(x) = a0 cos(x) + a1 sin(x).
23
Consider the following initial value problem.
y(x0 ) = y0 , y 0 (x0 ) = y1 .
Here x0 , y0 and y1 are fixed real numbers.
24
Theorem. Under the above conditions, there is a
unique solution to the initial value problem in the
interval (x0 − r, x0 + r), and moreover it can be
represented by a power series
∞
X
y(x) = an (x − x0 )n
n=0
25
Moreover, there is an algorithm to compute the power
series representation of y .
It works as follows.
26
This result generalizes to any n-th order linear ODE
with the first n − 1 derivatives at x0 specified.
p(x)y 0 + q(x)y = 0.
27
Example. Consider the function
f (x) = (1 + x)p
28
Comparing coefficients yields the recursion:
p−n
an+1 = an for n ≥ 0.
n+1
Since a0 = 1, we see that
p(p − 1) p(p − 1)(p − 2)
a1 = p, a2 = , a3 = ,....
2 6
This shows that
p p(p − 1) 2
(1 + x) = 1 + px + x + ....
2
This is the binomial theorem and we just proved it.
29
Given a function f , it is useful to know whether it
satisfies an ODE.
30
Example. Consider the second order linear ODE
y 00 + y 0 − 2y = 0.
bn = n!an ,
so we obtain
31
We now guess that bn = λn is a solution.
This yields the quadratic
λ2 + λ − 2 = 0
bn = α + β (−2)n ,
1 (−2)n
an = α + β .
n! n!
So the general solution to the ODE is
32
4 Inner product spaces
• addition
v + w, v, w ∈ V,
and
• scalar multiplication
cv, c ∈ R, v ∈ V.
33
4.2 Inner product spaces
h , i : V × V → R,
34
4.3 Orthogonality
35
Example. Consider the vector space Rn .
For example,
is an orthogonal basis of R3 .
36
The previous example can be formulated more
abstractly as follows.
Example. Let V be a finite-dimensional vector space
with basis {e1 , . . . , en }.
Pn Pn
For u = i=1 ai ei and v = i=1 bi ei , let
n
X
hu, vi := ai bi .
i=1
37
Lemma. Suppose V is a finite-dimensional inner
product space, and e1 , . . . , en is an orthogonal basis.
Then for any v ∈V,
n
X hv, ei i
v= ei .
i=1
hei , ei i
Pn
Proof. To see this, write v = i=1 ai ei .
Thus,
hv, ej i
aj =
hej , ej i
as required.
38
Lemma. In a finite-dimensional inner product space,
there always exists an orthogonal basis.
39
4.4 Length of a vector and Pythagoras
theorem
kv + wk ≤ kvk + kwk,
kavk = |a|kvk,
for all v, w ∈ V and a ∈ R.
40
Theorem. For orthogonal vectors v and w in any inner
product space,
kv + wk2 = hv + w, v + wi
= hv, vi + hv, wi + hw, vi + hw, wi
= hv, vi + hw, wi
= kvk2 + kwk2 .
41
5 Legendre equation
We assume p ≥ −1/2.
42
5.1 General solution
The coefficients
43
We apply the power series method to the Legendre
equation
That is,
(n+2)(n+1)an+2 −[n(n−1)+2n−p(p+1)]an = 0.
That is,
(n+2)(n+1)an+2 −[n(n+1)−p(p+1)]an = 0.
That is,
(n − p)(n + p + 1)
an+2 = an .
(n + 2)(n + 1)
This is valid for n ≥ 0, with a0 and a1 arbitrary.
44
Thus, the general solution to the Legendre equation in
the interval (−1, 1) is given by
p(p+1) 2 (p(p−2)(p+1)(p+3) 4
y(x)=a0 (1− 2!
x + 4!
x +... )
(p−1)(p+2) 3 (p−1)(p−3)(p+2)(p+4) 5
+a1 (x− 3!
x + 5!
x +... ).
45
5.2 Legendre polynomials
This solution is valid for all x, not just for x ∈ (−1, 1).
46
The first few values are as follows.
m Pm (x)
0 1
1 x
1
2 (3x2 − 1)
2
1
3 (5x3 − 3x)
2
1
4 (35x4 − 30x2 + 3)
8
1
5 (63x5 − 70x3 + 15x)
8
47
Their graphs in the interval (−1, 1) are given below.
48
5.3 Second solution to the Legendre
equation when p is an integer
For p = 0, it is
x3 x5 1 Ä1 + xä
x+ + + · · · = log .
3 5 2 1−x
For p = 1, it is
x2 x4 x6 1 Ä1 + xä
1− − − − · · · = 1 − x log .
1 3 5 2 1−x
These nonpolynomial solutions for any nonnegative
integer p always have a log factor of the above kind
and hence are unbounded near both +1 and −1.
49
5.4 The vector space of polynomials
The set
{1, x, x2 , . . . }
is a basis of the vector space of polynomials.
50
The vector space of polynomials carries an inner
product defined by
Z 1
hf, gi := f (x)g(x)dx.
−1
51
5.5 Technique of derivative transfer
(f g)(b) = (f g)(a),
then
Z b Z b
f g 0 dx = − f 0 gdx.
a a
52
5.6 Orthogonality of the Legendre
polynomials
53
Proof. We will only prove orthogonality.
Suppose m 6= n.
Since Pm (x) solves the Legendre equation for
p = m, we have
0 0
((1 − x2 )Pm ) + m(m + 1)Pm = 0.
54
Interchanging the roles of m and n,
Z 1 Z 1
0
− (1 − x2 )Pm Pn0 + n(n + 1) Pm Pn = 0.
−1 −1
55
5.7 Rodrigues formula
For instance,
d 2
q1 (x) = (x − 1) = 2x.
dx
56
Proposition. We have
1 Ä d än 2
Pn (x) = n (x − 1)n .
2 n! dx
Equivalently,
1
Pn (x) = n
qn (x).
2 n!
This is known as Rodrigues formula.
57
Proof. We sketch a proof of Rodrigues formula.
58
To understand the method, let us take m = 2 and
n = 5.
Z 1
D2 (x2 − 1)2 D5 (x2 − 1)5 dx
−1
Z 1
=− D3 (x2 − 1)2 D4 (x2 − 1)5 dx
−1
Z 1
=+ D4 (x2 − 1)2 D3 (x2 − 1)5 dx
−1
Z 1
=− D5 (x2 − 1)2 D2 (x2 − 1)5 dx
−1
= 0.
59
Transfer m + 1 of the n derivatives in qn (x) to qm (x).
Z 1
Dm (x2 − 1)m Dn (x2 − 1)n dx
−1
Z 1
=− Dm+1 (x2 − 1)m Dn−1 (x2 − 1)n dx
−1
Z 1
= · · · = (−1)m D2m (x2 −1)m Dn−m (x2 −1)n dx
−1
Z 1
= (−1)m+1 D2m+1 (x2 −1)m Dn−m−1 (x2 −1)n dx = 0,
−1
60
We deduce that Pn (x) and qn (x) are scalar multiples
of each other.
61
5.8 Square-integrable functions
62
5.9 Fourier-Legendre series
63
This allows us to expand any square-integrable function
f (x) on [−1, 1] in a series of Legendre polynomials
X
cn Pn (x),
n≥0
where
hf, Pn i
cn =
hPn , Pn i
Z 1
2n + 1
= f (x)Pn (x)dx.
2 −1
64
Example. Consider the function
1 if 0 < x < 1,
f (x) =
−1 if − 1 < x < 0.
3 7 11
P1 (x) − P3 (x) + P5 (x) − . . . .
2 8 16
By the Legendre expansion theorem (stated below),
this series converges to f (x) for x 6= 0 and to 0 for
x = 0.
65
Let us go back to the general case.
66
A useful result in this direction is the Legendre
expansion theorem:
Theorem. If both f (x) and f 0 (x) have at most a finite
number of jump discontinuities in the interval [−1, 1],
1
(f (x− ) + f (x+ )) for − 1 < x < 1,
2
converges to f (−1+ ) at x = −1, and
converges to f (1− ) at x = 1.
In particular, the series converges to f (x) at every
point of continuity.
67
6 Ordinary and singular points
68
A singular point x0 is called regular if after dividing
throughout by p(x) the ODE can be written in the form
00 b(x) 0 c(x)
y + y + 2
y = 0,
x − x0 (x − x0 )
where b(x) and c(x) are real analytic around x0 .
69
7 Cauchy-Euler equation
x2 y 00 + b0 xy 0 + c0 y = 0,
Assume x > 0.
Note that y = xr solves the equation if
r(r − 1) + b0 r + c0 = 0,
that is,
r2 + (b0 − 1)r + c0 = 0.
70
Let r1 and r2 denote the roots of this quadratic
equation.
71
8 Fuchs-Frobenius theory
x2 y 00 + xb(x) y 0 + c(x) y = 0,
where
X X
n
b(x) = bn x and c(x) = cn xn
n≥0 n≥0
Restrict to x > 0.
Assume a solution of the form
X
r
y(x) = x an xn , a0 6= 0,
n≥0
with r fixed.
72
Substitute in the ODE and equate the coefficient of xr
to obtain
r(r − 1) + b0 r + c0 = 0,
that is,
r2 + (b0 − 1)r + c0 = 0.
Let us denote the quadratic by I(r).
73
Equating the coefficient of xr+1 , we obtain
74
Theorem. The ODE has as a solution for x >0
X
r1
y1 (x) = x (1 + an xn )
n≥1
75
8.1 Roots not differing by an integer
76
Example. Consider the ODE
2x2 y 00 − xy 0 + (1 + x)y = 0.
2 3r 1
r − + = 0.
2 2
The roots are r1 = 1 and r2 = 1/2.
Their difference is not an integer.
77
The general recursion is
(2(r+n)(r+n−1)−(r+n)+1)an +an−1 = 0, n ≥ 1.
That is,
−1
an = an−1 , n ≥ 1
(r + n − 1)(2r + 2n − 1)
For the root r = 1, the recursion simplifies to
−1
an = an−1 , n ≥ 1
(2n + 1)n
leading to the solution for x >0
Ç å
P (−1)n xn
y1 (x)=x 1+ n≥1 (2n+1)n(2n−1)(n−1)...(5·2)(3·1)
.
78
8.2 Repeated roots
79
Treating r as a variable, one can uniquely solve
n−1
X
I(r+n)an + aj ((r+j)bn−j +cn−j ) = 0, n ≥ 1
j=0
starting with a0 = 1.
Since the an depend on r , let us write an (r).
Now consider
Ä X ä
r n
ϕ(r, x) := x 1 + an (r)x .
n≥1
80
For the second solution, take partial derivative of
ϕ(r, x) with respect to r, and then put r = r1 .
∂ϕ(r, x)
y2 (x) =
∂r r=r
1
Ç å
∂ X
= xr an (r)xn
∂r n≥0
r=r1
In particular,
An = a0n (r1 ).
81
Example. Consider the ODE
x2 y 00 + 3xy 0 + (1 − 2x)y = 0.
(n + r + 1)2 an = 2an−1 , n ≥ 1.
Hence
2n
an (r) = 2
a0 .
[(r + 2)(r + 3) . . . (r + n + 1)]
Setting r = −1 (and a0 = 1) yields the fractional
power series solution
1 X 2n n
y1 (x) = 2
x .
x n≥0 (n!)
82
For the second solution:
1 1 1
a0n (r)
Ä ä
= −2an (r) + +· · ·+ , n ≥ 1.
r+2 r+3 r+n+1
Evaluating at r = −1,
2n+1 Hn
a0n (−1) =− ,
(n!)2
where
1 1
Hn = 1 + + ··· + .
2 n
(These are the partial sums of the harmonic series.)
1 X 2n+1 Hn n
y2 (x) = y1 (x) log x − 2
x .
x n≥1 (n!)
83
8.3 Roots differing by an integer
with
d
An = ((r − r2 )an (r)) , n ≥ 1.
dr r=r2
and
K = lim (r − r2 )aN (r).
r→r2
The power series converges in the interval in which
both b(x) and c(x) converge.
It is possible that K = 0.
84
Example. Consider the ODE
xy 00 − (4 + x)y 0 + 2y = 0.
The recursion is
Hence
(n + r − 3) . . . (r − 2)
an (r) = a0 .
(n + r) . . . (1 + r)(n + r − 5) . . . (r − 4)
Setting r = 5 (and a0 = 1) yields the fractional power
series solution
X 60
y1 (x) = xn+5 .
n≥0
n!(n + 5)(n + 4)(n + 3)
85
For the second solution, the ‘critical’ function is
Thus,
1 1 2
1+ x+ x
2 12
also solves the ODE.
86
8.4 Summary
• repeated roots
In the first and third cases, the smaller root also yields
a fractional power series solution.
87
9 Gamma function
88
Z ∞
Γ(1) = e−t dt = 1.
0
For any integer n ≥ 1,
Z x
Γ(n + 1) = lim tn e−t dt
x→∞ 0
Ç Z x å
=n lim tn−1 e−t dt
x→∞ 0
= nΓ(n).
This yields
Γ(n) = (n − 1)!.
Thus the gamma function extends the factorial function
to all positive real numbers.
89
The above calculation is valid for any real p > 0, so
Γ(p + 1) = p Γ(p).
90
Though the gamma function is now defined for all real
numbers (except the nonpositive integers), remember
that the integral representation is valid only for p > 0.
It is useful to rewrite
1 p
= .
Γ(p) Γ(p + 1)
This holds for all p if we impose the natural condition
that the reciprocal of Γ evaluated at a nonpositive
integer is 0.
91
A well-known value of the gamma function at a
non-integer point is
Z ∞ Z ∞
−1/2 −t −s2 √
Γ(1/2) = t e dt = 2 e ds = π.
0 0
92
10 Bessel functions
x2 y 00 + xy 0 + (x2 − p2 )y = 0.
We may assume p ≥ 0.
There is a regular singularity at x = 0.
All other points are ordinary.
93
10.1 Bessel functions of the first kind
r2 − p2 = 0.
and a1 = 0.
So all odd terms are 0.
94
Let us solve this recursion with r as a variable.
(−1)n
a2n (r) = a0 .
((r + 2)2 − p2 )((r + 4)2 − p2 ) . . . ((r + 2n)2 − p2 )
95
The fractional power series solution for the larger root
r1 = p obtained by setting a0 = 1 and r = p is
(−1)n
(x)=xp x2n
P
y1 n≥0 ((p+2)2 −p2 )((p+4)2 −p2 )...((p+2n)2 −p2 )
(−1)n
=xp x2n .
P
n≥0 22n n!(1+p)...(n+p)
(−1)n
Å ãp X Å ã2n
x x
Jp (x) := , x > 0.
2 n≥0
n! Γ(n + p + 1) 2
96
The Bessel function of order 0 is
x2 x4 x6
J0 (x) = 1 − 2 + 2 2 − 2 2 2 + . . .
2 2 4 2 4 6
Å ã2 Å ã4 Å ã6
x 1 x 1 x
=1− + − + ...
2 2!2! 2 3!3! 2
This is similar to cos x.
97
Both J0 (x) and J1 (x) have a damped oscillatory
behavior having an infinite number of zeroes, and
these zeroes occur alternately.
98
10.2 Second independent solution
• 2p is not an integer:
We get a second fractional power series solution.
• p = 0:
We get a log term.
• p is a positive integer:
We get a log term.
99
Case : Suppose 2p is not an integer.
−p
X (−1)n 2n
y2 (x) = x 2n
x .
n≥0
2 n!(1 − p) . . . (n − p)
1
Normalizing by 2−p Γ(1−p) , define
Å ã−p X
(−1)n
Å ã2n
x x
J−p (x) := , x > 0.
2 n≥0
n! Γ(n − p + 1) 2
100
Case : Suppose p is a positive half-integer.
101
Case : Suppose p = 0.
In this case,
(−1)n
a2n (r) = 2 2 2
,
(r + 2) (r + 4) . . . (r + 2n)
and an (r) = 0 for n odd. The first solution is a power
series with coefficients an (0):
X (−1)n
2n
y1 (x) = J0 (x) = 2n 2
x , x > 0.
n≥0
2 (n!)
(−1)n−1 Hn 1 1
a02n (0) = 2n 2
, Hn = 1+ +· · ·+ .
2 (n!) 2 n
Thus, the second solution is
X (−1)n Hn
2n
y2 (x) = J0 (x) log x− 2n 2
x , x > 0.
n≥1
2 (n!)
102
10.3 Summary of p = 0 and p = 1/2
103
√
The substitution u(x) = x y(x) transforms the
Bessel equation into
1 − 4p 2ä
u00 + 1 +
Ä
2
u = 0.
4x
For p = 1/2, this specializes to
u00 + u = 0,
104
10.4 Bessel identities
d p
[x Jp (x)] = xp Jp−1 (x)
dx
d î −p
x Jp (x) = −x−p Jp+1 (x)
ó
dx
2p
Jp−1 (x) + Jp+1 (x) = Jp (x)
x
Jp−1 (x) − Jp+1 (x) = 2Jp0 (x)
105
We prove the first identity.
Recall
(−1)n
Å ãp X Å ã2n
x x
Jp (x) = .
2 n≥0
n! Γ(n + p + 1) 2
Ñ é0
(−1)n
Å ã2n+2p
p 0 p
X x
(x Jp (x)) = 2
n≥0
n! Γ(n + p + 1) 2
X (−1)n (2n + 2p) 1 Å x ã2n+2p−1
= 2p
n≥0
n! Γ(n + p + 1) 2 2
(−1)n
Å ã2n+2p−1
p
X x
=2
n≥0
n! Γ(n + p) 2
(−1)n
Å ãp−1 X Å ã2n
p x x
=x
2 n≥0
n! Γ(n + p) 2
= xp Jp−1 (x).
106
Using the first two identities:
107
The identity
2p
Jp−1 (x) + Jp+1 (x) = Jp (x)
x
can be thought of as a recursion in p.
108
For instance:
1 2 sin x
J 3 (x) = J 1 (x)−J− 1 (x) = −cos x
2 x 2 2 πx x
1 2 cos x
J −3 (x) = − J− 1 (x)−J 1 (x) = − +sin x
2 x 2 2 πx x
3 2 3 sin x 3 cos x
J 5 (x) = J 3 (x)−J 1 (x) = 2
− −sin x
2 x 2 2 πx x x
109
10.5 Zeroes of Bessel function
Fix p ≥ 0.
Let Z (p) denote the set of zeroes of Jp (x).
Fact. The set of zeroes is a sequence increasing to
infinity.
• If p = 1/2, then x2 − x1 = π .
110
The first few zeroes are tabulated below.
111
10.6 Scaled Bessel equation
x2 y 00 + xy 0 + (a2 x2 − p2 )y = 0.
112
10.7 Orthogonality
113
Fix p ≥ 0.
The set of scaled Bessel functions
114
Proof. We prove orthogonality.
1 p2ä 1 p 2ä
u00 + u0 + a2 − 2 u = 0 and v 00 + v 0 + b2 − 2 v = 0
Ä Ä
x x x x
respectively.
1 0
(u0 v − v 0 u)0 + (u v − v 0 u) = (b2 − a2 )uv.
x
Multiplying by x, we obtain
115
Integrating from 0 to 1, we get
Z 1
(b2 − a2 ) xuv dx = u0 (1)v(1) − v 0 (1)u(1).
0
116
10.8 Fourier-Bessel series
Fix p ≥ 0.
Any square-integrable function f (x) on [0, 1] can be
expanded in a series of scaled Bessel functions
Jp (zx) as
X
cz Jp (zx),
z∈Z (p)
where
Z 1
2
cz = 0 x f (x) Jp (zx) dx.
[Jp (z)]2 0
117
Example. Let us compute the Fourier-Bessel series
(for p
= 0) of the function f (x) = 1 in the interval
0 ≤ x ≤ 1.
Z 1
1 1 J1 (z)
x J0 (zx) dx = x J1 (zx) = ,
0 z 0 z
so
2
cz = .
zJ1 (z)
Thus, the Fourier-Bessel series is
X 2
J0 (zx).
zJ1 (z)
z∈Z (0)
118
The Fourier-Bessel series of f (x) converges to f (x)
in norm.
119
11 Fourier series
120
Proposition. The set {1, cos nx, sin nx}n≥1 is a
maximal orthogonal set with respect to this inner
product.
Explicitly,
h1, 1i = 1.
0 if m 6= n,
hcos mx, cos nxi =
1/2 if m = n.
0 if m 6= n,
hsin mx, sin nxi =
1/2 if m = n.
hsin mx, cos nxi = h1, cos nxi = h1, sin mxi = 0.
121
11.2 Fourier series
1 π
Z
an = f (x) cos nxdx, n ≥ 1,
π −π
Z π
1
bn = f (x) sin nx dx, n ≥ 1.
π −π
This is called the Fourier series of f (x).
122
11.3 Pythagoras theorem or Parseval’s
identity
Thus, we have
2 1X 2
kf k = a20 + (an + b2n ).
2 n≥1
123
11.4 Pointwise convergence
1
[f (x+ ) + f (x− )].
2
124
Example. Consider the function
1 if 0 < x < π,
f (x) =
−1 if − π < x < 0.
The value at 0, π and −π is left unspecified. Its
periodic extension is the square-wave.
4Ä sin 3x sin 5x ä
sin x + + + ... .
π 3 5
125
This series converges to f (x) at all points except
integer multiples of π where it converges to 0.
126
In particular, evaluating at x = π/2,
π 4Ä 1 1 1 ä
f( ) = 1 = 1 − + − + ... .
2 π 3 5 7
Rewriting,
1 1 1 π
1 − + − + ··· = .
3 5 7 4
127
Example. Consider the function
f (x) = x2 , −π ≤ x ≤ π.
1
Z π
π 2
a0 = x2 dx = .
2π −π 3
1 π
Z
4 42 if n is even,
2
an = x cos nx dx = 2 cos nπ = n
π −π n − 4 if n is odd.
n2
π2 Ä cos 2x cos 3x ä
− 4 cos x − + − ... .
3 4 9
This series converges to f (x) at all points.
128
Evaluating at x = π,
π 2 Ä 1 1
2
π = + 4 1 + + + . . . ).
3 4 9
This yields the identity
X 1 π2
2
= .
n≥1
n 6
129
11.5 Fourier sine and cosine series
130
For instance, consider the function
π 4 Ä cos x cos 3x ä
− 2
+ 2
+ ...
2 π 1 3
The two series are equal on 0 <x<π
(but different on −π < x < 0).
131
The Fourier cosine series above is the same as the
Fourier series of g(x)= |x|. Note that g 0 (x) equals
the square wave function f (x) discussed before and
the Fourier series of the square wave is precisely the
term-by-term derivative of the Fourier series of g(x).
For instance,
Z π Z π
f 0 (x) sin nxdx = − f (x)(sin nx)0 dx
−π −π
Z π
= −n f (x) cos nxdx
−π
132
11.6 Fourier series for arbitrary periodic
functions
133
12 One-dimensional heat equation
134
The temperature at t = 0 is specified.
This is the initial condition.
We write it as
u(x, 0) = u0 (x).
In addition to the initial condition, there are conditions
specified at the two endpoints of the rod.
135
We consider four different kinds of boundary conditions
one by one.
X 00 (x) T 0 (t)
= = λ (say).
X(x) kT (t)
The equality is between a function of x and a function
of t, so both must be constant. We have denoted this
constant by λ.
136
12.1 Dirichlet boundary conditions
u(0, t) = u(`, t) = 0.
In other words, the endpoints of the rod are maintained
at temperature 0 at all times t.
137
1. λ > 0:
Write λ = µ2 with µ > 0.
X 00 (x) T 0 (t)
= = µ2 .
X(x) kT (t)
Then
µx −µx µ2 kt
X(x) = Ae +Be and T (t) = Ce .
Hence
µ2 kt
u(x, t) = e (Aeµx + Be−µx ),
138
2. λ = 0:
In this case,
X 00 (x) T 0 (t)
= = 0.
X(x) kT (t)
Thus, we have X(x) = Ax + B and T (t) = C .
Hence
u(x, t) = Ax + B.
The boundary conditions give A = 0 = B.
Thus this case also does not yield a nontrivial
solution.
139
3. λ < 0:
Write λ = −µ2 with µ > 0.
X 00 (x) T 0 (t)
= = −µ2 .
X(x) kT (t)
Then
−µ2 kt
X(x) = A cos µx+B sin µx and T (t) = Ce .
Hence
−µ2 kt
u(x, t) = e [A cos µx + B sin µx].
B sin µ` = 0.
140
The general solution is obtained by taking an infinite
linear combination of these solutions:
∞
X
−n2 (π/`)2 kt nπx
u(x, t) = bn e sin .
n=1
`
141
Conclusion: The solution for Dirichlet boundary
conditions is
∞
2 (π/`)2 kt nπx
bn e−n
X
u(x, t) = sin ,
n=1
`
where
Z `
2 nπx
bn = u0 (x) sin dx.
` 0 `
As t increases, the temperature of the rod rapidly
approaches 0 everywhere.
142
12.2 Neumann boundary conditions
143
1. λ > 0:
Write λ = µ2 with µ > 0.
Then
µx −µx µ2 kt
X(x) = Ae +Be and T (t) = Ce .
144
2. λ = 0:
In this case we have X(x) = Ax + B and
T (t) = C .
Hence
u(x, t) = Ax + B.
The boundary conditions give A = 0.
Hence this case contributes the solution
u(x, t) = constant.
145
3. λ < 0:
Write λ = −µ2 with µ > 0.
It follows that
−µ2 kt
u(x, t) = e [A cos µx + B sin µx].
146
The general solution will now be of the form
∞
X
−n2 (π/`)2 kt nπx
u(x, t) = a0 + an e cos .
n=1
`
147
Conclusion: The solution for Neumann boundary
conditions is
∞
X
−n2 (π/`)2 kt nπx
u(x, t) = a0 + an e cos ,
n=1
`
where
Z ` Z `
1 2 nπx
a0 = u0 (x)dx, an = u0 (x) cos dx.
` 0 ` 0 `
All terms except for the first one tend rapidly to zero as
t → ∞.
So one is left with a0 , which is the mean or average
value of u0 .
148
12.3 Mixed boundary conditions
The solution is
X
−(n+1/2)2 (π/`)2 kt (n + 1/2)πx
u(x, t) = bn e sin ,
n≥0
`
where
Z `
2 (n + 1/2)πx
bn = u0 (x) sin dx.
` 0 `
149
12.4 Periodic boundary conditions
The solution is
2 (π/`)2 kt
e−4n [an cos 2nπx +bn sin 2nπx
P
` ]
u(x,t)=a0 + n≥1 `
,
where
Z ` Z `
1 2 2nπx
a0 = u0 (x)dx, an = u0 (x) cos dx
` 0 ` 0 `
and
Z `
2 2nπx
bn = u0 (x) sin dx.
` 0 `
150
12.5 Dirichlet boundary conditions with heat
source
We now solve
151
Expand everything in a Fourier sine series over (0, 1):
X
u(x, t) = Yn (t) sin nπx,
n≥1
X
f (x, t) = Bn (t) sin nπx,
n≥1
X
u0 (x) = bn sin nπx,
n≥1
152
Example. Suppose
Therefore, for n 6= 1,
which implies Yn ≡ 0.
For n = 1,
Solving, we get
î 2
ó
1
u(x,t)= e−π kt −cos πt+kπ sin πt sin πx.
π(k π 2 +1)
2
153
13 One-dimensional wave equation
154
The initial position and velocity is specified.
We write them as
155
Adopting the method of separation of variables, let
u(x, t) = X(x)T (t).
Substituting this in the PDE, we get
X 00 (x) T 00 (t)
= 2 = λ (say).
X(x) c T (t)
156
13.1 Dirichlet boundary conditions
u(0, t) = u(`, t) = 0.
X(0) = X(`) = 0.
157
1. λ > 0: Write λ = µ2 with µ > 0. Then
158
3. λ < 0: Write λ = −µ2 with µ > 0.
X 00 (x) T 00 (t)
= 2 = −µ2 .
X(x) c T (t)
Then
and
T (t) = C cos cµt + D sin cµt.
The boundary conditions now imply that A
= 0.
Also B = 0 unless µ = nπ/`, n = 1, 2, 3, . . . .
Thus
cnπt cnπt nπx
un (x, t) = [C cos +D sin ] sin , n = 1, 2, 3, . . .
` ` `
are the nontrivial solutions.
159
The general solution (ignoring initial conditions) is
X cnπt cnπt nπx
u(x, t) = [Cn cos +Dn sin ] sin .
n≥1
` ` `
160
Conclusion: The solution is
X cnπt cnπt nπx
u(x, t) = [Cn cos +Dn sin ] sin ,
n≥1
` ` `
where
Z `
2 nπx
Cn = u0 (x) sin dx
` 0 `
and
Z `
2 nπx
Dn = u1 (x) sin dx.
cnπ 0 `
161
13.2 Neumann boundary conditions
162
Conclusion: The solution is
X cnπt cnπt nπx
u(x, t) = C0 +D0 t+ [Cn cos +Dn sin ] cos ,
n≥1
` ` `
where
Z ` Z `
1 2 nπx
C0 = u0 (x)dx, Cn = u0 (x) cos dx, n ≥ 1
` 0 ` 0 `
and
Z ` Z `
1 2 nπx
D0 = u1 (x)dx, Dn = u1 (x) cos dx, n ≥ 1
` 0 cnπ 0 `
163
Note the presence of the linear term D0 t.
164
13.3 Mixed boundary conditions
The solution is
P
u(x,t)= n≥0
[Cn cos c(n+1/2)πt+Dn sin c(n+1/2)πt] sin(n+1/2)πx,
where
Z `
2 π
Cn = u0 (x) sin(n + 1/2) xdx
` 0 `
and
Z `
2 π
Dn = u1 (x) sin(n + 1/2) xdx.
c(n + 1/2)π 0 `
165
13.4 Periodic boundary conditions
The solution is
where
Z `
1
C0 = u0 (x)dx,
` 0
R` R`
Cn An = 2` u0 (x) cos 2nπx
`
dx, and Cn Bn = 2` u0 (x) sin 2nπx
`
dx.
0 0
And also
Z `
1
D0 = u1 (x)dx,
` 0
and
1
R` 2nπx 1
R` 2nπx
Dn An = cnπ u1 (x) cos `
dx, and Dn Bn = cnπ u1 (x) sin `
dx.
0 0
166
14 Nonhomogeneous case
Also let
P P
u0 (x)= b sin nπx
n≥1 n
and u1 (x)= b
n≥1 1n
sin nπx.
167
Example. Suppose
168
15 Vibrations of a circular membrane
169
Recall the polar coordinates (r, θ) in R2 :
x = r cos θ, y = r sin θ.
170
We consider the wave equation for a circular
membrane of radius R.
u(R, θ, t) = 0.
171
15.1 Radially symmetric solutions
172
It has to be negative. (We will address this point later.)
Put λ = −µ2 .
The equation in the r variable is
173
The Dirichlet boundary condition now implies
J0 (µR) = 0.
So µ must be 1/R times one of the countably many
positive zeroes of J0 .
174
The center of the membrane vibrates with the
maximum amplitude.
175
Conclusion: The solution is given by
X
u(r, t) = (An cos cµn t+Bn sin cµn t)J0 (µn r).
n≥1
and
Z R
2
Bn = rg(r)J0 (µn r)dr.
cµn R2 J12 (µn R) 0
176
15.2 Reason for not allowing λ to be zero or
positive
• Suppose λ = 0.
Then we need to solve
r2 X 00 (r) + rX 0 (r) = 0.
Thus, A = B = 0.
177
• Suppose λ = µ2 > 0.
Then we get the Bessel equation scaled by the
imaginary number iµ.
X (µr)2k
J0 (iµr) = .
k≥0
4k (k!)2
178
15.3 General solution
Z 00 (t)X(r)Y (θ)
= c2 (X 00 (r)Y (θ)+r−1 X 0 (r)Y (θ)+r−2 X(r)Y 00 (θ))Z(t).
Separating θ ,
179
Periodic boundary conditions in θ force the constant to
be −n2 for n = 0, 1, 2, 3, . . . . We have
180
For reasons similar to the radially symmetric case, this
constant must be negative. So we write it as −µ2 .
181
First visualize the amplitude cos θJ1 (µr), where µR
is the first positive zero of J1 .
182
16 Coordinate systems
x = r cos θ, y = r sin θ.
x = r cos θ, y = r sin θ, z = z.
183
17 Laplacian operator
184
The Laplacian operator on three-dimensional space is
185
The Laplacian operator on the sphere of radius R is
1 1
∆(u) = 2 (uϕϕ + cot ϕuϕ + 2 uθθ ).
R sin ϕ
When R = 1, we write ∆S2 (u) instead of ∆(u).
186
17.1 General heat and wave equation
ut = k∆(u),
utt = c2 ∆(u).
187
17.2 Eigenfunctions for Laplacian operator
on unit sphere
∆S2 (u) = µ u.
188
Explicitly, we want to solve
∂2u ∂u 1 ∂2u
2
+ cot ϕ + 2 2
= µ u.
∂ϕ ∂ϕ sin ϕ ∂θ
1
X(θ)Y 00 (ϕ) + cot ϕX(θ)Y 0 (ϕ) + 2 X 00
(θ)Y (ϕ)
sin ϕ
= µ X(θ)Y (ϕ).
189
The equation in ϕ becomes
m 2
Y 00 (ϕ) + cot ϕY 0 (ϕ) − (µ + 2 )Y (ϕ) = 0.
sin ϕ
2 00 0 m2
(1 − x )y − 2xy − (µ + 2
)y = 0.
1−x
(Here x is the coordinate along the z -axis.)
190
The associated Legendre equation has a bounded
solution iff µ = −n(n + 1) for some nonnegative
integer n.
191
Thus
In particular,
192
17.3 Vibrations of a spherical membrane
utt = ∆S2 u.
193
Since µ is an eigenvalue of the Laplacian operator on
the sphere, it has the form
µ = −n(n + 1).
(m)
√ √
(A cos mθ+B sin mθ) sinm ϕPn (cos ϕ)(C cos( n(n+1)t)+D sin( n(n+1)t)),
194
The case m = 0 corresponds to the harmonics which
do not depend on θ . These are called latitudinally
symmetric solutions. We elaborate on these below.
Z(t) = A + Bt
195
17.4 Laplace equation in three space
Recall
2 1 1
∆R3 (u) = urr + ur + 2 (uϕϕ +cot ϕuϕ + 2 uθθ ).
r r sin ϕ
Consider the Laplace equation in three space:
∆R3 (u) = 0.
196
From the eigenvalue problem for the Laplacian
operator, we know that this constant must be n(n + 1)
for some nonnegative integer n.
1 (m)
(Crn +D n+1 )(A cos mθ+B sin mθ) sinm ϕPn (cos ϕ),
r
197
17.5 Other domains
198