Skip to content
Hub Nexus
Linear Algebra

Linear Algebra, Determinants Exist

Up for GrabsUpdated 12 min read

Comments and detailsChangesSupport

This subsection is optional. It consists of proofs of two results from the prior subsection. These proofs involve the properties of permutations, which will not be used later, except in the optional Jordan Canonical Form subsection.

The prior subsection attacks the problem of showing that
for any size there is
a determinant function on the set of square matrices of that size
by using multilinearity to develop the
permutation expansion.

\begin{matrix}| \begin{matrix}{t}_{1 , 1} & {t}_{1 , 2} & … & {t}_{1 , n} \\ {t}_{2 , 1} & {t}_{2 , 2} & … & {t}_{2 , n} \\ & ⋮ \\ {t}_{n , 1} & {t}_{n , 2} & … & {t}_{n , n}\end{matrix} | & = \begin{matrix}{t}_{1 , {ϕ}_{1} ( 1 )} {t}_{2 , {ϕ}_{1} ( 2 )} ⋯ {t}_{n , {ϕ}_{1} ( n )} | {P}_{{ϕ}_{1}} | \\ \ + {t}_{1 , {ϕ}_{2} ( 1 )} {t}_{2 , {ϕ}_{2} ( 2 )} ⋯ {t}_{n , {ϕ}_{2} ( n )} | {P}_{{ϕ}_{2}} | \\ \ ⋮ \\ \ + {t}_{1 , {ϕ}_{k} ( 1 )} {t}_{2 , {ϕ}_{k} ( 2 )} ⋯ {t}_{n , {ϕ}_{k} ( n )} | {P}_{{ϕ}_{k}} |\end{matrix} \\ & = {∑}_{\text{permutations } ϕ} {t}_{1 , ϕ ( 1 )} {t}_{2 , ϕ ( 2 )} ⋯ {t}_{n , ϕ ( n )} | {P}_{ϕ} |\end{matrix}

This reduces the problem to showing that there is a determinant
function on the set of permutation matrices of that size.

Of course, a permutation matrix can be row-swapped to the identity matrix
and to calculate its determinant we can keep track of the number of row swaps.
However, the problem is still not solved.
We still have not shown that the result is well-defined.
For instance, the determinant of

{P}_{ϕ} = ( \begin{matrix}0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\end{matrix} )

could be computed with one swap

{P}_{ϕ} {→}_{ \ }^{{ρ}_{1} ↔ {ρ}_{2}} ( \begin{matrix}1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\end{matrix} )

or with three.

{P}_{ϕ} {→}_{ \ }^{{ρ}_{3} ↔ {ρ}_{1}} ( \begin{matrix}0 & 0 & 1 & 0 \\ 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1\end{matrix} ) {→}_{ \ }^{{ρ}_{2} ↔ {ρ}_{3}} ( \begin{matrix}0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1\end{matrix} ) {→}_{ \ }^{{ρ}_{1} ↔ {ρ}_{3}} ( \begin{matrix}1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1\end{matrix} )

Both reductions
have an odd number of swaps so we figure that | {P}_{ϕ} | = − 1
but how do we know that there isn't some way to do it with an even number of
swaps?
Corollary 4.6 below proves
that there is no permutation matrix
that can be row-swapped to an identity matrix in two ways, one with
an even number of swaps and the other with an odd number of swaps.

Definition 4.1

Two rows of a permutation matrix

( \begin{matrix}⋮ \\ {ι}_{k} \\ ⋮ \\ {ι}_{j} \\ ⋮\end{matrix} )

such that k > j are in an inversion of their natural order.

Example 4.2

This permutation matrix

( \begin{matrix}{ι}_{3} \\ {ι}_{2} \\ {ι}_{1}\end{matrix} ) = ( \begin{matrix}0 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 0\end{matrix} )

has three inversions: {ι}_{3} precedes {ι}_{1}, {ι}_{3} precedes {ι}_{2}, and {ι}_{2} precedes {ι}_{1}.

