Decomposition of Quadratric Variational Problems