# 13.1: The Solutions of Simultaneous Linear Equations

The concept of determinants has its origin in the solution of simultaneous linear equations. In physical chemistry, they are an important tool in quantum mechanics

Suppose you want to solve the following system of two equations with two unknowns ($$x$$ and $$y$$):

$a_1x+b_1y=c_1 \nonumber$

$a_2x+b_2y=c_2 \nonumber$

In order to find $$y$$, we could use the following general procedure: we multiply the first equation by $$a_2$$ and the second by $$a_1$$, and subtract one line from the other to cancel the term in $$x$$:

$a_1x+b_1y=c_1\overset{\times a_2}{\rightarrow}a_1a_2x+b_1a_2y=c_1a_2 \nonumber$

$a_2x+b_2y=c_2\overset{\times a_1}{\rightarrow}a_1a_2x+b_2a_1y=c_2a_1 \nonumber$

$\left.\begin{matrix} a_1a_2x+b_1a_2y=c_1a_2\\ a_1a_2x+b_2a_1y=c_2a_1 \end{matrix}\right\} \rightarrow (b_2a_1-b_1a_2)y=a_1c_2-a_2c_1\rightarrow y=\dfrac{a_1c_2-a_2c_1}{b_2a_1-b_1a_2} \nonumber$

We can follow the same strategy to find $$x$$: we multiply the first equation by $$b_2$$ and the second by $$b_1$$, and subtract one line from the other to cancel the term in $$y$$:

$a_1x+b_1y=c_1\overset{\times b_2}{\rightarrow}a_1b_2x+b_1b_2y=c_1b_2 \nonumber$

$a_2x+b_2y=c_2\overset{\times b_1}{\rightarrow}b_1a_2x+b_2b_1y=c_2b_1 \nonumber$

$\left.\begin{matrix} a_1b_2x+b_1b_2y=c_1b_2\\ b_1a_2x+b_2b_1y=c_2b_1 \end{matrix}\right\} \rightarrow (b_2a_1-b_1a_2)x=b_2c_1-b_1c_2\rightarrow x=\dfrac{b_2c_1-b_1c_2}{b_2a_1-b_1a_2} \nonumber$

We define a $$2\times 2$$ determinant as:

$\begin{vmatrix} a &b \\ c& d \end{vmatrix}=ad-cb \nonumber$

The determinant, which is denoted with two parallel bars, is a number. For example,

$\begin{vmatrix} 3 &-1 \\ 1/2& 2 \end{vmatrix}=3\times 2-(-1)\times 1/2=13/2 \nonumber$

Let’s look at the expressions we obtained for $$x$$ and $$y$$, and write them in terms of determinants:

$x=\dfrac{b_2c_1-b_1c_2}{b_2a_1-b_1a_2}=\dfrac{\begin{vmatrix} c_1 &b_1 \\ c_2& b_2 \end{vmatrix}}{\begin{vmatrix} a_1 &b_1 \\ a_2& b_2 \end{vmatrix}} \nonumber$

$y=\dfrac{a_1c_2-a_2c_1}{b_2a_1-b_1a_2}=\dfrac{\begin{vmatrix} a_1 &c_1 \\ a_2& c_2 \end{vmatrix}}{\begin{vmatrix} a_1 &b_1 \\ a_2& b_2 \end{vmatrix}} \nonumber$

Let’s look at our equations, and see how these determinants are constructed from the coefficients.

$a_1x+b_1y=c_1 \nonumber$

$a_2x+b_2y=c_2 \nonumber$

The determinant in the denominator of both $$x$$ and $$y$$ is the determinant of the coefficients on the left-side of the equal sign:

$\left.\begin{matrix} {\color{Red} a_1}x+{\color{Red} b_1}y=c_1\\ {\color{Red} a_2}x+{\color{Red} b_2}y=c_2 \end{matrix}\right\} {\begin{vmatrix} {\color{Red} a_1} &{\color{Red} b_1} \\ {\color{Red} a_2}& {\color{Red} b_2} \end{vmatrix}} \nonumber$

The numerator in the expression of $$y$$ is built by replacing the coefficients in the $$y$$-column with the coefficients on the right side of the equation:

