Matrix (mathematics)

From Simple English Wikipedia, the free encyclopedia
(Redirected from Square matrix)
Specific entries of a matrix are often referenced by using pairs of subscripts, for the numbers at each of the rows & columns.

In mathematics, a matrix (plural: matrices) is a rectangle of numbers, arranged in rows and columns. The rows are each left-to-right (horizontal) lines, and the columns go top-to-bottom (vertical). The top-left cell is at row 1, column 1 (see diagram at right).

Matrices are often represented by capital roman letters such as , and ,[1] and there are rules for adding, subtracting and "multiplying" matrices together, but the rules are different than for numbers.[2] As an example, the product does not always give the same result as , which is the case for the multiplication of ordinary numbers.[3] A matrix can have more than 2 dimensions, such as a 3D matrix. Also, a matrix can be one-dimensional, as a single row or a single column.

Many natural sciences use matrices quite a lot. In many universities, courses about matrices (usually called linear algebra) are taught very early, sometimes even in the first year of studies. Matrices are also very common in computer science, engineering, physics, economics, and statistics.[4]

Definitions and notations[change | change source]

The horizontal lines in a matrix are called rows. The vertical lines are called columns. A matrix with m rows and n columns is called an m-by-n matrix (or m×n matrix). m and n are called its dimensions.

The places in the matrix where the numbers are, are called entries.[2] The entry of a matrix called "A" that is in the row number i and column number j is called the i,j entry of A. This is written as A[i,j] or ai,j.

defines a m × n matrix called A. Each entry in this matrix is called ai,j when "i" is between 1 and m, and when j is between 1 and n.

Example[change | change source]

The matrix

is a 4×3 matrix. This matrix has m=4 rows, and n=3 columns.

The element A[2,3] or a2,3 is 7.

Operations[change | change source]

Addition[change | change source]

The sum of two matrices is the matrix, which (i,j)-th entry is equal to the sum of the (i,j)-th entries of two matrices:

The two matrices have the same dimensions. Here, is true (and is true in general for matrices of equal dimensions).

Multiplication of two matrices[change | change source]

The multiplication of two matrices is a bit more complicated:

This is an example with numbers:

  • Sometimes, two matrices can be multiplied with each other even if they have different dimensions. For this, the number of columns in the first matrix has to be equal to the number of rows in the second matrix.[3]
  • The result of the multiplication is called the product. The product is another matrix. It has the same number of rows as the first matrix and the same number of columns as the second matrix.
  • The multiplication of matrices is not commutative, which means that in general, .[4]
  • The multiplication of matrices is associative, which means that .[4]


Special matrices[change | change source]

There are some matrices that are special.

Square matrix[change | change source]

A square matrix has the same number of rows as columns, so m=n.[5]

An example of a square matrix is

This matrix has 3 rows and 3 columns: m=n=3.

Identity[change | change source]

Every square dimension set of a matrix has a special counterpart called the "identity matrix", represented by the symbol .[1] The identity matrix has nothing but zeroes except on the main diagonal, where there are all ones. For example:

is an identity matrix. There is exactly one identity matrix for each square dimension set. An identity matrix is special because when multiplying any matrix by the identity matrix, the result is always the original matrix with no change.

Inverse matrix[change | change source]

An inverse matrix is a matrix that, when multiplied by another matrix, equals the identity matrix. For example:

is the inverse of .

The formula for the inverse of a 2x2 matrix, is:

Where is the determinant of the matrix. In a 2x2 matrix, the determinant is equal to:

One column matrix[change | change source]

A matrix, that has many rows, but only one column, is called a column vector.

Determinants[change | change source]

The determinant takes a square matrix and calculates a simple number, a scalar. To understand what this number means, take each column of the matrix and draw it as a vector. The parallelogram drawn by those vectors has an area, which is the determinant. For all 2x2 matrices, the formula is very simple:

For 3x3 matrices the formula is more complicated:

There are no simple formulas for the determinants of larger matrices, and many computer programmers study how to get computers to quickly find large determinants.

Properties of determinants[change | change source]

There are three rules that all determinants follow. These are:

  • The determinant of an identity matrix is 1
  • If two rows or two columns of the matrix are exchanged, then the determinant is multiplied by -1. Mathematicians call this alternating.
  • If all the numbers in one row or column are multiplied by another number n, then the determinant is multiplied by n. Also, if a matrix M has a column v that is the sum of two column matrices and , then the determinant of M is the sum of the determinants of M with in place of v and M with in place of v. These two conditions are called multi-linearity.

Related pages[change | change source]

References[change | change source]

  1. 1.0 1.1 "Comprehensive List of Algebra Symbols". Math Vault. 2020-03-25. Retrieved 2020-08-19.
  2. 2.0 2.1 "Matrices". www.mathsisfun.com. Retrieved 2020-08-19.
  3. 3.0 3.1 "How to Multiply Matrices". www.mathsisfun.com. Retrieved 2020-08-19.
  4. 4.0 4.1 4.2 "Matrix | mathematics". Encyclopedia Britannica. Retrieved 2020-08-19.
  5. Weisstein, Eric W. "Matrix". mathworld.wolfram.com. Retrieved 2020-08-19.

Other websites[change | change source]

History
Online books