In my manifolds class, we have the following theorem at our disposal:
Let $Z \subseteq \mathbb{R}^n$ and suppose for each $p \in Z$ there is a neighborhood $N \subseteq \mathbb{R}^n$ of $p$ and a $C^k$ function $f: N \rightarrow \mathbb{R}$ such that $N \cap Z = f^{-1}(0)$ and $\nabla f|_p \neq 0$. Then $Z$ is a $C^k$ manifold of dimension $n-1$.
It's clear that we can use this to show that $SL(n, \mathbb{R})$ is a smooth manifold. Let $Z = SL(n, \mathbb{R}) \subseteq \mathbb{R}^{n \times n} \cong \mathbb{R}^{n^2}$. If we just let $f(P) = \det P -1$, clearly a $C^\infty$ function, then $N$ can just be the whole space $\mathbb{R}^{n^2}$. We need only check that the gradient of our $f$ is nonzero at each $P \in SL(n, \mathbb{R})$. We were given this formula:
$\nabla_M \det P = \dfrac{\det P}{\text{tr} (P^{-1}M)}$
So just taking $\nabla f$ in the direction of $P$ and evaluating at $P$ gives $\frac{1}{\text{tr} (I)} = \frac{1}{n} \neq 0$.
My first question is whether, given the two quoted pieces from our professor, this is enough to show that $SL(n, \mathbb{R})$ is a manifold. My second question is how to solve this second problem:
Define explicitly a smooth atlas on $SL(2, \mathbb{R})$ and its patching functions.
I'm not sure how to do this, since the above proposition we used is nonconstructive. I can't think of what the open sets should be as domains for the charts. I know that it should be a three-dimensional manifold, but beyond that I have no idea what the charts in the atlas should be. Any hints are appreciated.