The program for calculating the determinant by the decomposition method. Calculate matrix determinant online

Matrix determinant

Finding the determinant of a matrix is ​​a very common problem in higher mathematics and algebra. As a rule, one cannot do without the value of the matrix determinant when solving complex systems of equations. Cramer's method for solving systems of equations is built on the calculation of the matrix determinant. Using the definition of a determinate, the presence and uniqueness of the solution of systems of equations are determined. Therefore, it is difficult to overestimate the importance of the ability to correctly and accurately find the determinant of a matrix in mathematics. Methods for solving determinants are theoretically quite simple, but as the size of the matrix increases, the calculations become very cumbersome and require great care and a lot of time. It is very easy to make a minor mistake or typo in such complex mathematical calculations, which will lead to an error in the final answer. Therefore, even if you find matrix determinant independently, it is important to check the result. This allows us to make our service Finding the determinant of a matrix online. Our service always gives an absolutely accurate result that does not contain any errors or typos. You can refuse independent calculations, because from the applied point of view, finding matrix determinant does not have a teaching character, but simply requires a lot of time and numerical calculations. Therefore, if in your task determination of matrix determinant are auxiliary, side calculations, use our service and find matrix determinant online!

All calculations are carried out automatically with the highest accuracy and absolutely free. We have a very convenient interface for entering matrix elements. But the main difference between our service and similar ones is the possibility of obtaining a detailed solution. Our service at calculating matrix determinant online always uses the simplest and shortest method and describes in detail each step of the transformations and simplifications. So you get not just the value of the matrix determinant, the final result, but the whole detailed solution.


The concept of a determinant is one of the main ones in the course of linear algebra. This concept is inherent in ONLY SQUARE MATRIXES, and this article is devoted to this concept. Here we will talk about determinants of matrices whose elements are real (or complex) numbers. In this case, the determinant is a real (or complex) number. All further presentation will be an answer to the questions of how to calculate the determinant, and what properties it has.

First, we give the definition of the determinant of a square matrix of order n by n as the sum of products of permutations of matrix elements. Based on this definition, we write formulas for calculating the determinants of matrices of the first, second, and third orders and analyze in detail the solutions of several examples.

Next, we turn to the properties of the determinant, which we will formulate in the form of theorems without proof. Here, a method for calculating the determinant will be obtained through its expansion over the elements of a row or column. This method reduces the calculation of the determinant of a matrix of order n by n to the calculation of the determinants of matrices of order 3 by 3 or less. Be sure to show solutions to several examples.

In conclusion, let us dwell on the calculation of the determinant by the Gauss method. This method is good for finding determinants of matrices of order greater than 3 by 3 because it requires less computational effort. We will also analyze the solution of examples.

Page navigation.

Definition of matrix determinant, calculation of matrix determinant by definition.

We recall several auxiliary concepts.

Definition.

Permutation of order n is called an ordered set of numbers, consisting of n elements.

For a set containing n elements, there are n! (n factorial) of permutations of order n. Permutations differ from each other only in the order of the elements.

For example, consider a set consisting of three numbers: . We write down all the permutations (there are six in total, since ):

Definition.

Inversion in a permutation of order n any pair of indices p and q is called, for which the p-th element of the permutation is greater than the q-th.

In the previous example, the inverse of the permutation 4 , 9 , 7 is p=2 , q=3 , because the second element of the permutation is 9 and is greater than the third element, which is 7 . The inverse of permutation 9 , 7 , 4 will be three pairs: p=1 , q=2 (9>7 ); p=1 , q=3 (9>4 ) and p=2 , q=3 (7>4 ).

We will be more interested in the number of inversions in a permutation, rather than the inversion itself.

Let be a square matrix of order n by n over the field of real (or complex) numbers. Let be the set of all permutations of order n of the set . The set contains n! permutations. Let's denote the kth permutation of the set as , and the number of inversions in the kth permutation as .

Definition.

Matrix determinant And there is a number equal to .

Let's describe this formula in words. The determinant of a square matrix of order n by n is the sum containing n! terms. Each term is a product of n elements of the matrix, and each product contains an element from each row and from each column of the matrix A. A coefficient (-1) appears before the kth term if the elements of the matrix A in the product are ordered by row number, and the number of inversions in the kth permutation of the set of column numbers is odd.

The determinant of a matrix A is usually denoted as , and det(A) is also used. You can also hear that the determinant is called the determinant.

So, .

This shows that the determinant of the matrix of the first order is the element of this matrix.