$\left.\begin{matrix} {\color{Red} a_1}x+ b_1y={\color{OliveGreen} c_1}\\ {\color{Red} a_2}x+b_2y={\color{OliveGreen} c_2} \end{matrix}\right\} {\begin{vmatrix} {\color{Red} a_1} &{\color{OliveGreen} c_1} \\ {\color{Red} a_2}& {\color{OliveGreen} c_2} \end{vmatrix}} \nonumber$

The numerator in the expression of $$x$$ is built by replacing the coefficients in the $$x$$-column with the coefficients on the right side of the equation:

$\left.\begin{matrix} a_1x+ {\color{Red} b_1}y={\color{OliveGreen} c_1}\\ a_2x+{\color{Red} b_2}y={\color{OliveGreen} c_2} \end{matrix}\right\} {\begin{vmatrix} {\color{OliveGreen} c_1} &{\color{Red} b_1} \\ {\color{OliveGreen} c_2}&{\color{Red} b_2} \end{vmatrix}} \nonumber$

We can extend this idea to $$n$$ equations with $$n$$ unknowns ($$x_1, x_2, x_3,...,x_n).$$

$\begin{matrix} a_{11}x_1&+&a_{12}x_2 &+&\cdots&+&a_{1n}x_n&=b_1 \\ a_{21}x_1&+& a_{22}c_2&+&\cdots&+&a_{2n}x_n &=b_2\\ \vdots&&\vdots & &\ddots & &\vdots&\vdots\\ a_{n1}x_1&+& a_{n2}c_2&+&\cdots&+&a_{nn}x_n &=b_n\\ \end{matrix} \nonumber$

Note that we use two subscripts to identify the coefficients. The first refers to the row, and the second to the column. Let’s define the determinant $$D$$ as the determinant of the coefficients of the equation (the ones on the left side of the equal sign):

$D=\begin{vmatrix} a_{11} &a_{12} &\cdots &a_{1n}\\ a_{21}&a_{22} &\cdots &a_{2n} \\ \vdots& \vdots &\ddots & \vdots\\ a_{n1} &a_{n2} &\cdots &a_{nn} \end{vmatrix} \nonumber$

and let’s define the determinant $$D_k$$ as the one obtained from $$D$$ by replacement of the $$kth$$ column of $$D$$ by the column with elements $$b_1, b_2...b_n$$. For example, $$D_2$$ is

$D_2=\begin{vmatrix} a_{11} &b_1 &\cdots &a_{1n}\\ a_{21}&b_2 &\cdots &a_{2n} \\ \vdots& \vdots &\ddots & \vdots\\ a_{n1} &b_{n} &\cdots &a_{nn} \end{vmatrix} \nonumber$

The unknowns of the system of equations are calculated as:

$x_1=\dfrac{D_1}{D}, x_2=\dfrac{D_2}{D},...,x_n=\dfrac{D_n}{D} \nonumber$

For example, let’s say we want to find $$x,y$$ and $$z$$ in the following system of equations:

$2x+3y+8z=0 \nonumber$

$x-\dfrac{1}{2}y-3z=\dfrac{1}{2} \nonumber$

$-x-y-z=\dfrac{1}{2} \nonumber$

We can calculate the unknowns as;

$x=\dfrac{D_1}{D},y=\dfrac{D_2}{D},z=\dfrac{D_3}{D} \nonumber$

where

$D=\begin{vmatrix} 2 &3 & 8 \\ 1 &-1/2 &-3 \\ -1 &-1 &-1 \end{vmatrix} \nonumber$

$D_1=\begin{vmatrix} 0 &3 & 8 \\ 1/2 &-1/2 &-3 \\ 1/2 &-1 &-1 \end{vmatrix} \nonumber$

$D_2=\begin{vmatrix} 2 &0 & 8 \\ 1 &1/2 &-3 \\ -1 &1/2 &-1 \end{vmatrix} \nonumber$

$D_3=\begin{vmatrix} 2 &3 & 0 \\ 1 &-1/2 &1/2 \\ -1 &-1 &1/2 \end{vmatrix} \nonumber$

In order to do this, we need to learn how to solve $$3\times3$$ determinants, or in general, $$n \times n$$ determinants.