[step:Compute the partial derivatives of $f$ by extending paths along axis-parallel segments]Fix $x \in U$ and $i \in \{1, \dots, n\}$. Since $U$ is open, there exists $r > 0$ with $\overline{B}(x, r) \subseteq U$. For each $h \in \mathbb{R}$ with $|h| < r$, define the segment
\begin{align*}
\sigma_h : [0, 1] &\to U \\
s &\mapsto x + s h e_i,
\end{align*}
which is smooth and lies in $B(x, r) \subseteq U$ because the ball is convex and $|sh e_i| \le |h| < r$ for $s \in [0,1]$.
Let $\eta_{x+h e_i}$ be the concatenation $\eta_x * \sigma_h$, which is a piecewise smooth path from $x_0$ to $x + h e_i$. By definition of $f$ and the additivity of the line integral over concatenations,
\begin{align*}
f(x + h e_i) \;=\; \int_{\eta_x * \sigma_h} \omega \;=\; \int_{\eta_x} \omega + \int_{\sigma_h} \omega \;=\; f(x) + \int_{\sigma_h} \omega.
\end{align*}
Computing the second integral using the coordinate formula for the pullback, and writing $\dot\sigma_h(s) = h\, e_i$,
\begin{align*}
\int_{\sigma_h} \omega \;=\; \int_0^1 \sum_{j=1}^n \omega_j(x + s h e_i)\, h\, \delta_{ji}\, d\mathcal{L}^1(s) \;=\; h \int_0^1 \omega_i(x + s h e_i)\, d\mathcal{L}^1(s).
\end{align*}
Substituting $u = sh$ when $h \ne 0$ (with $du = h\, ds$, so $h\, ds = du$, and $s = 0 \leftrightarrow u = 0$, $s = 1 \leftrightarrow u = h$):
\begin{align*}
\int_{\sigma_h} \omega \;=\; \int_0^h \omega_i(x + u e_i)\, d\mathcal{L}^1(u).
\end{align*}
(For $h < 0$ the formula reads with the orientation reversed, $\int_0^h = -\int_h^0$, which the substitution handles automatically.) Therefore
\begin{align*}
\frac{f(x + h e_i) - f(x)}{h} \;=\; \frac{1}{h} \int_0^h \omega_i(x + u e_i)\, d\mathcal{L}^1(u).
\end{align*}
Since $\omega_i \in C^\infty(U)$ is in particular continuous at $x$, the right-hand side converges to $\omega_i(x)$ as $h \to 0$ by the [Fundamental Theorem of Calculus](/theorems/632) (continuity of the integrand at $0$ in the variable of integration is precisely what makes the difference quotient of an indefinite integral converge to the integrand). Thus
\begin{align*}
\partial_{x_i} f(x) \;=\; \omega_i(x) \qquad \text{for every } x \in U,\ i \in \{1, \dots, n\}.
\end{align*}[/step]