Lemma 4.3

A row-swap in a permutation matrix changes the number of inversions from even to odd, or from odd to even.

Proof

Consider a swap of rows j and k, where k > j.
If the two rows are adjacent

{P}_{ϕ} = ( \begin{matrix}⋮ \\ {ι}_{ϕ ( j )} \\ {ι}_{ϕ ( k )} \\ ⋮\end{matrix} ) {→}_{ \ }^{{ρ}_{k} ↔ {ρ}_{j}} ( \begin{matrix}⋮ \\ {ι}_{ϕ ( k )} \\ {ι}_{ϕ ( j )} \\ ⋮\end{matrix} )

then the swap changes the total number of inversions by one —
either removing or producing one inversion, depending on whether
ϕ ( j ) > ϕ ( k ) or not, since inversions involving rows not in this pair
are not affected.
Consequently, the total number of inversions changes from odd to even
or from even to odd.

If the rows are not adjacent then they can be swapped
via a sequence of adjacent swaps, first bringing row k up

( \begin{matrix}⋮ \\ {ι}_{ϕ ( j )} \\ {ι}_{ϕ ( j + 1 )} \\ {ι}_{ϕ ( j + 2 )} \\ ⋮ \\ {ι}_{ϕ ( k )} \\ ⋮\end{matrix} ) {→}_{ \ }^{{ρ}_{k} ↔ {ρ}_{k − 1}} \ \ {→}_{ \ }^{{ρ}_{k − 1} ↔ {ρ}_{k − 2}} … {→}_{ \ }^{{ρ}_{j + 1} ↔ {ρ}_{j}} ( \begin{matrix}⋮ \\ {ι}_{ϕ ( k )} \\ {ι}_{ϕ ( j )} \\ {ι}_{ϕ ( j + 1 )} \\ ⋮ \\ {ι}_{ϕ ( k − 1 )} \\ ⋮\end{matrix} )

and then bringing row j down.

{→}_{ \ }^{{ρ}_{j + 1} ↔ {ρ}_{j + 2}} \ \ {→}_{ \ }^{{ρ}_{j + 2} ↔ {ρ}_{j + 3}} … {→}_{ \ }^{{ρ}_{k − 1} ↔ {ρ}_{k}} ( \begin{matrix}⋮ \\ {ι}_{ϕ ( k )} \\ {ι}_{ϕ ( j + 1 )} \\ {ι}_{ϕ ( j + 2 )} \\ ⋮ \\ {ι}_{ϕ ( j )} \\ ⋮\end{matrix} )

Each of these adjacent swaps changes the number of inversions from odd to even or from even to odd. There are an odd number ( k − j ) + ( k − j − 1 ) of them. The total change in the number of inversions is from even to odd or from odd to even.

Definition 4.4

The signum of a permutation sgn ⁡ ( ϕ ) is + 1 if the number of inversions in {P}_{ϕ} is even, and is − 1 if the number of inversions is odd.

Example 4.5

With the subscripts from Example 3.8 for the 3-permutations, sgn ⁡ ( {ϕ}_{1} ) = 1 while sgn ⁡ ( {ϕ}_{2} ) = − 1.

Corollary 4.6

If a permutation matrix has an odd number of inversions then swapping it to the identity takes an odd number of swaps. If it has an even number of inversions then swapping to the identity takes an even number of swaps.

Proof

The identity matrix has zero inversions. To change an odd number to zero requires an odd number of swaps, and to change an even number to zero requires an even number of swaps.

We still have not shown that the permutation expansion is
well-defined because we have not considered row operations
on permutation matrices other than row swaps.
We will finesse this problem: we will define a function
d : {ℳ}_{n \ × \ n} → ℝ
by altering the permutation expansion formula, replacing
| {P}_{ϕ} | with sgn ⁡ ( ϕ )

d ( T ) = {∑}_{\text{permutations } ϕ} {t}_{1 , ϕ ( 1 )} {t}_{2 , ϕ ( 2 )} … {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ )

(this gives the same value as the permutation expansion
because the prior result shows that det ⁡ ( {P}_{ϕ} ) = sgn ⁡ ( ϕ )).
This formula's advantage is that the number of inversions
is clearly well-defined — just count them.
Therefore, we will show that a determinant function exists
for all sizes by showing that d is it, that is, that d
satisfies the four conditions.

Lemma 4.7

The function d is a determinant. Hence determinants exist for every n.

Proof

We'll must check that it has the four properties
from the definition.

Property (4) is easy; in

d ( I ) = {∑}_{\text{perms } ϕ} {ι}_{1 , ϕ ( 1 )} {ι}_{2 , ϕ ( 2 )} ⋯ {ι}_{n , ϕ ( n )} sgn ⁡ ( ϕ )

all of the summands are zero except for the product down the diagonal,
which is one.

For property (3) consider d ( \overset{̂}{T} ) where
T [ b ] {→}_{ \ }^{k {ρ}_{i}} \overset{̂}{T}.

{∑}_{\text{perms } ϕ} \ \ {\overset{̂}{t}}_{1 , ϕ ( 1 )} ⋯ {\overset{̂}{t}}_{i , ϕ ( i )} ⋯ {\overset{̂}{t}}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) = {∑}_{ϕ} {t}_{1 , ϕ ( 1 )} ⋯ k {t}_{i , ϕ ( i )} ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ )

Factor the k out of each term to get the desired equality.

= k ⋅ {∑}_{ϕ} {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) = k ⋅ d ( T )

For (2), let
T [ b ] {→}_{ \ }^{{ρ}_{i} ↔ {ρ}_{j}} \overset{̂}{T}.

d ( \overset{̂}{T} ) = {∑}_{\text{perms } ϕ} \ \ {\overset{̂}{t}}_{1 , ϕ ( 1 )} ⋯ {\overset{̂}{t}}_{i , ϕ ( i )} ⋯ {\overset{̂}{t}}_{j , ϕ ( j )} ⋯ {\overset{̂}{t}}_{n , ϕ ( n )} sgn ⁡ ( ϕ )

To convert to unhatted t's,
for each ϕ consider the permutation σ that
equals ϕ except that the
i-th and j-th numbers are interchanged,
σ ( i ) = ϕ ( j ) and σ ( j ) = ϕ ( i ).
Replacing the ϕ in
{\overset{̂}{t}}_{1 , ϕ ( 1 )} ⋯ {\overset{̂}{t}}_{i , ϕ ( i )} ⋯ {\overset{̂}{t}}_{j , ϕ ( j )} ⋯ {\overset{̂}{t}}_{n , ϕ ( n )}
with this σ gives
{t}_{1 , σ ( 1 )} ⋯ {t}_{j , σ ( j )} ⋯ {t}_{i , σ ( i )} ⋯ {t}_{n , σ ( n )}.
Now sgn ⁡ ( ϕ ) = − sgn ⁡ ( σ )
(by Lemma 4.3)
and so we get

\begin{matrix} & = {∑}_{σ} {t}_{1 , σ ( 1 )} ⋯ {t}_{j , σ ( j )} ⋯ {t}_{i , σ ( i )} ⋯ {t}_{n , σ ( n )} ⋅ ( − sgn ⁡ ( σ ) ) \\ & = − {∑}_{σ} {t}_{1 , σ ( 1 )} ⋯ {t}_{j , σ ( j )} ⋯ {t}_{i , σ ( i )} ⋯ {t}_{n , σ ( n )} ⋅ sgn ⁡ ( σ )\end{matrix}

where the sum is over all permutations σ derived from
another permutation ϕ by a swap of the i-th and
j-th numbers.
But any permutation can be derived from some other permutation by such a swap,
in one and only one way,
so this summation is in fact a sum over all permutations,
taken once and only once.
Thus d ( \overset{̂}{T} ) = − d ( T ).

