4.03h–4.03k - Calculating and interpreting determinants

4.03h–4.03k - Calculating and interpreting determinants

Calculate determinants of matrices of order two and three, by hand and with a calculator. Use their magnitudes to find areas and volumes after a transformation, and their signs to decide whether orientation is preserved.

A number attached to a square matrix

A unit square is transformed by M=(211−3)\mathbf{M} = \begin{pmatrix}2 & 1 \\ 1 & -3\end{pmatrix} into a sloping parallelogram. Can you find its area, and tell whether its corners have changed orientation, without finding any side lengths or angles? One number calculated from the matrix answers both questions.

You already know

A transformation matrix acts on column vectors. Its columns give the images of the unit vectors: (abcd)\begin{pmatrix}a & b \\ c & d\end{pmatrix} sends (10)\begin{pmatrix}1 \\ 0\end{pmatrix} to (ac)\begin{pmatrix}a \\ c\end{pmatrix} and (01)\begin{pmatrix}0 \\ 1\end{pmatrix} to (bd)\begin{pmatrix}b \\ d\end{pmatrix}.

Start with the calculation. Multiply down the main diagonal, then subtract the product down the other diagonal. For the opening matrix this gives 2(−3)−(1)(1)=−72(-3) - (1)(1) = -7. The negative sign matters; keep it until you interpret the result.

Determinant

The determinant is a scalar associated with a square matrix. For M=(abcd)\mathbf{M} = \begin{pmatrix}a & b \\ c & d\end{pmatrix}, it is written det⁡M\det\mathbf{M}, ∣M∣\lvert\mathbf{M}\rvert or ∣abcd∣\begin{vmatrix}a & b \\ c & d\end{vmatrix}. For example, det⁡(211−3)=−7\det\begin{pmatrix}2 & 1 \\ 1 & -3\end{pmatrix} = -7. A rectangular matrix such as (123456)\begin{pmatrix}1 & 2 & 3 \\ 4 & 5 & 6\end{pmatrix} has no determinant.

Vertical bars around a matrix mean its determinant. They do not mean that you take an absolute value; a determinant can be negative.

Determinant of a matrix of order two

For a matrix of order two,

det⁡(abcd)=ad−bc\det\begin{pmatrix}a & b \\ c & d\end{pmatrix} = ad - bc

Not in the formula booklet: learn it.

Keep the products separate until the final subtraction.

Worked example 1: a positive determinant

Question. Find the determinant of A=(3214)\mathbf{A} = \begin{pmatrix}3 & 2 \\ 1 & 4\end{pmatrix}.

Plan. Calculate the main-diagonal product and subtract the other product.

det⁡A=(3)(4)−(2)(1)use ad−bc=12−2calculate the products=10subtract\begin{aligned} \det\mathbf{A} &= (3)(4) - (2)(1) && \text{use } ad - bc \\ &= 12 - 2 && \text{calculate the products} \\ &= 10 && \text{subtract} \end{aligned}

Why this step? The subtraction has a fixed order: main diagonal first. Reversing it would change the sign.

Answer. det⁡A=10\det\mathbf{A} = 10.

Check. Entering A\mathbf{A} as a matrix of order two and evaluating its determinant gives 1010.

Worked example 2 changes just the top-right entry. The matrix still has positive entries, but its determinant becomes negative: the signs of the entries do not decide the sign of the determinant.

Worked example 2: a negative determinant

Question. Find the determinant of B=(31314)\mathbf{B} = \begin{pmatrix}3 & 13 \\ 1 & 4\end{pmatrix}.

Plan. Use the same two products, including the changed top-right entry.

det⁡B=(3)(4)−(13)(1)use ad−bc=12−13calculate the products=−1retain the sign\begin{aligned} \det\mathbf{B} &= (3)(4) - (13)(1) && \text{use } ad - bc \\ &= 12 - 13 && \text{calculate the products} \\ &= -1 && \text{retain the sign} \end{aligned}

