A student defines a function \(\mathrm{f}\) and its inverse \({{\mathrm{f}}^{-1}}\) by the following:
\(\mathrm{f}:x\mapsto \sin x,\) \(\qquad\,\,\,\) \(x\in \mathbb{R},\) \(\quad\) \(-\pi \le x\le \pi \)
\({{\mathrm{f}}^{-1}}:x\mapsto {{\sin }^{-1}}x,\) \(\;\;\) \(x\in \mathbb{R},\) \(\;\;\) \(-1\le x\le 1\).
With the aid of a sketch, explain what is wrong with the definition of \(\mathrm{f}\), and suggest a suitable restriction to its domain such that the definition of \({{\mathrm{f}}^{-1}}\) is correct.[2]