Prove that $|\mathbb{R}| = |(0, 1)|$. (Hint: Consider the tangent function.)
This is my current thought process:
Using the hint, I map $(0, 1) \rightarrow (-\frac{\pi}{2},\frac{\pi}{2})$ by the function $f(x) = \pi x - \frac{\pi}{2}$, and then state that since $f$ is linear, and bijective, it must be that -- somehow -- $|\mathbb{R}| = |(0, 1)|$.
Do I have the general idea? Or am I way off?
Your proof is basically correct, but needs to be fleshed out just a bit. Recall that two sets have the same cardinality if there is a bijection between them. We are going to build a bijection from $(0,1)$ to $\mathbb{R}$ in two steps:
The composition of bijections is a bijection, and so $\psi\circ\varphi : (0,1) \to \mathbb{R}$ is bijective. Therefore $$ |(0,1)| = |\mathbb{R}|. $$