Skip to content

Mathematics · Ch 2 — Matrices

Application of Matrices

2.3

Application of Matrices

Having covered the inverse of a matrix, this section turns to a major application: solving a system of linear equations using matrices. The first step is always to convert the given system of equations into the form of a single matrix equation.

Worked illustration. Consider the two linear equations 2x+3y=52x+3y=5 and x−4y=9x-4y=9. Recalling that a 2×12\times1 column matrix equals another 2×12\times1 column matrix only when their corresponding entries match, these two equations can be written together as one matrix equality:

[2x+3yx−4y]=[59]\begin{bmatrix}2x+3y\\x-4y\end{bmatrix}=\begin{bmatrix}5\\9\end{bmatrix}

Now, using the definition of matrix multiplication, the left-hand column can itself be written as a product:

[231−4][xy]=[59]\begin{bmatrix}2&3\\1&-4\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}5\\9\end{bmatrix}

Naming [231−4]=A\begin{bmatrix}2&3\\1&-4\end{bmatrix}=A (the coefficient matrix), [xy]=X\begin{bmatrix}x\\y\end{bmatrix}=X (the column matrix of variables) and [59]=B\begin{bmatrix}5\\9\end{bmatrix}=B (the column matrix of constants), the whole system collapses to the single equation AX=BAX=B.

If AA is of order 2×22\times2 and XX is of order 2×12\times1, then BB is necessarily of order 2×12\times1 (matrix multiplication forces this). The same construction extends to three linear equations in three variables x,y,zx,y,z: the system is written AX=BAX=B with AA now 3×33\times3, X=[xyz]X=\begin{bmatrix}x\\y\\z\end{bmatrix} of order 3×13\times1, and BB of order 3×13\times1. …

Misc 2.3aWorked illustration -- converting two linear equations into the matrix equation AX=B

Worked out. A pair of linear equations in x and y is rewritten step by step as a single matrix equation, first as a product of a coefficient matrix and a column of variables equated to a column of constants, and then labelled with the names A (coefficient matrix), X (variable column) and B (constant column) that are used throughout the rest of the section. …