$\int_0^1f(t)\phi'(t)dt=-\int_0^1g(t)\phi(t)dt$, for all smooth $\phi\in[0,1]$ implies $f$ is absolutely continuous and $f'=g$ a.e.

Solution 1:

Let $F(x):=\int_0^xg(t)\,dt$. Then, $F$ is AC on $[0,1]$ with $F'=g$ a.e. Note that for any $\phi\in C^{\infty}([0,1])$ which vanishes at the endpoints, we can integrate by parts (why is it applicable here?) to get \begin{align} \int_0^1F(t)\phi'(t)\,dt&=-\int_0^1F'(t)\phi(t)\,dt=-\int_0^1g(t)\phi(t)\,dt=\int_0^1f(t)\phi'(t)\,dt. \end{align} Hence, $F$ and $f$ agree up to a constant. Therefore, we have shown that $f$ equals a function ($F$ plus a constant) which is AC on $[0,1]$ that has a.e derivative $g$.


This final assertion that $F$ and $f$ agree up to a constant is a consequence of the following lemma:

If $h\in L^1([a,b])$ and for all smooth $\phi$ vanishing at endpoints we have $\int_a^bh(t)\phi'(t)\,dt=0$, then $h$ equals a constant a.e (namely its average $\frac{1}{b-a}\int_a^bh(t)\,dt$).

Here is one possible proof. Note that neither our hypotheses nor our conclusion is affected if we add a constant to $h$. Hence, by subtracting off the average from $h$, we may as well assume $\int_a^bh(t)\,dt=0$. Now, let $\psi$ be any smooth function on $[a,b]$, consider $\tilde{\psi}=\psi-\frac{1}{b-a}\int_a^b\psi$, and define $\phi:[a,b]\to\Bbb{R}$ as $\phi(x):=\int_a^x\tilde{\psi}(t)\,dt$. Then, $\phi$ is smooth, $\phi'=\tilde{\psi}$, $\phi(a)=0$, and $\phi(b)=0$ (because we ensured that $\tilde{\psi}$ had zero average). Hence, \begin{align} 0&=\int_a^bh(t)\phi'(t)\,dt\\ &=\int_a^bh(t)\tilde{\psi}(t)\,dt \\ &=\int_a^bh(t)\psi(t)\,dt - \left(\int_a^bh(t)\,dt\right)\cdot \left(\frac{1}{b-a}\int_a^b\psi(t)\,dt\right)\\ &=\int_a^bh(t)\psi(t)\,dt-0. \end{align} In other words, for all smooth functions $\psi$ on $[a,b]$ we have $\int_a^bh\psi=0$, and thus $h=0$ a.e. (hopefully you've already seen this result).