Calculating the Determinant of a Second-Order Square Matrix - Formula and Example.

about 2 by 2 in general.

In this case n=2 , hence n!=2!=2 .

.

We have

Thus, we have obtained a formula for calculating the determinant of a matrix of order 2 by 2, it has the form .

Example.

order.

Solution.

In our example . We apply the resulting formula :

Calculation of the determinant of a square matrix of the third order - formula and example.

Let's find the determinant of a square matrix about 3 by 3 in general.

In this case n=3 , hence n!=3!=6 .

Let's arrange in the form of a table the necessary data for applying the formula .

We have

Thus, we have obtained a formula for calculating the determinant of a matrix of order 3 by 3, it has the form

Similarly, one can obtain formulas for calculating the determinants of matrices of order 4 by 4, 5 by 5 and higher. They will look very bulky.

Example.

Compute Determinant of Square Matrix about 3 by 3.

Solution.

In our example

We apply the resulting formula to calculate the determinant of a third-order matrix:

Formulas for calculating the determinants of square matrices of the second and third orders are very often used, so we recommend that you remember them.

Properties of a matrix determinant, calculation of a matrix determinant using properties.

Based on the above definition, the following are true. matrix determinant properties.

    The determinant of the matrix A is equal to the determinant of the transposed matrix A T , that is, .

    Example.

    Make sure the matrix determinant is equal to the determinant of the transposed matrix.

    Solution.

    Let's use the formula to calculate the determinant of a matrix of order 3 by 3:

    We transpose matrix A:

    Calculate the determinant of the transposed matrix:

    Indeed, the determinant of the transposed matrix is ​​equal to the determinant of the original matrix.

    If in a square matrix all elements of at least one of the rows (one of the columns) are zero, the determinant of such a matrix is ​​equal to zero.

    Example.

    Check that the matrix determinant order 3 by 3 is zero.

    Solution.


    Indeed, the determinant of a matrix with a zero column is zero.

    If you swap any two rows (columns) in a square matrix, then the determinant of the resulting matrix will be opposite to the original one (that is, the sign will change).

    Example.

    Given two square matrices of order 3 by 3 And . Show that their determinants are opposite.

    Solution.

    Matrix B is obtained from matrix A by replacing the third row with the first, and the first with the third. According to the considered property, the determinants of such matrices must differ in sign. Let's check this by calculating the determinants using a well-known formula.

    Really, .

    If at least two rows (two columns) are the same in a square matrix, then its determinant is equal to zero.

    Example.

    Show that the matrix determinant equals zero.

    Solution.

    In this matrix, the second and third columns are the same, so, according to the considered property, its determinant must be equal to zero. Let's check it out.

    In fact, the determinant of a matrix with two identical columns is zero.

    If in a square matrix all the elements of any row (column) are multiplied by some number k, then the determinant of the resulting matrix will be equal to the determinant of the original matrix, multiplied by k. For example,

    Example.

    Prove that the matrix determinant is equal to three times the determinant of the matrix .

    Solution.

    The elements of the first column of matrix B are obtained from the corresponding elements of the first column of matrix A by multiplying by 3. Then, by virtue of the considered property, the equality should hold. Let's check this by calculating the determinants of the matrices A and B.

    Therefore, , which was to be proved.

    NOTE.

    Do not confuse or confuse the concepts of matrix and determinant! The considered property of the determinant of a matrix and the operation of multiplying a matrix by a number are far from the same thing.
    , But .

    If all elements of any row (column) of a square matrix are the sum of s terms (s is a natural number greater than one), then the determinant of such a matrix will be equal to the sum of s determinants of matrices obtained from the original one, if as elements of the row (column) leave one term at a time. For example,

    Example.

    Prove that the determinant of a matrix is ​​equal to the sum of the determinants of the matrices .

    Solution.

    In our example , therefore, due to the considered property of the matrix determinant, the equality . We check it by calculating the corresponding determinants of matrices of order 2 by 2 using the formula .

    From the results obtained, it can be seen that . This completes the proof.

    If we add to the elements of some row (column) of the matrix the corresponding elements of another row (column), multiplied by an arbitrary number k, then the determinant of the resulting matrix will be equal to the determinant of the original matrix.

    Example.

    Make sure that if the elements of the third column of the matrix add the corresponding elements of the second column of this matrix, multiplied by (-2), and add the corresponding elements of the first column of the matrix, multiplied by an arbitrary real number, then the determinant of the resulting matrix will be equal to the determinant of the original matrix.

    Solution.

    If we start from the considered property of the determinant, then the determinant of the matrix obtained after all the transformations indicated in the problem will be equal to the determinant of the matrix A.

    First, we calculate the determinant of the original matrix A:

    Now let's perform the necessary transformations of the matrix A.

    Let's add to the elements of the third column of the matrix the corresponding elements of the second column of the matrix, having previously multiplied them by (-2) . After that, the matrix will look like:

    To the elements of the third column of the resulting matrix, we add the corresponding elements of the first column, multiplied by:

    Calculate the determinant of the resulting matrix and make sure that it is equal to the determinant of the matrix A, that is, -24:

    The determinant of a square matrix is ​​\u200b\u200bthe sum of the products of the elements of any row (column) by their algebraic additions.

    Here is the algebraic complement of the matrix element , .

    This property allows computing determinants of matrices of order higher than 3 by 3 by reducing them to the sum of several determinants of order matrices one lower. In other words, this is a recurrent formula for calculating the determinant of a square matrix of any order. We recommend that you remember it due to its fairly frequent applicability.

    Let's look at a few examples.

    Example.

    order 4 by 4, expanding it

    • by elements of the 3rd row,
    • by the elements of the 2nd column.

    Solution.

    We use the formula for expanding the determinant by the elements of the 3rd row

    We have

    So the problem of finding the determinant of a matrix of order 4 by 4 was reduced to the calculation of three determinants of matrices of order 3 by 3:

    Substituting the obtained values, we arrive at the result:

    We use the formula for expanding the determinant by the elements of the 2nd column


    and we act in the same way.

    We will not describe in detail the calculation of the determinants of matrices of the third order.

    Example.

    Compute Matrix Determinant about 4 by 4.

    Solution.

    You can decompose the matrix determinant into elements of any column or any row, but it is more beneficial to choose the row or column that contains the largest number of zero elements, as this will help to avoid unnecessary calculations. Let's expand the determinant by the elements of the first row:

    We calculate the obtained determinants of matrices of order 3 by 3 according to the formula known to us:

    We substitute the results and get the desired value

    Example.

    Compute Matrix Determinant about 5 by 5.

    Solution.

    The fourth row of the matrix has the largest number of zero elements among all rows and columns, so it is advisable to expand the matrix determinant precisely by the elements of the fourth row, since in this case we need less calculations.

    The obtained determinants of matrices of the order 4 by 4 were found in the previous examples, so we will use the ready-made results:

    Example.

    Compute Matrix Determinant about 7 by 7 .

    Solution.

    You should not immediately rush to decompose the determinant by the elements of any row or column. If you look closely at the matrix, you will notice that the elements of the sixth row of the matrix can be obtained by multiplying the corresponding elements of the second row by two. That is, if we add the corresponding elements of the second row multiplied by (-2) to the elements of the sixth row, then the determinant will not change due to the seventh property, and the sixth row of the resulting matrix will consist of zeros. The determinant of such a matrix is ​​equal to zero by the second property.

    Answer:

    It should be noted that the considered property allows one to calculate the determinants of matrices of any order, however, one has to perform a lot of computational operations. In most cases, it is more advantageous to find the determinant of matrices of order higher than the third by the Gauss method, which we will consider below.

    The sum of the products of the elements of any row (column) of a square matrix and the algebraic complements of the corresponding elements of another row (column) is equal to zero.

    Example.

    Show that the sum of the products of the elements of the third column of the matrix on algebraic complements of the corresponding elements of the first column is equal to zero.

    Solution.


    The determinant of the product of square matrices of the same order is equal to the product of their determinants, that is, , where m is a natural number greater than one, A k , k=1,2,…,m are square matrices of the same order.

    Example.

    Make sure that the determinant of the product of two matrices and is equal to the product of their determinants.

    Solution.

    Let us first find the product of the determinants of the matrices A and B:

    Now let's perform matrix multiplication and calculate the determinant of the resulting matrix:

    Thus, , which was to be shown.

