Chapter 12: Problem 7
Consider the functions \(f, g: \mathbb{Z} \times \mathbb{Z} \rightarrow \mathbb{Z} \times \mathbb{Z}\) defined as \(f(m, n)=\left(m n, m^{2}\right)\) and \(g(m, n)=(m+1, m+n)\). Find the formulas for \(g \circ f\) and \(f \circ g\).