Next Article in Journal
A Proposal to the ‘12 vs. 32 Puzzle’
Previous Article in Journal
A Feature Fusion Human Ear Recognition Method Based on Channel Features and Dynamic Convolution
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Concept Paper

Computation of Matrix Determinants by Cross-Multiplication: A Rethinking of Dodgson’s Condensation and Reduction by Elementary Row Operations Methods

by
Judel Villas Protacio
College of Education, Arts and Sciences, Capiz State University, Roxas City 5802, Philippines
Symmetry 2023, 15(7), 1456; https://doi.org/10.3390/sym15071456
Submission received: 22 June 2023 / Revised: 12 July 2023 / Accepted: 19 July 2023 / Published: 21 July 2023

Abstract

:
We formulate a more straightforward, symmetry-based technique for manually computing the determinant of any  n × n  matrix by revisiting Dodgson’s condensation method, as well as strategically applying elementary row (column) operations and the definition and properties of determinants. The result yields a more streamlined algorithm that is generalized through formulas and employs a smaller number of operations and succeeding matrices than the existing methods.

1. Introduction

The study of determinants continues as a relevant mathematical area pursued for its utility in various fields of mathematics, engineering, and sciences. The invention of the determinant as a unique number associated with a square array of numbers by Seki Kowa, in the late 17th century, predated the introduction of matrices in the 19th century by James Sylvester and Charles Dodgson (who preferred to use the term blocks) and, consequently, the formal study of linear algebra [1,2]. With the development of linear algebra, determinants and matrices have become fundamental and significant mathematical tools due to their efficiency in representing quantities in a compact form. The solution of systems of linear equations, matrix inversion, computations of areas, and representations of complicated expressions in applied sciences, mechanical, and electrical systems can be efficiently modeled by determinants and matrices [3,4,5]. Consequently, explorations of various methods of computing determinants whether of explicit numbers or symbolic representations have become significant mathematical pursuits [4,6].
The methods of computing determinants usually presented in elementary linear algebra texts for instructional exposition purposes include the application of Leibniz’s definition of determinants, Laplace’s co-factor expansion, LU decomposition, and reduction by elementary row or column operations [5,7,8]. Research literature also offers a plethora of methods, such as Chio’s condensation, QR decomposition method, Cholesky decomposition, Dodson’s condensation method, Hajrizaj’s method, Salihu and Gjonbalaj’s method, and Sobamowo’s extension of Sarrus’ rule to  4 × 4  matrices [2,4,9,10,11]. Other methods are proposed on the basis of reducing built-in computational errors and specialized matrix forms to include division-free algorithms to compute the determinants of quasi-tridiagonal matrices [12,13], as well as develop determinant formulas for special matrices involving symmetry, such as block matrices [14], break-down free algorithms for computing the determinants of periodic tridiagonal matrices [15], and block diagonalization-based algorithms of block k-tridiagonal matrices [16].
While computer programs provide the fastest, most efficient, and highly accurate platforms in computing determinants, there are significant reasons why manually computing the determinants is essential [4]. In low-technology environments or in controlled environments, such as licensure certifications, where the use of advanced technological tools is restricted, there can only be reliance on one’s computational fluency to carry out problem solving. Hence, familiarity and mastery of efficient methods in manual computations is paramount. The goal of this paper is to develop a straightforward and efficient algorithm for the manual computation of determinants with pedagogical implications in mind. Mathematics education entails the development of procedural knowledge or action sequences for solving problems, as well as the conceptual knowledge or understanding of principles that govern relationships between pieces of knowledge [17]. With an efficient method that promotes computational fluency through optimized instructional time and cognitive effort, greater appreciation and deeper understanding of underlying concepts is likely facilitated.

1.1. Determinants by Definition

Definition 1.
The determinant of an  n × n  matrix A denoted by  d e t   [ A ]  or |A| is defined as
det A = ± a 1 j 1 a 2 j 2 a 3 j 3 a n j n
where   j 1 j 2 j 3 j n  are column numbers derived from the permutations of the set   S = { 1 ,   2 ,   3 ,   ,   n } .
The sign is taken as + for even permutations and − for odd permutations [5,7]. Accordingly, the determinants of simple matrices can be readily computed. The determinant of a single-entry matrix equals the entry itself,  d e t [ a 11 ] = a 11 .  The butterfly method for  2 × 2  matrices is so-called because the movement of computation suggests butterfly wings, that is,  a 11 a 12 a 21 a 22 = a 11 a 22 a 21 a 12 . By Definition 1, the determinant of a  3 × 3  is expanded as
a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 = a 11 a 22 a 33 + a 13 a 21 a 32 + a 12 a 23 a 31 a 13 a 22 a 31 a 12 a 21 a 33 a 11 a 23 a 32 .
The Sarrus’ rule is derived from this expansion. By extending the first two columns of the matrix to the right, the downward arrows give the positive terms and the upward arrows give the negative terms in the expansion of the formula.
Symmetry 15 01456 i001
Applying the definition when computing the determinant of  n × n  matrix requires  n !  Terms, with each containing  n  factors involving  n 1  multiplications.

1.2. Determinants by Co-factor Expansion

