Euler–Lagrange equation
By substituting these into the Euler–Lagrange equation, we obtain