If $\omega$ is an $n$-form on a compact $n$-dimensional manifold $M$ without boundary, then $\omega $ is exact if and only if $\int\limits_{M}{\omega }=0$.
Maybe there are two ways - use de Rham theory, and another way is to prove this directly.I don't know both. Help!