On self-adjoint differential equations of second order