Why this step? A determinant is a signed number. Replacing −1-1 by 11 would discard information about the transformation.

Answer. det⁡B=−1\det\mathbf{B} = -1.

Check. A calculator determinant gives −1-1, agreeing with the hand calculation.

On a calculator, define the matrix with the correct dimensions, enter its entries row by row, then apply the determinant function to that stored matrix. If detailed reasoning is required, show the products; a calculator value alone does not show the method.

Watch out

Wrong: det⁡(2−341)=2−12=−10\det\begin{pmatrix}2 & -3 \\ 4 & 1\end{pmatrix} = 2 - 12 = -10. The other diagonal contains −3-3, so its product is −12-12. Right: 2(1)−(−3)(4)=2+12=142(1) - (-3)(4) = 2 + 12 = 14.

With a positive entry in every position, the second product can still exceed the first.

Area and orientation in two dimensions

The images of the two unit vectors form the adjacent sides of the image of the unit square. The area of that parallelogram is the magnitude of the determinant; the sign records which way round its corners run.

[DIAGRAM: asset_name: A unit square with its orientation reversed; asset_slug: determinant-area-orientation; caption: The matrix sends an anticlockwise unit square to a clockwise parallelogram of area 7.; description: Left panel shows the unit square OABC with O at (0, 0), A at (1, 0), B at (1, 1), C at (0, 1), and anticlockwise arrows. Right panel shows its image under the matrix with rows (2, 1) and (1, -3): O at (0, 0), A prime at (2, 1), B prime at (3, -2), C prime at (1, -3), with clockwise arrows and area 7.]
The matrix sends an anticlockwise unit square to a clockwise parallelogram of area 7.

Trace the vertices in their original order. If they originally ran anticlockwise, a positive determinant leaves that order anticlockwise; a negative determinant makes it clockwise. This is orientation, not the direction in which one particular point moves. A half-turn has determinant 11: it rotates the picture but preserves its orientation.

For columns (ac)\begin{pmatrix}a \\ c\end{pmatrix} and (bd)\begin{pmatrix}b \\ d\end{pmatrix}, the signed parallelogram area is ad−bcad - bc. One way to see this is to write the column lengths as rr and ss, with angles α\alpha and β\beta from the positive horizontal axis. Then

ad−bc=rs(cos⁡αsin⁡β−sin⁡αcos⁡β)=rssin⁡(β−α)compound-angle identity\begin{aligned} ad - bc &= rs(\cos\alpha\sin\beta - \sin\alpha\cos\beta) \\ &= rs\sin(\beta - \alpha) && \text{compound-angle identity} \end{aligned}

Its magnitude is base times perpendicular height. Its sign changes when the order of the two sides reverses. The same area multiplier applies to every triangle, and hence to a region divided into triangles; it is not restricted to unit squares.

Area scale factor and orientation

For a real matrix M\mathbf{M} of order two representing a linear transformation,

image area=∣det⁡M∣×object area\text{image area} = \lvert\det\mathbf{M}\rvert\times\text{object area}

A positive determinant preserves orientation; a negative determinant reverses it. A zero determinant gives an image of zero area.

Not in the formula booklet: learn it.

Apply the area rule to the original area, which need not be one.

Worked example 3: an area scale factor

Question. A triangle has area 66. It is transformed by A=(2114)\mathbf{A} = \begin{pmatrix}2 & 1 \\ 1 & 4\end{pmatrix}. Find its image area and state whether orientation is preserved.

Plan. Calculate the determinant, use its magnitude for area and its sign for orientation.

det⁡A=(2)(4)−(1)(1)=7calculate the determinantimage area=∣7∣×6=42multiply the original area\begin{aligned} \det\mathbf{A} &= (2)(4) - (1)(1) = 7 && \text{calculate the determinant} \\ \text{image area} &= |7|\times 6 = 42 && \text{multiply the original area} \end{aligned}