Calculation of the matrix determinant by the Gauss method.

Let us describe the essence of this method. Using elementary transformations, the matrix A is reduced to such a form that in the first column all elements except for become zero (this is always possible if the determinant of the matrix A is nonzero). We will describe this procedure a little later, but now we will explain why this is done. Zero elements are obtained in order to obtain the simplest expansion of the determinant over the elements of the first column. After such a transformation of the matrix A, taking into account the eighth property and , we obtain

Where - minor (n-1)-th order, obtained from matrix A by deleting the elements of its first row and first column.

With the matrix to which the minor corresponds, the same procedure for obtaining zero elements in the first column is done. And so on until the final calculation of the determinant.

Now it remains to answer the question: "How to get null elements in the first column"?

Let's describe the algorithm of actions.

If , then the elements of the first row of the matrix are added to the corresponding elements of the kth row, in which . (If without exception all the elements of the first column of the matrix A are zero, then its determinant is zero by the second property and no Gaussian method is needed). After such a transformation, the "new" element will be different from zero. The determinant of the "new" matrix will be equal to the determinant of the original matrix due to the seventh property.

Now we have a matrix that has . When to the elements of the second row, we add the corresponding elements of the first row, multiplied by , to the elements of the third row, the corresponding elements of the first row, multiplied by . And so on. In conclusion, to the elements of the nth row, we add the corresponding elements of the first row, multiplied by . So the transformed matrix A will be obtained, all elements of the first column of which, except for , will be zero. The determinant of the resulting matrix will be equal to the determinant of the original matrix due to the seventh property.

