Solving the Time-Dependent Equation
how we solve \( T' + k\lambda T = 0 \) (same as before)
\[ T_n = e^{-kn^2\pi^2t/L^2} \]
\( n = 0, 1, 2, 3, \dots \)
for each \( n \), solution is \( u_n = X_n T_n = e^{-kn^2\pi^2t/L^2} \cos\left(\frac{n\pi x}{L}\right) \)
general solution is linear combination of all
\[ u(x,t) = \sum_{n=0}^{\infty} A_n e^{-kn^2\pi^2t/L^2} \cos\left(\frac{n\pi x}{L}\right) \]
let's separate out \( n=0 \) (\( A_0 \))
\[ u(x,t) = \frac{1}{2}A_0 + \sum_{n=1}^{\infty} A_n e^{-kn^2\pi^2t/L^2} \cos\left(\frac{n\pi x}{L}\right) \]
looks like a cosine series! let's give \( n=0 \) an extra \( \frac{1}{2} \) factor
Initial Condition (IC): \( (t=0) \)
\( u(x,0) = f(x) \)
\[ f(x) = \frac{1}{2}A_0 + \sum_{n=1}^{\infty} A_n \cos\left(\frac{n\pi x}{L}\right) \]
cosine series!
\[ A_n = \frac{2}{L} \int_{0}^{L} f(x) \cos\left(\frac{n\pi x}{L}\right) dx \]
\( n = 0, 1, 2, 3, \dots \)