Why this step? Area uses the magnitude; orientation uses the sign. These are two separate conclusions from the same number.

Answer. The image area is 4242, and orientation is preserved because det⁡A>0\det\mathbf{A} > 0.

Check. The image of a unit square has area 77, so an object of area 66 should have image area 6×7=426\times 7 = 42.

Worked example 4 changes only the bottom-right entry. The determinant changes from 77 to −7-7, so the area stays the same while orientation changes.

Worked example 4: the same area, reversed orientation

Question. A triangle has area 66. It is transformed by B=(211−3)\mathbf{B} = \begin{pmatrix}2 & 1 \\ 1 & -3\end{pmatrix}. Find its image area and state whether orientation is preserved.

Plan. Keep the determinant's negative sign for the orientation statement, then take its magnitude for area.

det⁡B=(2)(−3)−(1)(1)=−7calculate the determinantimage area=∣−7∣×6=42area is non-negative\begin{aligned} \det\mathbf{B} &= (2)(-3) - (1)(1) = -7 && \text{calculate the determinant} \\ \text{image area} &= |-7|\times 6 = 42 && \text{area is non-negative} \end{aligned}

Why this step? A negative determinant does not produce a negative area; it tells you that the order of the corners reverses.

Answer. The image area is 4242, and orientation is reversed because det⁡B<0\det\mathbf{B} < 0.

Check. The diagram shows a unit square becoming a parallelogram of area 77, with its labelled corners running clockwise.

Here is a useful surprise: a shear (1k01)\begin{pmatrix}1 & k \\ 0 & 1\end{pmatrix} has determinant 11 for every real kk. It can make one side of a unit square arbitrarily long, yet every image still has area 11. Area preservation does not imply length preservation.

Watch out

Wrong: “The determinant is −7-7, so the image area is −42-42.” Right: the area is 4242, and the negative sign means orientation is reversed. Also, the determinant is already an area scale factor: do not square it.

Use the determinant once for the area calculation, then interpret its sign in words.

Determinants of order three

A determinant of order three can be reduced to three determinants of order two. Choose a row, remove its row and each entry's column in turn, and combine the smaller determinants with alternating signs.

Using the first row makes the pattern especially easy to see. If the top-left entry is aa, removing its row and column leaves (efhi)\begin{pmatrix}e & f \\ h & i\end{pmatrix}. The top-middle entry bb leaves (dfgi)\begin{pmatrix}d & f \\ g & i\end{pmatrix}, and the top-right entry cc leaves (degh)\begin{pmatrix}d & e \\ g & h\end{pmatrix}. These smaller determinants are called minors of the corresponding entries.

Expansion of a determinant of order three

For a matrix of order three,

∣abcdefghi∣=a∣efhi∣−b∣dfgi∣+c∣degh∣=a(ei−fh)−b(di−fg)+c(dh−eg)\begin{aligned} \begin{vmatrix}a & b & c \\ d & e & f \\ g & h & i\end{vmatrix} &= a\begin{vmatrix}e & f \\ h & i\end{vmatrix} - b\begin{vmatrix}d & f \\ g & i\end{vmatrix} + c\begin{vmatrix}d & e \\ g & h\end{vmatrix} \\ &= a(ei - fh) - b(di - fg) + c(dh - eg) \end{aligned}

This is expansion along the first row. The signs are plus, minus, plus.

Not in the formula booklet: learn it.

You may expand along any row or column. Use the signs in the corresponding positions of the pattern (+−+−+−+−+)\begin{pmatrix}+ & - & + \\ - & + & - \\ + & - & +\end{pmatrix}. A row or column containing zeros saves work, since every zero entry contributes zero.

Worked example 5: a zero simplifies the expansion

Question. Calculate det⁡A\det\mathbf{A}, where A=(201132014)\mathbf{A} = \begin{pmatrix}2 & 0 & 1 \\ 1 & 3 & 2 \\ 0 & 1 & 4\end{pmatrix}.