Let's analyze the method when solving an example, so it will be clearer.

Example.

Calculate the determinant of a matrix of order 5 by 5 .

Solution.

Let's use the Gauss method. Let's transform the matrix A so that all elements of its first column, except for , become zero.

Since the element is initially , then we add to the elements of the first row of the matrix the corresponding elements, for example, the second row, since:

The "~" sign means equivalence.

Now we add to the elements of the second row the corresponding elements of the first row, multiplied by , to the elements of the third row - the corresponding elements of the first row, multiplied by , and proceed similarly up to the sixth line:

We get

with matrix we carry out the same procedure for obtaining zero elements in the first column:

Hence,

Now we perform transformations with the matrix :

Comment.

At some stage of the matrix transformation by the Gauss method, a situation may arise when all elements of the last few rows of the matrix become zero. This will talk about the equality of the determinant to zero.

Summarize.

The determinant of a square matrix whose elements are numbers is a number. We have considered three ways to calculate the determinant:

  1. through the sum of products of combinations of matrix elements;
  2. through the expansion of the determinant by the elements of the row or column of the matrix;
  3. the method of reducing the matrix to the upper triangular one (by the Gauss method).

Formulas were obtained for calculating the determinants of matrices of order 2 by 2 and 3 by 3 .

We have analyzed the properties of the matrix determinant. Some of them allow you to quickly understand that the determinant is zero.

When calculating the determinants of matrices of order higher than 3 by 3, it is advisable to use the Gauss method: perform elementary transformations of the matrix and bring it to the upper triangular one. The determinant of such a matrix is ​​equal to the product of all elements on the main diagonal.

Recall Laplace's theorem:
Laplace's theorem:

Let k rows (or k columns) be arbitrarily chosen in the determinant d of order n, . Then the sum of the products of all k-th order minors contained in the selected rows and their algebraic complements is equal to the determinant d.

To calculate the determinants in the general case, k is taken equal to 1. That is, in the determinant d of order n, a row (or column) is arbitrarily chosen. Then the sum of the products of all elements contained in the selected row (or column) and their algebraic complements is equal to the determinant d.

Example:
Compute determinant

Solution:

Let's choose an arbitrary row or column. For a reason that will become apparent a little later, we will limit our choice to either the third row or the fourth column. And stop at the third line.

Let's use Laplace's theorem.

The first element of the selected row is 10, it is in the third row and first column. Let us calculate the algebraic complement to it, i.e. find the determinant obtained by deleting the column and row on which this element stands (10) and find out the sign.

"plus if the sum of the numbers of all rows and columns in which the minor M is located is even, and minus if this sum is odd."
And we took the minor consisting of one single element 10, which is in the first column of the third row.

So:


The fourth term of this sum is 0, which is why it is worth choosing rows or columns with the maximum number of zero elements.

Answer: -1228

Example:
Calculate the determinant:

Solution:
Let's choose the first column, because two elements in it are equal to 0. Let's expand the determinant in the first column.


We expand each of the third-order determinants in terms of the first and second rows


We expand each of the second-order determinants in the first column


Answer: 48
Comment: when solving this problem, formulas for calculating the determinants of the 2nd and 3rd orders were not used. Only expansion by row or column was used. Which leads to lowering the order of the determinants.

Calculation of determinants n-th order:

The concept of a determinant n-th order

Using this article about determinants, you will definitely learn how to solve problems like the following:

Solve the equation:

and many others that teachers love to come up with so much.

