[step:Construct a smooth orientation from a nowhere-vanishing $n$-form]Assume that $\omega \in \Omega^n(M)$ satisfies $\omega_p \neq 0$ for every $p \in M$. For each $p \in M$, define an orientation of the real [vector space](/page/Vector%20Space) $T_pM$ as follows: an ordered basis $(v_1,\dots,v_n)$ of $T_pM$ is declared positive if and only if
\begin{align*}
\omega_p(v_1,\dots,v_n) > 0.
\end{align*}
Because $\omega_p$ is a nonzero alternating $n$-linear form on the $n$-dimensional vector space $T_pM$, this definition selects exactly one of the two orientation classes on $T_pM$.
We verify that this pointwise orientation is smooth. Let $p \in M$, and let $(U,\varphi)$ be a smooth coordinate chart with
\begin{align*}
\varphi: U &\to \varphi(U) \subseteq \mathbb{R}^n, \\
q &\mapsto (x_1(q),\dots,x_n(q)).
\end{align*}
On $U$, the coordinate $n$-form $dx_1 \wedge \cdots \wedge dx_n$ is a local frame for $\Lambda^nT^*M$, so there is a unique smooth function
\begin{align*}
a: U &\to \mathbb{R}
\end{align*}
such that
\begin{align*}
\omega|_U = a\, dx_1 \wedge \cdots \wedge dx_n.
\end{align*}
Since $\omega_q \neq 0$ for every $q \in U$, we have $a(q) \neq 0$ for every $q \in U$.
If $a(p) > 0$, shrink $U$ to an open neighbourhood $U_p \subseteq U$ of $p$ on which $a>0$. Then $(U_p,\varphi|_{U_p})$ is positively oriented for the orientation just defined. If $a(p)<0$, let
\begin{align*}
R: \mathbb{R}^n &\to \mathbb{R}^n, \\
(y_1,\dots,y_n) &\mapsto (-y_1,y_2,\dots,y_n)
\end{align*}
be the reflection in the first coordinate, and define the chart
\begin{align*}
\psi: U &\to R(\varphi(U)), \\
q &\mapsto R(\varphi(q)).
\end{align*}
Writing $\psi(q)=(y_1(q),\dots,y_n(q))$, we have
\begin{align*}
dy_1 \wedge \cdots \wedge dy_n = - dx_1 \wedge \cdots \wedge dx_n.
\end{align*}
Thus
\begin{align*}
\omega|_U = (-a)\, dy_1 \wedge \cdots \wedge dy_n.
\end{align*}
Since $-a(p)>0$, shrink $U$ to an open neighbourhood $U_p$ of $p$ on which $-a>0$. Then $(U_p,\psi|_{U_p})$ is positively oriented.
It remains to check compatibility of these positive charts. Let $(U,\varphi)$ and $(V,\psi)$ be two charts whose coordinate bases are positive for the orientation defined by $\omega$. Write
\begin{align*}
\varphi(q) &= (x_1(q),\dots,x_n(q)), \\
\psi(q) &= (y_1(q),\dots,y_n(q)).
\end{align*}
On $U \cap V$, there are smooth positive functions $a_\varphi,a_\psi:U\cap V\to (0,\infty)$ such that
\begin{align*}
\omega = a_\varphi\, dx_1\wedge\cdots\wedge dx_n
= a_\psi\, dy_1\wedge\cdots\wedge dy_n.
\end{align*}
The coordinate change formula for top-degree forms gives
\begin{align*}
dy_1\wedge\cdots\wedge dy_n
=
\det J(\psi\circ\varphi^{-1})\,
dx_1\wedge\cdots\wedge dx_n.
\end{align*}
Therefore
\begin{align*}
a_\varphi
=
a_\psi\, \det J(\psi\circ\varphi^{-1}).
\end{align*}
Since $a_\varphi>0$ and $a_\psi>0$, it follows that
\begin{align*}
\det J(\psi\circ\varphi^{-1})>0
\end{align*}
on $\varphi(U\cap V)$. Hence the positive charts form an oriented atlas, so $M$ is orientable.[/step]