I am really baffled by a seemingly easy question on differential 1-forms.
Let $U \subset \mathbb{R}^n$ and $w$ be a differential 1-form on $U$. Suppose $\int_{\phi} w = \int_{\psi} w$ whenever $\phi$ and $\psi$ begin and end at the same points. Show that $w$ is exact.
I don't even know where to start! Any help or hint would be greatly appreciated.
Here is a good place to start. Choose some $x_0\in U$. Then, given $x\in U$, choose a path $\gamma$ with $$\gamma(0)=x_0,\quad\gamma(1)=x,$$ and set $$F(x):=\int_\gamma w.$$ Buy assumption, $F$ is independent of the choice of $\gamma$. Your job now is to show that $dF=w.$