Textbook Example Solving Heat Conduction PDE Using Separation of Variables

boundary value problemheat equationmathematical modelingpartial differential equations

My textbook demonstrates solving the heat conduction example

$$\dfrac{\partial{\phi}}{\partial{t}} = \kappa \dfrac{\partial^2{\phi}}{\partial{x^2}}, \ x \in [0, L]$$

$$\phi(x, 0) = f(x) \ \ \ \text{at time} \ \ t = 0$$

$$\phi(0, t) = \phi(L, t) = 0 \ \ \text{for all time.}$$

It proceeds by using separation of variables, as follows (paraphrased in my own words for the sake of conciseness, and with some minor additions for the sake of completeness):

We let

$$\phi(x, t) = T(t)X(x)$$

Therefore, the heat conduction equation becomes

$$T'X = \kappa T X''$$

Dividing by $XT$, we obtain

$$\dfrac{T'}{T} = \kappa \dfrac{X''}{X}$$

The left-hand side is a function of $t$ only, and the right-hand side is a function of $x$ only. As $t$ and $x$ are independent variables, these must be equal to the same constant. As the equation describes heat conduction, we should look for solutions that will decay as time progresses. This means that $T$ is likely to decrease with time, which in turn leads us to designate the separation constant as negative:

$$\dfrac{T'}{T} = – \alpha^2$$

Using separation of variables (the ODE kind), we get

$$T(t) = T_0 e^{-\alpha^2 t}, t \ge 0$$

For the ODE in terms of $x$, we get

$$\dfrac{X''}{X} = -\dfrac{\alpha^2}{\kappa}$$

This has characteristic polynomial

$$\kappa m^2 + \alpha^2 = 0$$

Therefore, we get

$$X(x) = a' \cos\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right) + b' \sin\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right)$$

Therefore, our solution is

$$\phi(x, t) = T(t)X(x) = e^{-\alpha^2 t} \left( a \cos\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right) + b \sin\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right) \right)$$

At time $t = 0$, $\phi(x, 0) = f(x)$, which is some prescribed function of $x$ (the initial temperature distribution along a bar $x \in [0, L]$ perhaps), then we would seem to require that

$$f(x) = a \cos\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right) + b \sin\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right)$$

which in general is not possible.


My questions are as follows:

  1. Why are the constants changed from $a'$ and $b'$ to $a$ and $b$? What happened there?

  2. Why is $f(x) = a \cos\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right) + b \sin\left( \dfrac{\alpha x}{\sqrt{\kappa}} \right)$ not possible?


I would greatly appreciate it if people could please take the time to clarify this.

Best Answer

  1. Let $a = T_0 ', b = T_0 b'$.
  2. If the solution of $\phi(x,t)$ holds for $t \geqslant 0$, then $\phi (x,0)=f(x)$ should be such a trigonometric function. But generally the given $f(x)$ [as a condition to determine $\phi(x,t)$] is not this trig function at all [Maybe $f(x) =x$ or something else].
Related Question