
|
|
MatricesIn mathematics, a matrix (plural matrices) is a rectangular table of numbers or, more generally, of elements of a ring-like algebraic structure. In this article, the entries of a matrix are real or complex numbers unless otherwise noted. Matrices are useful to record data that depends on two categories, and to keep track of the coefficients of systems of linear equations and linear transformations. For the development and applications of matrices, see matrix theory. Definitions and notationsThe horizontal lines in a matrix are called rows and 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) and m and n are called its dimensions. The entry of a matrix A that lies in the i-th row and the j-th column is called the i,j entry or
(i,j)-th entry of A. This is written as A[i,j] or Ai,j, or in notation of
the C programming language, The notation A = (aij) means that A[i,j] = aij for all indices i and j. ExamplesThe matrix is a 4þ3 matrix. The element A[2,3] or a2,3 is 7. Adding and multiplying matricesSumIf two m-by-n matrices A and B are given, we may define their sum A + B as the m-by-n matrix computed by adding corresponding elements, i.e., (A + B)[i, j] = A[i, j] + B[i, j]. For example Another, much less often used notion of matrix addition can be found at Direct sum (Matrix). Scalar multiplicationIf a matrix A and a number c are given, we may define the scalar multiplication cA by (cA)[i, j] = cA[i, j]. For example These two operations turn the set M(m, n, R) of all m-by-n matrices with real entries into a real vector space of dimension mn. MultiplicationMain article: Matrix multiplication Multiplication of two matrices is well-defined only if the number of columns of the first matrix is the same as the number of rows of the second matrix. If A is an m-by-n matrix (m rows, n columns) and B is an n-by-p matrix (n rows, p columns), then their product AB is the m-by-p matrix (m rows, p columns) given by
For instance This multiplication has the following properties:
It is important to note that commutativity does not generally hold; that is, given matrices A and B and their product defined, then generally AB ≠ BA. Matrices are said to anticommute if AB = -BA. Such matrices are very important in representations of Lie algebras and in Representations of Clifford algebras Linear transformations, ranks and transposeMatrices can conveniently represent linear transformations because matrix multiplication neatly corresponds to the composition of maps, as will be described next. Here and in the sequel we identify Rn with the set of "rows" or n-by-1 matrices. For every linear map f : Rn -> Rm there exists a unique m-by-n matrix A such that f(x) = Ax for all x in Rn. We say that the matrix A "represents" the linear map f. Now if the k-by-m matrix B represents another linear map g : Rm -> Rk, then the linear map g o f is represented by BA. This follows from the above-mentioned associativity of matrix multiplication. The rank of a matrix A is the dimension of the image of the linear map represented by A; this is the same as the dimension of the space generated by the rows of A, and also the same as the dimension of the space generated by the columns of A. The transpose of an m-by-n matrix A is the n-by-m matrix Atr (also sometimes written as AT or tA) gotten by turning rows into columns and columns into rows, i.e. Atr[i, j] = A[j, i] for all indices i and j. If A describes a linear map with respect to two bases, then the matrix Atr describes the transpose of the linear map with respect to the dual bases, see dual space. We have (A + B)tr = Atr + Btr and (AB)tr = Btr * Atr. Square matrices and related definitionsA square matrix is a matrix which has the same number of rows as columns. The set of all square n-by-n matrices, together with matrix addition and matrix multiplication is a ring. Unless n = 1, this ring is not commutative. M(n, R) , the ring of real square matrices, is a real unitary associative algebra. M(n, C), the ring of complex square matrices, is a complex associative algebra. The unit matrix or identity matrix In, with elements on the main diagonal set to 1 and all other elements set to 0, satisfies MIn=M and InN=N for any m-by-n matrix M and n-by-k matrix N. For example, if n = 3: The identity matrix is the identity element in the ring of square matrices. Invertible elements in this ring are called invertible matrices or non-singular matrices. An n by n matrix A is invertible if and only if there exists a matrix B such that
In this case, B is the inverse matrix of A, denoted by A−1. The set of all invertible n-by-n matrices forms a group (specifically a Lie group) under matrix multiplication, the general linear group. If λ is a number and v is a non-zero vector such that Av = λv, then we call v an eigenvector of A and λ the associated eigenvalue. (Eigen means "own" in German.) The number λ is an eigenvalue of A if and only if A−λIn is not invertible, which happens if and only if pA(λ) = 0. Here pA(x) is the characteristic polynomial of A. This is a polynomial of degree n and has therefore n complex roots (counting multiple roots according to their multiplicity). In this sense, every square matrix has n complex eigenvalues. The determinant of a square matrix A is the product of its n eigenvalues, but it can also be defined by the Leibniz formula. Invertible matrices are precisely those matrices with nonzero determinant. The Gauss-Jordan elimination algorithm is of central importance: it can be used to compute determinants, ranks and inverses of matrices and to solve systems of linear equations. The trace of a square matrix is the sum of its diagonal entries, which equals the sum of its n eigenvalues. Every orthogonal matrix is a square matrix. Special types of matricesIn many areas in mathematics, matrices with certain structure arise. A few important examples are
|