Separation of variables is explained in my notes to solve certain types of partial differential equations. This method requires the assumption that the solution, say $u(x,t)$, is in the form
$$u(x,t)=X(x)T(t).$$
Then you solve some ordinary differential equations and consider the sum:
$$\sum b_k X_k(x) T_k(t)$$
So provided the series converges and with the conditions given for the pde you can obtain the coefficients $b_{k}$ and this is the/a solution of the PDE.
This is pretty clear for me. What I want to know now is how can you ensure $u(x,t)=X(x)T(t)$, or more precisely, How can you assure you found every solution for the PDE? It is unclear to me why sometimes the method is used and it is not.
These are some examples from my notes:
The heat equation: (Can be solved using separation of variables) $$ \begin{cases} u_{t}-u_{xx}=0 & 0<x<\pi, t>0\\ u(x,0)=f(x) & 0<x<\pi & \\ u(0,t)=u(\pi,t)=0 & t>0 \end{cases} $$
Also,
The wave equation: (Can be solved using separation of variables) $$ \begin{cases} u_{tt}-c^2u_{xx}=0 & 0<x<\pi, t>0\\ u(0,t)=u(\pi,t)=0 & 0<x<\pi \\ u(x,0)=f(x) & t>0 \\ u_{t}(x,0)=g(x) & 0<x<\pi \end{cases} $$
Also, the Laplace equation: $$ \begin{cases} \Delta u=0 & \text{in }B \\ u=f & \text{in } \partial(B) \end{cases} $$
for the circle $B$, can be solved by separation of variables if you consider the change of variables $u(r,\theta)=(r\cos\theta,r\sin\theta)$, which reduces the ecuation to:
$$ \begin{cases} u_{rr}+ \frac{1}{r} u_r + \frac{1}{r^2} u_{\theta \theta}=0 & \text{in } [- \pi, \pi] \times [0,1) \\ u=f & \text{in } [- \pi, \pi] \end{cases} $$