[Math] Checking on the injectivity, surjectivity and bijectivity of this function

determinantlinear algebramatrices

While sitting in a determinant class, our Professor, while describing determinants, coined an observation which made me wonder. He stated that the determinant of a square matrix can be represented as a function in the following way –

Let $M$ be the set of all square matrices, then a function, say X, is defined from $M \to \mathbb{R}$ which returns the determinant of any square matrix $C \in M$ i.e.
$$ X : M \to \mathbb{R}$$ which returns $|M|$

As soon as he said this, I began to wonder about the injectivity, surjectivity and bijectivity of this function.

I was told that for a given $C \in M$, there exists only one unique determinant $|M| \in \mathbb{R}$. But the converse is not true according to me. This can be proved by the following argument –

Let's say that $$\begin{vmatrix}
x &5 \\
x &x\\
\end{vmatrix} = -6 $$
On solving for $x$, we obtain two values i.e $2$ and $3$, therefore the matrix is not unique for the given determinant i.e. for one image ($-6$), there exist multiple preimages. Hence, according to me, the function so defined is not injective, and consequently not bijective as well.

Now checking for surjectivity, we'll have to look for the equality of the codomain and the range of the function. In my opinion, for infinite square matrices, there will be infinite unique determinants belonging to $\mathbb{R}$. Hence the function should be surjective, but only for real entries into the matrix.

For complex entries, I don't think the function remains surjective, as the range will not coincide with the codomain (i.e. $\mathbb{R}$). However, in both cases, I feel that the function is neither injective not bijective.

I would like to know if I am right or not by knowing the views of the math-geeks sitting out there. Thanks!

Best Answer

These are good questions to ask of newly-encountered functions.


If $A$ and $B$ are $n \times n$ matrices, the following properties are valid for the determinant function:

  • $\det(cA) = c^n \det(A)$
  • $\det(AB) = \det(A) \det(B)$
  • Swapping any two columns of $A$ changes the sign of its determinant but not the magnitude.

Using these, we can tackle both injectivity and surjectivity.

  • Surjectivity: note that $\det(I) = 1$. Therefore, to arrive at a matrix with determinant $d$, simply multiply the identity matrix by $\sqrt[n]{d}$ and / or swap two of its columns.
  • Injectivity: Let $B$ be any non-identity matrix of determinant $1$, such as a rotation matrix. Then, according to the second rule above, we'll have $\det(AB) = \det(A)\det(B) = \det(A)$.

You can also approach this question by considering the geometric interpretation of the determinant: it gives the (signed) volume of the $n$-dimensional parallelepiped spanned by the column vectors of the matrix. For instance, working in the $2 \times 2$ case, one can see that the determinant cannot be injective because applying a shear transform (or rotation or any other area-preserving transformation) to a parallelogram does not change its area; hence, we can get two unique parallelograms of equal area which correspond to two unique matrices of equal determinant$^\dagger$. Moreover, the determinant is surjective as we can construct parallelograms of any prescribed area (the area function varies continuously as we vary the length of a side). These ideas generalize easily to higher dimensions.


$^\dagger$If $A$ represents the matrix whose columns span the original parallelogram and $B$ is the matrix representation of the shear transformation, then the columns of $BA$ will span the sheared parallelogram. I.e. $\det(A) = \det(BA)$.

Related Question