Let $h_1 \mathrm{d}x_1 + h_2 \mathrm{d}x_2$ be a non-vanishing $1$-form on a $2$-dimensional manifold. Why do locally exist smooth functions $f,g$ with $f\mathrm{d}g= h_1 \mathrm{d}x_1 + h_2 \mathrm{d}x_2$?
I think this should follow from some statement about differential equations (and existence of some integrating factor?) in usual analysis, but sadly in all of mathematics differential equations are probably the topic I know the least about.
Edit: It would suffice to prove the following: let $h_1, h_2: \mathbb{R}^2 \rightarrow \mathbb{R}$ be smooth functions. Then exists for all $x \in \mathbb{R}^2$ a neighborhood $U$ and $f,g_1, g_2$ smooth functions on $U$, such that $h_i=f g_i$ and $\partial_{x_1}g_2= \partial_{x_2}g_1$.