Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2024/paper-1/9/b/solution

The total derivative contributes only the boundary term
This is fixed by the endpoint data, so its first variation vanishes. It cannot change the Euler-Lagrange equations or which path minimizes .
For a direct check, let . Then
The equality uses commuting mixed partial derivatives. Thus , as in total time derivatives preserve fixed-endpoint Euler-Lagrange equations.

New to topics? Read the docs here!