Saturday, March 14, 2009

Partial Differential Equations – Separation of Variables

 

I received a great tutorial on how to apply separation of variables to solve a partial differential equation. I copied some of the equations as images because my generic editor cannot handle some symbols. The example is the following:

A uniform rod of length L with Finite Ends at Zero Temperature.

Equation given:

image

For 0 < x < L and t >= 0

Boundary Conditions:

  • U(0, t) = 0 … (2)
  • U(L,t) = 0 … (3)

Initial Conditions – U(x,o) = fo(x) … (4)

  • The PDE is linear and homogeneous
  • The boundary conditions are also linear and homogeneous

Separation of variables:

image

Adjust 5 so that it can be substituted into 1:

image

Substitute 6 and 8 into 1:

image

image

Function of only time = Function of only space

Both sides of the equation must equal to the same constant, called a separation constant. We get:

image 

And

image

Equation 11 is the time depended equation and will be solved first. This is a first order linear homogeneous ODE and can be solved using the method of separation of variables.

image

The final solution will then be:

image

Analysis of possible values of lambda:

  1. If lambda > 0 the temperature will exponentially decay with time
  2. If lambda < 0 the temperature will exponentially increase with time
  3. If lambda = 0 the temperature will stay constant

Only lambda => 0 makes sense as the temperature is not meant to grow to infinity.

Equation 12 is the space dependent equation. As equation 12 is a linear, second order, homogeneous ODE with constant coefficients, a method of constant coefficients can be used in order to solve that equation.

image

Substitution of 14 and 15 into 12 gives:

image

Equation 16 has numerous solutions, which all depend on the value of lambda:

image

Evaluate each of the cases

Lambda > 0

image 

Lambda = 0

The solution of r=0 can be used here, or double integration can be used to solve equation 12

image

Substitution of equations 19, 20 and 13 into equation 5 gives the following general solution:

image

The boundary conditions now have to be applied:

image

Lambda > 0

Using Equation 22 in 19:

image

Using Equation 23 in 19:

image

Solving Equation 24:

image

Lambda is now written with a subscript n as it could take on multiple values due to infinite number of possible solutions of the sin function.

Lambda = 0

Application of 22 in 20:

image

Application of 23 in 20:

image

So either L is zero or A is zero. Having zero length defeats the purpose of the problem so A = must be true.

Using all the values determined from the boundary conditions in equation 21:

image

Where C’ = CE

image

We now use the initial conditions and get:

image

So then:

image

We can apply the following identity:

image

image

Using equations 29 and 30, the left side of 31 becomes:

image

To generalize:

image

image