Invertible matrix

From testwiki
Jump to navigation Jump to search

Template:ForTemplate:More citations neededTemplate:Short description

In linear algebra, an invertible matrix (non-singular, non-degenerate or regular) is a square matrix that has an inverse. In other words, if a matrix is invertible, it can be multiplied by its inverse matrix to yield the identity matrix. Invertible matrices are the same size as their inverse.

The inverse of a matrix represents the inverse operation, meaning if a matrix is applied to a particular vector, followed by applying the matrix's inverse, the result is the original vector.

Definition

An Template:Mvar-by-Template:Mvar square matrix Template:Math is called invertible if there exists an Template:Mvar-by-Template:Mvar square matrix Template:Math such that𝐀𝐁=𝐁𝐀=𝐈n,where Template:Math denotes the Template:Mvar-by-Template:Mvar identity matrix and the multiplication used is ordinary matrix multiplication.[1] If this is the case, then the matrix Template:Math is uniquely determined by Template:Math, and is called the inverse of Template:Math, denoted by Template:Math. Matrix inversion is the process of finding the matrix which when multiplied by the original matrix gives the identity matrix.[2]

Basic idea

A matrix can be viewed as a rule for transforming vectors. For example, a real nΓ—n matrix A defines a linear transformation

x↦Ax

from the set ℝn of n-tuples of real numbers to itself. The matrix is invertible when this transformation can be undone by another linear transformation. In that case, there is a matrix Aβˆ’1 such that applying A and then Aβˆ’1, or applying Aβˆ’1 and then A, returns every vector to where it started.

Geometrically, an invertible matrix does not collapse space into a lower-dimensional set. It sends distinct vectors to distinct vectors and reaches every vector in the target space. For a real matrix, this is reflected by its determinant: an invertible matrix has nonzero determinant, while a matrix with determinant zero collapses volume to zero and is not invertible.

Algebraically, invertibility means that the linear system

Ax=b

has a unique solution x for every vector b. Equivalently, the columns of A form a basis of the vector space. These and several other equivalent characterizations are summarized by the invertible matrix theorem.

Examples

An invertible matrix

Consider the following 2-by-2 matrix:

𝐀=(βˆ’1321βˆ’1)

The matrix 𝐀 is invertible, as it has inverse 𝐁=(2322), which can be confirmed by computing

𝐀𝐁=(βˆ’1321βˆ’1)(2322)=((βˆ’1)Γ—2+32Γ—2(βˆ’1)Γ—3+32Γ—21Γ—2+(βˆ’1)Γ—21Γ—3+(βˆ’1)Γ—2)=(1001)=𝐈2

To check that it is invertible without finding an inverse, det⁡𝐀=βˆ’12 can be computed, which is non-zero.

A non-invertible matrix

This is a non-invertible (singular) matrix:

𝐂=(2424)

This matrix is not invertible, because different vectors x and x′ have the same value of 𝐂x, for example, x=[2βˆ’1] and x′=[00] both give 𝐂x=[00]. So it is impossible to reverse the transformation x↦𝐂x, since different inputs produce the same output. The determinant of 𝐂 is 0, which is a necessary and sufficient condition for a matrix to be non-invertible.

Explicit formula for 2x2 matrices

For an arbitrary 2-by-2 matrix 𝐀 defined as

𝐀=(abcd),

its inverse is

π€βˆ’1=1det⁡𝐀(dβˆ’bβˆ’ca).

Criteria for invertibility

A matrix 𝐀 (over a field such as the real numbers) is invertible if and only if the only solution to the equation 𝐀x=0 is the zero vector. That is, the nullity of 𝐀 is zero: its nullspace consists only of the zero vector. Equivalently, an nΓ—n matrix is invertible if its rank is n, by the rank-nullity theorem. Such a matrix is said to be of full rank. Geometrically, this means that the column space of 𝐀 is all of ℝn. The rank and nullity characterizations are related in the following way: having full rank means that the matrix maps onto all of ℝn (surjectively), and having nullity zero means that the matrix is one-to-one. That is, it is a bijection, and therefore inveritble.

