In the wiki article about variational calculus, when calculating the Euler lagrange equation, in the article, only the 2nd term is considered for the integration by parts, why not the first or both?
https://en.wikipedia.org/wiki/Calculus_of_variations#Functions_of_several_variables:~:text=and%20we%20have%20used%20integration%20by%20parts%20on%20the%20second%20term