Let $g_i:\mathbb{R}^N\to\mathbb{R}$ ($i=1,...N$) with $g_i\in W^{1,\infty}(\mathbb{R}^N)$ and define $g=(g_1,...,g_N)$. Let $G=\operatorname{div}g$, where $\operatorname{div}g=\frac{\partial g_1}{\partial x_1}+...+\frac{\partial g_N}{\partial x_N}$. Let $Q$ be the unit cube in $\mathbb{R}^N$ with center in origin and suppose that each $g_i$ is $Q$ periodic.
Can I conclude that $$\int_Q G=0$$
Remark: $Q$ periodic here mean: If we consider the relation $x=(x_1,x_2)\sim y=(y_1,y_2)$ if and only if $(x_1,x_2)=(y_1,y_2)+(2k,2n)$, for some $k,n\in \mathbb{Z}$, then $g_i(x)=g_i(y)$ if $x\sim y$.
Thank you.