Matrix Equality: Two matrices
and
are said to be equal if and only if they have the same dimension and have identical elements in the corresponding locations in the array.
Addition and Subtraction of Matrices:
Two matrices can be added if and only if they have the same dimension. The addition rule can be stated as:

The subtraction operation A - B can be similarly defined if and only if a and B have the same dimension. The operation entails the result:

Scalar Multiplication:
To multiply a matrix by a number - or in matrix algebra terminology, by a scalar - is to multiply every element of that matrix by the given scalar.
Multiplication of Matrices:
Suppose that, given two matrices A and B, we want to find the product of AB. The conformability condition for manipulation is that the column dimension of A (the "lead" matrix the expression AB) must be equal to the row dimension of B (the "lag" matrix).
In general, if A is of dimension m x n and B is of dimension p x q, the matrix product AB will be defined i and only if n = p. If defined, moreover, the product matrix AB will have the dimension m x q - the same number of rows as the lead matrix A and the same number of columns as the lag matrix B.
An example of matrix multiplication is given below:

For the metrics given, AB will be 1 x 3. So let's consider,

The placeholder values of
, mentioned above, can be calculated as:





Given two vectors u and v with n elements each, say,
and
, arranged either as two rows or as two columns, or as one row and one column, their inner product, written as u . v, is defined as:

Note: A square matrix with 1s in its principal diagonal and 0s everywhere else - examplifies the important type of matrix known as identity matrix.
Division:
It is not possible to divide one matrix by another.
Notation:
The summation shorthand makes use of the Greek letter
(sigma). To express the sum of
, for instance, we may write:

Extending this to the multiplication of an m x n matrix
and an n x p matrix
, we may now write the elements of the m x p product matrix AB = C =
as,

or more generally,

Addition and Subtraction of Matrices:
Two matrices can be added if and only if they have the same dimension. The addition rule can be stated as:
The subtraction operation A - B can be similarly defined if and only if a and B have the same dimension. The operation entails the result:
Scalar Multiplication:
To multiply a matrix by a number - or in matrix algebra terminology, by a scalar - is to multiply every element of that matrix by the given scalar.
Multiplication of Matrices:
Suppose that, given two matrices A and B, we want to find the product of AB. The conformability condition for manipulation is that the column dimension of A (the "lead" matrix the expression AB) must be equal to the row dimension of B (the "lag" matrix).
In general, if A is of dimension m x n and B is of dimension p x q, the matrix product AB will be defined i and only if n = p. If defined, moreover, the product matrix AB will have the dimension m x q - the same number of rows as the lead matrix A and the same number of columns as the lag matrix B.
An example of matrix multiplication is given below:
For the metrics given, AB will be 1 x 3. So let's consider,
The placeholder values of
Given two vectors u and v with n elements each, say,
Note: A square matrix with 1s in its principal diagonal and 0s everywhere else - examplifies the important type of matrix known as identity matrix.
Division:
It is not possible to divide one matrix by another.
The summation shorthand makes use of the Greek letter
Extending this to the multiplication of an m x n matrix
or more generally,