The Iwasawa decomposition of $\text{SL}(2,\mathbf R)$ is
$$ \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} r & 0 \\ 0 & 1/r \end{bmatrix} \begin{bmatrix}1&x\\ 0 & 1 \end{bmatrix} $$
where $\begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix} \in SO(2)$, where $\begin{bmatrix} r & 0 \\ 0 & 1/r \end{bmatrix}$ is a squeeze matrix and where $\begin{bmatrix}1&x\\ 0 & 1 \end{bmatrix}$ is a shear matrix.
I wish to extend this to $\text{GL}(2,\mathbf R)$. Can I multiply with
$$ \begin{bmatrix} \sqrt{a} & 0 \\ 0 & \sqrt{a} \end{bmatrix} $$
Perhaps this gives $\text{GL}^+(2,\mathbf R)$? If so, I am also okay with that.
Finally, I was wondering what the lie algebra of $\begin{bmatrix} r & 0 \\ 0 & 1/r \end{bmatrix}$ is. And also for $\begin{bmatrix}1&x\\ 0 & 1 \end{bmatrix}$.