Given the following problem:
Given the functions $g_1, g_2, g_3, g_4$ of $\mathbb{R}^*$ in $\mathbb{R}^*$ defined in the following way: $g_1(x) = -x$, $g_2(x) = -\frac{1}{x}$, $g_3(x) = x$ and $g_4(x) = \frac{1}{x}$. If $G = \{g_1, g_2, g_3, g_4\}$:
Show that $(G, \circ)$ is a group where $\circ$ is the composition of functions. Write the table.
Identify a generator set of $(G, \circ)$ that has the least number of elements possible.
Extract all the normal subgroups of $(G, \circ)$. If $H$ is one of them, describe $G$ \ $H$.
I am having lots of problems figuring out how proceed with such a set.
If I understand correctly, the composition of functions is for example:
$$ (\forall x\in\mathbb{R}^*):\enspace(g_1 \circ g_2)(x) = g_1(g_2(x)) = g_1(-\frac{1}{x}) = -(-\frac{1}{x}) = \frac{1}{x} $$
Is that so?
Then I know that to prove that $(G, \circ)$ is a group, I have to prove the following:
The internal law: $g_i \circ g_j \in G$.
Associativity: $g_i \circ (g_j \circ g_k) = (g_i \circ g_j) \circ g_k$.
Existence of the neutral element $g_e$ such that: $g_i \circ g_e = g_e \circ g_i = g_i$.
Existence of an inverse element $g_i'$ for each $g_i \in G$, we have that $g_i \circ g_i' = g_i' \circ g_i = g_e$
But how do I proceed with such a set?