Plan. Expand along the first row; its middle entry contributes zero.

det⁡A=2∣3214∣+1∣1301∣first-row expansion=2(12−2)+(1−0)evaluate the minors=21combine\begin{aligned} \det\mathbf{A} &= 2\begin{vmatrix}3 & 2 \\ 1 & 4\end{vmatrix} + 1\begin{vmatrix}1 & 3 \\ 0 & 1\end{vmatrix} && \text{first-row expansion} \\ &= 2(12 - 2) + (1 - 0) && \text{evaluate the minors} \\ &= 21 && \text{combine} \end{aligned}

Why this step? Choosing a row with a zero removes one whole minor calculation without changing the determinant.

Answer. det⁡A=21\det\mathbf{A} = 21.

Check. Expanding down the first column gives 2(12−2)−1(0−1)=212(12 - 2) - 1(0 - 1) = 21.

Worked example 6 changes only the zero in the first row to 11. The middle contribution now matters, including its minus sign.

Worked example 6: retaining the middle minus sign

Question. Calculate det⁡B\det\mathbf{B}, where B=(211132014)\mathbf{B} = \begin{pmatrix}2 & 1 & 1 \\ 1 & 3 & 2 \\ 0 & 1 & 4\end{pmatrix}.

Plan. Write all three first-row terms before evaluating any minor.

det⁡B=2∣3214∣−1∣1204∣+1∣1301∣plus, minus, plus=2(12−2)−(4−0)+(1−0)evaluate the minors=20−4+1=17combine\begin{aligned} \det\mathbf{B} &= 2\begin{vmatrix}3 & 2 \\ 1 & 4\end{vmatrix} - 1\begin{vmatrix}1 & 2 \\ 0 & 4\end{vmatrix} + 1\begin{vmatrix}1 & 3 \\ 0 & 1\end{vmatrix} && \text{plus, minus, plus} \\ &= 2(12 - 2) - (4 - 0) + (1 - 0) && \text{evaluate the minors} \\ &= 20 - 4 + 1 = 17 && \text{combine} \end{aligned}

Why this step? Keeping the outside signs separate from the arithmetic inside each minor stops two different subtractions becoming confused.

Answer. det⁡B=17\det\mathbf{B} = 17.

Check. A calculator determinant of the entered matrix gives 1717. Expanding down the first column also gives 2(12−2)−(4−1)=172(12 - 2) - (4 - 1) = 17.

The calculator method is the same as before, with dimensions set to three by three. Enter the rows carefully, then evaluate the determinant of the stored matrix. Use it to check hand work; when detailed reasoning is required, the expansion must be visible.

Watch out

Wrong: “First-row expansion has three plus signs.” The middle cofactor has a minus sign even when the middle entry itself is positive. If the entry is negative, write both signs: for example, the middle contribution from an entry −2-2 is −(−2)-(-2) times its minor.

Choose a row or column, write its signed minor contributions, then evaluate them.

Volume and orientation in three dimensions

In three dimensions the columns of a matrix give the three edges of the image of a unit cube. Its image is a parallelepiped, and the magnitude of the determinant gives its volume.

For a diagonal matrix (a000b000c)\begin{pmatrix}a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c\end{pmatrix}, this agrees with ordinary length, width and height: its determinant is abcabc, and the image volume is ∣a∣∣b∣∣c∣=∣abc∣|a||b||c| = |abc|. The determinant also gives the volume multiplier when the image is sloping rather than rectangular.

Volume scale factor and orientation

For a real matrix M\mathbf{M} of order three representing a linear transformation,

image volume=∣det⁡M∣×object volume\text{image volume} = \lvert\det\mathbf{M}\rvert\times\text{object volume}

A positive determinant preserves orientation; a negative determinant reverses it. A zero determinant gives an image of zero volume.

