I know how to prove that if a (smooth, compact, connected) manifold of dimension $n$ is orientable then $H^n_{dR}(M) = \mathbb{R}.$ I was wondering why the converse is true, i.e., if the top comology isn't zero....how can I construct a never-vanishing n-form? I get that I can use an n-form $w$ that is closed but not exact...but does that imply that it is never-vanishing?
Thanks!
Let $M$ be closed connected non-orientable and $\omega$ a top-dimensional form. Pull this back to the orientable double cover $\tilde M$; because the nontrivial deck transformation $\iota$ is orientation reversing, we have $$-\int \tilde \omega = \int \iota^*\tilde \omega,$$ and so $\int \tilde \omega = 0$. Therefore there is a form with $d\eta = \tilde \omega$. You can replace $\eta$ with $\frac 12(\eta + \iota^* \eta)$ to get an $\iota^*$-invariant form whose derivative is $\tilde \omega$; thus it descends to an antiderivative of $\omega$ on $M$, making every top form exact.
This is not the constructive approach you're hoping for, I don't think. I think I have such an approach but it's tedious and not insightful.