The matrix determinant or simply the determinant plays an important role in solving systems of linear equations. In general, determinants were invented for this purpose. Since it is often said also "the determinant of a matrix", we will mention matrices here as well. Matrix is a rectangular table made up of numbers that cannot be interchanged. A square matrix is ​​a table that has the same number of rows and columns. Only a square matrix can have a determinant.

It is easy to understand the logic of writing determinants according to the following scheme. Let's take a system of two equations with two unknowns familiar to you from school:

In the determinant, the coefficients for unknowns are sequentially written: in the first line - from the first equation, in the second line - from the second equation:

For example, if given a system of equations

then the following determinant is formed from the coefficients of the unknowns:

So, let's say we are given a square table consisting of numbers arranged in n rows (horizontal rows) and in n columns (vertical rows). With the help of these numbers, according to some rules, which we will study below, they find a number, which they call determinant n th order and are denoted as follows:

(1)

Numbers are called elements determinant (1) (the first index means the number of the row, the second - the number of the column, at the intersection of which there is an element; i = 1, 2, ..., n; j= 1, 2, ..., n). The order of a determinant is the number of its rows and columns.

An imaginary straight line connecting the elements of the determinant for which both indices are the same, i.e. elements

called main diagonal, the other diagonal is side.

Calculation of second and third order determinants

Let us show how the determinants of the first three orders are calculated.

The first order determinant is the element itself i.e.

The second order determinant is the number obtained as follows:

, (2)

The product of the elements on the main and secondary diagonals, respectively.

Equality (2) shows that the product of the elements of the main diagonal is taken with its sign, and the product of the elements of the secondary diagonal is taken with the opposite sign .

Example 1 Calculate second order determinants:

Solution. By formula (2) we find:

The third order determinant is a number obtained like this:

(3)

It is difficult to remember this formula. However, there is a simple rule called triangle rule , which makes it easy to reproduce expression (3). Denoting the elements of the determinant with points, we connect by straight line segments those of them that give the products of the elements of the determinant (Fig. 1).


Formula (3) shows that the products of the elements of the main diagonal, as well as the elements located at the vertices of two triangles, the bases of which are parallel to it, are taken with their signs; with opposite ones - the products of the elements of the secondary diagonal, as well as the elements located at the vertices of two triangles that are parallel to it .

In Fig.1, the main diagonal and the bases of the triangles corresponding to it and the secondary diagonal and the bases of the triangles corresponding to it are highlighted in red.

When calculating determinants, it is very important, as in high school, to remember that a minus number multiplied by a minus number results in a plus sign, and a plus sign multiplied by a minus number results in gives a number with a minus sign.

Example 2 Calculate the third order determinant:

Solution. Using the rule of triangles, we get



Calculation of determinants n-th order

Row or column expansion of determinant

To calculate the determinant n th order, it is necessary to know and use the following theorem.

Laplace's theorem. The determinant is equal to the sum of the products of the elements of any row and their algebraic complements, i.e.

Definition. If in the determinant n th order choose arbitrarily p lines and p columns ( p < n), then the elements at the intersection of these rows and columns form an order matrix.

The determinant of this matrix is ​​called minor original determinant. For example, consider the determinant:

Let's build a matrix from rows and columns with even numbers:

Determinant

called minor determinant . Received a minor of the second order. It is clear that various minors of the first, second, and third order can be constructed from.

If we take an element and cross out the row and column at the intersection of which it stands in the determinant, then we get a minor, called the minor of the element, which we denote by:

.

If the minor is multiplied by , where 3 + 2 is the sum of the row and column numbers at the intersection of which the element stands, then the resulting product is called algebraic addition element and is denoted by ,

In general, the minor of an element will be denoted by , and the algebraic complement by ,

(4)

For example, let's calculate the algebraic complements of the elements and the third order determinant:

By formula (4) we get

When decomposing a determinant, the following property of the determinant is often used n-th order:

if the product of the corresponding elements of another row or column by a constant factor is added to the elements of any row or column, then the value of the determinant will not change.

Example 4

Let us preliminarily subtract the elements of the fourth row from the first and third rows, then we will have

In the fourth column of the obtained determinant, three elements are zeros. Therefore, it is more profitable to expand this determinant by the elements of the fourth column, since the first three products will be zero. That's why

You can check the solution with determinant calculator online .

And the following example shows how the calculation of the determinant of any (in this case, the fourth) order can be reduced to the calculation of the second order determinant.

Example 5 Calculate the determinant:

