Determinant always equal to zero?

In summary, the conversation discusses the product of a 3x2 matrix and a 2x3 matrix, and how the determinant of this product is always zero, making it non-invertible. This is due to the fact that the product only has two independent columns, resulting in a "many-to-one" mapping that cannot be inverted. The conversation also mentions the relation between matrices and linear applications and how the dimensions of the resulting space are affected by matrix multiplication.
  • #1
alexmahone
304
0
I just finished writing a computer program that takes as input a number of matrices and computes the inverse of the product of matrices.

To test this program, I wanted to input a 3x2 matrix followed by a 2x3 matrix so that the product would be a 3x3 matrix. No matter how hard I try, the determinant of the product turns out to be zero and so the product is non-invertible. Is there a theorem in linear algebra that implies that the product of a 3x2 matrix and 2x3 matrix will always have determinant zero?
 
Physics news on Phys.org
  • #2
Hi,

Yes, there is a result that fit very well.

Given any two matrices $A,B$ of size $n\times m$ and $m \times r$ (this is just to ensure we can multiply them) then $rank(AB)\leq \ \min{\{ rank(A),rank(B)\}}$.
 
  • #3
Fallen Angel said:
Hi,

Yes, there is a result that fit very well.

Given any two matrices $A,B$ of size $n\times m$ and $m \times r$ (this is just to ensure we can multiply them) then $rank(AB)\leq \ \min{\{ rank(A),rank(B)\}}$.

Sorry, I don't know about ranks. Is there a way to prove that the determinant is zero without using ranks?
 
  • #4
Well,

You can set $A=\left(\begin{array}{cc} a_1 & a_2 \\ a_3 & a_4 \\ a_5 & a_6 \end{array}\right)$ and $B=\left( \begin{array}{ccc} b_1 & b_2 & b_3 \\ b_4 & b_5 & b_6 \end{array}\right)$ and make all the computations, but it is pretty much easier if you have some linear algebra background.

For instance, it will be enough if you know the relation between matrices and linear applications, do you know it?
 
  • #5
Alexmahone said:
Sorry, I don't know about ranks. Is there a way to prove that the determinant is zero without using ranks?

Hi Alexmahone,

If you put a 3-dimensional vector in a 2x3 matrix, the result is a 2-dimensional vector - a plane.
If you then put that 2-dimensional vector in a 3x2 matrix, the result is still a plane, albeit in 3 dimensions.
The consequence is that the product of those 2 matrices only has 2 independent columns - the vectors that span the plane.
Therefore the determinant is zero.
 
  • #6
(Multiplication by) a matrix is a LINEAR map-one consequence of this is it maps subspaces of a vector space to subspaces of another vector space.

If you have an $m \times n$ matrix with real entries, the vector spaces in question are $\Bbb R^n$ and $\Bbb R^m$, that is to say an $m \times n$ matrix when multiplied by "on the left" takes an $n$-tuple to an $m$-tuple:

$(m \times n)(n \times 1) \to m\times 1$.

So let's say you have a 3x2 matrix. Even though you are mapping INTO a space of a larger dimension, you don't wind up with the whole space "being reached", you only get (at best) a two-dimensional subspace...a plane. Which plane? The plane spanned by the two columns of our matrix:

$\begin{bmatrix}a_{11}&a_{12}\\a_{21}&a_{22}\\a_{31}&a_{32}\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix} =\begin{bmatrix}a_{11}&a_{12}\\a_{21}&a_{22}\\a_{31}&a_{32}\end{bmatrix}\left(x\begin{bmatrix}1\\0\end{bmatrix}+y\begin{bmatrix}0\\1\end{bmatrix}\right)$

$= x\begin{bmatrix}a_{11}&a_{12}\\a_{21}&a_{22}\\a_{31}&a_{32}\end{bmatrix}\begin{bmatrix}1\\0\end{bmatrix} + y\begin{bmatrix}a_{11}&a_{12}\\a_{21}&a_{22}\\a_{31}&a_{32}\end{bmatrix}\begin{bmatrix}0\\1\end{bmatrix}$

$ = x\begin{bmatrix}a_{11}\\a_{21}\\a_{31}\end{bmatrix} + y\begin{bmatrix}a_{12}\\a_{22}\\a_{32}\end{bmatrix}$.

Now if you start with a 2x3 matrix, you take a 3-dimensional space and shrink it to a (at most) 2-dimensional space. As you can see from the above, hitting the two-dimensional space with a 3x2 matrix doesn't "blow it back up" again, it will stay at most "two-dimensional".

So the net effect is this (at best, more shrinkage could occur if we have "bad matrices"), just looking at dimensionality:

$3 \to 2 \to 2$.

We lose an entire dimension, which is to say our "combo mapping" (the composition, or matrix product) isn't 1-1, it's "many-to-one". Such a mapping cannot possibly be invertible (any inverse isn't "uniquely defined", and some triples in $\Bbb R^3$ will "never be reached", so we can't find any "pre-image").

You should have much better luck if you try "the other product": a 2x3 times a 3x2 matrix, which does this to the dimensions (if your matrices are "nice"-that is, of maximum rank):

$2 \to 2 \to 2$.
 

1. What is the determinant?

The determinant is a mathematical value that can be calculated for a square matrix. It represents the scaling factor of the matrix and is used in various mathematical operations, such as solving systems of linear equations and calculating the area or volume of geometric objects.

2. Why does the determinant sometimes equal zero?

The determinant equals zero when the rows or columns of a matrix are linearly dependent, meaning that one row or column can be expressed as a combination of the other rows or columns. This results in a matrix with no unique solutions, making the determinant equal to zero.

3. Can the determinant ever be negative?

Yes, the determinant can be negative. The sign of the determinant depends on the number of row or column swaps performed during the process of finding the determinant. If there is an odd number of swaps, the determinant will be negative, and if there is an even number, the determinant will be positive.

4. How can the determinant be used to solve systems of equations?

The determinant can be used to solve systems of equations by representing the system in matrix form and using the determinant to determine if the system has a unique solution or not. If the determinant is zero, then the system has no unique solution and may have infinite solutions or no solutions at all.

5. Are there any real-world applications for understanding the determinant?

Yes, understanding the determinant is crucial in various fields such as physics, engineering, and computer science. It is used in solving problems related to linear transformations, finding the inverse of a matrix, and solving systems of equations. In real-world applications, the determinant is used in image and signal processing, optimization problems, and circuit analysis.

Similar threads

  • Linear and Abstract Algebra
Replies
2
Views
616
  • Linear and Abstract Algebra
Replies
3
Views
945
  • Precalculus Mathematics Homework Help
Replies
1
Views
542
  • Linear and Abstract Algebra
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
32
Views
851
  • Linear and Abstract Algebra
Replies
6
Views
1K
  • Linear and Abstract Algebra
Replies
8
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
1K
  • Linear and Abstract Algebra
Replies
1
Views
981
  • Programming and Computer Science
Replies
1
Views
2K
Back
Top