= Solution
With homogeneous <Dirichlet boundary condition>, the eigenfunctions are $\sin(n\pi x/L)$ and all modes decay. Write
$$
\Theta(x,t)=\sum_{n=1}^{\infty}b_n\sin\frac{n\pi x}{L}
\,e^{-\kappa(n\pi/L)^2t},\qquad
b_n=\frac{2T_0}{L}\int_0^L\sin^2\frac{\pi x}{L}\sin\frac{n\pi x}{L}\,dx.
$$
Reflection about the midpoint makes every even-$n$ coefficient zero. For odd $n$, putting $u=\pi x/L$ and using the product-to-sum identity gives
$$
\begin{aligned}
b_n&=\frac{2T_0}{\pi}\int_0^\pi\sin^2u\sin(nu)\,du\\
&=\frac{2T_0}{\pi}\left[\frac1n-\frac12\left(\frac1{n+2}+\frac1{n-2}\right)\right]
=\frac{8T_0}{\pi n(4-n^2)}.
\end{aligned}
$$
In particular $b_1=8T_0/(3\pi)$ and $b_3=-8T_0/(15\pi)$. Thus
$$
\boxed{\Theta(x,t)=\frac{8T_0}{\pi}
\sum_{m=0}^{\infty}
\frac{\sin((2m+1)\pi x/L)}{(2m+1)[4-(2m+1)^2]}
\,e^{-\kappa(2m+1)^2\pi^2t/L^2}.}
$$
This uses the <Fourier sine series of a squared sine>. The coefficients are $O(n^{-3})$, so the initial series converges uniformly; for $t>0$ the exponential factors also justify termwise differentiation to check the <heat equation>. Every mode vanishes at both endpoints, and the initial series gives the specified profile. Unlike part (a), there is no constant mode: the temperature tends to zero, with leading long-time term
$$
\Theta(x,t)\sim\frac{8T_0}{3\pi}\sin\frac{\pi x}{L}\,e^{-\kappa\pi^2t/L^2}.
$$
Back to article page