I need to minimize integral: $$\int_{0}^{1} F(x,u,u') dx=\int_{0}^{1}(u^2+2xu'u)dx \to\inf$$ with the boundary conditions $$u(0)=0, u(1)=1$$ Algorithm is to write solve the Euler–Lagrange equation, then get the correct constant with respect to boundary conditions, however: $$\int_{0}^{1}(F_uh+F_u'h')dx=\int_{0}^{1}((2u+2xu')h+2(xu)h')dx=2\int_{0}^{1}((xu)'h+(xu)h')dx=\int_{0}^{1}(xuh)'dx=1*u(1)h(1)-0=u(1)h(1)$$ ,but we require $h(0)=h(1)=0$, so Euler–Lagrange equation identically equal to $0$
What should i do next?