PDE5
From Exampleproblems
![]() | ![]() ![]() ![]() |
First separate variables and plug back into the original equation.


Find the separated boundary conditions (worry about the initial condition later).

Now seperate the two functions on either side of the equation. The reasoning is that if the left side is a function of t and it is equal to the right side, which is a function of x, then both sides of the equation must be equal to a constant. It's good to keep higher derivatives on top of lower ones, and keep the k with T(t). When setting the next part equal to a constant, − λ works best.

This gives the two solutions to the ODEs:

In the solution of X(x) the extra square root of λ was added in the denominator so that we won't have to make a special case for
, which does not give interesting solutions anyway.
Use the separated boundary conditions on the function X(x).


Nothing interesting would come from letting
, so
.
because
. These values of lambda are the eigenvalues. The eigenfunctions are
.
For each value of n, a solution is then

Using the principle of superposition, the formal solution is the sum of all possible solutions:

The initial condition gives

This series is the Fourier sine series of f(x), so the coefficient is given by

So the final answer is

Or just for fun:
![u(x,t) =
\frac{2}{l} \sum_{n=1}^\infty \left[ \int_0^l f(\xi) \sin(\frac{n\pi \xi}{l}) \,d\xi \right] e^{-\left(\frac{n\pi}{l}\right)^2 k t} \sin(\frac{n\pi x}{l})\,](/wiki/images/math/c/5/c/c5c03938783472d5a5061145de27b58d.png)




