As matrix is called a system of elements aij, which are arranged in a 2-dimensional rectangular pattern. The scheme of m-rows and n-columns is called a (m, n)-matrix or a m x n matrix. The position of an element within the matrix is characterized by two subscripts. The first index is the row number and the second index is the column number. The numbering starts at the top left of the matrix and going from left to right and from top to bottom. If for a matrix is n = m then the matrix is called a square matrix.
The elements of the matrix for the subscripts i = j are the main diagonal elements. The elements from the lower left to upper right are referred as secondary diagonal.
Here the main diagonal elements are shown in red color:
and the secondary diagonal elements in green color:
The matrix in which all elements of the main diagonal equal to 1 and all other elements are equal to 0 means unit matrix E.
The matrix mirrored on the main diagonal is called the matrix transpose. For a matrix A = (aij) the transposed matrix AT = (aji). The transposed of a transposed matrix is the matrix itself A = (AT)T.
Each square matrix can be assigned a unique number, which is called the determinant (det(A)) of the matrix. In general, the determinant of an NxN matrix is defined by the Leibniz formula:
here the sum has to be extended over all the permutations σ. Thus, from the elements of A, all possible products are formed for each n-element in such a way that each of the products of each row and column contains exactly one element. These products are added and the sum is the determinant of A. The sign of the summands is positive for even permutations and negative for odd permutations.
The inverse matrix A-1 is defined by the following equation
Matrices for which an inverse exists is referred to as regular matrices. Matrices which have no inverse are called singular matrices.
For the inverse matrix, the following calculation rules are valid:
The calculation of the inverse matrix A-1 is either done by the Gauss-Jordan algorithm or with the adjuncts. The Gauss-Jordan method transforms the matrix (A | E) in the form (E | A-1) from which the inverse can be read directly. With the adjuncts and the determinant the inverse can be calculated directly as
A square matrix A is called a symmetric matrix if and only if AT = A and a antisymmetric matrix applies if AT = A. A orthogonal matrix if and only if AT = A-1
The adjunct of matrix A is calculated in a way that for each matrix element aij is set a sub determinant with removing the line i and the column j. The value of this determinat is multiplied by (-1)i+j that gives the element i,j of the adjungate matrix.
The matrix multiplication is associative:
The matrix multiplication and matrix addition are distributive:
For addition and multiplication by real numbers λ, μ:
and:
There are zero divisor matrices A ≠ 0 and B ≠ 0 applies to
For square matrices is:
The addition of two matrices A and B is done by adding the elements of the matrices. C = A + B with ci, j = ai, j + b i, j
Calculator for the addition of two matrices:
|
+ |
|
|
= |
|
A general calculator for the sum of NxM matrices is here: Sum and dif of MxN matrices
The subtraction of two matrices A and B is by subtracting the elements of the matrices. C = A - B with c i, j = a i, j - b i, j
Calculator for subtraction of two matrices:
|
- |
|
|
= |
|
A general calculator for the subtraction of NxM matrices is here: Sum and dif of MxN matrices
Multiplying a matrix by a scalar is by multiplying each by the scalar matrix elements. a * B = a * bi,j
The multiplication of two matrices A and B requires that the number of columns of the first matrix is equal to the number of rows of the second matrix. The product obtained by multiplying the row and column elements and summed. For the first element of the result matrix, the elements of the first row of the first matrix are multiplied by the elements of the first column of the second matrix and summed. For the other elements the same for the other rows and columns.
A general calculator for the multiplication of NxM matrices is here: Multiplication of matrices
The determinant of a square 3x3 matrix is computed according to the Sarrus rule by subtracting the sum of the products of the main diagonal of the sum of the products of the secondary diagonal.
A general determinant solver is here:Determinant NxN
Wanted is the inverse matrix A-1 to the matrix A. For this, first with the identity matrix, the matrix E (A | E) is formed. By suitable transformations we managed to form the (E | A -1 ). In the following the steps of an example can be performed.
Gauss-Jordan approach
Transformations to get the following shape.
Calculator for the inverse matrix: Solver Inverse Matrix
The adjunct of matrix A is calculated in a way that for each matrix element aij is set a sub determinant with removing the line i and the column j. The value of this determinat is multiplied by (-1)i+j that gives the element i,j of the adjungate matrix.
The result is the adjungate matrix.
Calculator for the adjugate matrix: Solver Adjugate matrix
The product of a matrix with a vector is a linear image. The multiplication is explained if the number of columns of the matrix is equal to the number of elements of the vector. The result is a vector whose number of components equals the number of rows of the matrix. This means that a matrix with 2 rows always maps a vector to a vector with two components.
Calculator for the matrix-vector product: Graphical Matrix-Vector product
The equation
can be transformed into the homogeneous equation system
The system of equations has a non-trivial solution if and only if the determinant disappears. That if applicable
The polynomial is called the characteristic polynomial of A and the equation is the characteristic equation of A. If λi is an eigenvalue of A then the solutions of the characteristic equation are the eigenvectors of A to the eigenvalue λi.
Calculator for eigenvalues: Eigenvalues
Here is a list of of further useful calculators and sites:
Matrix calculators.
Sum and dif of MxN matrices Multiplication of matrices Solver Adjugate matrix Solver Inverse Matrix QR decomposition Eigenvector-eigenvalue identityDeterminant Calculators with step by step calculation of the determinant value.
Determinant 2x2 Determinant 3x3 Determinant 4x4 Determinant 5x5 Determinant NxNCalculation Rules.
Determinant rules Vector calculation EigenvaluesGraphical calculation methods.
Graphical Vector addition Graphical Vector subtraction Graphical Matrix-Vector product Graphical Inner product