# Matrix

*1,016*pages on

this wiki

A **matrix** is a table (or an array) of objects, such as quantities, arranged in rows and columns.

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 .

## Formal definition

- Let .
- Let be a set.
- Then a matrix over is a mapping .

## Matrix operations

### 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, and is interpreted as applying the transformation of the first matrix to the second. Multiplying an matrix with an matrix results in an matrix. The ordinary matrix product is associative, but not commutative.

Each entry in the product matrix is the dot product in the associated row of the first matrix and the associated column of the second matrix.

### 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,

#### Misc

To remove the last row of an matrix, multiply by the identity matrix augmented with a 0 matrix.