From charlesreid1

Part of the CFD lecture set.

See also Courant Hilbert I: Section 5

Introduction

Most methods for analytically solving PDEs transform them into systems of ODEs (ordinary differential equations). A fairly comprehensive list of techniques might include:

  • Separation of variables - reduces a PDE of independent variables into ODEs
  • Integral transforms - reduce a PDE of variables into a PDE of variables (so, useful for 2-variable PDEs)
  • Integral equations - changes a PDE into an integral equation, solved using other techniques
  • Change of coordinates - changes a PDE into an ODE (or, into an easier PDE) by changing the problem coordinates
  • Dependent variable transforms - transform the PDE unknown into a new, easier-to-find unknown
  • Perturbation methods - changes a nonlinear problem into a sequence of linear problems that can approximate the nonlinear problem
  • Impulse-response technique - decomposes initial and boundary conditions of the problem into simple impulses to find the response to each impulse; the final response is the sum of the simple impulse responses
  • Eigenfunction expansion - finds solutions of the PDE in the form of infinite sums of eigenfunctions
  • Calculus of variations - reformulates equations into minimization problems, e.g. total energy minimization


Separation of Variables

Restrictions:

  • Linear PDEs
  • Homogeneous PDEs
  • Boundary conditions of the form and , where are constants (making the boundary conditions linear and homogeneous).

The principle behind separation of variables is to find solutions of the form:

or,

In principle, an infinite number of solutions exist which will satisfy the PDE and also satisfy the boundary conditions (hence the subscript ).

These solutions are used as building blocks, and the sum of all of these solutions gives the total solution .

The idea behind separation of variables (and the reason it only applies to homogeneous problems) is, if one has an equation of the form

or,

then each of the terms must be equal to a constant - otherwise the derivative of X would create a function in x that could not be canceled out by the other derivatives.

Given these infinite solutions, and given the boundary conditions, the solution can be found by adding up all the simple solutions in a way that also matches the initial conditions:

or,


Example 1: First Derivatives

This example uses separation of variables to solve the PDE:

This is a straightforward application of separation of variables. A solution of the form will be assumed. Plugging this in:

Which means that each derivative must be constant - otherwise (as mentioned above) there would be functions of left over:

So, the 1st order PDE has been transformed into a set of 2 ODEs. These are easy to solve, and yield and , so the solution is:

Which, when plugged in, satisfies the original PDE.


Example 2: Heat Equation

Separation of variables can be used to solve the heat equation under certain circumstances

What circumstances?

linear homogeneous boundary conditions... linear homogeneous PDE

Consider the heat equation in a normalized domain:

where stands for temperature.

Given the (linear homogeneous) boundary conditions

Now we will use this PDE to describe the temperature profile in a finite rod, with the (relative) temperature at either end fixed at zero, and some initial temperature profile - which is arbitrary - let's call it .

1d insulated rod.jpg

Is it homogeneous?

Is this PDE linear? What if ? Can we still use separation of variables?

makes the equation quasi-linear - i.e. NOT LINEAR - so can't use the separation of variables (see Introduction to partial differential equations lecture)

Step 1: Solution to PDE

A solution of the form can be assumed, and plugged into the PDE:

and, dividing each side by , it becomes

which must be equal to a constant, since both expressions are functions of different variables.

Both sides can be written as ODEs - so the PDE was transformed into two ODEs:

Once we solve these ODEs, the solutions can be multiplied together to give the solution to the PDE.

NOTE: Assuming the initial temperature profile is higher than 0 requires to be negative - otherwise the temporal behavior of the solution at infinite times would be to increase (not physically possible). It can be replaced with , which is guaranteed to be negative.

Thus the ODE system is:

General solutions can be found for both PDEs, of the form:

So the infinite solutions to our PDE are:

where are arbitrary.

Step 2: Finding solution to PDE and BCs

Let's try these solutions at - our initial condition

Try the function for at :

But our boundary condition says !

Is the problem with the function?

No, problem is with the values of the constants we chose

We need to find values of that will match boundary conditions

Boundary condition 1:

This means:

Which means either is 0, or is 0.

When is the exponential function 0?

Never - so always, in order to make this true.

Now let's do the same thing for the other boundary condition:

Boundary condition 2:

What do you think we're going to find? Will we learn something about the exponential term? No - it's a function of , and it's never going to be zero anyway.

Will we find something out from the cosine term? No - we know it's gone away permanently.

So we're going to get some information from the sine term.

Okay! So, ! All done! That was easy!

Trivial solution - is an example of a trivial solution. It means our initial condition , so we started out with a uniform temperature of 0.

This leaves one non-zero term:

which tells us something about - not about A!

We have to pick functions such that

where is an integer.

This means we've found an infinite number of functions that satisfy the PDE and the boundary conditions:

So the solution to the PDE will be a sum of these simple functions.

Step 3: Solution to PDE, BCs, ICs

The last remaining step is to find a sum of the fundamental solutions, which satisfy the PDE and BCs, that will also satisfy the initial condition. That is, find in

such that it satisfies the initial condition,

This raises a question asked by Fourier: can an arbitrary function be represented as an infinite series of sine functions?

(see wikipedia:Fourier series and wikipedia:Fourier transform).

To find values of , we can use a property called orthogonality.

Orthogonality means that the integral of two functions that are orthogonal is 0.

For sine functions, any sine functions that are not the same are orthogonal, i.e.:

(Convince yourself of this by studying the plots of several sine waves:)

An orthogonal sequence of sine waves.

Starting with the expression for the initial condition:

Next, multiplying both sides by , with an arbitrary integer, and integrating from 0 to 1:

where all other terms are zero due to orthogonality.

This gives an expression for the coefficients of the Fourier series,

Making the final solution:

with the coefficients given by


How many people were expecting a different solution? How many are disappointed by this result?

Since we put all this effort into finding this solution, I want to spend some time figuring out what it means.

Let's look at a hypothetical initial temperature profile:

A hypothetical initial temperature profile in a 1D rod.

This temperature profile plotted above (for ) is an expression consisting of multiple sine waves, each with a unique frequency. The full expression for the temperature profile is:

Now, notice that each term has the decaying exponential function (the time function).

For higher frequencies, this exponential function will decay more rapidly. For lower frequencies, it will decay slowly.

This means the high-frequency fluctuations will decay very quickly...

And the low-frequency fluctuations will decay more slowly.

Plotting this solution function for various times yields a time-dependent solution for this function:

TempProfile.gif

Notice how the small-scale (high-frequency) fluctuations are dampened immediately, whereas the moderate length-scale (middle-frequency) fluctuations take longer to be dampened, and finally, the last frequency to be dampened is the frequency (half a sine wave).

This mimics the natural behavior of diffusion of heat - small-scale temperature fluctuations will be dampened first, followed by increasingly larger scale temperature fluctuations.

Combination of Variables

Courant Hilbert II:

Section 3 Part 1 (p.40 of PDF)


Method of Characteristics

References

http://www.exampleproblems.com/wiki/index.php/PDE:Integration_and_Separation_of_Variables

Tannehill

Anderson