Sunteți pe pagina 1din 14

Matrix (mathematics)

From Wikipedia, the free encyclopedia

"Matrix theory" redirects here. For the physics topic, see Matrix string theory.

Specific elements of a matrix are often denoted by a variable with two subscripts. For instance, a2,1 represents the element at the second row and first column of a matrix A.

In mathematics, a matrix (plural matrices) is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns.[1][2] The individual items in a matrix are called its elements or entries. An example of a matrix with 2 rows and 3 columns is

Matrices of the same size can be added or subtracted element by element. But the rule for matrix multiplication is that two matrices can be multiplied only when the number of columns in the first equals the number of rows in the second. A major application of matrices is to representlinear transformations, that is, generalizations of linear functions such as f(x) = 4x. For example, the rotation of vectors in three dimensional space is a linear transformation. If R is a rotation matrix and v is a column vector (a matrix with only one column) describing the position of a point in space, the product Rv is a column vector describing the position of that point after a rotation. The product of two matrices is a matrix that represents the composition of two linear transformations. Another application of matrices is in the solution of a system of linear equations. If the matrix is square, it is possible to deduce some of its properties by computing its determinant. For example, a square matrix has an inverse if and only if its determinant is not zero. Eigenvalues and eigenvectors provide insight into the geometry of linear transformations. Applications of matrices are found in most scientific fields. In every branch of physics, including classical mechanics, optics, electromagnetism,quantum mechanics, and quantum electrodynamics, they are used to study physical phenomena, such as the motion of rigid bodies. In computer graphics, they are used to project a 3-dimensional image onto a 2-dimensional screen. In probability theory and statistics, stochastic matrices are used to describe sets of probabilities; for instance, they are used within the PageRank algorithm that ranks the pages in a Google

search.[3] Matrix calculus generalizes classical analyticalnotions such as derivatives and exponentials to higher dimensions. A major branch of numerical analysis is devoted to the development of efficient algorithms for matrix computations, a subject that is centuries old and is today an expanding area of research.Matrix decomposition methods simplify computations, both theoretically and practically. Algorithms that are tailored to particular matrix structures, such as sparse matrices and near-diagonal matrices, expedite computations in finite element method and other computations. Infinite matrices occur in planetary theory and in atomic theory. A simple example of an infinite matrix is the matrix representing the derivative operator, which acts on the Taylor series of a function.

Definition[edit source | editbeta]


A matrix is a rectangular array of numbers or other mathematical objects, for which operations such [4] as addition and multiplication are defined. Most commonly, a matrix over a field F is a rectangular [5][6] array of scalars from F. Most of this article focuses on real and complex matrices, i.e., matrices whose elements are real numbers or complex numbers, respectively. More general types of entries are discussed below. For instance, this is a real matrix:

The numbers, symbols or expressions in the matrix are called its entries or its elements. The horizontal and vertical lines in a matrix are called rows and columns, respectively.

Size[edit source | editbeta]


The size of a matrix is defined by the number of rows and columns that it contains. A matrix with m rows and n columns is called an m n matrix or m-by-n matrix, while m and n are called itsdimensions. For example, the matrix A above is a 3 2 matrix. Matrices which have a single row are called row vectors, and those which have a single column are called column vectors. A matrix which has the same number of rows and columns is called asquare matrix. A matrix with an infinite number of rows or columns (or both) is called an infinite matrix. In some contexts such as computer algebra programs it is useful to consider a matrix with no rows or no columns, called an empty matrix.

Name

Size

Example

Description

Row vector

1n

A matrix with one row, sometimes used to represent a vector

Column vector

n1

A matrix with one column, sometimes used to represent a vector

Square matrix

nn

A matrix with the same number of rows and columns, sometimes used to represent a linear transformation from a vector space to itself, such as reflection,rotation, or shearing.

Notation[edit source | editbeta]


Matrices are commonly written in box brackets:

An alternative notation uses large parentheses instead of box brackets:

The specifics of symbolic matrix notation varies widely, with some prevailing trends. Matrices are usually symbolized using upper-case letters (such as A in the examples above), while the corresponding lower-case letters, with two subscript indices (e.g., a11, or a1,1), represent the entries. In addition to using upper-case letters to symbolize matrices, many authors use a specialtypographical style, commonly boldface upright (non-italic), to further distinguish matrices from other mathematical objects. An alternative notation involves the use of a double-underline with the variable name, with or without boldface style, (e.g., ).