Let us subtract the elements of the first row from the third row, and add the elements of the first row to the elements of the fourth row, then we will have

In the first column, all elements except the first one are zeros. That is, the determinant can already be decomposed in the first column. But we really do not want to calculate the third order determinant. Therefore, we will make more transformations: to the elements of the third row we add the elements of the second row, multiplied by 2, and from the elements of the fourth row we subtract the elements of the second row. As a result, the determinant, which is an algebraic complement, can itself be expanded in the first column, and we will only have to calculate the second-order determinant and not get confused in the signs:

Bringing the determinant to a triangular form

A determinant where all elements lying on one side of one of the diagonals are equal to zero is called triangular. The case of the secondary diagonal is reduced to the case of the main diagonal by reversing the order of the rows or columns. Such a determinant is equal to the product of the elements of the main diagonal.

To reduce to a triangular form, the same property of the determinant is used n th order, which we used in the previous paragraph: if we add the product of the corresponding elements of another row or column by a constant factor to the elements of any row or column, then the value of the determinant will not change.

You can check the solution with determinant calculator online .

Determinant properties n-th order

In the two previous paragraphs, we have already used one of the properties of the determinant n-th order. In some cases, to simplify the calculation of the determinant, you can use other important properties of the determinant. For example, one can reduce a determinant to the sum of two determinants, one or both of which can be conveniently expanded along some row or column. There are plenty of cases of such simplification, and the question of using one or another property of the determinant should be decided individually.

1. Decomposition theorem:

Any determinant is equal to the sum of pair products of elements of any series and their algebraic complements.

For i- th line:

or for j-th column:

Example 7.1. Calculate the determinant by expanding over the elements of the first row:

1∙(1+12+12 ) ∙(2+16+18 )+

3∙(4+8+27 ) ∙(8+4+18 )=

The decomposition theorem allows us to replace the calculation of one determinant n- th order calculation n determinants ( n- 1)th order.

However, to simplify the calculations, it is advisable to use the “multiplication of zeros” method for determinants of high orders, based on property 6 of section 5. Its idea is:

First, "multiply zeros" in some row, i.e. get a series in which only one element is not equal to zero, the rest are zeros;

Then expand the determinant over the elements of this series.

Therefore, based on the decomposition theorem, the original determinant is equal to the product of a nonzero element and its algebraic complement.

Example 7.2. Calculate the determinant:

.

"multiply zeros" in the first column.

From the second row we subtract the first multiplied by 2, from the third row we subtract the first multiplied by 3, and from the fourth row we subtract the first multiplied by 4. With such transformations, the value of the determinant will not change.

According to property 4 of section 5, we can take out the determinant sign from the 1st column, from the 2nd column and from the 3rd column.

Consequence: A determinant with a zero series is equal to zero.

2. Substitution theorem:

The sum of paired products of any numbers and the algebraic complements of a certain series of a determinant is equal to the determinant that is obtained from the given one if the elements of this series are replaced in it by the taken numbers.

For the -th line:

1. Cancellation theorem:

The sum of pairwise products of elements of any series and algebraic complements of a parallel series is equal to zero.

Indeed, by the substitution theorem, we obtain a determinant for which k-th line contains the same elements as in i-th line

But by property 3 of Section 5, such a determinant is equal to zero.

Thus, the decomposition theorem and its corollaries can be written as follows:

8. General information about matrices. Basic definitions.

Definition 8.1 . Matrix called the following rectangular table:

The following matrix designations are also used: , or or .

The rows and columns of a matrix are named rows.

The value is called size matrices.

If we swap rows and columns in a matrix, we get a matrix called transposed. Matrix transposed with , usually denoted by the symbol .

For example:

Definition 8.2. Two matrices A And B called equal, If

1) both matrices are of the same size, i.e. And ;

2) all their corresponding elements are equal, i.e.

Then . (8.2)

Here one matrix equality (8.2) is equivalent to scalar equalities (8.1).

9. Varieties of matrices.

1) A matrix, all elements of which are equal to zero, is called null matrix:

2) If the matrix consists of only one row, then it is called row matrix, For example . Similarly, a matrix that has only one column is called column matrix, For example .

Transposition transforms a column matrix into a row matrix and vice versa.

3) If m=n, then the matrix is ​​called square matrix of the nth order.

The diagonal of the terms of a square matrix, going from the upper left corner to its lower right corner, is called main. The other diagonal of its members, going from the lower left corner to its upper right corner, is called side.

For a square matrix, the determinant can be calculated det(A).