For $N$ coupled oscillators(periodic BC) whose Hamiltonian is given as $H=\sum\limits_{i=1}^N (\frac{p_i}{2m} + \lambda(x_{i+1} - x_i)^2)$
decoupling can be achieved by change of variables by using a Discrete Fourier transform(DFT) for $x$ and $p$ (I might be messing up the exact formula here) $\xi_k = \sum\limits_{j=1}^N x_j e^{-i2\pi kj}$
$\chi_k = \sum\limits_{j=1}^N p_j e^{-i2\pi kj}$
Leading to the normal modes and a set of decoupled oscillators
Now are there general transformations like this that can decouple a Hamiltonian(or the equivalent set of PDE's)?
For what kind of Hamiltonians does the DFT work? Does DFT work for all cases with parabolic potentials(linear springs)?
What is the general theory behind all this called?