The entry in the i-th row and j-th column of a matrix A is sometimes referred to as the i,j, th (i,j), or (i,j) entry of the matrix, and most commonly denoted as ai,j, or aij. Alternative notations for that entry are A[i,j] or Ai,j. For example, the (1,3) entry of the following matrix A is 5 (also denoted a13, a1,3, A[1,3] or A1,3):

Sometimes, the entries of a matrix can be defined by a formula such as ai,j = f(i, j). For example, each of the entries of the following matrix A is determined by aij = i j.

In this case, the matrix itself is sometimes defined by that formula, within square brackets or double parenthesis. For example, the matrix above is defined as A = [i-j], or A = ((i-j)). If matrix size ism n, the above-mentioned formula f(i, j) is valid for any i = 1, ..., m and any j = 1, ..., n. This can be either specified separately, or using m n as a subscript. For instance, the matrix A above is 4 3 and can be defined as A = [i j] (i = 1, ..., 4; j = 1, 2, 3), or A = [i j]43. Some programming languages utilize doubly-subscripted arrays (or arrays of arrays) to represent an m--n matrix. Some programming languages start the numbering of array indexes at zero, in which case the entries of an m-by[7] n matrix are indexed by 0 i m 1 and 0 j n 1. This article follows the more common convention in mathematical writing where enumeration starts from 1. The set of all m-by-n matrices is denoted (m, n).

Basic operations[edit source | editbeta]


There are a number of basic operations that can be applied to modify matrices, called matrix [9] addition, scalar multiplication, transposition, matrix multiplication, row operations, and submatrix.

Addition, scalar multiplication and transposition[edit source | editbeta]


Main articles: Matrix addition, Scalar multiplication, and Transpose

Operation

Definition

Example

The sum A+B of two m-byn matrices A and B is calculated entrywise: Addition (A + B)i,j = Ai,j + Bi,j, where 1 i m and 1 j n. The scalar multiplication cA of a matrix A and a number c (also called a scalar in the parlance of abstract algebra) is given by multiplying every entry of A by c: (cA)i,j = c Ai,j.

Scalar multipli cation

Transpose

The transpose of an m-byn matrix A is the nT by-m matrix A (also tr t denoted A or A) formed by turning rows into columns and vice versa: (A )i,j = Aj,i.
T

Familiar properties of numbers extend to these operations of matrices: for example, addition is commutative, i.e., the matrix sum does not depend on the order of the [10] summands:A + B = B + A. The transpose is compatible with addition and scalar multiplication, as T T T T T T T expressed by (cA) = c(A ) and ( A + B) = A + B . Finally, ( A ) = A.

Matrix multiplication

Schematic depiction of the matrix product AB of two matrices A and B.

Multiplication of two matrices is defined only if the number of columns of the left matrix is the same as the number of rows of the right matrix. If A is an m-by-n matrix and B is an n-by-p matrix, then their matrix product AB is the m-by-p matrix whose entries are given by dot product of the corresponding row ofA and the corresponding column of B:

, where 1 i m and 1 j p. For example, the underlined entry 2340 in the product is calculated as (2 1000) + (3 100) + (4 10) = 2340:
[11]

Matrix multiplication satisfies the rules ( AB)C = A(BC) (associativity), and ( A+B)C = AC+BC as well as C(A+B) = CA+CB (left and right distributivity), whenever the size of the matrices is such that the [12] various products are defined. The product AB may be defined without BA being defined, namely

if A and B are m-by-n and n-by-k matrices, respectively, and m k. Even if both products are defined, they need not be equal, i.e., generally one has AB BA, i.e., matrix multiplication is not commutative, in marked contrast to (rational, real, or complex) numbers whose product is independent of the order of the factors. An example of two matrices not commuting with each other is:

whereas

Besides the ordinary matrix multiplication just described, there exist other less frequently used operations on matrices that can be considered forms of multiplication, such as the Hadamard [13] product and the Kronecker product. They arise in solving matrix equations such as the Sylvester equation.

Row operations
There are three types of row operations: 1. row addition, that is adding a row to another. 2. row multiplication, that is multiplying all entries of a row by a constant; 3. row switching, that is interchanging two rows of a matrix; These operations are used in a number of ways, including solving linear equations and finding matrix inverses.