A more computational criterion for invertibility comes from the standard way of determining the rank and nullity of a matrix. For a square matrix, a matrix is invertible if and only if its row-reduced echelon form is the identity matrix. The reason is that this is the only row-reduced echelon matrix having full rank: all ones down the diagonal and zeros everywhere else.

Another criterion is that a matrix is invertible if and only if its determinant is non-zero.

Methods of matrix inversion

Template:Main There are many methods to compute the inverse matrix, when it exists. A basic method is to use Gaussian elimination, for example. This proceeds by considering the inverse matrix Aβˆ’1 as a product of elementary matrices, Aβˆ’1=EkEkβˆ’1…E1 where the Ei are the elementary matrices corresponding to the elementary row operations needed to put A into is row-reduced echelon form. This method has the advantage that it will produce a row-reduced echelon form regardless of invertibility, and so gives a criterion to decide if a matrix is invertible which is often more efficient than computing the determinant: the matrix is invertible if and only if, at the end of the process, the echelon form is the identity matrix rather than some matrix of lower rank.

To convert this to a practical method for determining using this method, one uses an augmented matrix whose left side is the matrix to invert and whose right side is the identity matrix. Then, Gaussian elimination is used to convert the left side into the identity matrix, which causes the right side to become the inverse of the input matrix.

For example, take the following matrix: 𝐀=(βˆ’1321βˆ’1)

The first step to compute its inverse is to create the augmented matrix (βˆ’132101βˆ’101)

Call the first row of this matrix R1 and the second row R2. Then, add row 1 to row 2 (R1+R2β†’R2). This yields (βˆ’1321001211)

Next, subtract row 2, multiplied by 3, from row 1 (R1βˆ’3R2β†’R1), which yields (βˆ’10βˆ’2βˆ’301211)

Finally, multiply row 1 by βˆ’1 (βˆ’R1β†’R1) and row 2 by 2 (2R2β†’R2). This yields the identity matrix on the left side and the inverse matrix on the right:(10230122)

Thus, π€βˆ’1=(2322) It works because the process of Gaussian elimination can be viewed as a sequence of applying left matrix multiplication using elementary row operations using elementary matrices (𝐄n), such as 𝐄n𝐄nβˆ’1⋯𝐄2𝐄1𝐀=𝐈

Applying right-multiplication using π€βˆ’1, we get 𝐄n𝐄nβˆ’1⋯𝐄2𝐄1𝐈=πˆπ€βˆ’1. And the right side πˆπ€βˆ’1=π€βˆ’1, which is the inverse we want.

Properties

Singularity

Over a field, a square matrix that is not invertible is called singular or degenerate. A square matrix with entries in a field is singular if and only if its determinant is zero.

Invertible matrix theorem

Let Template:Math be a square Template:Mvar-by-Template:Mvar matrix over a field Template:Mvar (e.g., the field Template:Tmath of real numbers). The following statements are equivalent, i.e., they are either all true or all false for any given matrix:[3]

Other properties

Furthermore, the following properties hold for an invertible matrix Template:Math:

  • (π€βˆ’1)βˆ’1=𝐀
  • (k𝐀)βˆ’1=kβˆ’1π€βˆ’1 for nonzero scalar Template:Mvar
  • (𝐀𝐱)+=𝐱+π€βˆ’1 if Template:Math has orthonormal columns, where Template:Math denotes the Moore–Penrose inverse and Template:Math is a vector
  • (𝐀T)βˆ’1=(π€βˆ’1)T
  • For any invertible Template:Mvar-by-Template:Mvar matrices Template:Math and Template:Math, (𝐀𝐁)βˆ’1=πβˆ’1π€βˆ’1. More generally, if 𝐀1,…,𝐀k are invertible Template:Mvar-by-Template:Mvar matrices, then (𝐀1𝐀2⋯𝐀kβˆ’1𝐀k)βˆ’1=𝐀kβˆ’1𝐀kβˆ’1βˆ’1⋯𝐀2βˆ’1𝐀1βˆ’1.
  • det⁡π€βˆ’1=(det⁡𝐀)βˆ’1.
  • Left and right inverses are equal. That is, if 𝐋𝐀=𝐈 and 𝐀𝐑=𝐈 then 𝐋=𝐋(𝐀𝐑)=(𝐋𝐀)𝐑=𝐑.

