I am trying to solve Exercise 15.4 from John M. Lee's Introduction to Smooth Manifolds. Here is the statement:
Suppose M is an oriented smooth n-manifold with $n \geq 1$. Show that every local frame with a connected domain is either positively oriented or negatively oriented.
I recall that the orientation of a vector space is defined in terms of equivalence classes of ordered bases (two bases are equivalent if the determinant of the change-of-basis matrix between them is strictly positive). The pointwise orientation of a smooth manifold is a choice of orientation (in the vector space sense) for each tangent space. A manifold is said to be oriented when this pointwise orientation varies continuously, meaning that for every point, we can find a local frame $(E_1,\ldots,E_n)$ that is linearly independent in a neighborhood of p and positively oriented at each point in this neighborhood.
I think I need this result to prove the "conversely" part of Proposition 15.6, which explains how we can define an orientation from a consistently oriented atlas.
To solve the exercise, I was trying to construct a continuous map from M to {0,1}. My rough idea was that since orientation is defined in such a way that it does not change randomly in the tangent spaces of nearby points, it would be surprising for it to suddenly switch at some moment in a connected domain. Usually, in this kind of mathematical situation, finding the right continuous map into a discrete set is key to formalizing this intuition that "it can't jump." However, I must have skipped several sections on vector bundles and frames because I don't have time to study the entire chapter, so I am finding these notions difficult to work with. Could someone give me a hint?