Submatrix
A submatrix of a matrix is obtained by deleting any collection of rows and/or columns. For example, for the following 3-by-4 matrix, we can construct a 2-by-3 submatrix by removing row 3 and column 2:

The minors and cofactors of a matrix are found by computing the determinant of certain submatrices.

Linear equations
Matrices can be used to compactly write and work with multiple linear equations, i.e., systems of linear equations. For example, if A is an m-by-n matrix, x designates a column vector (i.e., n1matrix) of n variables x1, x2, ..., xn, and b is an m1-column vector, then the matrix equation Ax = b

is equivalent to the system of linear equations A1,1x1 + A1,2x2 + ... + A1,nxn = b1 ... Am,1x1 + Am,2x2 + ... + Am,nxn = bm .

Linear transformations[edit source | editbeta]


Main articles: Linear transformation and Transformation matrix

The vectors represented by a 2-by-2 matrix correspond to the sides of a unit square transformed into a parallelogram.

Matrices and matrix multiplication reveal their essential features when related to linear transformations, also known as linear maps. A real m-by-n matrixA gives rise to a linear n m n transformation R R mapping each vector x in R to the (matrix) product Ax, which is a vector m n m in R . Conversely, each linear transformation f: R R arises from a unique m-by-n matrix A: th explicitly, the (i, j)-entry of A is the i coordinate of f(ej), whereej = (0,...,0,1,0,...,0) is the unit th vector with 1 in the j position and 0 elsewhere. The matrix A is said to represent the linear map f, and A is called thetransformation matrix of f. For example, the 22 matrix

can be viewed as the transform of the unit square into a parallelogram with vertices at (0, 0), (a, b), (a + c, b + d), and (c, d). The parallelogram pictured at the right is obtained by

multiplying A with each of the column vectors define the vertices of the unit square.

and

in turn. These vectors

The following table shows a number of 2-by-2 matrices with the associated linear maps of R . The blue original is mapped to the green grid and shapes. The origin (0,0) is marked with a black point.

Horizontal shear with m=1.25.

Horizontal flip

Squeeze mapping with r=3/2

Scaling by a factor of 3/2

Rotation by /6 = 30

Under the 1-to-1 correspondence between matrices and linear maps, matrix multiplication [15] corresponds to composition of maps: if a k-by-m matrix B represents another linear m k map g : R R , then the composition g f is represented by BA since (g f)(x) = g(f(x)) = g(Ax) = B(Ax) = (BA)x. The last equality follows from the above-mentioned associativity of matrix multiplication. The rank of a matrix A is the maximum number of linearly independent row vectors of the matrix, which is the same as the maximum number of linearly independent column [16] vectors. Equivalently it is the dimension of the image of the linear map represented [17] by A. The rank-nullity theorem states that the dimension of the kernel of a matrix plus the [18] rank equals the number of columns of the matrix.

Square matrices[edit source | editbeta]


Main article: Square matrix A square matrix is a matrix with the same number of rows and columns. An n-by-n matrix is known as a square matrix of order n. Any two square matrices of the same order can be added and multiplied. The entries aii form the main diagonal of a square matrix. They lie on the imaginary line which runs from the top left corner to the bottom right corner of the matrix.

Main types[edit source | editbeta]


Name Example with n = 3

Diagonal matrix

Lower triangular matrix

Upper triangular matrix

Diagonal or triangular matrix[edit source | editbeta]


If all entries outside the main diagonal are zero, A is called a diagonal matrix. If only all entries above (or below) the main diagonal are zero, A is called a lower (or upper) triangular matrix.

Identity matrix[edit source | editbeta]


The identity matrix In of size n is the n-by-n matrix in which all the elements on the main diagonal are equal to 1 and all other elements are equal to 0, e.g.

It is a square matrix of order n, and also a special kind of diagonal matrix. It is called identity matrix because multiplication with it leaves a matrix unchanged: AIn = ImA = A for any m-by-n matrix A.

Symmetric or skew-symmetric matrix[edit source | editbeta]


A square matrix A that is equal to its transpose, i.e., A = A , is a symmetric matrix. If instead, A was equal to the negative of its transpose, i.e., A = T A , then A is a skew-symmetric matrix. In complex matrices, symmetry is often replaced by the concept of Hermitian matrices, which satisfy A = A, where the star or asterisk denotes the conjugate transpose of the matrix, i.e., the transpose of the complex conjugate of A. By the spectral theorem, real symmetric matrices and complex Hermitian matrices have an eigenbasis; i.e., every vector is expressible as a linear [19] combination of eigenvectors. In both cases, all eigenvalues are real. This theorem can be generalized to infinite-dimensional situations related to matrices with infinitely many rows and columns, see below.
T

Invertible matrix and its inverse[edit source | editbeta]


A square matrix A is called invertible or non-singular if there exists a matrix B such that AB = BA = In.
[20][21]

If B exists, it is unique and is called the inverse matrix of A, denoted A .

Definite matrix[edit source | editbeta]


Positive definite matrix Indefinite matrix

Q(x,y) = 1/4 x + y

Q(x,y) = 1/4 x 1/4 y

Points such that Q(x,y)=1 Points such that Q(x,y)=1 (Ellipse). (Hyperbola).

A symmetric nn-matrix is called positive-definite (respectively negativen definite; indefinite), if for all nonzero vectors x R the associated quadratic form given by Q(x) = x Ax takes only positive values (respectively only negative values; both some negative and some positive [22] values). If the quadratic form takes only non-negative (respectively only non-positive) values, the symmetric matrix is called positive-semidefinite (respectively negative-semidefinite); hence the matrix is indefinite precisely when it is neither positive-semidefinite nor negative-semidefinite. A symmetric matrix is positive-definite if and only if all its eigenvalues are positive. right shows two possibilities for 2-by-2 matrices.
[23] T

The table at the

Allowing as input two different vectors instead yields the bilinear form associated to A: BA (x, y) = x Ay.
T [24]

Orthogonal matrix
An orthogonal matrix is a square matrix with real entries whose columns and rows are orthogonal unit vectors (i.e., orthonormal vectors). Equivalently, a matrix A is orthogonal if its transpose is equal to its inverse:

which entails

where I is the identity matrix. An orthogonal matrix A is necessarily invertible (with inverse A = A ), unitary (A = A*), and normal (A*A = AA*). The determinant of any orthogonal matrix is either +1 or 1. A special orthogonal matrix is an orthogonal matrix with determinant +1. As a linear transformation, every orthogonal matrix with determinant +1 is a pure rotation, while every orthogonal matrix with determinant -1 is either a pure reflection, or a composition of reflection and rotation. The complex analogue of an orthogonal matrix is a unitary matrix.
1 T 1

Determinant[edit source | editbeta]


Main article: Determinant

A linear transformation on R2 given by the indicated matrix. The determinant of this matrix is 1, as the area of the green parallelogram at the right is 1, but the map reverses theorientation, since it turns the counterclockwise orientation of the vectors to a clockwise one.

The determinant det(A) or |A| of a square matrix A is a number encoding certain properties of the matrix. A matrix is invertible if and only ifits determinant is nonzero. Its absolute value equals the area 2 3 (in R ) or volume (in R ) of the image of the unit square (or cube), while its sign corresponds to the orientation of the corresponding linear map: the determinant is positive if and only if the orientation is preserved. The determinant of 2-by-2 matrices is given by

The determinant of 3-by-3 matrices involves 6 terms (rule of Sarrus). The more lengthy Leibniz [25] formula generalises these two formulae to all dimensions. The determinant of a product of square matrices equals the product of their determinants: det(AB) = det( A) det(B).
[26]

Adding a multiple of any row to another row, or a multiple of any column to another column, does not change the determinant. Interchanging two rows or two columns affects the [27] determinant by multiplying it by 1. Using these operations, any matrix can be transformed to a lower (or upper) triangular matrix, and for such matrices the determinant equals the product of the entries on the main diagonal; this provides a method to calculate the

determinant of any matrix. Finally, the Laplace expansion expresses the determinant in terms [28] of minors, i.e., determinants of smaller matrices. This expansion can be used for a recursive definition of determinants (taking as starting case the determinant of a 1-by-1 matrix, which is its unique entry, or even the determinant of a 0-by-0 matrix, which is 1), that can be seen to be equivalent to the Leibniz formula. Determinants can be used to solve linear systems using Cramer's rule, where the division of the determinants of two [29] related square matrices equates to the value of each of the system's variables.