The rows of the inverse matrix Template:Math of a matrix Template:Math are orthonormal to the columns of Template:Math (and vice versa interchanging rows for columns). To see this, suppose that Template:Math where the rows of Template:Math are denoted as viT and the columns of Template:Math as uj for 1≀i,j≀n. Then clearly, the Euclidean inner product of any two viTuj=Ξ΄i,j. This property can also be useful in constructing the inverse of a square matrix in some instances, where a set of orthogonal vectors (but not necessarily orthonormal vectors) to the columns of Template:Math are known. In which case, one can apply the iterative Gram–Schmidt process to this initial set to determine the rows of the inverse Template:Math.

A matrix that is its own inverse (i.e., a matrix Template:Math such that Template:Math and consequently Template:Math) is called an involutory matrix.

In relation to its adjugate

The adjugate of a matrix Template:Math is a matrix adj⁡(A) which exists independently of the invertibility of Template:Math. It satisfies the identity adj⁡(𝐀)𝐀=𝐀adj⁡(𝐀)=det⁡(𝐀)I. In particular, if Template:Math is invertible, then

π€βˆ’1=1det⁡(𝐀)adj⁡(𝐀)

In relation to the identity matrix

It follows from the associativity of matrix multiplication that if

𝐀𝐁=𝐈 

for finite square matrices Template:Math and Template:Math, then also

𝐁𝐀=𝐈 [4]

This identity does not hold for non-square rectangular matrices, and need not be true for linear operators in infinite dimensions.

Density

Over the field of real numbers, the set of singular Template:Mvar-by-Template:Mvar matrices, considered as a subset of Template:Tmath is a null set, that is, has Lebesgue measure zero. That is true because singular matrices are the roots of the determinant function. It is a continuous function because it is a polynomial in the entries of the matrix. Thus in the language of measure theory, almost all Template:Mvar-by-Template:Mvar matrices are invertible.

Furthermore, the set of Template:Mvar-by-Template:Mvar invertible matrices is open and dense in the topological space of all Template:Mvar-by-Template:Mvar matrices. Equivalently, the set of singular matrices is closed and nowhere dense in the space of Template:Mvar-by-Template:Mvar matrices.

In practice, however, non-invertible matrices may be encountered. In numerical calculations, matrices that are invertible but close to a non-invertible matrix may still be problematic and are said to be ill-conditioned.

Derivative of the matrix inverse

Suppose that the invertible matrix A depends on a parameter t. Then the derivative of the inverse of A with respect to t is given by[5]

ddtπ€βˆ’1=βˆ’π€βˆ’1d𝐀dtπ€βˆ’1

To derive the above expression for the derivative of the inverse of A, one can differentiate the definition of the matrix inverse π€βˆ’1𝐀=𝐈 using the product rule, and then solve for the derivative of the inverse of A:

𝟎=d𝐈dt=d(π€βˆ’1𝐀)dt=d(π€βˆ’1)dt𝐀+π€βˆ’1d𝐀dt

Subtracting π€βˆ’1d𝐀dt from both ends of this formula, and multiplying on the right by π€βˆ’1 finishes the derivation.

If Ξ΅ is a small number then the derivative formula gives:

(𝐀+Ρ𝐗)βˆ’1=π€βˆ’1βˆ’Ξ΅π€βˆ’1π—π€βˆ’1+π’ͺ(Ξ΅2)

Given a positive integer n,

ddt𝐀n=βˆ‘i=1n𝐀iβˆ’1d𝐀dt𝐀nβˆ’i,ddtπ€βˆ’n=βˆ’βˆ‘i=1nπ€βˆ’id𝐀dtπ€βˆ’(n+1βˆ’i)

In particular,

