For the following variational problem I have been told to show the Euler-Lagrange equation is identically zero.
$$L[u]:= \int_a^b \sin(u)u_x\,\mathrm dx $$
I have found it to be
$u_x\cos(u)-\sin(u)u_{xx}=0.$
Is this correct? And if so, does this always equal $0$?
No: write $F(t_1,t_2,t_3):=t_3\sin t_2$. Then $L(u)=\int_a^bf(t,u(t),u'(t))dt.$ Euler-Lagrange equation is $\partial_{2}F(t,u,u')=\frac d{dt}\partial_3F(t,u,u')$, hence $$u'(t)\cos u(t)-\frac d{dx}\sin(u(t))=0, $$ which is always satisfied.