I want to prove the existence and unicity of a minimiser of the energy functional $u \to E(u) = \int_\Omega |\nabla u|^2$ for $\Omega$ a smooth domain in $\mathbb{R}^n$ with $C^1$ boundary and $u \in U := \{ u \in H^1(\Omega) : u|_{\partial \Omega} = g \}, $ for some smooth $g$.
My strategy is the following. Because the energy functional is strictly convex, unicity is guaranteed (if there were two different minimizers $u,v$, then $\frac{u+v}{2}$ would have strictly lower energy). Now take a minimizing sequence $(u_k)$ ; it is bounded in $H^1$ (simply because the norm in $H^1$ is $E(u)+||u||_{L^2}$), and $U$ is a Hilbert space (as a closed subset of $H^1$, which is Hilbert), so $U$ is reflexive and thus I can extract a weakly converging subsequence $u_k \xrightarrow{\text{weakly}}{u} \in U$. Now I just have to prove weak lower-semicontinuity of $E$.
This is where I got stuck. I tried $\int_\Omega \nabla u \cdot \nabla u = \lim_k \int_\Omega \nabla u \cdot (\nabla u - \nabla u_k) + \nabla u_k \cdot \nabla u_k$, but I don't see why $ \int_\Omega \nabla u \cdot (\nabla u - \nabla u_k)$ should necessarily converge to 0.
I have read that this might be linked to the convexity of $E$, but I am looking for a self-contained answer to fully understand. Many thanks :)