This (probably very elementary) question came up the last time I taught differential equations, and I've been toying with it for a while with no success:
A 1st-order differential equation $M(x,y)dx+N(x,y)dy=0$ is exact if $$M(x,y)dx+N(x,y)dy=f_x(x,y)dx+f_y(x,y)dy$$ for some differentiable function $f(x,y)$ defined on the domain of $\omega$. In this case, we easily arrive at an implicitly-defined solution to the differential equation. Importantly, there is a nice test for exactness stemming from Clairaut's theorem -- for everywhere smooth $M$ and $N$ (for simplicity/laziness...obvious generalizations abound), the differential equation is exact iff $N_y=M_x$. Of course, this procedure is easily re-interpreted as saying that by the triviality of $H^1(\mathbb{R}^2)$, a one-form is closed if and only if it is exact.
Now let's move one degree higher. Boyce and Di Prima define a 2nd-order differential equation $P(x)y''+Q(x)y'+R(x)y=0$ to be exact if there exists a differentiable function $f(x,y)$ such that the differential equation can be written
$$P(x)y''+Q(x)y'+R(x)y=[P(x)y']'+[f(x)y]'=0.$$
The analogous expression to Clairaut's theorem seems to be that (again, for sufficiently smooth inputs) an equation of that form is exact iff $P''(x)-Q'(x)+R(x)=0.$ Of importance is that such forms can be integrated once to leave us with a 1st-order differential equation. So we've successfully lowered the degree of our problem.
This feels to me very much like an analogous $H^2$ calculation. We have a condition on some coefficients that very much looks like an alternating sum coming from a $d$ map on forms, and lets us conclude that the equation "comes from" a one-degree-smaller differential equation.
But! (and here's the question) I can't seem to fit any 2-forms into this picture that would explain this analogy. Presumably there's some big story here linking the two notions of exactness about which I'd love to be enlightened.
Side remark: I once received a partial response that there might be a link with Cartan tableau, which I've been unsuccessful in pursuing, if that helps spark an idea.