An m×n matrix matrix = { lij } 1im , 1jn is a rectangular array of numbers with m rows and n columns. Each lij is called entry.

A matrix A is said to be of dimension (shape) m×n if it is an m×n matrix.

Let us consider a few examples.

The matrix U= { uij }

U= ( 1 3 3 2 1 3 9 -6 4 3 2 6 -4 2 2 )

is a 3×5 matrix. For entry u2,3 we have u2,3 =-6 ; similarly u3,2 =6 , u2,5 =3 and so forth.

The matrix V= { vij }

V= (1234567890-1-2)

is a 4×3 matrix. We have v4,1 =0 , v4,2 =-1 and v4,3 =-2 .

Warning: the following (1230-2) is not a matrix.

It is important to distinguish matrices, equivalently to identify matrices that are the same.

Let 𝒜= { aij } 1im , 1jn and = { bij } 1ir , 1jp be two matrices. They are equal

𝒜=

if m=r, n=p and for all 1im, 1jn we have

aij = bij

Any matrix is equal to itself. From the above examples U=U and V=V, however UV. Recall the matrix V= (1234567890-1-2) we have

(1234567890-1-2) (1470258-1369-2) ,

 

(1234567890-1-2) (1234567890-1-2) ,

 

(1234567890-1-2) (1230456078900-1-20) ,

and

(1234567890-1-2) (1234567890-1-2000)

There are multiple special matrix classes that have their own names as they are encountered quite often. For example 1×m matrix is a row matrix sometimes just called a row or a row vector e.g., ( 1 3 3 2 1 ) , ( 3 9 -6 4 3 ) and ( 2 6 -4 2 2 ) are all 1×5 row matrices. These are the rows of matrix 𝒰 defined above.

U= ( 1 3 3 2 1 3 9 -6 4 3 2 6 -4 2 2 )

Similarly n×1 matrix is a column also called a column matrix or a (column) vector. Each of the following

( 3 9 6 ) ( 3 -6 -4 ) ( 2 4 2 ) ( 1 3 2 )

is a 3×1 matrix, equivalently a column. They are respectively the second, third, forth and fifth column of matrix U. The last column matrix is also the first column of U.

The entries of a row/column matrices are also called components.

An m×n matrix is called square (matrix) of order n if m=n.

Here are two square matrices.

( 5 -8 1 3 -5 1 -4 7 -1 ) ( 2 1 3 1 1 2 -1 3 1 )

In a matrix = { lij } 1im , 1jn the set of entries lii is called the (main) diagonal. Often matrices have only zeroes either above or below their diagonal. In that case they are called triangular matrices.

The following are two triangular matrices, the first one is lower triangular, the second is upper triangular.

( 5 0 0 3 -5 0 -4 7 -1 ) ( 0 1 3 0 1 2 0 0 1 )

A square matrix whose only non-zero entries are on its main diagonal is called diagonal matrix. If all diagonal entries are equal to each other the matrix is scalar matrix. A scalar matrix whose diagonal entries are all equal to one is an identity matrix. There is only one identity matrix of a given order.

A diagonal, a scalar and an identity matrix all of order three.

( 5 0 0 0 -5 0 0 0 -1 ) ( -3 0 0 0 -3 0 0 0 -3 ) ( 1 0 0 0 1 0 0 0 1 )