Cramer's rule

from Wikipedia, the free encyclopedia

The Cramer's rule or determinants method is a mathematical formula for solving a system of linear equations . It is helpful for the theoretical consideration of linear systems of equations. However, the computational effort is usually too high to calculate a solution, since a relatively large number of determinants occur. Therefore, other methods from numerical mathematics are used. Cramer's rule is named after Gabriel Cramer , who published it in 1750, but Leibniz had already found it.

rule

Given is a linear system of equations with as many equations as there are unknowns in the form

or in matrix notation with

It is also assumed that the square coefficient matrix is ​​regular (invertible). This is the case if and only if is.

Then the system of equations is uniquely solvable and the components of the uniquely determined solution vector are given by

for everyone .

Here is the matrix that is formed by replacing the -th column of the coefficient matrix with the right-hand side of the system of equations :

Examples

2nd order linear system of equations

This example is based on the following system of linear equations:

The extended coefficient matrix of the system of equations is then:

According to Cramer's rule, its solution is calculated as follows:

3rd order linear system of equations

This example is based on the following system of linear equations:

The extended coefficient matrix of the system of equations is then:

According to Cramer's rule, the solution of the system of equations is calculated as follows:

history

The Cramer rule was published in 1750 by Gabriel Cramer in Appendix 1 of his book "Introduction à l'analyse des lignes courbes algébriques". He explicitly stated the formulas for linear systems of equations with up to three equations and described how the solution formulas for systems of equations with more equations can be created. Since the determinant had not yet been introduced, he used fractions with a polynomial each in the numerator and denominator. As the following excerpt from the original work shows, these are identical to the polynomials of the Leibniz formula .

Cramer's rule for z.png

This example also shows that Cramer did not yet use today's notation of linear systems of equations. With this, the formula is as follows:

Cramer himself was aware that linear systems of equations cannot always be solved unambiguously. Étienne Bézout then showed in 1764 that the denominator becomes zero when the system of equations cannot be solved uniquely. Furthermore, Cramer gave no proof of his formula. This was only supplied by Augustin Louis Cauchy in 1815. He also introduced the notation of Cramer's rule used today.

Gottfried Wilhelm Leibniz put Cramer's rule on paper as early as 1678 in a manuscript. However, this was only discovered later and therefore had no effect on the development of solution methods for linear systems of equations. Colin Maclaurin described in his work "Treatise of Algebra", which was published in 1748, the special cases of Cramer's rule for linear systems of two or three equations. Although he had the idea of ​​expanding these formulas to systems of equations with several equations, in contrast to Cramer, he found no rule on how to correctly set the signs in the polynomials used. In the 20th century, Carl Benjamin Boyer sparked a dispute among mathematics historians as to whether Maclaurin or Cramer was the discoverer of the formula. He also recommended renaming it to the Maclaurin-Cramer rule.

Computing effort

In order to solve a linear system of equations with unknowns using Cramer's rule , determinants have to be calculated. The number of arithmetic operations to be carried out depends solely on the algorithm for calculating the determinants.

If the determinants are calculated using the Leibniz formula as by Cramer, then multiplications and additions are necessary for each determinant . Even with a system of four equations, 360 multiplications, 115 additions and 4 divisions are necessary. Compared to other procedures, this is a very large number of operations. Even with the use of efficient algorithms for calculating determinants, the computational effort for solving a linear system of equations with Cramer's rule is significantly higher than, for example, with the Gaussian elimination method .

When calculating a matrix on a computer with floating point operations per second (100 Mflops) the following calculation times would result:

n 10 12 14th 16 18th 20th
Computing time 0.4 s 1 min 3.6 h 41 days 38 years 16,000 years

proof

For this proof, a matrix is ​​used that is created by replacing the -th column of the identity matrix with the solution vector of the system of equations . For a system of equations with four equations it looks like this :

This example also shows that it is true.

Since, in addition , it follows with the product rule for determinants

Since the determinant is not the zero element according to the assumption, exists .

generalization

A generalization - and at the same time a step in the proof - of Cramer's rule is represented by the following theorem: Given is a quadratic system of linear equations of form

.

If there is a solution to this system of linear equations, then applies

for each .

The matrix is created from the coefficient matrix by replacing the -th column of with the right-hand side of the system of equations .

There is no restriction to a clearly solvable system of equations. In addition, since division no longer occurs, the theorem applies to all systems of equations with coefficients from a commutative ring . This generalization is no longer called Cramer's rule.

Inferences from Cramer's rule

The inverse of a matrix

The individual columns of the inverse of a matrix are each formed by the solution of the system of equations with the -th unit vector on the right-hand side. If this is calculated with Cramer's rule, the formula is obtained using the adjuncts

This formula also shows a property of matrices with entries from a commutative ring instead of a field . These are therefore invertible if and only if is invertible.

Solution of a homogeneous system of linear equations

With the help of Cramer's rule it can easily be shown that the trivial solution is the only solution of every homogeneous system of linear equations . Since there are only zeros in the -th column of all matrices , their columns are no longer linearly independent , and it therefore applies . So they all calculate to zero.

From the above property follows directly that the core of a linear system with the zero vector and this therefore has a unique solution.

Individual evidence

  1. It is assumed that the coefficients are real or complex numbers or - more generally - elements of a field .
  2. ^ Gabriel Cramer : Introduction à l'analyse des lignes courbes algébriques. Geneva 1750, pp. 657-659.
  3. a b c Jean-Luc Chabert et al .: A History of Algorithms. From the pebble to the microchip. Springer-Verlag, 1999, ISBN 3-540-63369-3 , pp. 284-287 (This book contains an English translation of Cramer's original publication.).
  4. ^ Antoni A. Kosinski: Cramer's Rule Is Due to Cramer. In: Mathematics Magazine. Vol. 74, No. 4, October 2001, pp. 310-312.
  5. Bruce A. Hedman: An Earlier Date for "Cramer's Rule" In: Historica Mathematica. Vol. 24, 1999, pp. 365-368.
  6. W. Dahmen, A. Reusken: Numerics for engineers and natural scientists, Springer, 2006, ISBN 3-540-25544-3
  7. ^ Serge Lang : Algebra. 2nd Edition. Addison-Wesley, 1984, ISBN 0-201-05487-6 , p. 451.