In the computation of determinants by co-factor expansion, two concepts defined below are essential.
Definition 2.
The minor of an entry  a i j  of an  n × n    matrix A is the determinant of the  ( n 1 ) × ( n 1 )  submatrix  M i j  of A obtained by deleting the  i t h   r o w   a n d   j t h   c o l u m n  of A. The co-factor of  a i j  is a real number denoted by  A i j  and is defined by
A i j = ( 1 ) i + j   det ( M i j )
After computing the minor and its associated co-factor, we compute the determinant by expanding about an ith row (the row containing all  a i j ):
det A = a i 1 A i 1 + a i 2 A i 2 + a i 3 A i 3 + + a i n A i n
or jth column:
det A = a 1 j A 1 j + a 2 j A 2 j + a 3 j A 3 j + + a n j A n j
In co-factor expansion, we “expand” the  n × n  matrix, about a certain row or column, into  n    submatrices  M i j , each with  n 1  rows and  n 1  columns. This means that, at the first expansion, we compute  n  minors and  n  co-factors. For larger matrices, we may not readily compute the minors, but we have to perform a second expansion of each  M i j  into  n 1  submatrices, each with  n 2  rows and  n 2  columns. The process is repeated over the resulting submatrices until smaller submatrices with readily computed determinants are obtained. The determinant of the matrix is then computed by working backward.

1.3. Determinants by Elementary Row (Column) Operations

The Gaussian method of computing the determinants employs elementary row (column) operations to put the matrix into upper or lower triangular form, in which the resulting entries in the main diagonal yield the determinant. The three elementary row (column) operations and their effects on the determinant of a given matrix are stated as follows. For proofs of the theorems, see [5,7].
  • Type 1. Multiplying a row (column) through by a nonzero constant.
  • Type 2. Interchanging two rows (columns).
  • Type 3. Adding a constant times one row (column) to another.
Theorem 1.
If  B = b i j  is the matrix that results when a single row (column) of  A = a i j    is multiplied by a scalar  c ,  then  det B = c   d e t ( A ) .
Theorem 2.
If  B = b i j  is the matrix that results when two rows (columns) of  A = a i j  are interchanged, then  det B = d e t ( A ) .
Theorem 3.
If  B = b i j  is the matrix that results when a multiple of a row  R r  (column  C r ) of  A = a i j  is added to another row  R s  (column  C s )  then  det B = d e t ( A ) .
By reducing a matrix into upper or lower triangular form and applying co-factor expansion, the determinant of the matrix is determined by the product of the entries in the main diagonal, as stated in the following theorem.
Theorem 4.
If A =  a i j  is upper (lower) triangular, then det(A) =  a 11 a 22 a 33 a n n ; that is, the determinant of a triangular matrix is the product of the elements on the main diagonal.

1.4. Dodgson’s Condensation Method

The Dodgson’s condensation method, attributed to the English clergyman Rev. Charles Lutwidge Dodgson (1832–1898), famously known as Lewis Caroll for his literary works Alice in Wonderland and Through the Looking Glass, is found to be more efficient than Leibniz’s definition, especially for larger matrices [2,18,19]. Dodgson’s method aims to ‘condense’ the determinant by producing an  n 1 × ( n 1 )  matrix from an  n × n  matrix, followed by  ( n 2 ) × n 2 , until a  1 × 1  matrix is obtained. The condensation method is founded on Jacobi’s theorem [19].
Theorem 5.
Jacobi’s Theorem. Let A be an  n × n  matrix, let  A i j  be an  m × m  minor of  A , where  m < n  , let  [ A i j ]  be the corresponding  m × m  minor of  A , and let  [ A i j * ]  be the complementary  ( n m ) × ( n m )  minor of  A . Then:
det   [ A i j ] = d e t ( A ) m 1 · det A i j * .
With  m = 2 ,  Dodgson realized that the determinant of  A  can be readily computed with
det A = d e t [ A i j ] det [ A i j * ] .
His algorithm consists of the following steps.
  • Check the interior of  A    for a zero entry. The interior of A is an  ( n 2 ) × n 2  matrix that remains when the first row, last row, first column, and last column of A are deleted. We perform elementary row operations to remove all zeros from the interior of A.
  • Compute the determinant of every four adjacent terms to form a new  ( n 1 ) × n 1  matrix B.
  • Repeat Step 2 to produce an  ( n 2 ) × n 2  matrix. We then divide each term by the corresponding entry in the interior of the original matrix A to obtain matrix C.
  • We continue the process of condensation with the succeeding matrices until a  1 × 1  matrix is obtained which computes detA.
  • Note that Dodgson’s method employs division of entries in succeeding matrices beginning with an  ( n 2 ) × n 2  matrix. This step which may magnify computational error, especially for matrices with non-integral entries.

2. Development of Proposed Algorithm

2.1. Reduction by Cross-Multiplication

We start with an  n × n  matrix denoted by  A n  with real entries
A n = a 11 a 12 a 1 n a 21 a 22 a 2 n . . a n 1   1 a n 1 . . a n 1   2 a n 2   . . a n 1   n a n n
where the first entries are non-zero real numbers to be transformed into triangular form to apply Theorem 4. A more straightforward way of zeroing out entries under  a 11  in  A n , starting from the bottom row  R n , is through  a n 1   1 R n a n 1 R n 1 . By Theorem 3, the process introduces the factor  a n 1   1  into the determinant. Working our way up, we zero out the first entry of  R n 1  through  a n 2   1 R n 1 a n 1   1 R n 2 , which then introduces the factor  a n 2   1  into the determinant. By repeating the process upward until  R 2 , we have introduced the following factors into the determinant of  A n :   a 11 ,   a 21 ,   ,   a n 2   1 a n 1   1 .  At this stage, we obtain an  ( n 1 ) × ( n 1 )  submatrix  A n 1    by excluding the first column at the left with zero entries.
  A n 1     a 11 a 22 a 21 a 12   a 11 a 23 a 21 a 13   a 11 a 2 n a 21 a 1 n
  a 21 a 32 a 31 a 22   a 21 a 33 a 31 a 23   a 21 a 3 n a 31 a 2 n
  a n 11 a n 2 a n 1 a n 12   a n 11 a n 3 a n 1 a n 13   a n 11 a n n a n 1 a n 1 n
