Variational Formulation for Linear Equations of Mathematical Physics