Abstract: | It is widely accepted that a variational principle cannot be constructed for an arbitrary differential equation; a rigorous mathematical condition shows which equations can have a variational formulation. On the other hand, the importance for variational principles in various fields of physics resulted in several methods to circumvent this condition and to construct another type of variational principles for any differential equation. In this paper the common origin of the considered methods is investigated, and a generalized Hamiltonian formalism is formulated. Additionally, constructive algorithms are given by different methods to construct variational principles. Simple examples are presented to make construction methods more transparent: several Lagrangians are constructed for the different forms of the Maxwell equations and for the extended heat conduction equation. |