Matrices and determinants
Types of matrices, operations, calculation of rank, order, dimension, determinants, and inverse matrix.
Types of matrices
A matrix is a set of numbers arranged in rows and columns. Example:
A matrix is a set of numbers arranged in rows and columns. Example:
Row matrix: Has only one row.
Column matrix: Has only 1 column.
Square matrix: Has the same number of rows as columns.
Zero matrix: All elements are 0.
Triangular matrix: The elements above or below its main diagonal are 0.
Diagonal matrix: The elements above and below its main diagonal are 0. It must be a square matrix.
Identity or unit matrix: A diagonal matrix where all the elements of its main diagonal are 1.
Transpose matrix: Given a matrix , the transpose is the matrix obtained by swapping rows and columns.
Symmetric matrix: A square matrix equal to its transpose:
Rank of a matrix (rank A)
It is denoted by rank A. It is the number of linearly independent lines (rows or columns), or also:
It is the dimension of the largest non-zero minor.
For a matrix A with dimensions , its rank cannot be greater than the smallest dimension of A.
It is the dimension of the largest non-zero minor.
For a matrix A with dimensions , its rank cannot be greater than the smallest dimension of A.
It is denoted by rank A. It is the number of linearly independent lines (rows or columns), or also:
It is the dimension of the largest non-zero minor.
For a matrix A with dimensions , its rank cannot be greater than the smallest dimension of A.
It is the dimension of the largest non-zero minor.
For a matrix A with dimensions , its rank cannot be greater than the smallest dimension of A.
Calculating the rank by the Gauss-Jordan method.
In general, it consists of making the maximum number of lines zero by applying elementary row operations, and the rank will be the number of non-zero rows:
Elementary operations are:
In general, it consists of making the maximum number of lines zero by applying elementary row operations, and the rank will be the number of non-zero rows:
Elementary operations are:
- Multiplying a row by a non-zero number.
- Adding (or subtracting) to a row the multiple of another row.
- Swapping the order of the rows.
Calculating the rank using determinants.
It consists of finding non-zero minors of the highest possible order, meaning, starting with the "largest" minors of A, and reducing the size until finding one that is non-zero.
It consists of finding non-zero minors of the highest possible order, meaning, starting with the "largest" minors of A, and reducing the size until finding one that is non-zero.
Order or dimension of a Matrix
The order or dimension of a matrix indicates the number of rows and number of columns. It is denoted as ( being the number of rows, and the number of columns). E.g.:
The order or dimension of a matrix indicates the number of rows and number of columns. It is denoted as ( being the number of rows, and the number of columns). E.g.:
If the matrix is square, it can be called a square matrix of order , where is the number of rows and columns.
Matrix operations
Matrix addition: They must have the same dimensions. It is obtained by adding the elements in the same position (element-wise addition).
Matrix addition: They must have the same dimensions. It is obtained by adding the elements in the same position (element-wise addition).
Product of a real number and a matrix: A matrix of the same order is obtained, in which each element is multiplied by said real number.
Matrix multiplication: Two matrices A and B can be multiplied if the number of columns in A equals the number of rows in B. We obtain a matrix that has the same number of rows as A and the same number of columns as B. The element of the product matrix is obtained by multiplying each element of row of matrix A by its corresponding element of column of matrix B and adding them. Example:
Matrix multiplication is not commutative:
Inverse matrix
Definition: Let A be a square matrix. The inverse matrix of A, denoted by , satisfies:
Definition: Let A be a square matrix. The inverse matrix of A, denoted by , satisfies:
Where is the identity matrix of the same dimension as A.
Matrices that have an inverse are called regular or invertible. Otherwise, they are called singular or degenerate.
A matrix is invertible if its determinant is non-zero.
Matrices that have an inverse are called regular or invertible. Otherwise, they are called singular or degenerate.
A matrix is invertible if its determinant is non-zero.
Properties of the inverse matrix:
Determinant of a square matrix
Every square matrix is associated with a real number called its determinant, and it is denoted by
Every square matrix is associated with a real number called its determinant, and it is denoted by
Determinant of a 2 x 2 matrix
Determinant of a 3 x 3 matrix:
We expand it by copying the first two columns and adding them at the end. We perform the calculation indicated in the figure:
We expand it by copying the first two columns and adding them at the end. We perform the calculation indicated in the figure:
Determinant of a 4 x 4 matrix:
Choose a row or column with the greatest possible number of zeros. We multiply each element by its cofactor.
Ex.: finding the determinant by cofactors of the 2nd column
Choose a row or column with the greatest possible number of zeros. We multiply each element by its cofactor.
Ex.: finding the determinant by cofactors of the 2nd column
Properties of determinants
- A determinant is zero, if:
- It has two equal or proportional rows or columns.
- All elements of a row or column are 0.
- The elements of a row or column are a linear combination of the others.
- The determinant of a matrix and that of its transpose are equal:
- A triangular determinant is equal to the product of the elements of its main diagonal.
- If two rows or two columns are swapped in a determinant, its value changes sign.
- If the elements of one row or column are added to another row or column multiplied by a real number, the value does not change.
- If a determinant is multiplied by a real number, any row (or any column) is multiplied by that number, but only one.From which it follows: Where is the order of the determinant.
- If all elements of a row (or column) consist of two terms, that determinant can be decomposed into the sum of two determinants in which the other rows (or columns) remain invariant.
- The product is commutative:
- The determinant of the product of two matrices is equal to the product of their determinants:
- A determinant is zero, if:
- It has two equal or proportional rows or columns.
- All elements of a row or column are 0.
- The elements of a row or column are a linear combination of the others.
- The determinant of a matrix and that of its transpose are equal:
- A triangular determinant is equal to the product of the elements of its main diagonal.
- If two rows or two columns are swapped in a determinant, its value changes sign.
- If the elements of one row or column are added to another row or column multiplied by a real number, the value does not change.
- If a determinant is multiplied by a real number, any row (or any column) is multiplied by that number, but only one.From which it follows: Where is the order of the determinant.
- If all elements of a row (or column) consist of two terms, that determinant can be decomposed into the sum of two determinants in which the other rows (or columns) remain invariant.
- The product is commutative:
- The determinant of the product of two matrices is equal to the product of their determinants:
Minor, Cofactor and Adjugate
The Minor of a matrix is the determinant of any submatrix.
The Minor of a matrix is the determinant of any submatrix.
The Cofactor of an element is the value of the determinant of order obtained by deleting row and column from the matrix.
The Cofactor (with sign) of an element of a matrix is its minor multiplied by .
Adjugate matrix
The adjugate matrix, , or matrix of cofactors, is the one in which each element is replaced by its cofactor.
The adjugate matrix, , or matrix of cofactors, is the one in which each element is replaced by its cofactor.
Calculation of the inverse matrix
Calculation by the definition of the inverse matrix:
Calculation by the definition of the inverse matrix:
Gauss method for calculating the inverse matrix
Steps to follow:
Steps to follow:
- We write a double matrix, containing matrix A on the left and the identity matrix on the right.
- We perform elementary operations (Linear combinations) on the left matrix until it is transformed into the identity matrix, performing the same operations on the right.The matrix obtained on the right is the inverse we are looking for.
Calculation using the adjugate matrix:
Inverse of a 2 x 2 Matrix A 2 x 2 matrix has an easy-to-remember inverse according to the following formula: