Lesson Solution of the linear system of two equations with two unknowns using determinant

Algebra ->  Algebra  -> Coordinate Systems and Linear Equations  -> Lessons -> Lesson Solution of the linear system of two equations with two unknowns using determinant      Log On

Ad: You enter your algebra equation or inequality - Algebrator solves it step-by-step while providing clear explanations. Free on-line demo .
Ad: Algebrator™ solves your algebra problems and provides step-by-step explanations!
Ad: Algebra Solved!™: algebra software solves algebra homework problems with step-by-step help!

   

This Lesson (Solution of the linear system of two equations with two unknowns using determinant) was created by by ikleyn(4) About Me : View Source, Show
About ikleyn:

Solution of the linear system of two equations with two unknowns using determinant


Let us consider the system of two linear equations with two unknowns.
The most general form of such a system is as follows

a%5B11%5D%2Ax+%2B+a%5B12%5D%2Ay+=+b%5B1%5D,                               (1)
a%5B21%5D%2Ax+%2B+a%5B22%5D%2Ay+=+b%5B2%5D,                               (2)

where a%5B11%5D, a%5B12%5D, a%5B21%5D, a%5B22%5D are coefficients; b%5B1%5D, b%5B2%5D are right side constants; x and y are unknowns.
Constants a%5B11%5D, a%5B21%5D, a%5B12%5D, a%5B22%5D, b%5B1%5D and b%5B2%5D are given, the unknown values x and y have to be found to satisfy equations (1) and (2).

There are few different methods to solve the linear system of equations (1), (2).
Substitution method is described in the lesson Solution of the linear system of two equations with two unknowns by the substitution method in this module.
Elimination method is described in the lesson Solution of the linear system of two equations with two unknowns by the Elimination method.
In this lesson we describe the determinant method for the solution of the linear equation system (1), (2).

Calculation formulas


Coefficients of the linear equation system (1), (2) form the matrix %28matrix%282%2C2%2C+a%5B11%5D%2C+a%5B12%5D%2C+a%5B21%5D%2C+a%5B22%5D%29%29 (2x2 matrix with 2 rows and 2 columns),
while the right side coefficients b%5B1%5D, b%5B2%5D form the vector %28matrix%282%2C1%2C+b%5B1%5D%2C+b%5B2%5D%29%29 (which you can consider as the matrix with 2 rows and 1 column).
The determinant of the 2x2 matrix %28matrix%282%2C2%2C+a%5B11%5D%2C+a%5B12%5D%2C+a%5B21%5D%2C+a%5B22%5D%29%29 is the value
d+=+det+%28matrix%282%2C2%2C+a%5B11%5D%2C+a%5B12%5D%2C+a%5B21%5D%2C+a%5B22%5D%29%29+=+a%5B11%5D%2Aa%5B22%5D-a%5B21%5D%2Aa%5B12%5D.      (3)
If the determinant d of the matrix %28matrix%282%2C2%2C+a%5B11%5D%2C+a%5B12%5D%2C+a%5B21%5D%2C+a%5B22%5D%29%29 is not equal to zero, then the solution of the linear equation system (1), (2) does exist, is unique and
is expressed by the formulas
x+=+%28b%5B1%5D%2Aa%5B22%5D-b%5B2%5D%2Aa%5B12%5D%29%2F%28a%5B11%5D%2Aa%5B22%5D-a%5B21%5D%2Aa%5B12%5D%29,                           (4)

y+=+%28a%5B11%5D%2Ab%5B2%5D-a%5B21%5D%2Ab%5B1%5D%29%2F%28a%5B11%5D%2Aa%5B22%5D-a%5B21%5D%2Aa%5B12%5D%29.                           (5)

Note that the numerator of formulas (4), (5) is the determinant of the matrix obtained from the basic matrix replacing the first column by the right side vector for x, and replacing the second column by the right side vector for y. So, you can rewrite formulas (4) and (5) in the form

x+=+det%28matrix%282%2C2%2Cb%5B1%5D%2Ca%5B12%5D%2Cb%5B2%5D%2Ca%5B22%5D%29%29%2Fdet%28matrix%282%2C2%2Ca%5B11%5D%2Ca%5B12%5D%2Ca%5B21%5D%2Ca%5B22%5D%29%29,                                 (4b)

y+=+det%28matrix%282%2C2%2Ca%5B11%5D%2Cb%5B1%5D%2Ca%5B21%5D%2Cb%5B2%5D%29%29%2Fdet%28matrix%282%2C2%2Ca%5B11%5D%2Ca%5B12%5D%2Ca%5B21%5D%2Ca%5B22%5D%29%29,                                 (5b)

Example


Solve the system of the two equations

system+%282x+%2B+y+=+++5%2C%0D%0A++++++++++-4x+%2B+6y+=+-2%0D%0A%29

First calculate the determinant of the matrix %28matrix%282%2C2%2C2%2C1%2C-4%2C6%29%29:
det+=+2%2A6-%28-4%29%2A1+=+12%2B4+=+16.

Since the determinant is not equal to zero, then according to the theory, the solution does exist, is unique and is calculated by formulas

x+=+%285%2A6-%28-2%29%2A1%29%2Fdet+=+%2830%2B2%29%2F16+=+32%2F16+=+2,
y+=+%282%2A%28-2%29-%28-4%29%2A5%29%2Fdet+=+%28-4-%28-20%29%29%2F16+=+16%2F16+=+1.

Let us check the calculated solution. Simply substitute the found values of x=2 and y=1 to the original system of equations. You will get

2%2A2%2B1+=+5                   for the left side of the first equation, which coincides with its right side;
-4%2A2%2B6%2A1+=+-8%2B6+=+-2 for the left side of the second equation, which coincides with its right side.

The check is done, the solution is correct.

Checking validity of the general solution formula


We can check the validity of the general formulas (4) and (5).
To do this, simply substitute the formulas (4) and (5) to the equation (1) first.
For simplicity, let us do it for numerators only.

We have
a%5B11%5D%2A%28b%5B1%5D%2Aa%5B22%5D-b%5B2%5D%2Aa%5B12%5D%29+%2B+a%5B12%5D%2A%28a%5B11%5D%2Ab%5B2%5D-a%5B21%5D%2Ab%5B1%5D%29 =
a%5B11%5D%2Aa%5B22%5D%2Ab%5B1%5D+-+red%28a%5B11%5D%2Aa%5B12%5D%2Ab%5B2%5D%29+%2B+red%28a%5B12%5D%2Aa%5B11%5D%2Ab%5B2%5D%29+-+a%5B12%5D%2Aa%5B21%5D%2Ab%5B1%5D.

After canceling the terms shown by red this is equal to
%28a%5B11%5D%2Aa%5B22%5D+-+a%5B12%5D%2Aa%5B21%5D%29%2Ab%5B1%5D.

Canceling the numerator and denominator by the determinant, you will get exactly the right side b%5B1%5D.
Similar proof is for the second equation. You can do it yourself.

How to derive the general solution formulas


If you want to derive the general solution formulas (4) and (5), simply apply the method "multiply and add" to solve equations (1) and (2).
Multiply equation (1) by a%5B22%5D, equation (2) by a%5B12%5D and then add them to eliminate y. You will get
a%5B11%5D%2Aa%5B22%5D%2Ax+-+a%5B12%5D%2Aa%5B21%5D%2Ax+=+a%5B22%5D%2Ab%5B1%5D-a%5B12%5D%2Ab%5B2%5D.

Express x from this equation, and you will get exactly the formula (4) for x.
Similar method works for y. Do it yourself please.

This lesson has been accessed 393 times.