One can represent an entry in a matrix as where the subindex walks the rows and walks the columns. For example would be the entry in row 3 and column 4.
Here is an example of a matrix (a matrix with integer entries):
Matrices can be formed with other kinds of objects.
Here is an example using polynomials for the entries.
This is a -matrix using polynomials of one variable.
Matrices can also be used to model translations from .
- Let .
- Let be a set.
- Then a matrix over is a mapping .
Matrix addition and subtraction
Matrix addition and subtraction can only be done on matrices of the same dimensions. Corresponding entries are added (or subtracted).
Ordinary matrix multiplication
The ordinary matrix product is the most often used and the most important way to multiply matrices. It is defined between two matrices only if the width of the first matrix equals the height of the second matrix. Multiplying an matrix with an matrix results in an matrix. The ordinary matrix product is not commutative.
Scalar matrix multiplication
The scalar matrix product is the result of multiplying a matrix by a scalar. This entails nothing more than multiplying each entry in the matrix by the value of the scalar. For example, letting be a scalar and be a matrix,
To remove the last row of an matrix, multiply by the identity matrix augmented with a 0 matrix.