ROW ECHELON
In linear algebra, a matrix is in echelon form if it has the shape resulting of a Gaussian elimination. Row echelon form means that Gaussian elimination has operated on the rows and column echelon form means that Gaussian elimination has operated on the columns. In other words, a matrix is in column echelon form if its transpose is in row echelon form. Therefore only row echelon forms are considered in the remainder of this article. The similar properties of column echelon form are easily deduced by transposing all the matrices. Specifically, a matrix is in row echelon form if All non-zero rows (rows with at least one nonzero element) are above any rows of all zeroes (all zero rows, if any, belong at the bottom of the matrix). The leading coefficient (the first nonzero number from the left, also called the pivot) of a nonzero row is always strictly to the right of the leading coefficient of the row above it. All entries in a column below a leading entry are zeroes (implied by the first two criteria).
[2] [1]

Some texts add the condition that the leading coefficient of any nonzero row must be 1. This is an example of a 35 matrix in row echelon form:

FROM WEB: http://en.wikipedia.org/wiki/Row_echelon_form.

Steps
1. 1

A Matrix in Row-Echelon form

Know what Row-Echelon form is. The Row-Echelon form is where the leading (first non-zero) entry of each row, has only zeroes below it.

Our Example

So, starting with a Matrix of any size. Do not tamper with the top row, it is easier to do it systematically. So look at the first entry in each row, and decide what factor of Row 1 needs to be added/subtracted from each row to get zero as the first term. In the example to the right, we can see that Row 2 - Row 1 would give us a zero, and Row 3 - 3*Row 1 would also.

2. 3

R2 - R1, and R3 - 3*R1

So, after computing the row operations in step 2, the matrix now looks like this. We can then see what row operation would give us another zero in the bottom row, it is Row 3 - Row 2.

3. 4

Matrix in Row-Echelon form

Now our final Matrix looks like this, which is in row-echelon form as the first entry in each row, has only zeroes below it.

http://www.wikihow.com/Reduce-a-Matrix-to-Row-Echelon-Form.

ROW EQUIVALENT
In linear algebra, two matrices are row equivalent if one can be changed to the other by a sequence of elementary row operations. Alternatively, two m n matrices are row equivalent if and only if they have the same row space. The concept is most commonly applied to matrices that represent systems of linear equations, in which case two matrices of the same size are row equivalent if and only if the corresponding homogeneous systems have the same set of solutions, or equivalently the matrices have the same null space. Because elementary row operations are reversible, row equivalence is an equivalence relation. It is commonly denoted by a tilde (~).

There is a similar notion of column equivalence, defined by elementary column operations; two matrices are column equivalent if and only if their transpose matrices are row equivalent. Two rectangular matrices that can be converted into one another allowing both elementary row and column operations are called simply equivalent.

http://en.wikipedia.org/wiki/Row_equivalence.

Invertible matrix
From Wikipedia, the free encyclopedia

In linear algebra an n-by-n (square) matrix A is called invertible (some authors use nonsingular or nondegenerate) if there exists an n-by-n matrix B such that

where In denotes the n-by-n identity matrix and the multiplication used is ordinary matrix multiplication. If this is the case, then the matrix B is uniquely determined by A and is called the inverse of A, denoted by A1. It follows from the theory of matrices that if for finite square matrices A and B, then also.

Non-square matrices (m-by-n matrices for which m n) do not have an inverse. However, in some cases such a matrix may have a left inverse or right inverse. If A is m-by-n and the rank of A is equal to n, then A has a left inverse: an n-by-m matrix B such that BA = I. IfA has rank m, then it has a right inverse: an n-by-m matrix B such that AB = I.

A square matrix that is not invertible is called singular or degenerate. A square matrix is singular if and only if its determinant is 0. Singular matrices are rare in the sense that if you pick a random square matrix over a continuous uniform distribution on its entries, it will almost surely not be singular. While the most common case is that of matrices over the real or complex numbers, all these definitions can be given for matrices over any commutative ring. However, in this case the condition for a square matrix to be invertible is that its determinant is invertible in the ring, which in general is a much stricter requirement than being nonzero. The conditions for existence of left-inverse resp. right-inverse are more complicated since a notion of rank does not exist over rings.

Matrix inversion is the process of finding the matrix B that satisfies the prior equation for a given invertible matrix A.

S-ar putea să vă placă și