2020-02-19, Separation of Variables
The idea (equation only, without boundary condition)
Suppose you have a differential operator P(x,y)=P1(x)+P2(y), and you have
a differential equation about F(x,y)
P(x,y)F(x,y)=0
Then one can try to find a basis {Fn(x,y)} for the solution space, where each Fn can be written as (omitting the subscript n)
F(x,y)=A(x)B(y)
Then the equation become
B(y)P1(x)A(x)+A(x)P2(y)B(y)=0
Divide both sides by A(x)B(y), we get
A(x)1P1(x)A(x)+B(y)1P2(y)B(y)=0.
The first term is something about x, the second term is something about y, the only possibility that they cancel is that both terms are constants, hence we try to solve for
A(x)1P1(x)A(x)=λ,B(y)1P2(y)B(y)=−λ
for some λ∈R.
Naive Approach
If for some λ, we can solve to get Aλ,i(x) for i=1,⋯,n(λ), and Bλ,j(y) for $j =1, \cdots,
\lambda)$, then we get a collection of functions
Fλ,i,j(x,y)=Aλ,i(x)Bλ,j(y)
and we may hope to express any solution as
F(x,y)=λ∑i∑j∑Cλ,i,jAλ,i(x)Bλ,j(y)
Problem with the above approach
How do I know that these functions {Fλ,i,j(x,y)} forms a basis of the solution space?
Example
Consider the equation
(∂x2+∂y2)F(x,y)=0
Or the equation
(∂x4+∂y4)F(x,y)=0
Boundary Condition
Consider the example of steady state heat equation in a rectangle.
(∂x2+∂y2)T(x,y)=0,0<x<1,0<y<1(1)
with boundary condition that
T(0,y)=0,T(1,y)=0,T(x,0)=0,(2)
and in addition we impose
T(x,1)=f(x)(3)
for some smooth function f(x) on [0,1], such that f(0)=f(1)=0.
How to solve this problem? We hope to write the solution in the following
form
T(x,y)=n∑CnXn(x)Yn(y)
where Xn(x)Yn(y) forms a basis of the above problem with constraint (1) and (2). Then (3) can be used to fix the coefficients Cn.
The separation of variable gives
∂x2X(x)=λX(x),X(0)=X(1)=0
∂y2Y(y)=−λY(y),Y(0)=0
What λ should we choose? The equation about X(x) indicate λ should be negative, we should have
λ=−(nπ)2,Xλ(x)=sin(nπx)
And the equation for Y can be solved as
Y(y)=sinh(nπy)
The general solution for (1) and (2) is
F(x,y)=n=1∑∞Cnsin(nπx)sinh(nπy)
Finally, we use the boundary condition f(x)=F(x,1) to get Cn
f(x)=n=1∑∞Cnsin(nπx)sinh(nπ)
Multiply both sides by sin(nπx) and integrate over x, we get
∫01f(x)sin(nπx)dx=Cn21sinh(nπ)
hence
Cn=sinh(nπ)2∫01f(x)sin(nπx)dx.
General Boundary Value? : suppose the four sides of the square has non-zero values? Just break the problem to 4 smaller problems, where each one has only one side non-zero, then do this problem 4 times.
Eigenvalue problem
The equation
∂x2X(x)=λX(x),X(0)=1,X(1)=0
is an eigenvalue problem. For a randomly chosen λ, say 0.721, the solution is only 0. Hence to have a non-zero solution, λ can only be some special value.
This is analogous to the problem of solving for eigenvalue and eigenvector for an n×n matrix A:
Av=λv
here, recall we solve for the roots of the P(λ)=det(A−λI)=0, then for each λ, we solve for v. (There might be several linearly independent v corresponding to the same λ).
Here we have the same problem, but, instead of having a matrix A acting on a vector space Rn, we have
an operator ∂x2 acting on (an infinite dimensional vector space) the function space on [0,1].