5.2-exam2-2009-postnikov¶
Quiz 2, 2009 (postnikov) · Section 5.2: Computing and Using Determinants Source: exam2_1.pdf, pp. 187-188
Problem¶
Problem 3.
(a) Find the area of the triangle on the plane \(\mathbb{R}^2\) with the vertices \((1, 1), (2, 3), (3, 2)\).
(b) Calculate the determinant of the 4 by 4 matrix
\[
A = \begin{bmatrix} 1 & -1 & 0 & 0 \\ -1 & 1 & -1 & 0 \\ 0 & -1 & 1 & -1 \\ 0 & 0 & -1 & 1 \end{bmatrix}.
\]
(c) Find the inverse of the matrix \(A\) from part (b). Check your answer by multiplying it with \(A\).
Solution
(a) Take \(\vec{u} = (2, 3) - (1, 1) = (1, 2)\) and \(\vec{v} = (3, 2) - (1, 1) = (2, 1)\). Then the area of the triangle is \(\frac{1}{2}\) the area of the parallelogram, so \[ \text{Area} = \frac{1}{2} \left| \det(\vec{u} \; \vec{v}) \right| = \frac{1}{2} \left| \det \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix} \right| = \frac{1}{2} |1 - 4| = \frac{3}{2}. \] (b) Expand along the first row: \[ \det A = 1 \cdot \det \begin{bmatrix} 1 & -1 & 0 \\ -1 & 1 & -1 \\ 0 & -1 & 1 \end{bmatrix} - (-1) \det \begin{bmatrix} -1 & -1 & 0 \\ 0 & 1 & -1 \\ 0 & -1 & 1 \end{bmatrix}. \] In the second 3 by 3 matrix, rows 2 and 3 are dependent (row 3 \(= -1 \times\) row 2), so its determinant is 0; expanding the first 3 by 3 matrix gives its determinant as \(-1\). Hence \[ \det A = -1. \] (c) There is more than one way to do this, but the fewest operations are required by the following. Invert by Gauss-Jordan elimination, \([A \mid I]\): \[ \left[ \begin{array}{cccc|cccc} 1 & -1 & 0 & 0 & 1 & 0 & 0 & 0 \\ -1 & 1 & -1 & 0 & 0 & 1 & 0 & 0 \\ 0 & -1 & 1 & -1 & 0 & 0 & 1 & 0 \\ 0 & 0 & -1 & 1 & 0 & 0 & 0 & 1 \end{array} \right] \] Row 2 \(\leftarrow\) row 2 + row 1, row 3 \(\leftarrow\) row 3 + row 4: \[ \left[ \begin{array}{cccc|cccc} 1 & -1 & 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & -1 & 0 & 1 & 1 & 0 & 0 \\ 0 & -1 & 0 & 0 & 0 & 0 & 1 & 1 \\ 0 & 0 & -1 & 1 & 0 & 0 & 0 & 1 \end{array} \right] \] Row 1 \(\leftarrow\) row 1 \(-\) row 3, row 4 \(\leftarrow\) row 4 \(-\) row 2: \[ \left( \begin{array}{cccc|cccc} 1 & 0 & 0 & 0 & 1 & 0 & -1 & -1 \\ 0 & 0 & -1 & 0 & 1 & 1 & 0 & 0 \\ 0 & -1 & 0 & 0 & 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 1 & -1 & -1 & 0 & 1 \end{array} \right) \] Multiply rows 2 and 3 by \((-1)\) and switch them: \[ \left( \begin{array}{cccc|cccc} 1 & 0 & 0 & 0 & 1 & 0 & -1 & -1 \\ 0 & 1 & 0 & 0 & 0 & 0 & -1 & -1 \\ 0 & 0 & 1 & 0 & -1 & -1 & 0 & 0 \\ 0 & 0 & 0 & 1 & -1 & -1 & 0 & 1 \end{array} \right), \qquad A^{-1} = \begin{bmatrix} 1 & 0 & -1 & -1 \\ 0 & 0 & -1 & -1 \\ -1 & -1 & 0 & 0 \\ -1 & -1 & 0 & 1 \end{bmatrix}. \] Check \(A^{-1}A = I\): \[ \begin{bmatrix} 1 & 0 & -1 & -1 \\ 0 & 0 & -1 & -1 \\ -1 & -1 & 0 & 0 \\ -1 & -1 & 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & -1 & 0 & 0 \\ -1 & 1 & -1 & 0 \\ 0 & -1 & 1 & -1 \\ 0 & 0 & -1 & 1 \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}. \]Keywords: determinant, triangle area, inverse matrix, Gauss-Jordan