For the purpose of this algorithm, we do away with the usual matrix notation and we put the rows of  A n 1    under  A n . We denote the entries in succeeding matrices by  a i j ( m ) = a i 1 ( m 1 ) a i + 1   j ( m 1 ) a i + 1 1 ( m 1 ) a i   j ( m 1 ) ( m )  = number of reductions performed and  a i j ( 0 ) = a i j . In determinant form, we can also denote  a i j ( m ) = a i 1 ( m 1 ) a i   j ( m 1 ) a i + 1 1 ( m 1 ) a i + 1   j ( m 1 ) , which provides a symmetric (butterfly) movement of the algorithm, hence the term cross-multiplication.
  A n   a 11   a 12   a 1 n
  a 21   a 22   a 2 n
.. .
.. .
  a n 1   1   a n 1   2   a n 1   n
  a n 1   a n 2   a n n
  A n 1   a 11 ( 1 )   a 12 ( 1 )   a 1 n 1 ( 1 )
  a 21 ( 1 )   a 22 ( 1 )   a 2   n 1 ( 1 )
. .
  a n 2   1 ( 1 )   a n 2   2 ( 1 )   a n 2   n 1 ( 1 )
  a n 1   1 ( 1 )   a n 1   2 ( 1 )   a n 1   n 1 ( 1 )
The next stage is obtaining the rows for  A n 2 , which is equivalent to zeroing out entries under  a 11 ( 1 )  by following a similar process to obtaining the rows for  A n 1 . The process introduces the following factors into the determinant:  a 11 ( 2 ) a 21 ( 2 ) , …,  a n 3   1 ( 2 ) a n 2   1 ( 2 ) . Assuming no first entries of each  A i  are zero, continuing the process of reduction leads to a  2 × 2   s u b m a t r i x   A 2  with an introduced factor of  a 1   1 ( n 2 )  and, eventually,  1 × 1   s u b m a t r i x   A 1  with entry
a 1   1 ( n 1 ) .
By taking the first row from each submatrix, we can reconstruct an  n × n  matrix  B  in upper triangular form that is a row equivalent to  A n .
  a 11   a 12   a 1 n
0   a 11 ( 1 )   a 13 ( 1 )   a 1 n 1 ( 1 )
00   a 11 ( 2 )   a 14 ( 2 )   a 1   n 2 ( 2 )
000..
000 .
000 .
000 .   a 11 ( n 2 )   a 12 ( n 2 )
000000   a 1   1 ( n 1 )
By Theorem 4
det B n = a 11 · a 11 ( 1 ) ·   a 11 2 ·   ·   a 1   1 n 2 · a 11 n 1 .
Since  A n  is row equivalent to  B n  and these factors
a 11 a 21 a 31 a n 1   1 · a 11 1 a 21 1 a n 21 1 a n 1   1 1 · · a 11 ( n 2 )
are introduced into the determinant of  A n  in the process of forming  B n , then
d e t B n = a 11 a 21 a 31 a n 1   1 ·   a 11 1 a 21 1 a n 2   1 1 a n 1   1 1 · · a 11 n 2 det ( A n )
from which
det A n = d e t B n a 11 a 21 a 31 a n 1   1 ·   a 11 1 a 21 1 a n 2   1 1 a n 1   1 1 ·   · a 11 n 2
det A n = a 11 · a 12 ( 1 ) ·   a 13 2 ·   ·   a 11 n 2 · a 11 n 1 a 11 a 21 a 31 a n 1   1 ·   a 11 1 a 21 1 a n 2   1 1 a n 1   1 1 ·   · a 11 n 2
det A n = m = 0 n 1 a 11 ( m ) m = 0 n 2 j = 1 n m 1 a j 1 ( m )

2.2. Alternate Proof of Cross-Multiplication Method

