Optimal distributed control of linear parabolic equations by spectral decomposition. (15th February 2021)