(𝐀+Ρ𝐗)n=𝐀n+Ξ΅βˆ‘i=1n𝐀iβˆ’1𝐗𝐀nβˆ’i+π’ͺ(Ξ΅2),(𝐀+Ρ𝐗)βˆ’n=π€βˆ’nβˆ’Ξ΅βˆ‘i=1nπ€βˆ’iπ—π€βˆ’(n+1βˆ’i)+π’ͺ(Ξ΅2)

The derivative of a matrix determinant with respect to one of its elements is a matrix cofactor, which exhibits the transpose of the matrix inverse: ddAijdet⁡(𝐀)=𝐂ij=Aβˆ’1jidet⁡(𝐀)

Generalizations

Non-square matrices

Non-square matrices, i.e. Template:Mvar-by-Template:Mvar matrices for which Template:Math, do not have an inverse. However, in some cases such a matrix may have a left inverse or right inverse. If Template:Math is Template:Mvar-by-Template:Mvar and the rank of Template:Math is equal to Template:Math, (Template:Math), then Template:Math has a left inverse, an Template:Math-by-Template:Mvar matrix Template:Math such that Template:Math. If Template:Math has rank Template:Math (Template:Math), then it has a right inverse, an Template:Mvar-by-Template:Mvar matrix Template:Math such that Template:Math.

Some of the properties of inverse matrices are shared by generalized inverses (such as the Moore–Penrose inverse), which can be defined for any m-by-n matrix.[6]

In Abstract algebra

While the most common case is that of matrices over the real or complex numbers, all of those definitions can be given for matrices over any algebraic structure equipped with addition and multiplication (i.e. rings). However, in the case of a ring being commutative, the condition for a square matrix to be invertible is that its determinant is invertible in the ring, which in general is a stricter requirement than it being nonzero. For a noncommutative ring, the usual determinant is not defined. The conditions for existence of left-inverse or right-inverse are more complicated, since a notion of rank does not exist over rings.

The set of Template:Math invertible matrices together with the operation of matrix multiplication and entries from ring Template:Mvar form a group, the general linear group of degree Template:Mvar, denoted Template:Math.

Practical Considerations

For most practical applications, it is not necessary to invert a matrix to solve a system of linear equations, since Gaussian elimination is computationally less expensive.[7] However, for a unique solution to exist, it is necessary for the matrix involved to be invertible.

Matrix decomposition techniques like LU decomposition are much faster than inversion,[8] and various fast algorithms for special classes of linear systems have also been developed.

Applications

Regression/least squares

Although an explicit inverse is not necessary to estimate the vector of unknowns, it is the easiest way to estimate their accuracy and is found in the diagonal of a matrix inverse (the posterior covariance matrix of the vector of unknowns). However, faster algorithms to compute only the diagonal entries of a matrix inverse are known in many cases.[9]

Matrix inverses in real-time simulations

Matrix inversion plays a significant role in computer graphics, particularly in 3D graphics rendering and 3D simulations. Examples include screen-to-world ray casting, world-to-subspace-to-world object transformations, and physical simulations.

Matrix inverses in MIMO wireless communication

Matrix inversion also plays a significant role in the MIMO (Multiple-Input, Multiple-Output) technology in wireless communications. The MIMO system consists of N transmit and M receive antennas. Unique signals, occupying the same frequency band, are sent via N transmit antennas and are received via M receive antennas. The signal arriving at each receive antenna will be a linear combination of the N transmitted signals forming an N Γ— M transmission matrix H. It is crucial for the matrix H to be invertible so that the receiver can figure out the transmitted information.[10]

Diagonalization

Matrix inverses play a prominent role in diagonalization. An arbitrary matrix 𝐀 is diagonalizable if and only if

𝐀=ππƒπβˆ’1

where 𝐃 is a diagonal matrix and 𝐏 is an invertible matrix. This expression allows arbitrary powers of 𝐀 to be written in the compact form

𝐀k=𝐏𝐃kπβˆ’1

where k is a positive integer.

See also

Template:Cmn

References

Template:Reflist

Further reading

Template:Linear algebra Template:Matrix classes