LibreTimes

July 24, 2026 · Theory · LibreTimes

Basic Operations on Matrices

Addition, scalar multiplication, transposition and multiplication of matrices, along with subtraction, powers, and trace.

Matrices support the operations of addition, scalar multiplication, transposition, and matrix multiplication. Adjacent to these are the derived operations — subtraction, raising to a power, and the trace of a matrix.

Addition of Matrices

Definition. Only matrices of the same size can be added. The sum of matrices and of size is the matrix of the same size, whose entries are

Example:

Multiplying a Matrix by a Number

Definition. The product of a matrix by a number (scalar) is the matrix , in which every entry is multiplied by :

Example:

Subtraction of Matrices

Subtraction is defined via addition with the opposite matrix:

Combined with addition and scalar multiplication, this gives a linear combination of matrices (of the same size).

Transposing a Matrix

Definition. The transpose of a matrix is the operation of swapping rows for columns; the result is denoted . If has size , then has size .

Example:

(For the properties of transposition, see the article Properties of Matrix Operations.)

Matrix Multiplication

Definition. The product is defined only when the number of columns of the first matrix equals the number of rows of the second (the matrices are conformable). If is an matrix and is an matrix, the result is an matrix whose entries are given by "row times column" — the dot product of the -th row of and the -th column of :

General form for :

Numerical example:

An example with a size change ( by gives ):

Remark. Matrix multiplication is not commutative: in general (moreover, one of the products may not even be defined). For more, see the article Properties of Matrix Operations.

Raising to a Power

For a square matrix , nonnegative integer powers are defined:

Trace of a Matrix

Definition. The trace of a square matrix is the sum of the entries on its main diagonal:

Example:

The trace is linear () and has the cyclic property . The trace will come in handy when studying eigenvalues: it equals their sum.

0

No comments yet

Be the first to share your thoughts.