Matrix (mathematics)
From the Simple English Wikipedia, the free encyclopedia that anyone can change
In mathematics, a matrix (plural matrices) is a rectangular table of numbers. There are rules for adding, subtracting and "multiplying" matrices together. These rules sometimes lead to not so common properties, for example, if A and B are two matrices, it is not always true that equals .
Many natural sciences use matrices quite a lot. In many universities, courses about matrices (usually called linear algebra) are taught very early, sometimes even in the first year of studies. Matrices are also widely used in computer science.
Contents |
[change] Definitions and notations
The horizontal lines in a matrix are called rows and the vertical lines are called columns. A matrix with m rows and n columns is called an m-by-n matrix (or m×n matrix) and m and n are called its dimensions.
The places in the matrix where the numbers are, are called entry. The entry of a matrix A that lies in the row number i and column number j is called the i,j entry of A. This is written as A[i,j] or aij.
We write to define an m × n matrix A with each entry in the matrix called aij for all 1 ≤ i ≤ m and 1 ≤ j ≤ n.
[change] Example
The matrix
is a 4×3 matrix. This matrix has m=4 rows, and n=3 columns.
The element A[2,3] or a23 is 7.
[change] Operations
[change] Addition
The sum of two matrices is the matrix, which (i,j)-th entry is equal to the sum of the (i,j)-th entries of two matrices:
The two matrices have the same dimensions. Here A + B = B + A is true.
[change] Multiplication of two matrices
The multiplication of two matrices is a bit more complicated:
- two matrices can have different dimensions, but the number of columns of the first matrix is equal to the number of rows of the second matrix.
- the product is a matrix with the same number of rows as the first matrix and the same number of columns as the second matrix.
- the multiplication of matrices is not commutative, this means, in general is
- the multiplication of matrices is associative, this means
[change] Special matrices
There are some matrices that are special.
[change] Square matrix
A square matrix has the same number of rows as columns, so m=n.
An example of a square matrix is
This matrix has 3 rows and 3 columns: m=n=3.
[change] Identity matrix
Every dimension set of a matrix has a special counterpart called an "identity matrix". The identity matrix has nothing but zeroes except on the main diagonal, where there are all ones. For example:
is an identity matrix. There is exactly one identity matrix for each dimension.
[change] Inverse matrix
An inverse matrix is a matrix that, when multiplied by another matrix, equals the identity matrix. For example:
is the inverse of .
[change] One column matrix
A matrix, that has many rows, but only one column, is called a column vector.