A system of equations can be solved by constructing a matrix equation and solving this equation using the inverse matrices.
The system of equations: \begin{cases} ax+by &=m \\ cx+dy &=n \end{cases} can be written as the matrix equation:\begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{bmatrix} x\\ y \end{bmatrix}=\begin{bmatrix} m \\ n \end{bmatrix}
In general:
To solve the matrix equation AX=B, we can use the solution matrix:
Since the inverse of the coefficient is required to find the solution, it must exist, so to have a solution we need: \det(A) \neq 0
We have two interesting applications of determinants.
The equations of a line that passes through two points \left(x_1,y_1\right) and \left(x_2, y_2\right) can be written as a determinant:
Given the vertices of a triangle \left(x_1,y_1\right),\left(x_2, y_2\right), and \left(x_3, y_3\right), we can find the area of the triangle using the formula involving the determinant, where the sign is chosen so that that area is positive.
Consider the following system of equations:
\begin{cases}-7x-y&=7\\9x+3y&=3\end{cases}
Write the coefficient, variable, and constant matrix as a matrix equation AX=B.
Find A^{-1}B.
Dave wants to start a new business. He borrowed a total of \$10\,000 from three different banks which offer different interest rates. One lending at 5\% interest, another at 8\% interest, and the third at 9\% interest. The total annual interest he had to pay on the three loans last year was \$770. The amount invested at 9\% was twice the amount invested at 5\%.
Write a system of equations that can be used to find how much Dave borrowed from each bank.
Write the matrix to represent the system of equations in the form AX=B.
Solve the matrix equation to find the amount Dave borrowed from each bank.
Find the equation of the line that passes through (-2, 0) and (5, 1) by using the equation: \begin{vmatrix} x & y &1\\ x_1 & y_1 &1\\x_2 & y_2 &1\end{vmatrix}=0