Can anyone explain how the professor goes from line 4 to 5 of the derivation? In particular, how is:
$$\frac{\delta L}{\delta u}h'=-\frac{d}{dx}\frac{\delta L}{\delta u'}h$$
The professor states that this can be derived from integration by parts but I still don't see how it's possible. I wrote out the integration by parts:
$$\int \frac{\delta L}{\delta u'}h' =\frac{\delta L}{\delta u'}h - \int \frac{d}{dx}\frac{\delta L}{\delta u'}h$$
How can I relate this to the above?
It's just integration by part :
$$\int \left(\frac{\partial L}{\partial u'}h'\right)=\left[h\frac{\partial L}{\partial u'}\right]_{boundary}-\int \frac{d}{dx}\frac{\partial L}{\partial u'}h$$
But since $h$ has compact support, $h$ is $0$ on the boundary. Your equality follow.