Question: [See the context given below.]
$\rm\color{#c00}{(a)}$ When we divide by the functions $T$ and $X$ to obtain $(1)$, aren't we assuming that the functions will be non-vanishing on their whole domain (otherwise it doesn't make sense)?
$\rm\color{#c00}{(b)} $I know that when we solve the separable ODE $$ y'=f(x)g(y), $$ by dividing by $g(y)$, relatively general conditions on $g$ (continuity is not enough) will assure that either $g(y)\equiv0$ or $g(y)\neq0$ on the whole domain.
But here, for example, $X_4$ given by $(2)$ is $0$ at $x=\frac{L}{2}$. So, there is no analogous comforting result?
$\rm\color{#c00}{(c)}$ Is there some kind of "continuous extension" of the solutions on $(0,\frac{L}{2})$ and $(\frac{L}{2},L)$? What when $n$ is general?
One can always verify that the final solution obtained by the applying the method is, indeed, a solution. But, I'm interested in understanding why the method works.
Context: Suppose you want to solve the following homogeneous heat equation problem: $$ \begin{cases} u_t-ku_{xx}=0\quad(0<x<L,t>0),\\ u(0,t)=u(L,t)=0\quad(t\geq0),\\ u(x,0)=f(x)\quad(0\leq x\leq L) \end{cases} $$ with the compatibility condition $f(0)=f(L)=0$ satisfied.
Proceeding by separation of variables, writing $u(x,t)=X(x)T(t)$, the usual argument is that one is led to $$ \frac{T_t}{kT}=\frac{X_{xx}}{X}\tag{1}, $$ which must be satisfied for all admissible couple $(x,t)$, so that the LHS and the RHS must be constant. One is then led to Sturm-Liouville problems and one can show that the eigenvalue-eigenvector couples for the resulting problem in $X$ are $$ (\lambda_n,X_n):=\left(\frac{n^2\pi^2}{L2},\sin\left(\frac{n\pi x}{L}\right)\right)\quad(n\geq1)\tag{2}. $$