(a) Find the temperature u(x, t) using separation of variables
We'll assume that the temperature distribution in the rod can be described by the heat equation:
$$
\frac{\partial u}{\partial t} = \alpha^2 \frac{\partial^2 u}{\partial x^2}
$$
with the boundary conditions \(\frac{\partial u}{\partial x} \big|_{x=0} = \frac{\partial u}{\partial x} \big|_{x=L} = 0\) (since both ends of the bar are insulated) and the initial condition (IC) \(u(x, 0) = \sin(\frac{\pi x}{L})\).
Let \(u(x, t) = X(x) \cdot T(t)\). Using separation of variables on the heat equation, we have:
$$
\frac{T'(t)}{\alpha^2 T(t)} = \frac{X''(x)}{X(x)}
$$
Since both sides of the equation depend on different variables, they must be equal to a constant. We'll denote this constant by \(-\lambda^2\):
$$
T'(t) = -\alpha^2 \lambda^2 T(t)
$$
$$
X''(x) = -\lambda^2 X(x)
$$
Now, we'll solve these two ODEs separately.
For the ODE in X(x):
$$
X''(x) = -\lambda^2 X(x)
$$
The general solution to this ODE is given by:
$$
X(x) = A \cos(\lambda x) + B \sin(\lambda x)
$$
Applying the boundary conditions (BCs), we get the following:
$$
\frac{dX}{dx} \big|_{x=0} = -A \lambda \sin(\lambda x) + B \lambda \cos(\lambda x) = 0
$$
Let x=0,
$$
-A \lambda = 0 \Rightarrow A = 0
$$
Now, the updated function for X(x) becomes:
$$
X(x) = B \sin(\lambda x)
$$
Now, the other boundary condition:
$$
\frac{dX}{dx} \big|_{x=L} = B \lambda \cos(\lambda L) = 0.
$$
Since B ≠ 0, we have:
$$
\lambda L = n\pi,\,\, n = 1, 2, 3, ...
$$
Therefore,
$$
X_n(x) = B_n \sin(\frac{n\pi x}{L})
$$
Where \(n = 1, 2, 3, ...\)
Now let's solve the ODE in T(t):
$$
T'(t) = -\alpha^2 \lambda^2 T(t)
$$
The general solution to this ODE is given by:
$$
T(t) = C \exp(-\alpha^2 \lambda^2 t)
$$
Therefore, the general solution for u(x, t) is given by:
$$
u(x, t) = \sum_{n=1}^{\infty} B_n \sin\Big(\frac{n\pi x}{L}\Big) \cdot C \exp\Big(-\alpha^2 (\frac{n\pi}{L})^2 t\Big)
$$
Now let's apply the initial condition:
$$
u(x, 0) = \sin\Big(\frac{\pi x}{L}\Big) = \sum_{n=1}^{\infty} B_n \sin\Big(\frac{n\pi x}{L}\Big)
$$
As we can see, only the first term (\(n=1\)) gives us the correct initial condition:
$$
B_1 = 1,\,\,\,\, B_n = 0,\,\, n = 2, 3, ...
$$
Thus, the temperature distribution is given by:
$$
u(x, t) = \sin\Big(\frac{\pi x}{L}\Big) \cdot \exp\Big(-\alpha^2 (\frac{\pi}{L})^2 t\Big)
$$