[step:Rewrite the determinant pairing using the Piola identity]For a map $v\in W^{1,n}(V;\mathbb R^n)$, define the distributional row-divergence of $\operatorname{cof}\nabla v$ by $\operatorname{div}_{\mathrm{row}}(\operatorname{cof}\nabla v)_i := \sum_{j=1}^n \partial_{x_j}(\operatorname{cof}\nabla v)_{ij}$ for each $i\in\{1,\dots,n\}$. Let $W^{1,n}_0(V)$ denote the closure of $C_c^\infty(V)$ in $W^{1,n}(V)$. We establish and use the following weak divergence identity for cofactors: for every $v\in W^{1,n}(V;\mathbb R^n)$, every $i\in\{1,\dots,n\}$, and every $\psi\in W^{1,n}_0(V)$,
\begin{align*}
\sum_{j=1}^n\int_V (\operatorname{cof}\nabla v)_{ij}\,\partial_{x_j}\psi\,d\mathcal L^n=0.
\end{align*}
Indeed, the identity is first obtained for $\psi\in C_c^\infty(V)$ in the distributional sense. Since $\operatorname{cof}\nabla v\in L^{n/(n-1)}(V;\mathbb R^{n\times n})$, the functional $\psi\mapsto\sum_j\int_V(\operatorname{cof}\nabla v)_{ij}\partial_{x_j}\psi\,d\mathcal L^n$ is continuous on $W^{1,n}_0(V)$ by Hölder's inequality, so the identity extends by density of $C_c^\infty(V)$ in $W^{1,n}_0(V)$. For Sobolev maps $v$, the distributional identity follows by approximating $v$ in $W^{1,n}$ by smooth maps and passing to the limit in the cofactors; the passage is justified because cofactors are degree $n-1$ polynomials in the gradient entries and hence converge strongly in $L^{n/(n-1)}$ under strong convergence of gradients in $L^n$.
For each $k\in\mathbb N$, the algebraic identity
\begin{align*}
\operatorname{cof}A:A=n\det A
\end{align*}
applied to $A=\nabla u_k(x)$ for $\mathcal L^n$-a.e. $x\in V$ gives
\begin{align*}
n\int_U \phi\,\det\nabla u_k\,d\mathcal L^n = \int_V \phi\,\operatorname{cof}\nabla u_k:\nabla u_k\,d\mathcal L^n,
\end{align*}
where the domain has been changed from $U$ to $V$ because $\operatorname{supp}\phi\subset V$.
Writing out the matrix contraction gives
\begin{align*}
\int_V \phi\,\operatorname{cof}\nabla u_k:\nabla u_k\,d\mathcal L^n = \sum_{i=1}^n\sum_{j=1}^n \int_V \phi\,(\operatorname{cof}\nabla u_k)_{ij}\,\partial_{x_j}u_{k,i}\,d\mathcal L^n.
\end{align*}
For fixed $i\in\{1,\dots,n\}$, the function $\psi_{k,i}:V\to\mathbb R$ defined by $\psi_{k,i}=\phi u_{k,i}$ belongs to $W^{1,n}_0(V)$ because $\phi\in C_c^\infty(V)$ and $u_{k,i}\in W^{1,n}(V)$. Applying the weak Piola identity to $v=u_k$ and $\psi=\psi_{k,i}$ yields
\begin{align*}
0= \sum_{j=1}^n\int_V (\operatorname{cof}\nabla u_k)_{ij}\,\partial_{x_j}(\phi u_{k,i})\,d\mathcal L^n.
\end{align*}
Using the Sobolev product rule for the product of the smooth bounded function $\phi$ and the Sobolev function $u_{k,i}$,
\begin{align*}
\partial_{x_j}(\phi u_{k,i})=(\partial_{x_j}\phi)u_{k,i}+\phi\,\partial_{x_j}u_{k,i}
\end{align*}
in $L^n(V)$. Therefore, after summing over $i$,
\begin{align*}
\int_V \phi\,\operatorname{cof}\nabla u_k:\nabla u_k\,d\mathcal L^n = -\int_V \operatorname{cof}\nabla u_k:(u_k\otimes\nabla\phi)\,d\mathcal L^n.
\end{align*}
Therefore
\begin{align*}
n\int_U \phi\,\det\nabla u_k\,d\mathcal L^n = -\int_V \operatorname{cof}\nabla u_k:G_k\,d\mathcal L^n.
\end{align*}
The same argument with $u$ in place of $u_k$ gives
\begin{align*}
n\int_U \phi\,\det\nabla u\,d\mathcal L^n = -\int_V \operatorname{cof}\nabla u:G\,d\mathcal L^n.
\end{align*}[/step]