Let’s derive this solution structure from first principles using the method of separation of variables.
Step 1: Assume a separable solution
We look for solutions of the form: \[T(x,t) = X(x) \cdot \Theta(t)\]
where \(X(x)\) depends only on position and \(\Theta(t)\) depends only on time.
Step 2: Substitute into the heat equation
Starting with \(\frac{\partial T}{\partial t} = \alpha \frac{\partial^2 T}{\partial x^2}\) and substituting our assumed form:
\[X(x) \frac{d\Theta}{dt} = \alpha \Theta(t) \frac{d^2X}{dx^2}\]
Step 3: Separate the variables
Divide both sides by \(X(x)\Theta(t)\):
\[\frac{1}{\Theta}\frac{d\Theta}{dt} = \frac{\alpha}{X}\frac{d^2X}{dx^2}\]
The left side depends only on \(t\), the right side only on \(x\). For this to be true for all \(x\) and \(t\), both sides must equal the same constant. We call this constant \(-\lambda\) (the negative sign is chosen for convenience):
\[\frac{1}{\Theta}\frac{d\Theta}{dt} = -\lambda \quad \text{and} \quad \frac{\alpha}{X}\frac{d^2X}{dx^2} = -\lambda\]
Step 4: Solve the time equation
From \(\frac{d\Theta}{dt} = -\lambda \Theta\), we get: \[\Theta(t) = e^{-\lambda t}\]
If we define \(\tau = 1/\lambda\), this becomes \(\Theta(t) = e^{-t/\tau}\)—our exponential decay!
Step 5: Solve the spatial equation
The spatial equation becomes: \[\frac{d^2X}{dx^2} = -\frac{\lambda}{\alpha}X\]
This is an eigenvalue problem. The solutions are sinusoidal functions whose specific form depends on the boundary conditions. For a wall with fixed boundary temperatures, we get: \[X_n(x) = \phi_n(x) = \sin\left(\frac{n\pi x}{L}\right)\]
with corresponding eigenvalues: \[\lambda_n = \frac{n^2 \pi^2 \alpha}{L^2}\]
This gives time constants: \[\tau_n = \frac{1}{\lambda_n} = \frac{L^2}{n^2 \pi^2 \alpha}\]
Step 6: Superposition principle
Because the heat equation is linear, we can sum all possible solutions: \[T(x,t) = \sum_{n=1}^{\infty} A_n \phi_n(x) e^{-t/\tau_n}\]
Step 7: Add the steady-state solution
The complete solution must also satisfy the boundary conditions at all times. The full solution is: \[T(x,t) = T_{ss}(x) + \sum_{n=1}^{\infty} A_n \phi_n(x) e^{-t/\tau_n}\]
where \(T_{ss}(x)\) is the steady-state profile (linear, as we showed earlier), and the coefficients \(A_n\) are determined by matching the initial temperature distribution at \(t=0\).
Physical interpretation:
- Each mode \(n\) has its own spatial pattern \(\phi_n(x)\) and decay rate \(1/\tau_n\)
- Higher modes (\(n > 1\)) decay much faster than the fundamental mode (\(n=1\))
- After a few multiples of \(\tau_1\), only the steady-state solution remains
- The separation constant \(\lambda\) emerges as a physical eigenvalue that determines both the spatial pattern and the time constant