Suppose that B is an  n × n  matrix where all entries under the first element of the first row are zeros,
B n = b 11 b 12 b 1 n 0 b 22 b 2 n . . 0 0 . . b n 1   2 b n   2       . . b n 1   n b n   n .
By co-factor expansion,  det B n = b 11 ( 1 ) 1 + 1 b 22 b 2 n . . b n 12 b n 2 b n 1 n b n n . If  n > 4 , then computing the determinant of the resulting  ( n 1 ) × ( n 1 )  submatrix requires a full co-factor expansion or elementary row operations. In deriving the proposed method, we first transform  A n  into  B n  through elementary row operations; then, we apply the definition of co-factor expansion by expanding the first column. We then repeat the process with the succeeding submatrices until a relatively smaller matrix is obtained where we can readily compute the determinant. By introducing the cross-multiplication, we only form one  ( n 1 ) × ( n 1 )  submatrix instead of  n   ( n 1 ) × ( n 1 )  submatrices in co-factor expansion.
Let  A  be an  n × n  matrix with real entries, where  a 11 , a 21 , a n 1   1 , a n 1 0 .
A n = a 11 a 12 a 1 n a 21 a 22 a 2 n . . a n 1   1 a n 1 . . a n 1   2 a n 2   . . a n 1   n a n n
We zero out entries under  a 11  through the process illustrated in this paper: with two successive rows,  R i  and  R i + 1 , with first entries,  a i 1  and  a i + 1   1 , respectively, and by  a i 1 R i + 1 a i + 1   1 R i , a matrix  B 1  is produced.
B 1 = a 11 0 a 12 a 11 ( 1 ) a 1 n a 1 n 1 ( 1 ) . . . . . 0 . . a n 1   1 ( 1 ) . . a n 1   n 1 ( 1 )
In the process, the factors  a 11 ,   a 21 ,   a 31 ,   ,   a n 1   1  are introduced into  det ( A n ) .  Thus, by Theorem 1,
det ( B 1 ) = a 11 ,   a 21 ,   a 31 ,   ,   a n 1   1 d e t ( A n )
By co-factor expansion,
det ( B 1 ) = a 11 a 11 ( 1 ) a 1 n 1 ( 1 ) a n 1   1 ( 1 ) a n 1   n 1 ( 1 ) = a 11 det ( A n 1 )
where  A n 1 = a 11 ( 1 ) a 1 n 1 ( 1 ) a n 11 ( 1 ) a n 1 n 1 ( 1 ) .
We repeat the process of reduction on  A n 1  to form the matrix
B 2 = a 11 ( 1 ) 0 a 12 ( 1 ) a 11 ( 2 ) a 1 n 1 ( 1 ) a 1 n 2 ( 2 ) . . . . . 0 . . a n 2   1 ( 2 ) . . a n 2   n 2 ( 1 )
and which
det ( B 2 ) = a 11 ( 1 ) a 21 ( 1 ) a 31 1 a n 21 1 d e t ( A n 1 )
det ( B 2 ) = a 11 ( 1 ) d e t ( A n 2 )   where   A n 2 = a 11 ( 2 ) a 1 n 2 ( 2 ) a n 21 ( 2 ) a n 2 n 2 ( 2 )
Continuing the reduction on subsequent submatrices, we summarize the following results
det ( B 1 ) = a 11 ,   a 21 ,   a 31 ,   , a n 1   1 det ( A n ) = a 11 det ( A n 1 )
det ( B 2 ) = a 11 ( 1 ) a 21 ( 1 ) a 31 1 a n 21 1 det ( A n 1 ) = a 11 1 d e t ( A n 2 )
det ( B 3 ) = a 11 ( 2 ) a 21 ( 2 ) a 31 2 a n 31 2 det ( A n 2 ) = a 11 2 d e t ( A n 3 )
det ( B n 2 ) = a 11 ( n 3 ) a 21 ( n 3 ) det ( A 2 ) = a 11 ( n 3 ) d e t ( A 1 )
det ( B n 1 ) = a 11 ( n 2 ) det ( A 2 ) = a 11 ( n 2 ) d e t ( A 1 ) = a 11 ( n 1 )
Working backwards leads to
det ( A n ) = a 11 a 11 ,   a 21 ,   a 31 ,   , a n 1   1 · a 11 1 a 11 1 a 21 1 a 31 1 a n 21 1 a 11 n 3 a 11 n 3 a 21 n 3 · a 11 n 2 a 11 n 2   a 11 n 1 .
det A n = a 11 · a 12 ( 1 ) ·   a 13 2 ·   ·   a 11 n 2 · a 11 n 1 a 11 a 21 a 31 a n 1   1 ·   a 11 1 a 21 1 a n 2   1 1 a n 1   1 1 ·   · a 11 n 2
det A n = m = 0 n 1 a 11 ( m ) m = 0 n 2 j = 1 n m 1 a j 1 ( m )

2.3. Matrices with Zero First Entries

To generalize the determinant formula, we consider cases where there are zero first entries in any of the submatrices  A n i . If an  m th row of  A n i  has  a m 1 ( i ) = 0 , the reduction  a m 1 ( i ) R m + 1 a m + 1   1 ( i ) R m  is not possible since this will introduce a zero factor to the divisor of Equation (1). We reduce the entire submatrix by first moving the rows with zero first entries to the bottom part; then, we perform reduction to rows with nonzero first entries. The rows with zero first entries are treated as “standby rows” and are, then, moved to the next submatrix in the same placement. Considering that  det A n i = a 11 ( k ) d e t ( A n i 1 ) , by Theorem 2, interchanging  R m  and the last row will lead to  det A n i = a 11 ( k ) d e t ( A n i 1 ) . We introduce the factor  ( 1 ) k , where  k  indicates the number of row interchanges.
  A n i   a 11 ( i )   a 11 ( i )
  a 21 ( i )   a 22 ( i )
0   a m 1   2 ( i )
0   a m 2 i
  a m + 1   1 ( i )   a m + 1   2 ( i )
  a n i   1 ( i )   a n i   1 ( i )
  A n i   a 11 ( i )   a 11 ( i )
  a 21 ( i )   a 22 ( i )
  a m + 1   1 ( i )   a m + 1   2 ( i )
  a n i   1 ( i )   a n i   1 ( i )
0   a m 1   2 ( i )
0   a m 2 ( i )
  A n i 1   a 11 ( i + 1 )   a 12 ( i + 1 )
  a m 1   2 ( i )
  a m 2 i
If column interchanges result in a matrix with nonzero first entries, we incorporate  ( 1 ) k  to Equation (1) by applying Type 2 operation.
det A n = m = 0 n 1 a 11 ( m ) m = 0 n 2 j = 1 n m 1 a j 1 ( m ) ( 1 ) k
where k is the number of column interchanges.
If only one row of  A n i  has a non-zero first entry, we place this row as  R 1  with first entry  a 11 ( n i ) . No reduction is performed since the  A n i  already takes the reduced form. By Theorem 4,  a 11 ( n i )  is a diagonal entry; thus, no factor is introduced into the determinant.
If all rows of  A n i  have zero first entries, then no reduction is performed, determining that  det A = 0 .
Taking into account cases where there are zero first entries, the general determinant formula can now be expressed as
det A n = m = 0 n 1 a 11 ( m ) m = 0 n 1 j = 1 r 1 a j 1 ( m ) ( 1 ) k ,
where  a j 1 ( 0 ) = a j 1 , r = number of rows with nonzero first entries in  A n m , and k = number of row permutations.
If the first entries are nonzero (after permutating columns or applying Type 3 operations), we can reduce Equation (1) and incorporate  ( 1 ) k  if column permutations are applied to get
det A n = a 11 ( n 1 ) m = 0 n 2 j = 2 n m 1 a j 1 ( m ) ( 1 ) k
where k = number of column permutations.
It can be noted that the factors in the denominators are the in-between first entries in the submatrices, as reflected in the matrices below.
  A n   a 11   a 12   a 1 n
  a 21   a 22   a 2 n
