4. Determinants
4.1 Chapter Opener: Introduction and Determinants of Order 1, 2 and 3
Chapter 4
Determinants
Big idea: attach one number to a square table of numbers. That single number tells you whether the table can be undone, how much it stretches areas, and whether a set of equations has exactly one answer.
In Chapter 3, matrices let us store a whole table of numbers as one object. Now we go one step further. For every square matrix we compute a single number called its determinant. It looks small, but it answers three large questions that run through this chapter.
- Can this matrix be undone? A square matrix has an inverse exactly when its determinant is not zero.
- How does this matrix change areas? A matrix reshapes figures on a plane. Its determinant says how many times larger or smaller each area becomes.
- Do these equations have exactly one answer? When the number of equations equals the number of unknowns, a unique answer exists exactly when the determinant of the coefficient matrix is not zero.
As you read, try every worked example with a pencil. Each section ends with a quick check and answers. The exercises collect the methods of the whole chapter. Slow and careful wins here: every step is shown.
Suppose a survey team records the three corners of a field. Can they find its area from the coordinates alone? Or suppose a shop works with two pricing rules for two products. Do those rules fix each price exactly? Or picture two straight paths on a map. Do they meet at exactly one point?
All three questions lead to the same tool. In the last chapter we met square matrices. Now we attach one number to every square matrix. This number is called its determinant. It is small, but it answers three big questions:
- Can the matrix be undone? A square matrix has an inverse exactly when its determinant is not zero.
- How does it change areas? A matrix turns shapes on a plane into new shapes. Its determinant tells how many times larger or smaller the areas become.
- Do some equations have exactly one answer? For a system of linear equations with as many equations as unknowns, a unique answer exists exactly when the determinant of its coefficient matrix is not zero.
| Question | Answered in |
|---|---|
| Can this matrix be undone? | Sections 4.5 and 4.6 |
| How do areas change? | Sections 4.1 and 4.3 |
| Is the answer to my equations unique? | Section 4.6 |
An example you can see. Take . Multiply each corner of the unit square by . The square is stretched into a slanted shape. The unit square has area 1, and the new shape has area 6, which is exactly the determinant of .
Graph with two shapes. The unit square with corners (0, 0), (1, 0), (1, 1) and (0, 1) has area 1. After multiplying each corner by the matrix M, the square becomes the slanted shape with corners (0, 0), (2, 0), (3, 3) and (1, 3), which has area 6, the determinant of M.
Read the figure. The pale shape is the unit square with corners , , and . The darker slanted shape is where those four corners land after multiplication by . Count the axes: the image reaches and . Its area is 6, six times the original. That stretching factor is the determinant.
What if the determinant is zero? Take . Its determinant is 0. The four corners of the unit square land at , , and . All four sit on the single line . The square is squashed flat, so its area becomes 0. A matrix with determinant 0 crushes at least one direction completely. Such a matrix cannot be undone, as Section 4.5 will show.
Think about it: a photo filter stretches every picture the same way. If one filter doubles all areas and a second triples them, what does the combined filter do? Keep this question in mind for the product rule in Section 4.5.
For a square matrix , the determinant of is written or . We draw straight bars around the entries of the matrix:
The two notations and mean exactly the same thing. This book mostly uses . Read as "determinant of A", never as "absolute value of A".
| Symbol | Name | Input | Output |
|---|---|---|---|
| brackets | Matrix | A table of numbers | A table |
| straight bars | Determinant | A square table | One number |
| bars around one number | Absolute value | One number | A non-negative number |
The table shows why beginners mix these up. Brackets hold a table. Straight bars around a table give one number, the determinant, which may be negative. Straight bars around a single number give its absolute value, which is never negative.
The next three sections show how to calculate the determinant of a matrix of order 1, 2 and 3. Each method builds on the previous one.
A matrix of order 1 has a single entry, . Its determinant is that entry itself: . There is nothing to combine, so the one entry is the answer.
For example, if then . Notice that this is not the absolute value, so , not 7. The bars of a determinant never force a positive result.
A matrix acts like an ordinary number. Multiplying by stretches everything by the factor . Its determinant is , which fits the area idea of Section 4.1: lengths on a line scale by . For example, for .
Where does the rule come from? Take two equations in two unknowns: and . Multiply the first equation by and the second by , then subtract. The terms cancel: .
The combination decides everything. If it is not zero, we can divide and find (and then ). If it is zero, division is impossible, and the system has either no answer or many answers. That combination is exactly the determinant of the coefficient matrix.
For the determinant is
Example 1. Evaluate for .
Solution. Multiply down the main diagonal: . Multiply up the other diagonal: . Subtract: . So .
Example 2. Evaluate for . Watch the signs.
Solution. Main diagonal: . Other diagonal: . Subtract: . So . A determinant is allowed to be negative.
Example 3. Evaluate for .
Solution. . The second row is the first row divided by 3. When one row is a multiple of another, the determinant is 0. Such a matrix is called singular, and it cannot be inverted.
Why does a multiple row give zero? The two equations then say the same thing twice (or contradict each other after scaling). Elimination produces or , never one clear answer. The determinant 0 records exactly that failure.
A picture. The columns of are the arrows and . They span a slanted parallelogram with corners , , and . Its area is 5, which equals .
Graph of a slanted parallelogram with corners (0, 0), (3, 1), (4, 3) and (1, 2). Its area is 5, equal to the determinant of the matrix with those two arrows as columns.
Read the figure. The shaded shape is the parallelogram built on the two arrows. Its corners are marked. Its area 5 matches . If the two arrows pointed along the same line, the shape would collapse to zero area, and the determinant would be 0.
Determinants grew out of an old problem: solving several linear equations at once. Long ago, Chinese scholars laid out the coefficients of their equations as rods on a counting board. The rods sat in exactly the pattern of the numbers in a determinant, and this led them to simplify problems by subtracting rows and columns.
In Japan, Seki Kowa, one of the greatest mathematicians of the seventeenth century, wrote about determinants and how to expand them in 1683. He used them to remove one unknown from two equations, not yet to solve a whole system directly. His work shows the same idea arising far from Europe.
In Europe, Vandermonde is often called the founder of the subject, because he was the first to study determinants as objects in their own right. In 1772 Laplace gave a general method for expanding a determinant using minors. In 1773 Lagrange used determinants of order two and three for purposes other than solving equations, and in 1801 Gauss used them in his work on the theory of numbers.
In 1812 Binet and Cauchy each presented results on the product of determinants. Cauchy was the first to use the word "determinant" in its modern sense and gave a fuller proof of the product rule. Jacobi then made a major contribution, after which the name and the theory were firmly established. What began as a bookkeeping trick for equations had become a theory of its own.
4.2 Expansion of Determinants and Row/Column Operations
Three equations in three unknowns lead to a determinant. We cannot just multiply diagonals any more. Instead we turn one determinant into three determinants, which we already know. Take each entry of the first row, cover its row and column, and multiply the entry by the determinant that is left. The signs alternate: , , .
This recipe is called expansion along the first row. The next section shows that any row or column works the same way.
Example 1. Evaluate for .
Solution. Expand along the first row: Each determinant is now evaluated: So .
| Term | Entry and sign | Minor left uncovered | Value |
|---|---|---|---|
| First | |||
| Second | |||
| Third |
Read the table row by row. Each term keeps one first-row entry with its alternating sign, times the determinant of everything that entry does not touch. Adding the three values gives .
Example 2 (a zero saves work). Evaluate for .
Solution. The first row contains 0, so its term vanishes without any work: So . A zero in the chosen row removes a whole term.
We expanded along the first row, but any row or any column gives the same value, as long as we use the correct sign for each entry. The sign of the entry in row and column is . This gives a checkerboard pattern:
Read the figure. Each cell shows the sign attached to that position during expansion. Corners always carry . Signs flip between neighbours, like squares on a chessboard. Copy this pattern beside your work before you start.
Why does every line give the same answer? A determinant is really a sum of six triple products, one for each way of picking one entry from every row and column. Expanding along row 1 groups those six products one way; expanding along column 3 groups the same six products another way. The total cannot change. For , the six products are:
| Product (one entry per row and column) | Sign | Value |
|---|---|---|
Adding them with their signs: . Every row or column expansion below is just a regrouping of these same six numbers.
Example. Evaluate for along different rows and columns.
Along row 1: $ 3 \begin{vmatrix} 5 & 0 \\ 2 & 6 \end{vmatrix} - 0 \begin{vmatrix} 1 & 0 \\ 4 & 6 \end{vmatrix} + 2 \begin{vmatrix} 1 & 5 \\ 4 & 2 \end{vmatrix} = 3(30) - 0(6) + 2(-18) = 54$
Along row 2:
Along column 3: $ 2 \begin{vmatrix} 1 & 5 \\ 4 & 2 \end{vmatrix} - 0 \begin{vmatrix} 3 & 0 \\ 4 & 2 \end{vmatrix} + 6 \begin{vmatrix} 3 & 0 \\ 1 & 5 \end{vmatrix} = 2(-18) - 0(6) + 6(15) = 54$
Along column 2:
All four ways give . Each of these four lines contains a 0, which saves work. Any line works; the laziest line works fastest.
4.3 Area of a Triangle using Determinants
A survey team records three field corners as coordinates. How do they find the area without measuring angles? The determinant does it in one line. The area of a triangle with corners , and is
Why this shape? Each row holds one corner plus a 1. The determinant measures twice the signed area, the corrects it, and the outer bars remove the sign. Listing the corners in a different order can flip the sign of the determinant (it swaps two rows), but the area stays the same.
Example 1. Find the area of the triangle with corners , and .
Solution. Build the determinant and expand along the first row: The area is 9 square units.
Graph of the triangle with corners (1,1), (5,2) and (3,6), which has area 9.
Read the figure. The shaded triangle joins the three marked corners. Its base runs from to , and the third corner sits high at . The determinant calculation above gives the same area 9 that measuring base and height would give.
| Corners | Determinant | Area | Meaning |
|---|---|---|---|
| A genuine triangle | |||
| Right triangle: half of 4 by 3 | |||
| No triangle: one straight line |
Read the table. The first row is Example 1. The second row is a right triangle, where base times height over 2 agrees with the determinant. The third row has determinant 0, which means the three points lie on one line.
If three points lie on one straight line, they form a "triangle" with area 0, so the determinant is 0. For , and : . So the three points are collinear. Determinant zero means the points are collinear.
Here is the same idea as a picture. The points , and all satisfy , so they sit on one straight line and enclose no area:
Graph of the straight line y = 2x - 1 with the three marked points (2, 3), (4, 7) and (6, 11) lying on it. The enclosed area is 0, so the determinant is 0.
A point lies on the line through and exactly when the three points are collinear, that is, when . Expanding along the first row gives , that is, , or . Check: both given points satisfy it.
Example 2. The corners of a triangle are , and and its area is 12. Find .
Solution. . The determinant equals , so and . So or . Both signs work, because flipping the third corner across the -axis keeps the area. Verify: with the corners , , give .
The picture below shows the case. The triangle covers half of a 6 by 4 rectangle:
Graph of the right triangle with corners (0, 0), (8, 0) and (0, 5) from the exercise family, shown as half of its surrounding rectangle. Its area is 20.
4.4 Minors and Cofactors
So far we have covered rows and columns to get determinants, without giving those pieces names. Now we name them. Naming them lets us write the adjoint and the inverse cleanly in the next section.
- [Board Standard] The minor of the entry is the determinant left after we delete row and column .
- [HOTS] The cofactor of is . It is the minor with the checkerboard sign attached.
In simple words: the minor says what is left when one entry is removed. The cofactor adds the or sign for that position.
Example 1. Let . Delete row 1 and column 1. The minor . Show the work: . Delete row 2 and column 3: , and its cofactor is . The sign for position is , from the checkerboard.
Covering row 2 and column 3 looks like this. The dashed bands are the deleted row and column. The four uncovered entries form the determinant :
Doing this for all nine entries gives the matrix of minors and the matrix of cofactors:
| Position | Minor | Sign | Cofactor |
|---|---|---|---|
The determinant equals the sum of (each entry of any one row or column) times (its cofactor). Using row 2 of :
If we multiply the entries of one row by the cofactors of another row, the sum is always 0. For example, using the entries of row 1 with the cofactors of row 2:
Why is it 0? This sum is the expansion of a copy of whose row 2 was replaced by a second copy of row 1. That copy has two identical rows, so its determinant is 0. This fact is the engine behind the adjoint in the next section.
4.5 Adjoint and Inverse of a Matrix
In Chapter 3 we saw that the inverse undoes the matrix . If stores a recipe, recovers the ingredients from the dish. But we had no method to find it. Determinants give us one.
The plan has three steps. First, build a helper matrix from the cofactors, called the adjoint. Second, learn when a matrix can be undone at all: exactly when its determinant is not zero. Third, divide the adjoint by the determinant to get the inverse. Each step is checked with numbers.
- Section 4.5.1 builds the adjoint and proves .
- Singular means (cannot be undone). Non-singular means (can be undone).
- The inverse is , valid only when .
By the end of this section you will invert and matrices by hand, and you will know exactly when the attempt must fail.
Definition. The adjoint of a square matrix , written , is the transpose of the matrix of cofactors of . Two moves: first replace every entry by its cofactor, then flip rows and columns.
Example 1 (order 2). For the cofactors are , , , . The cofactor matrix is and its transpose is
From definition to inverse in four moves:
Read the figure from top to bottom. Each box is one action on the matrix. The first two boxes build the adjoint. The last box needs , because division by zero is impossible.
Theorem 1. For every square matrix of order :
Check with Example 1. , and .
Why it works. The entry in row , column of is If , this is the cofactor expansion of along row . If , it multiplies a row by the cofactors of a different row, which gives 0 (Section 4.4). So the diagonal entries are all and every other entry is 0.
Example 2 (order 3). For we have . Its cofactor matrix is , and transposing gives
- [Board Standard] A square matrix is singular if .
- [HOTS] A square matrix is non-singular if .
For example, has , so it is singular. The matrix of Example 2 has , so it is non-singular. Only non-singular matrices can be undone.
| Property | Example | Effect |
|---|---|---|
| , , | Multiply determinants instead of matrices | |
| Order 3: square the determinant | ||
| Scaling every entry scales the determinant | ||
| both ways | Flipping rows and columns changes nothing |
Also: if and are non-singular and of the same order, then is also non-singular, because .
Theorem 2. A square matrix is invertible if and only if it is non-singular, and then
Proof. If is non-singular, divide by to get , and similarly on the other side. So is an inverse of . Conversely, if has an inverse , then gives , so .
Example 3. For : , so . Each entry of the adjoint is halved: becomes , becomes , becomes , and becomes .
Example 4. For : , so . Again every entry is halved. As a check, , which agrees with the product rule .
4.6 System of Linear Equations Using Matrix Inverses
Price lists, travel plans and mixture problems all lead to several equations that must hold at the same time. Such a family is called a system of linear equations. Solving it by hand, one variable at a time, is slow and error-prone. Matrices do it in one clean move.
Write the system in matrix form . Here holds the coefficients, holds the unknowns and holds the right-hand sides. If is non-singular, multiply both sides by to get . One formula gives every unknown.
- Section 4.6.1 solves and systems with the inverse.
- A non-singular always gives exactly one answer.
- A singular gives either no answer or many answers, and tells which.
Write the system in matrix form , where holds the coefficients, holds the unknowns and holds the right-hand sides. If is non-singular, multiply both sides by :
Three objects, three roles. is known numbers. is known totals. is what we want. The formula finds all unknowns at once.
Example 1 (a shopping problem). 2 notebooks and 3 pens cost 19 in total. 4 notebooks and 1 pen cost 23. Find the price of one notebook () and one pen ().
Solution. The equations are and , so , so exists. , so and A notebook costs 5 and a pen costs 3. Show the multiplication: and . Check: and . Both equations hold, so the answer is correct.
Graph of the two lines 2x + 3y = 19 and 4x + y = 23 meeting at the single point (5, 3). One intersection point means exactly one solution.
Read the figure. Each equation draws one straight line. The two lines cross at exactly one point, . That crossing is the unique answer. When lines are parallel instead, they never meet, and the system has no answer.
Example 2 (three unknowns). Solve , , .
Solution. , , . . The adjoint is , so So , and . Check every equation: , , and . All three hold.
| Case | Condition | Conclusion |
|---|---|---|
| Non-singular | Exactly one answer: | |
| Singular, first kind | and | No answer (inconsistent system) |
| Singular, second kind | and | Many answers or none: check further |
Read the table when . The extra test separates "the rules contradict each other" from "one rule repeats another". The two examples below show each kind.
Example 3. and . Here and . Also . So there is no solution. (Indeed, doubling the first equation gives , which contradicts .)
Example 4. and . Again , and . Here the second equation is just twice the first, so there are infinitely many solutions, such as , and . Check: each pair adds to 2, and doubling gives 4.
4.7 Miscellaneous Worked Examples and Problems
Example 1 (scaling a matrix). For a matrix of order and a number , . Check with the matrix and : and . Why the power ? Every one of the rows is multiplied by , and each row contributes one factor .
Example 2 (triangular matrices). If all the entries below the diagonal are 0, the determinant is the product of the diagonal entries. For , . (Expand along the first column: only the first entry is non-zero. Repeat down the columns.) The same holds if the zeros are above the diagonal.
Example 3 (the determinant of an inverse). From we get , so . Check with : and has determinant .
Example 4 (a quarter-turn). For , for every . A rotation turns a shape without changing its area, which is exactly what a determinant of 1 means. Take : with . The unit square goes to a tilted square of the same area 1:
Graph of the unit square with corners (0, 0), (1, 0), (1, 1) and (0, 1), and its anticlockwise quarter-turn with corners (0, 0), (0, 1), (-1, 1) and (-1, 0). Both squares have area 1, matching the rotation determinant of 1.
Read the figure. The pale square sits on the positive axes. The darker square is its image after the quarter-turn: moves to , moves to , and moves to . Both cover area 1. ==Motions that preserve area have determinant .==
Example 5 (row operations). Start with , where . Three experiments:
| Operation | New matrix | New determinant | Effect |
|---|---|---|---|
| Swap rows 1 and 2 | Sign flips | ||
| Add 2 times row 1 to row 3 | No change | ||
| Multiply row 2 by 3 | Multiplied by 3 |
Read the table. Swapping two rows changes the sign, because it reorders the six triple products into their negatives. Adding a multiple of one row to another changes nothing, because the extra terms cancel in pairs. Multiplying one row by multiplies the whole determinant by , because every triple product gains one factor . These three rules explain every sign and zero in this chapter.
Example 6 (a singular matrix and its adjoint). For the singular matrix with , the adjoint is . Then . Theorem 1 still holds: both sides are the zero matrix. But division by is impossible, so no inverse exists. ==The formula never breaks; only the division step needs .==
4.8 Chapter Summary and Determinant Properties Matrix
The chapter in plain words
- The determinant is one number attached to a square matrix. For order 1, . For order 2, .
- For order 3, expand along a row or column: each entry times the determinant left after deleting its row and column, with alternating signs (checkerboard). Any row or column gives the same value, so choose the one with the most zeros.
- Area of a triangle with corners , , is . Three points are collinear exactly when this determinant is 0.
- The minor is the determinant left after deleting row and column ; the cofactor is . Entries of one row times the cofactors of the same row add up to ; times the cofactors of a different row they add up to 0.
- The adjoint is the transpose of the cofactor matrix, and .
- is singular if and non-singular if . and . Swapping two rows flips the sign; adding a multiple of one row to another changes nothing.
- is invertible exactly when it is non-singular, and then .
- A system with has exactly one solution, . If , check : if it is not , there is no solution; if it is , there may be infinitely many solutions or none.
How to check your own work. Expand along a second line and compare. Verify every answer to a system by substitution. Test every "find " answer by putting it back into the determinant. A second line of defence catches every slip.