Skip to main content
\(\renewcommand{\chaptername}{Unit} \newcommand{\derivativehomeworklink}[1]{\href{http://db.tt/cSeKG8XO}{#1}} \newcommand{\chpname}{unit} \newcommand{\sageurlforcurvature}{http://bmw.byuimath.com/dokuwiki/doku.php?id=curvature_calculator} \newcommand{\uday}{ \LARGE Day \theunitday \normalsize \flushleft \stepcounter{unitday} } \newcommand{\sageworkurl}{http://bmw.byuimath.com/dokuwiki/doku.php?id=work_calculator} \newcommand{\sagefluxurl}{http://bmw.byuimath.com/dokuwiki/doku.php?id=flux_calculator} \newcommand{\sageworkfluxurl}{http://bmw.byuimath.com/dokuwiki/doku.php?id=both_flux_and_work} \newcommand{\sagelineintegral}{http://bmw.byuimath.com/dokuwiki/doku.php?id=line_integral_calculator} \newcommand{\sagephysicalpropertiestwod}{http://bmw.byuimath.com/dokuwiki/doku.php?id=physical_properties_in_2d} \newcommand{\sagephysicalpropertiesthreed}{http://bmw.byuimath.com/dokuwiki/doku.php?id=physical_properties_in_3d} \newcommand{\sageDoubleIntegralCheckerURL}{http://bmw.byuimath.com/dokuwiki/doku.php?id=double_integral_calculator} \newcommand{\myscale}{1} \newcommand{\ds}{\displaystyle} \newcommand{\dfdx}[1]{\frac{d#1}{dx}} \newcommand{\ddx}{\frac{d}{dx}} \newcommand{\ii}{\vec \imath} \newcommand{\jj}{\vec \jmath} \newcommand{\kk}{\vec k} \newcommand{\vv}{\mathbf{v}} \newcommand{\RR}{\mathbb{R}} \newcommand{\R}{ \mathbb{R}} \newcommand{\inv}{^{-1}} \newcommand{\im}{\text{im }} \newcommand{\colvec}[1]{\begin{bmatrix}#1\end{bmatrix} } \newcommand{\cl}[1]{ \begin{matrix} #1 \end{matrix} } \newcommand{\bm}[1]{ \begin{bmatrix} #1 \end{bmatrix} } \DeclareMathOperator{\rank}{rank} \DeclareMathOperator{\rref}{rref} \DeclareMathOperator{\vspan}{span} \DeclareMathOperator{\trace}{tr} \DeclareMathOperator{\proj}{proj} \DeclareMathOperator{\curl}{curl} \newcommand{\blank}[1]{[14pt]{\rule{#1}{1pt}}} \newcommand{\vp}{^{\,\prime}} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section2.3Interlude:Matrices

We will soon discover that matrices can be used to represent derivatives in high dimensions. When you use matrices to represent derivatives, the chain rule is precisely matrix multiplication. For now, we just need to become comfortable with matrix multiplication.

We perform matrix multiplication “row by column”. Wikipedia has an excellent visual illustration of how to do this. See Wikipedia for an explanation. Alternatively see texample.net for a visualization of the idea.

Exercise2.3.1

Compute the following matrix products.

(a)

\(\begin{bmatrix}3 \amp 2\amp 1 \end{bmatrix} \begin{bmatrix}-1 \\ 2\\ 0 \end{bmatrix}\)

(b)

\(\begin{bmatrix}1 \amp 2\\3\amp 4 \end{bmatrix} \begin{bmatrix}5\amp 0\\6\amp 1 \end{bmatrix}\)

For extra practice, make up two small matrices and multiply them. You can use the CoCalc cell below or WolframAlpha to see if you are correct.

Exercise2.3.2

Compute the product \(\begin{bmatrix}3 \amp 2\amp 1\\ 0 \amp 1\amp -4 \end{bmatrix} \begin{bmatrix}-1\amp 3 \amp 0 \\ 2\amp -1 \amp 0\\ 0\amp 1 \amp 2 \end{bmatrix}\text{.}\)

Subsection2.3.1Determinants

Associated with every square matrix is a number, called the determinant. Determinants are only defined for square matrices. Determinants measure area, volume, length, and higher dimensional versions of these ideas. Determinants will appear as we study cross products and when we get to the high dimensional version of {\(u\)}-substitution.

Definition2.3.1

The determinant of a {\(2\times 2\)} matrix is the number

\begin{align*} \det\begin{bmatrix}a\amp b\\ c\amp d\end{bmatrix} \amp =\begin{vmatrix}a\amp b\\ c\amp d\end{vmatrix} = ad-bc. \end{align*}

We use vertical bars next to a matrix to state we want the determinant, so \(\det A = |A|\text{.}\)

The determinant of a {\(3\times 3\)} matrix is the number

\begin{align*} \begin{vmatrix}a\amp b\amp c\\ d\amp e\amp f\\ g\amp h\amp i\end{vmatrix} \amp = a\det\begin{vmatrix}e\amp f\\ h\amp i\end{vmatrix} -b\det\begin{vmatrix}d\amp f\\ g\amp i\end{vmatrix} +c\det\begin{vmatrix}d\amp e\\ g\amp h\end{vmatrix}\\ \amp =a(ei-hf)-b(di-gf)+c(dh-ge). \end{align*}
Exercise2.3.3

For extra practice, create your own square matrix (2 by 2 or 3 by 3) and compute the determinant by hand. Then use Wolfram Alpha to check your work. Do this until you feel comfortable taking determinants.

Compute \(\begin{vmatrix} 1\amp 2\\ 3\amp 4 \end{vmatrix}\) and \(\begin{vmatrix} 1\amp 2\amp 0\\ -1\amp 3\amp 4\\ 2\amp -3\amp 1 \end{vmatrix}\text{.}\)

What good is the determinant? The determinant was discovered as a result of trying to find the area of a parallelogram and the volume of the three dimensional version of a parallelogram (called a parallelepiped) in space. If we had a full semester to spend on linear algebra, we could eventually prove the following facts that I will just present here with a few examples.

Consider the 2 by 2 matrix \(\begin{bmatrix}3\amp 1\\0\amp 2 \end{bmatrix}\) whose determinant is \(3\cdot 2-0\cdot 1=6\text{.}\) Draw the column vectors \(\begin{bmatrix}3\\0 \end{bmatrix}\) and \(\begin{bmatrix}1\\2 \end{bmatrix}\) with their base at the origin (see figure 2). These two vectors give the edges of a parallelogram whose area is the determinant \(6\text{.}\) If I swap the order of the two vectors in the matrix, then the determinant of \(\begin{bmatrix}1\amp 3\\2\amp 0 \end{bmatrix}\) is \(-6\text{.}\) The reason for the difference is that the determinant not only keeps track of area, but also order. Starting at the first vector, if you can turn counterclockwise through an angle smaller than 180\(^\circ\) to obtain the second vector, then the determinant is positive. If you have to turn clockwise instead, then the determinant is negative. This is often termed “the right-hand rule,” as rotating the fingers of your right hand from the first vector to the second vector will cause your thumb to point up precisely when the determinant is positive.

<<SVG image is unavailable, or your browser cannot render it>>

Figure2.3.2The determinant gives both area and direction. A counter clockwise rotation from column 1 to column 2 gives a positive determinant.

For a 3 by 3 matrix, the columns give the edges of a three dimensional parallelepiped and the determinant produces the volume of this object. The sign of the determinant is related to orientation. If you can use your right hand and place your index finger on the first vector, middle finger on the second vector, and thumb on the third vector, then the determinant is positive. For example, consider the matrix \(A = \begin{bmatrix}{ \begin{matrix}1\\0\\0 \end{matrix} }\amp { \begin{matrix}0\\2\\0 \end{matrix} }\amp { \begin{matrix}0\\0\\3 \end{matrix} } \end{bmatrix}\text{.}\) Starting from the origin, each column represents an edge of the rectangular box \(0\leq x\leq 1\text{,}\) \(0\leq y\leq 2\text{,}\) \(0\leq z\leq 3\) with volume (and determinant) \(V=lwh=(1)(2)(3)=6\text{.}\) The sign of the determinant is positive because if you place your index finger pointing in the direction (1,0,0) and your middle finger in the direction (0,2,0), then your thumb points upwards in the direction (0,0,3). If you interchange two of the columns, for example \(B = \begin{bmatrix}{ \begin{matrix}0\\2\\0 \end{matrix} }\amp { \begin{matrix}1\\0\\0 \end{matrix} }\amp { \begin{matrix}0\\0\\3 \end{matrix} } \end{bmatrix}\text{,}\) then the volume doesn't change since the shape is still the same. However, the sign of the determinant is negative because if you point your index finger in the direction (0,2,0) and your middle finger in the direction (1,0,0), then your thumb points down in the direction (0,0,-3). If you repeat this with your left hand instead of right hand, then your thumb points up.

Exercise2.3.4
(a)

Use determinants to find the area of the triangle with vertices \((0,0)\text{,}\) \((-2,5)\text{,}\) and \((3,4)\text{.}\)

(b)

What would you change if you wanted to find the area of the triangle with vertices \((-3,1)\text{,}\) \((-2,5)\text{,}\) and \((3,4)\text{?}\) Find this area.