.. .
.. .
  a n 1   1   a n 1   2   a n 1   n
  a n 1   a n 2   a n n
  A n 1   a 11 ( 1 )   a 12 ( 1 )   a 1 n 1 ( 1 )
  a 21 ( 1 )   a 22 ( 1 )   a 2   n 1 ( 1 )
. .
  a n 2   1 ( 1 )   a n 2   2 ( 1 )   a n 2   n 1 ( 1 )
  a n 1   1 ( 1 )   a n 1   2 ( 1 )   a n 1   n 1 ( 1 )
  A n 2   a 11 ( 2 )   a 12 ( 2 )   a 1   n 2 ( 2 )
  a 21 ( 2 )   a 22 ( 2 )   a 2   n 2 ( 2 )
.. .
  a n 3   1 ( 2 )   a n 3   2 ( 2 )   a n 3   n 2 ( 2 )
  a n 2   1 ( 2 )   a n 2   2 ( 2 )   a n 2   n 2 ( 1 )
  A 3   a 1   1 ( n 3 )   a 1   2 ( n 3 )   a 1   3 ( n 3 )
  a 2   1 ( n 3 )   a 22 ( n 3 )   a 23 ( n 3 )
  a 3   1 ( n 3 )   a 3   2 ( n 3 )   a 3   3 ( n 3 )
  A 2   a 1   1 ( n 2 )   a 12 ( n 2 )
  a 21   ( n 2 )   a 22 ( n 2 )
  A 1   a 1   1 ( n 1 )

3. Cross-Multiplication and Dodgson’s Condensation Method in 3 × 3 Matrices

We now show the equivalence of Dodgson’s condensation method and cross-multiplication.
Given that  A 3 = a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 , where  a 11 ,   a 21 ,   a 31   a n d   a 22  are nonzero, by Dodgson’s condensation method, we take four adjacent entries at a time and compute their determinants to form a  2 × 2  matrix.
a 11 a 22 a 21 a 12 a 12 a 23 a 22 a 13 a 21 a 32 a 31 a 22 a 22 a 33 a 32 a 23 .
We then compute the determinant of the resulting matrix to obtain a  1 × 1  matrix and divide the resulting entry by the corresponding entry of the interior of  A 3 , which is  a 22 .
d e t ( B 3 ) = a 11 a 22 a 22 a 33 a 11 a 22 a 32 a 23 a 21 a 12 a 22 a 33 + a 21 a 32 a 22 a 13 + a 31 a 22 a 12 a 23 a 31 a 22 a 22 a 13
d e t   ( B 3 ) = a 22 a 11 a 22 a 33 a 11 a 32 a 23 a 21 a 12 a 33 + a 21 a 32 a 13 + a 31 a 12 a 23 a 31 a 22 a 13 .
By Definition 1,  d e t ( A 3 )  = | a 11 a 12 a 33 a 11 a 32 a 23 a 21 a 12 a 33 + a 21 a 32 a 13 + a 31 a 12 a 23 a 31 a 22 a 13 | .
Thus,  d e t ( A 3 ) = d e t ( B 3 ) a 22 .
By exchanging columns 1 and 2 of  A 3 ,  we have  A 3 = a 12 a 11 a 13 a 22 a 21 a 23 a 32 a 31 a 33 , and it can be shown that  d e t ( A 3 ) = d e t ( B 3 ) a 21 .
By cross-multiplication,
  A 3   a 11   a 12   a 13
  a 21   a 22   a 23
  a 31   a 32   a 33
  A 2   a 11 a 22 a 21 a 12   a 11 a 23 a 21 a 13
  a 21 a 32 a 31 a 22   a 21 a 33 a 31 a 23
  A 1   a 11 a 22 a 21 a 33 a 11 a 22 a 31 a 23 a 21 a 12 a 21 a 33 + a 21 a 12 a 31 a 23 ( a 21 a 32 a 11 a 23 a 21 a 32 a 21 a 13 a 31 a 22 a 11 a 23 + a 31 a 22 a 21 a 13 )
Here,  a 21  is the common factor; hence,  d e t ( A 3 ) = d e t ( A 1 ) a 21 , which is consistent with Equation (1).
Similar to Dodgson’s approach,  a i j ( m )  is the determinant of the  2 × 2  matrix formed by the first entries of two adjacent rows and the pair of corresponding entries in the  j t h  column, that is,  a i j ( m ) = a i 1 ( m 1 ) a i   j ( m 1 ) a i + 1 1 ( m 1 ) a i + 1   j ( m 1 ) . Here, we fix the first entries of two adjacent rows as the pivot in computing the determinants of consecutive  2 × 2  matrices. By doing so,  a i + 1 1  is the factor introduced into the original determinant, which is analogous to the corresponding entry of the interior matrix in the condensation method. By fixing the pivot at the first two entries, we can limit the number of divisions to be performed in preserving the determinant.

4. Verifications of Proposed Methods

We provide illustrative examples for the proposed methods, and we verify the results using co-factor expansion, Dodgson’s condensation method, and Matlab (See Appendix A).
Illustration 1.
All first entries are nonzeros ( 4 × 4  matrix)
A = 2 1 5 2 2 3 2 3 1 1 1 2 4 4 2 1
The solution is found by the cross-multiplication method,
  A 4 2152
