Cramer's method is one of the exact methods for solving systems of linear algebraic equations (SLAE). Its accuracy is due to the use of determinants of the matrix of the system, as well as some restrictions imposed during the proof of the theorem.
A system of linear algebraic equations with coefficients belonging, for example, to the set R - real numbers, of unknowns x1, x2, ..., xn is a set of expressions of the form
ai2 x1 + ai2 x2 + ... ain xn = bi for i = 1, 2, ..., m, (1)
where aij, bi are real numbers. Each of these expressions is called a linear equation, aij - coefficients for unknowns, bi - free coefficients of equations.
The solution to system (1) is the n-dimensional vector x ยฐ = (x1 ยฐ, x2 ยฐ, ..., xn ยฐ), when substituting into the system instead of the unknown x1, x2, ..., xn, each of the lines in the system becomes the correct equality .
A system is called joint if it has at least one solution, and incompatible if its set of solutions coincides with an empty set.
It must be remembered that in order to find a solution to systems of linear algebraic equations using the Cramer method, the matrices of the systems must be square, which essentially means the same number of unknowns and equations in the system.
So, to use the Cramer method, you must at least know what a matrix of systems of linear algebraic equations is and how it is written out. And secondly, understand what is called the determinant of the matrix and have the skills to calculate it.
Suppose you have this knowledge. Wonderful! Then you just have to remember the formulas that determine the Cramer method. To simplify memorization, we use the following notation:
Det is the main determinant of the system matrix;
deti is the determinant of a matrix obtained from the main matrix of the system if we replace the ith column of the matrix with a column vector whose elements are the right-hand sides of systems of linear algebraic equations;
n is the number of unknowns and equations in the system.
Then the Cramer rule for computing the ith component xi (i = 1, .. n) of the n-dimensional vector x can be written as
xi = deti / Det, (2).
In this case, Det is strictly nonzero.
The uniqueness of the solution of the system, when it is compatible, provides the condition of inequality to zero of the main determinant of the system. Otherwise, if the sum (xi) squared is strictly positive, then a square matrix SLAE will be incompatible. This can happen, in particular, when at least one of deti is nonzero.
Example 1 Solve a three-dimensional LAU system using Cramer's formulas.
x1 + 2 x2 + 4 x3 = 31,
5 x1 + x2 + 2 x3 = 29,
3 x1 - x2 + x3 = 10.
Decision. We write out the matrix of the system line by line, where Ai is the ith row of the matrix.
A1 = (1 2 4), A2 = (5 1 2), A3 = (3 โ1 1).
The column of free coefficients b = (31 29 10).
The main determinant of the Det system is
Det = a11 a22 a33 + a12 a23 a31 + a31 a21 a32 - a13 a22 a31 - a11 a32 a23 - a33 a21 a12 = 1 - 20 + 12 - 12 + 2 - 10 = โ27.
To calculate det1, we use the substitution a11 = b1, a21 = b2, a31 = b3. Then
det1 = b1 a22 a33 + a12 a23 b3 + a31 b2 a32 - a13 a22 b3 - b1 a32 a23 - a33 b2 a12 = ... = โ81.
Similarly, to calculate det2, we use the substitution a12 = b1, a22 = b2, a32 = b3 and, accordingly, to calculate det3 - a13 = b1, a23 = b2, a33 = b3.
Then you can check that det2 = โ108, and det3 = - 135.
According to Cramer's formulas, we find x1 = -81 / (- 27) = 3, x2 = -108 / (- 27) = 4, x3 = -135 / (- 27) = 5.
Answer: x ยฐ = (3,4,5).
Based on the conditions of applicability of this rule, the Cramer method for solving systems of linear equations can be used indirectly, for example, to study the system for a possible number of solutions depending on the value of some parameter k.
Example 2. Determine for which values โโof the parameter k the inequality | kx - y - 4 | + | x + ky + 4 | <= 0 has exactly one solution.
Decision.
By virtue of the definition of the modulus of a function, this inequality can be satisfied only if both expressions are simultaneously equal to zero. Therefore, this problem reduces to finding a solution to a linear system of algebraic equations
kx - y = 4,
x + ky = โ4.
The solution to this system is the only one if its main determinant
Det = k ^ {2} + 1 is nonzero. Obviously, this condition is satisfied for all real values โโof the parameter k.
Answer: for all real values โโof the parameter k.
Many practical problems from the field of mathematics, physics, or chemistry can also be reduced to problems of this kind .