In the calculus of variations, control variables are rates of change of state variables and are unrestricted in value. With the Pontryagin Maximum Principle, we use the state equations in the statement of the problem. The functional stays the same, but we must define the state equations. Thus,
The Hamiltoninan is
Maximizing the Hamiltonian by choice of
requires
We can differentiate this result with respect to
to get
By definition,
. We can substitute this into the above equation to get the Euler equation.