In an old exercise sheet there was the following Lie group:
$$G = \left\{ \begin{pmatrix} a & b \\ 0 & a^{-1}\end{pmatrix} \Big|\ a> 0\ \text{and}\ b\in \mathbb R\right\}$$
and in order to see whether i understood things correctly, I wanted to determine its corresponding Lie algebra $\frak g$. However, I don't exactly know how to approach this problem.
What I've tried:
My first naive approach was to consider $G$ as a Lie subgroup of $\operatorname{GL}_2(\mathbb R)$ and use the one-parameter subgroup $$\gamma(t) = e^{tA}$$ since $$A \in {\frak{g}} \iff e^{tA} \in G\quad \forall t\in \mathbb R$$
However, I'm not sure how to proceed from here since, unlike in the examples of the common Lie subgroups $O(n), \operatorname{SO}(n)$ or $\operatorname{GL}_n(\mathbb R)$, I don't see a straight forward property of elements of $G$ that would be of help in order to use the exponential map accordingly.
My second thought was choosing a one-parameter subgroup $$\gamma\colon \mathbb R\to G$$ s.t. $\gamma(0) = E$, one possible one-parameter subgroup would be $$\gamma(t) = \begin{pmatrix} 1+t & 0 \\ 0 & (1+t)^{-1}\end{pmatrix}$$
Now clearly $\gamma(0) = E$. But now I'm not entirely sure. I thought about considering $\gamma'(0)$ in order to obtain a tangent vector at $E$ and then determine the unique corresponding left-invariant vector field $\widetilde X$ via $$\widetilde X(H) = dL_H(\gamma'(0))$$ where $H$ denotes a fixed but arbitrary element of $G$ and $dL_H$ is the push-forward (the differential) of the left-translation map $$L_H\colon G\to G,\ A\mapsto HA$$
My question:
Would my second attempt somehow be reasonable? Or do I confuse some things?
Additionally, I'd like to ask whether someone could give me a hint regarding my first approach (embedding $G\hookrightarrow \operatorname{GL_2}(\mathbb R)$)
Thanks for any help.