2323
1−142
1241
  A 3 4−62
−561
30−1
  A 2 −614
−182
  A 1 240240/(2)(1)(−5)
det(A) −24
by Dodgson’s condensation method,
A2152
2323
1−142
1241
B 4−1311
−514−8
3−12−4
C −950Division by the interior in A
18−152
D −3−25
−18−38
E −24
and by co-factor expansion.
2 1 5 2 2 3 2 3 1 1 1 2 4 4 2 1 = 2 3 2 3 1 4 2 2 4 1 2 1 5 2 1 4 2 2 4 1 + 1 5 2 3 2 3 2 4 1 1 5 2 3 2 3 1 4 2 = 24
Illustration 2.
All first entries are nonzeros ( 5 × 5  matrix)
B = 2 2 1 3 1 1 3 1 1 2 1 2 1 2 2 3 4 3 2 2 3 2 1 1 5
Computation of determinants is found by the cross-multiplication method,
  B 5 22131
13−112
124−23
22321
13215
  B 4 4−3−13
−15−31
−2−56−5
4109
  B 3 17−137
15−127
18−242
  B 2 −914
−144−96
  B 1 28802880/(1)(1)(2)(−1)(−2)(15)
det(B) 48
Dodgson’s condensation method,
A22131
13−112
124−23
22321
13215
B 4−545
−114−27
−2−214−8
4−5−19
C 51−4638
30192−82
1872118
D 174638Division by interior entries in A
154841
92459
E 12662
−721848
F 9−31Division by interior entries in B
36132
G 48
and with verification of the results by co-factor expansion.
det A = 2 2 1 3 1 1 3 1 1 2 1 2 1 2 2 3 4 3 2 2 3 2 1 1 5 = 2 3 1 1 2 2 4 2 3 2 3 3 2 2 1 1 5 2 1 3 1 2 4 2 3 2 3 3 2 2 1 1 5 + 2 1 3 1 3 1 1 2 2 3 3 2 2 1 1 5 2 2 1 3 1 3 1 1 2 2 3 4 2 2 1 3 5 + 2 1 3 1 3 1 1 2 2 2 4 3 2 2 3 1
We compute the determinant of each submatrix separately.
3 1 1 2 2 4 2 3 2 3 3 2 2 1 1 5 = 3 4 2 3 3 2 1 2 1 5 2 1 1 2 3 2 1 2 1 5 + 2 1 1 2 4 2 3 2 1 5 3 1 1 2 4 2 3 3 2 1 = 132
2 1 3 1 2 4 2 3 2 3 3 2 2 1 1 5 = 2 4 2 3 3 2 1 2 1 5 2 1 3 1 3 2 1 2 1 5 + 2 1 3 1 4 2 3 2 1 5 3 1 3 1 4 2 3 3 2 1 = 23
2 1 3 1 3 1 1 2 2 3 3 2 2 1 1 5 = 2 1 1 2 3 2 1 2 1 5 3 1 3 1 3 2 1 2 1 5 + 2 1 3 1 1 1 2 2 1 5 3 1 3 1 1 1 2 2 1 5 = 60
2 1 3 1 3 1 1 2 2 3 4 2 2 1 3 5 = 2 1 1 2 4 2 3 2 1 5 3 1 3 1 4 2 3 2 1 5 + 2 1 3 1 1 1 2 2 1 5 3 1 3 1 1 1 2 4 2 3 = 111
2 1 3 1 3 1 1 2 2 2 4 3 2 2 3 1 = 2 1 1 2 4 2 3 3 2 1 3 1 3 1 4 2 3 3 2 1 + 2 1 3 1 1 1 2 3 2 1 2 1 3 1 1 1 2 4 2 3 = 31
Thus,  det A = 2 132 23 + 60 2 111 31 = 48 .
Illustration 3.
Some first entries are zeros
D = 2 1 5 2 0 3 2 3 1 0 1 2 4 4 2 1
  D 4 2152
0323
1−142
0241
  D 4 2152
1−142Interchanged row (−1)
0323Standby row
0241Standby row
  D 3 −332
323Transferred standby row
241Transferred standby row
  D 2 −15−15
8−3
  D 1 165165/(3)(−1)
det(D) −55
We apply Type 3 column operations by interchanging column 1 and column 2,
  D 4 2152
0323
1−142
0241
  D 4 1252Column 1 and column 2 interchange (−1)
3023
−1142
2041
  D 3 −6−13−3
3149
−2−12−5
  D 2 −45−45
−83
  D 1 −495−495(−1)/(3)(−1)(3)
det(D) −55−495(−1)/(3)(−1)(3)
Dodgson’s condensation method,
A2152
0323
1−142
0241
B 6−1311
−314−8
2−12−4
C 45−50
8−152
D 15−25Division by interior entries of A
−8−38
E −55
and by co-factor expansion, where we can expand about column 1.
D = 2 1 5 2 0 3 2 3 1 0 1 2 4 4 2 1
det D = 2 3 2 3 1 4 2 2 4 1 0 + 2 1 5 2 3 2 1 2 4 1 = 55
Illustration 4.
Only one row has a nonzero first entry
E = 0 2 1 3 1 0 0 2 1 1 3 0 0 3 2 3 4 5 2 1 5 2 2 1 5
  E 5 02131
00−211
33415
02521
03225
  E 5 33415Interchanged row (−1)
00−211Standby row
02131Interchanged row
02521Standby row
03225Standby row
  E 4 0−211Transferred/Standby row
2131Transferred row
2521Transferred row
3225Transferred row
  E 3 −211Transferred row
8−20
−11−27
  E 2 −4−8
−3856
  E 1 528 528(3)/(2)(8)(−1)
