everyone!
Could someone help me out with a question? There is a PDE, which is the heat equation. There is also a solution. In the solution, it says that an odd extension of the PDE has to be computed. Then it says, that to get a solution we need to multiply the $n$-th term by $e^{-\left(\frac{n\pi}{L}\right)^2\alpha^2t}$.
My questions are:
- Why an odd extension is used and not an even one?
- Why do we simply multiply by $e^{-\left(\frac{n\pi}{L}\right)^2\alpha^2t}$ to get a solution?
Thank you in advance for your replies!

Because $u(0,t)=0$, which does not hold for even functions $c_n\cos(nx)$ when $c_n\neq0$.
That is part of solving the PDE by separation of variables: you multiply every $n$-th $x$-function with its corresponding $t$-function and can sum them all together by the principle of superposition.