[guided]We are setting up the linear algebra that will let us read off $H^1_{\mathrm{dR}}(T^2)$ directly. The closedness condition $\partial_x b = \partial_y a$ becomes a single equation per Fourier mode, while exactness imposes two equations per Fourier mode (one for each partial derivative of the potential $f$). The discrepancy lives entirely in the zero mode $(m, n) = (0, 0)$, and that is the source of the $\mathbb{R}^2$ in $H^1$.
**Exactness in Fourier.** A $1$-form $\omega = a\, dx + b\, dy$ is exact iff there is $f \in C^\infty(T^2)$ with $df = \omega$, equivalently
\begin{align*}
\partial_x f = a, \qquad \partial_y f = b.
\end{align*}
Applying $\widehat{\,\cdot\,}$ and using $\widehat{\partial_x f}(m,n) = im\, \widehat{f}(m,n)$ and $\widehat{\partial_y f}(m,n) = in\, \widehat{f}(m,n)$, this becomes the system $(\ast\ast)$:
\begin{align*}
im\, \widehat{f}(m, n) = \widehat{a}(m, n), \qquad in\, \widehat{f}(m, n) = \widehat{b}(m, n) \qquad \text{for every } (m, n) \in \mathbb{Z}^2.
\end{align*}
At the zero mode $(m, n) = (0, 0)$, both equations read $0 = \widehat{a}(0,0)$ and $0 = \widehat{b}(0,0)$, so vanishing of the *constant* Fourier modes of $a$ and $b$ is *necessary* for exactness. Geometrically, $\widehat{a}(0, 0) = \frac{1}{4\pi^2}\int_{T^2} a\, d\mathcal{L}^2$, so we are saying that the *averages* of $a$ and $b$ are obstructions to exactness — which is consistent with the integrals $\int_{S^1 \times \{*\}} \omega$ and $\int_{\{*\} \times S^1} \omega$ along the two generating cycles being the natural cohomological pairing.
**The converse: closed and zero-mean implies exact.** Suppose $\omega$ is closed (so $(\ast)$ holds) and $\widehat{a}(0, 0) = \widehat{b}(0, 0) = 0$. We construct a potential $f$ by directly solving the Fourier system. Off the zero mode we need to invert $im$ (or $in$ when $m = 0$); the closedness relation $(\ast)$ guarantees that the two formulas $\widehat{a}/(im)$ and $\widehat{b}/(in)$ agree when both are defined. We set
\begin{align*}
\widehat{f}(m, n) := \begin{cases} \widehat{a}(m, n)/(im) & m \neq 0, \\ \widehat{b}(0, n)/(in) & m = 0,\ n \neq 0, \\ 0 & (m, n) = (0, 0). \end{cases}
\end{align*}
*Smoothness check.* Why is $f$ smooth, and not merely $L^2$? For $|m| \geq 1$, $|\widehat{f}(m,n)| = |\widehat{a}(m,n)|/|m| \leq |\widehat{a}(m,n)|$, and for $m = 0$, $|n| \geq 1$, $|\widehat{f}(0,n)| = |\widehat{b}(0,n)|/|n| \leq |\widehat{b}(0,n)|$. The right-hand sides are rapidly decreasing because $a, b \in C^\infty(T^2)$, so $\widehat{f}$ is rapidly decreasing — which is the smoothness criterion from the previous step. We also check real-valuedness at the coefficient level. Since $a$ and $b$ are real-valued, $\overline{\widehat a(m,n)} = \widehat a(-m,-n)$ and $\overline{\widehat b(m,n)} = \widehat b(-m,-n)$. If $m \neq 0$, then $\overline{\widehat f(m,n)} = \overline{\widehat a(m,n)/(im)} = \widehat a(-m,-n)/(i(-m)) = \widehat f(-m,-n)$. If $m = 0$ and $n \neq 0$, the same computation with $\widehat b(0,n)/(in)$ gives $\overline{\widehat f(0,n)} = \widehat f(0,-n)$. At $(0,0)$ both sides equal $0$. Hence the inverse [Fourier series](/page/Fourier%20Series) defines a real-valued $f \in C^\infty(T^2)$.
*Verification of $(\ast\ast)$.*
- For $m \neq 0$: $im\, \widehat{f}(m,n) = im \cdot \widehat{a}(m,n)/(im) = \widehat{a}(m,n)$, which is the $\widehat{a}$-equation. For the $\widehat{b}$-equation, $in\, \widehat{f}(m,n) = (in/im)\, \widehat{a}(m,n) = (n/m)\, \widehat{a}(m,n)$; but $(\ast)$ reads $m\, \widehat{b}(m,n) = n\, \widehat{a}(m,n)$, so $(n/m)\, \widehat{a}(m,n) = \widehat{b}(m,n)$. Both equations are verified.
- For $m = 0$, $n \neq 0$: the $\widehat{a}$-equation reads $0 = \widehat{a}(0, n)$. We verify this from $(\ast)$ at $(0, n)$: the relation reads $0 = n\, \widehat{a}(0, n)$, and since $n \neq 0$, $\widehat{a}(0, n) = 0$. The $\widehat{b}$-equation reads $in\, \widehat{f}(0, n) = \widehat{b}(0, n)$, which holds by definition of $\widehat{f}(0, n)$.
- For $(m, n) = (0, 0)$: both equations read $0 = 0$, using $\widehat{a}(0,0) = \widehat{b}(0,0) = 0$.
So $(\ast\ast)$ holds in every case. By uniqueness of Fourier expansions, $\partial_x f = a$ and $\partial_y f = b$, i.e., $df = \omega$.
We have shown: $\omega \in B^1 \iff \omega \in Z^1$ and $\widehat{a}(0,0) = \widehat{b}(0,0) = 0$. This is precisely the algebraic input needed for the next step.[/guided]