det(A) −99
We interchange column 1 and column 3, and we proceed with usual cross-multiplication.
  E 5 02131
00−211
33415
02521
03225
  E 5 12031Column 1 and column 3 exchange (−1)
−20011
43315
52021
23025
  E 4 4073
−6−6−6−14
−7−153−21
110623
  E 3 −2418−38
48−6028
165−7570
  E 2 5761152
6300−1260
  E 1 −7,983,360−7,983,360(−1)/(−2)(4)(5)(48)
det(E) −99
By Dodgson’s condensation, we interchange row 1 and row 5.
A02131
33415
02521
03225
00−211
B −65−1114
673−9
0−1168
0−66−3
C −729257
−667578
0−30−66
D −242357Division by inner entries in A
−331539
0−15−33
E 39942
49590
F 5714Division by inner entries in B
−4515
G 99
−99Multiplication of −1 by an exchange of row
By co-factor expansion, we can expand about column 1:
E = 0 2 1 3 1 0 0 2 1 1 3 0 0 3 2 3 4 5 2 1 5 2 2 1 5
det E = 0 0 + 3 2 1 3 1 0 2 1 1 2 3 5 2 2 2 1 5 0 + 0
Then, we compute  2 1 3 1 0 2 1 1 2 3 5 2 2 2 1 5  by another co-factor expansion.
2 1 3 1 0 2 1 1 2 3 5 2 2 2 1 5 = 2 2 1 1 5 2 1 2 2 5 0 + 2 1 3 1 2 1 1 2 2 5 3 1 3 1 2 1 1 5 2 1 = 99
The above illustrations suggest the following comparisons of the cross-multiplication method, Dodgson’s condensation, and co-factor expansion summarized in Table 1. Operation and matrix counts are based on cases where there are no zero entries in the first rows for cross-multiplication, in the interior matrix for Dodgson’s condensation, and in an expanded row or column in co-factor expansion.

5. Conclusions

The cross-multiplication method of computing the determinants of  n × n  matrices is a strategic use of elementary row operations in reducing a matrix to upper triangular form by using the nonzero first entries of adjacent rows as row multipliers. This technique gives an expression for each entry of the reduced matrix
a i j ( m ) = a i 1 ( m 1 ) a i + 1   j ( m 1 ) a i + 1   1 m 1 a i   j m 1 ;
where  ( m )  = number of reductions performed, and  a i j ( 0 ) = a i j , or in determinant form,  a i j ( m ) = a i 1 ( m 1 ) a i   j ( m 1 ) a i + 1   1 ( m 1 ) a i + 1   j ( m 1 ) . This approach is consistent with Dodgson’s condensation method by taking the first entries of adjacent rows as pivot entries in the computation of the determinant of the adjacent  2 × 2   m a t r i c e s .  The algorithm proceeds by computing each entry to produce a submatrix that is one row and one column less than the preceding submatrix until a  1 × 1  matrix with entry  a 11 ( n 1 )  is obtained.
When some first entries in the rows are zero, any of the following adjustments can be performed: applying Type 2 row operation where rows with zero first entries are transferred to the bottom of the submatrix and, then, transferred to the next submatrix; applying Type 2 column operation by interchanging the first column with zero first entries and another column with nonzero entries; applying Type 3 row (column) operations to remove zero first entries. The determinant is then computed for the following cases.
1. The general determinant formula is given by
det A n = m = 0 n 1 a 11 ( m ) m = 0 n 1 j = 1 r 1 a j 1 ( m ) ( 1 ) k ,
where  a j 1 ( 0 ) = a j 1 , r = number of rows with nonzero first entries in  A n m , and k = number of row (column) permutations.
2. If the first entries are nonzero, the determinant formula is given by
det A n = a 11 ( n 1 ) m = 0 n 2 j = 2 n m 1 a j 1 ( m ) ( 1 ) k ;
where k = number of column permutations, if applicable.
3. When all rows of a submatrix  A n i  have zero first entries, then  det ( A n ) = 0 .
Compared to Dodgson’s condensation and co-factor expansion, the cross-multiplication method is the most efficient in terms of the number of matrices generated and the operations employed.
Both the cross-multiplication and Dodgson’s condensation methods apply Type 2 or Type 3 row (column) operations when there are zeros in the first entries or in the interior matrix. These two methods have symmetric algorithmic movement, which makes the execution of operations relatively easier and faster, and at  n = 3 , both methods are equivalent. Unlike the Dodgson’s condensation, the cross-multiplication method can be generalized through formulas.

Funding

This research received no external funding.

Data Availability Statement

All data in this study are contained within the article.

Acknowledgments

The author acknowledges the invaluable service of peer reviewers of this paper.

Conflicts of Interest

The author declares no conflict of interest.

Appendix A

Figure A1. Matlab Generated Results.
Figure A1. Matlab Generated Results.
Symmetry 15 01456 g0a1

