Cramer's formulas for solving systems of linear equations

Consider a system of n linear equations with n unknowns x1, x2, ..., xn, that is, a system in which the number of equations is equal to the number of unknowns.

System of linear equations
The determinant of this system is called the determinant of the matrix of its coefficients

Determinant of a system of linear equations
Let us replace any column, for example, the j-th, with a column b of free terms in the determinant Determinant
The determinant obtained in this way is denoted by

Determinant of the matrix of a system in which the j column is replaced by a column of the right-hand sides of the equations
If the determinant of the system Determinant is not zero
then this system is compatible and has a unique solution, which is found using Cramer formulas (Cramer's rule):

Cramer formulas

Calculators for solving examples and problems in mathematics

The best math apps for schoolchildren and their parents, students and teachers. More detailed ...


Since the calculation of determinants of the 4th and higher orders is a rather cumbersome procedure, finding the roots of a system of linear equations using Cramer's formulas is appropriate for systems of two or three equations. Let us write out formulas for calculating determinants of the second and third orders.

The determinant of the second order

Determinant of the second order
The determinant of the third order

Determinant of the third order
Let's consider the application of Cramer's formulas using examples.

Examples of solving systems of linear equations using Cramer's formulas

Example 1.
Solve a system of two linear equations with two unknowns
Solve a system of two linear equations with two unknowns Solution.
1) Let's calculate the determinant of this system:
Determinant of the system The determinant of the system is equal to -9 ≠ 0, therefore, the system is compatible and has a unique solution.

2) Let's calculate two determinants that are obtained from the determinant of the system by replacing the first and second columns, respectively, with a column of free terms:
Determinant of the system
3) Using Cramer's formulas we calculate the values ​​of the unknowns:
Using Cramer's formulas we calculate the values ​​of the unknowns
Answer: x = 5, y = 1.

Example 2.
Solve a system of three linear equations with three unknowns
Solve a system of three linear equations with three unknowns Solution.
1) Let's calculate the determinant of this system:
Determinant of the system The determinant of the system is equal to 5 ≠ 0, therefore, the system is compatible and has a unique solution.

2) Let's calculate 3 determinants, which are obtained from the determinant of the system by replacing the first, second and third columns, respectively, with a column of free terms:

Determinants of the system

3) Using Cramer's formulas we calculate the values ​​of the unknowns:

Using Cramer's formulas we calculate the values ​​of the unknowns
Answer: x = 3, y = -1, z = 1.

JustNoteIt - Note Manager 2in1
Related Sites & Topics:
Copyright © 2025 Intemodino Group s.r.o.
All rights reserved
Menu