To do property (1) let T [ b ] {→}_{ \ }^{k {ρ}_{i} + {ρ}_{j}} \overset{̂}{T}
and consider

\begin{matrix}d ( \overset{̂}{T} ) & = {∑}_{\text{perms } ϕ} {\overset{̂}{t}}_{1 , ϕ ( 1 )} ⋯ {\overset{̂}{t}}_{i , ϕ ( i )} ⋯ {\overset{̂}{t}}_{j , ϕ ( j )} ⋯ {\overset{̂}{t}}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) \\ & = {∑}_{ϕ} {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ ( k {t}_{i , ϕ ( j )} + {t}_{j , ϕ ( j )} ) ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ )\end{matrix}

(notice: that's
k {t}_{i , ϕ ( j )}, not k {t}_{j , ϕ ( j )}).
Distribute, commute, and factor.

\begin{matrix}= & {∑}_{ϕ} [ {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ k {t}_{i , ϕ ( j )} ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) \\ & \ + {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ {t}_{j , ϕ ( j )} ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) ] \\ \\ = & {∑}_{ϕ} {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ k {t}_{i , ϕ ( j )} ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) \\ & \ + {∑}_{ϕ} {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ {t}_{j , ϕ ( j )} ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) \\ \\ = & k ⋅ {∑}_{ϕ} {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ {t}_{i , ϕ ( j )} ⋯ {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) + d ( T )\end{matrix}

We finish by showing that the terms {t}_{1 , ϕ ( 1 )} ⋯ {t}_{i , ϕ ( i )} ⋯ {t}_{i , ϕ ( j )} … {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) add to zero. This sum represents d ( S ) where S is a matrix equal to T except that row j of S is a copy of row i of T (because the factor is {t}_{i , ϕ ( j )}, not {t}_{j , ϕ ( j )}). Thus, S has two equal rows, rows i and j. Since we have already shown that d changes sign on row swaps, as in Lemma 2.3 we conclude that d ( S ) = 0.

We have now shown that determinant functions exist for each size.
We already know that for each size there is at most one
determinant.
Therefore, the permutation expansion
computes the one and only determinant value of a square matrix.

We end this subsection by proving the other result
remaining from the prior subsection, that the determinant of a matrix
equals the determinant of its transpose.

Example 4.8

Writing out the permutation expansion of the general
{}3 \ × \ 3 matrix and of its transpose, and
comparing corresponding terms

| \begin{matrix}a & b & c \\ d & e & f \\ g & h & i\end{matrix} | = ⋯ \ + c d h ⋅ | \begin{matrix}0 & 0 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 0\end{matrix} | + \ ⋯

(terms with the same letters)

| \begin{matrix}a & d & g \\ b & e & h \\ c & f & i\end{matrix} | = ⋯ \ + d h c ⋅ | \begin{matrix}0 & 1 & 0 \\ 0 & 0 & 1 \\ 1 & 0 & 0\end{matrix} | + \ ⋯

shows that the corresponding permutation matrices are transposes. That is, there is a relationship between these corresponding permutations. Problem 6 shows that they are inverses.

Theorem 4.9

The determinant of a matrix equals the determinant of its transpose.

Proof

Call the matrix T and denote the entries of {T}^{t r a n s} with
s's so that {t}_{i , j} = {s}_{j , i}.
Substitution gives this

| T | = {∑}_{\text{perms } ϕ} {t}_{1 , ϕ ( 1 )} … {t}_{n , ϕ ( n )} sgn ⁡ ( ϕ ) = {∑}_{ϕ} {s}_{ϕ ( 1 ) , 1} … {s}_{ϕ ( n ) , n} sgn ⁡ ( ϕ )

and we can finish the argument by manipulating the expression on the right
to be recognizable as the determinant of the transpose.
We have written all permutation expansions
(as in the middle expression above)
with the row indices ascending.
To rewrite the expression on the right in this way, note that
because ϕ is a permutation,
the row indices in the term on the right ϕ ( 1 ), ..., ϕ ( n )
are just the numbers 1, ..., n, rearranged.
We can thus commute to have these ascend, giving
{s}_{1 , {ϕ}^{− 1} ( 1 )} ⋯ {s}_{n , {ϕ}^{− 1} ( n )}
(if the column index is j and the row index is ϕ ( j ) then,
where the row index is i, the column index is {ϕ}^{− 1} ( i )).
Substituting on the right gives

= {∑}_{{ϕ}^{− 1}} {s}_{1 , {ϕ}^{− 1} ( 1 )} ⋯ {s}_{n , {ϕ}^{− 1} ( n )} sgn ⁡ ( {ϕ}^{− 1} )

(Problem 5
shows that sgn ⁡ ( {ϕ}^{− 1} ) = sgn ⁡ ( ϕ )).
Since every permutation is the inverse of another,
a sum over all {ϕ}^{− 1} is a sum over all permutations ϕ

= {∑}_{\text{perms } σ} {s}_{1 , {σ}^{(} 1 )} … {s}_{n , σ ( n )} sgn ⁡ ( σ ) = | {T}^{t r a n s} |

as required.

Exercises

These summarize the notation used in this book for the 2- and 3- permutations.

\begin{matrix}i & 1 & 2 \\ {ϕ}_{1} ( i ) & 1 & 2 \\ {ϕ}_{2} ( i ) & 2 & 1\end{matrix} \ \begin{matrix}i & 1 & 2 & 3 \\ {ϕ}_{1} ( i ) & 1 & 2 & 3 \\ {ϕ}_{2} ( i ) & 1 & 3 & 2 \\ {ϕ}_{3} ( i ) & 2 & 1 & 3 \\ {ϕ}_{4} ( i ) & 2 & 3 & 1 \\ {ϕ}_{5} ( i ) & 3 & 1 & 2 \\ {ϕ}_{6} ( i ) & 3 & 2 & 1\end{matrix}

Problem 1

Give the permutation expansion of a general {}2 \ × \ 2 matrix
and its transpose.

This exercise is recommended for all readers.

Problem 2

This problem appears also in the prior subsection.

  • Find the inverse of each 2-permutation.
  • Find the inverse of each 3-permutation.

This exercise is recommended for all readers.

Problem 3

  • Find the signum of each 2-permutation.
  • Find the signum of each 3-permutation.

Problem 4

What is the signum of the n-permutation
ϕ = ⟨ n , n − 1 , … , 2 , 1 ⟩?
(Strang 1980)

Problem 5

Prove these.

  • Every permutation has an inverse.
  • sgn ⁡ ( {ϕ}^{− 1} ) = sgn ⁡ ( ϕ )
  • Every permutation is the inverse of another.

Problem 6

Prove that the matrix of the permutation inverse
is the transpose of the matrix of the permutation
{P}_{{ϕ}^{− 1}} = {{P}_{ϕ}}^{t r a n s},
for any permutation ϕ.

This exercise is recommended for all readers.

Problem 7

Show that a permutation matrix with m inversions can be
row swapped to the identity in m steps.
Contrast this with Corollary 4.6.

This exercise is recommended for all readers.

Problem 8

For any permutation ϕ let g ( ϕ ) be the integer
defined in this way.

g ( ϕ ) = {∏}_{i < j} [ ϕ ( j ) − ϕ ( i ) ]

(This is the product, over all indices i and j with i < j,
of terms of the given form.)

  • Compute the value of g on all 2-permutations.
  • Compute the value of g on all 3-permutations.
  • Prove this.

sgn ⁡ ( ϕ ) = \frac{g ( ϕ )}{| g ( ϕ ) |}

Many authors give this formula as the definition of the signum function.

Solutions

References

  • Strang, Gilbert (1980), Linear Algebra and its Applications (2nd ed.), Hartcourt Brace Javanovich

Where this page came from

This page was imported from Wikibooks. From “Linear Algebra” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.