3-35. \(^{*}(a)\) Let \(g: \mathbf{R}^{n} \rightarrow \mathbf{R}^{n}\) be a linear
transformation of one of the following types:
$$
\begin{aligned}
&\left\\{\begin{array}{l}
g\left(e_{i}\right)=e_{i} \\
g\left(e_{j}\right)=a e_{j}
\end{array} \quad i \neq j\right. \\
&\left\\{\begin{array}{l}
g\left(e_{i}\right)=e_{i} \quad i \neq j \\
g\left(e_{j}\right)=e_{j}+e_{k}
\end{array}\right. \\
&\left\\{\begin{array}{l}
g\left(e_{k}\right)=e_{k} \quad k \neq i, j \\
g\left(e_{i}\right)=e_{j} \\
g\left(e_{j}\right)=e_{i}
\end{array}\right.
\end{aligned}
$$
If \(U\) is a rectangle, show that the volume of \(g(U)\) is \(|\operatorname{det}
g| \cdot v(U)\).
(b) Prove that \(|\operatorname{det} g| \cdot v(U)\) is the volume of \(g(U)\) for
any linear transformation \(g: \mathbf{R}^{n} \rightarrow \mathbf{R}^{n},
\quad\) Hint \(:\) If det \(g \neq 0\), then \(g\) is the composition of linear
transformations of the type considered in (a).