Question: Solve Laplace’s equation inside a circle of radius a.

Question: Solve Laplace’s equation inside a circle of radius a.

Question: A 1D rod of length L has an initial heat distribution of

If the rod has insulated ends (
) and obeys the heat equation
,What is the heat distribution of the rod as a function of time?
Answer:
First assume that the solution to the PDE
,has the form

Therefore, we can reduce the equation to the following:



Since this equation is true for all x and t, therefore both sides of the equation must equal a constant.

which can be written as two ODEs


Solving the first-order differential
is trivial and can easily be shown to have the solution:

Next, we need to solve 
The second-order differential has 3 different cases (
,
,
).
Case 
The ODE for this case would be

which has the solution

If we apply the BC
, we get

which implies

Case 
The ODE for this case would be

which has the solution

Next, we apply the BC
.


Since
, this implies
. Therefore,

If we apply the 2nd BC
, we find the following

Therefore, for non-trivial solutions
where
.
This means,

is a solution.
Case 
The ODE for this case would be
where
and 
which has the solution

If we apply the BC
,we find


Since
, we know that
which means

is a solution.
If we apply the 2nd BC
, we find

Since
and
, we know that
.
This means that there is no solution where
.
Since the PDE will satify any linear combination of the above solutions, we find that

If we apply the IC
to the solution, we find that
and every other
is zero.
Therefore, the solution would be

Question: A 1D rod of length L has an initial heat distribution of

If the rod has insulated ends (
) and obeys the heat equation
,What is the heat distribution of the rod as a function of time?
Question: Find the solutions to Laplace’s Equation:

Answer:
First assume that the solution to the PDE

has the form

Therefore, we can reduce the equation to the following:

Since this equation is true for all x and y, therefore both sides of the equation must equal a constant.

This implies that we need to solve two ODEs.


and apply the results to the two ODEs.
There are 3 cases which we need to solve (
,
, and
).
Case 
The ODE for this case would be

which has the solution

Case
and 
The ODE

which will have the solution

Please note that
will be an imaginary number when
.
Therefore, if we apply the above solution, we can find the functions that solve the ODEs

which would be

when 

when 

when 
Therefore, the solution would have the form

Any superposition of the above equation will satisfy Laplace’s equation. In order to reduce this solution more, we would need to be given Boundary and Initial Conditions.
Recently, I started studying ODEs and PDEs over again. I have always found this subject interesting, but I haven’t done much with it since University (besides the odd Classical Mechanics ODE). You should expect a lot more questions about Differential Equations in the near future.
Besides solving Differential Equations analytically, I have been looking at numerical approaches to solving these problems. If you use Maple or Matlab, it is fairly straightforward to solve Differential Equations numerically. However, these approaches are not really optimal for larger problems (especially problems that require parallelization). In order to solve these larger problems, it usually requires using a “real” language.
Initially, I started looking for numerical libraries for Perl. The only library that looked decent was Cephes which seems a bit incomplete. The Python library called NumPy seems a lot better, but this would require me to learn Python.
Anyways, while searching the web, I came across a cool little site called “My Physics Lab”. It contains a bunch applets that have physics simulations. The coolest one, I think, is the double pendulum. It is a simple example of chaotic motion.
Also, if you know of any good numerical libraries, please leave a comment (unless it is in C/C++ or Fortran).