Not in the formula booklet: learn it.

The sign rule still applies in three dimensions. You can use it directly without trying to explain three-dimensional orientation from a drawing.

Calculate the determinant before applying it to the given volume.

Worked example 7: a volume calculation

Question. A solid of volume 44 is transformed by A=(210120003)\mathbf{A} = \begin{pmatrix}2 & 1 & 0 \\ 1 & 2 & 0 \\ 0 & 0 & 3\end{pmatrix}. Find its image volume and state whether orientation is preserved.

Plan. Expand along the last row, then use the magnitude and sign of the determinant separately.

det⁡A=3∣2112∣two entries are zero=3(4−1)=9evaluate the minorimage volume=∣9∣×4=36use the volume multiplier\begin{aligned} \det\mathbf{A} &= 3\begin{vmatrix}2 & 1 \\ 1 & 2\end{vmatrix} && \text{two entries are zero} \\ &= 3(4 - 1) = 9 && \text{evaluate the minor} \\ \text{image volume} &= |9|\times 4 = 36 && \text{use the volume multiplier} \end{aligned}

Why this step? The determinant already combines the effects in all three directions. Cubing it would count those effects again.

Answer. The image volume is 3636, and orientation is preserved because the determinant is positive.

Check. The transformation multiplies horizontal areas by 33 and vertical lengths by 33, giving a volume multiplier of 99.

Worked example 8 changes only the middle diagonal entry from 22 to −2-2. This makes the horizontal area multiplier negative and changes both the magnitude and the sign of the volume multiplier.

Worked example 8: a negative volume multiplier

Question. A solid of volume 44 is transformed by B=(2101−20003)\mathbf{B} = \begin{pmatrix}2 & 1 & 0 \\ 1 & -2 & 0 \\ 0 & 0 & 3\end{pmatrix}. Find its image volume and state whether orientation is preserved.

Plan. Expand along the last row, retaining the sign of the two-dimensional determinant.

det⁡B=3∣211−2∣last-row expansion=3(−4−1)=−15evaluate the minorimage volume=∣−15∣×4=60take the magnitude\begin{aligned} \det\mathbf{B} &= 3\begin{vmatrix}2 & 1 \\ 1 & -2\end{vmatrix} && \text{last-row expansion} \\ &= 3(-4 - 1) = -15 && \text{evaluate the minor} \\ \text{image volume} &= |-15|\times 4 = 60 && \text{take the magnitude} \end{aligned}

Why this step? The sign describes orientation; the magnitude describes the volume multiplier. The volume itself cannot be negative.

Answer. The image volume is 6060, and orientation is reversed because the determinant is negative.

Check. The horizontal area multiplier has magnitude 55, and the vertical stretch has factor 33, so the volume multiplier has magnitude 1515.

The horizontal transformation and vertical stretch are already combined in the determinant; no further power is needed.

Watch out

Wrong: “A determinant of −15-15 gives volume −60-60” or “the volume multiplier is (−15)3(-15)^3.” Right: the image volume is 15×4=6015\times 4 = 60, with orientation reversed.

You can now answer the opening question. The matrix (211−3)\begin{pmatrix}2 & 1 \\ 1 & -3\end{pmatrix} has determinant −7-7, so the unit square becomes a parallelogram of area 77 with reversed orientation. No lengths or angles were needed.

Quick Recap

  • For a matrix of order two, det⁡(abcd)=ad−bc\det\begin{pmatrix}a & b \\ c & d\end{pmatrix} = ad - bc.
  • Expand a determinant of order three using minors and the alternating cofactor signs; choose a row or column containing zeros when possible.
  • The magnitude of the determinant multiplies areas in two dimensions and volumes in three dimensions.
  • A positive determinant preserves orientation, a negative determinant reverses it, and a zero determinant gives zero image area or volume.

The opening square has image area 77 and reversed orientation, because its transformation matrix has determinant −7-7.