That's really helpful, I'll think about how to reword this. We covered calculus physics in Lebanon which uses the French Baccalaureate program so was making some non global assumptions.
To be very attentive during an exercise in Lagrangian-formulated quantum mechanics you had better make sure to dot your qs and cross your hs.