References

  1. Eves, H. An Introduction to the History of Mathematics; Saunders College Publishing: Philadelphia, PA, USA, 1990. [Google Scholar]
  2. Dodgson, C., IV. Condensation of determinants, being a new and brief method for computing their arithmetical values. Proc. R. Soc. Lond. 1867, 15, 150–155. [Google Scholar] [CrossRef]
  3. Stinson, D.R. Cryptography. Discrete Mathematics and Its Applications; Chapman & Hall: London, UK, 2005. [Google Scholar]
  4. Sobamowo, M. On the extension of Sarrus’ rule to n × n (n > 3) matrices: Development of new method for the computation of the determinant of 4 × 4 matrix. Int. J. Eng. Math. 2016, 2016, 9382739. [Google Scholar] [CrossRef] [Green Version]
  5. Kolman, B.; Hill, D. Elementary Linear Algebra with Applications, 9th ed.; Pearson Education Ltd.: London, UK, 2014. [Google Scholar]
  6. Dingle, B.M. Calculating determinants of symbolic and numeric matrices. Am. J. Math. 2005, 26, 137–152. [Google Scholar]
  7. Anton, H.; Rorres, C.; Kaul, A. Elementary Linear Algebra, 12th ed.; John Wiley and Sons: New York, NY, USA, 2019. [Google Scholar]
  8. Hill, D.R. Modern Matrix Algebra; Prentice-Hall: Upper Saddle River, NJ, USA, 2001. [Google Scholar]
  9. Dubbs, C.; Siegel, D. Computing determinants. Coll. Math. J. 1987, 18, 48–50. [Google Scholar] [CrossRef]
  10. Salihu, A.; Gjonbalaj, Q. New method to compute the determinant of a 4 × 4 matrix. In Proceedings of the 3rd International Mathematics Conference on Algebra and Functional Analysis, Elbasan, Albania, 15–16 May 2009. [Google Scholar]
  11. Gjonbalaj, Q.; Salihu, A. Computing the determinants by reducing the orders by four. Appl. Math. E-Notes 2010, 10, 151–158. [Google Scholar]
  12. Seifullin, T. Computation of determinants, adjoint matrices, and characteristic polynomials without division. Cybern. Syst. Anal. 2002, 38, 650–672. [Google Scholar] [CrossRef]
  13. Ji-Teng, J.; Wang, J.; He, Q.; Yu-Cong, Y. A division-free algorithm to numerically evaluating the determinant of a special quasi-tridiagonal matrix. J. Math. Chem. 2022, 60, 1695–1706. [Google Scholar]
  14. Bae, Y.; Lee, I. Determinant formulae of matrices with certain symmetry and its applications. Symmetry 2017, 9, 303. [Google Scholar] [CrossRef] [Green Version]
  15. Ji-Teng, J. A breakdown-free algorithm for computing the determinants of periodic tridiagonal matrices. Numer. Algorithm 2020, 83, 149–163. [Google Scholar]
  16. Ji-Teng, J.; Yu-Cong, Y.; He, Q. A block diagonalization based algorithm for the determinants of block k-tridiagonal matrices. J. Math. Chem. 2021, 59, 745–756. [Google Scholar]
  17. Forrester, P.A.; Chinnapan, M. The predominance of procedural knowledge in fractions. In Shaping the Future of Mathematics Education MERGA; Sparrow, L., Kissane, B., Hurst, C., Eds.; MERGA, Inc.: Freemantle, WA, USA, 2010; p. 33. [Google Scholar]
  18. Rittle-Johnson, B.; Alibali, M.W. Conceptual and procedural knowledge of mathematics: Does one lead to the other? J. Educ. Psychol. 1999, 91, 175. [Google Scholar] [CrossRef]
  19. Rice, A.; Torrence, E. Shutting up like a telescope: Lewis Carroll’s “Curious” Condensation Method for evaluating determinants. Coll. Math. J. 2007, 38, 85–95. [Google Scholar] [CrossRef]
Table 1. Comparisons of methods in the manual computation of determinants.
Table 1. Comparisons of methods in the manual computation of determinants.
CriteriaCross-MultiplicationDodgson’s CondensationCo-Factor Expansion
Matrices generatedEach reduction produces one matrix that is one row and one column less than the preceding matrixSimilar to cross-multiplication but doubles the number of matrices from the 3rd and succeeding condensations.Each matrix expansion produces matrices of same number as the matrix size and with one row and one column less than the matrix expanded.
Divisions n 2 3 n + 2 2  terminal divisions n 2 3 n + 1  internal divisionsNo divisions
Total   number   of   operations   S n  (including divisions)   S n = ( n + 1 ) ( n 1 ) 2   2 n 3 n 2 7 n + 2 2   S n = n S n 1 + 2 n 1 ;  
n 3 ,   S 2 = 3
Adjustments with zero entriesApplying Type 2 row (column) operation- Rows with zero first entries are placed at the bottom of the submatrix, or first column with zero entries is interchange with other columns; applying Type 3 row (column) operationsApplying Type 2 or Type 3 row (column) operations.Zero entries in a matrix decreases the number of co-factors in the expansion about the row or column with zero entries
Algorithmic movementSymmetric; computation of entries traces butterfly movement (cross-multiplication)Symmetric; computation of entries traces butterfly movement Non-symmetric except in the use of Sarrus’ rule for determinants of order 3 and butterfly movement for order 2.
GeneralizabilityRepresented by a formulaAlgorithmicRepresented by a formula
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Protacio, J.V. Computation of Matrix Determinants by Cross-Multiplication: A Rethinking of Dodgson’s Condensation and Reduction by Elementary Row Operations Methods. Symmetry 2023, 15, 1456. https://doi.org/10.3390/sym15071456

AMA Style

Protacio JV. Computation of Matrix Determinants by Cross-Multiplication: A Rethinking of Dodgson’s Condensation and Reduction by Elementary Row Operations Methods. Symmetry. 2023; 15(7):1456. https://doi.org/10.3390/sym15071456

Chicago/Turabian Style

Protacio, Judel Villas. 2023. "Computation of Matrix Determinants by Cross-Multiplication: A Rethinking of Dodgson’s Condensation and Reduction by Elementary Row Operations Methods" Symmetry 15, no. 7: 1456. https://doi.org/10.3390/sym15071456

APA Style

Protacio, J. V. (2023). Computation of Matrix Determinants by Cross-Multiplication: A Rethinking of Dodgson’s Condensation and Reduction by Elementary Row Operations Methods. Symmetry, 15(7), 1456. https://doi.org/10.3390/sym15071456

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop