§ The cutest way to write semidirect products


Given two monoids (M,+,0M)(M, +, 0_M) and (N,×,1N)(N, \times, 1_N), and a homomorphism ϕ:NEnd(M)\phi: N \rightarrow End(M), where End(M)End(M) is the endomorphism group of MM. We will notate ϕ(n)(m)\phi(n)(m) as nmMn \cdot m \in M.
Now the semidirect product MϕNM \ltimes_\phi N is the set M×NM \times N equipped with the multiplication rule:

This can also be written down as:
[10mn][10mn]=[10m+nmn×n] \begin{bmatrix} 1 & 0 \\ m & n \end{bmatrix} \begin{bmatrix} 1 & 0 \\ m' & n' \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ m + n \cdot m' & n \times n' \end{bmatrix}

This way of writing down semidirect products as matrices makes many things immediately clear:

[10m+nmn×n]=[1001] \begin{bmatrix} 1 & 0 \\ m + n \cdot m' & n \times n' \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

Hence:
which is indeed the right expression for the inverse.