TOPICS
Search

Matrix Equation


A matrix equation is an equation involving matrices, with one or more unknown matrices or vectors. A common example is the linear system

 Ax=b
(1)

for a given matrix A and vector b. If A is square and its determinant is nonzero, the unique solution is obtained using the matrix inverse,

 x=A^(-1)b.
(2)

This solution is nonzero iff b!=0. A singular matrix can also yield solutions, but they are not unique when they exist. For example, the equations x_1=1 and 0x_2=0 have every x=(1,t)^T as a solution. More generally, a rectangular or square system is consistent iff the matrix rank of A equals that of the augmented matrix [A|b]. The solutions then consist of any one solution plus arbitrary elements of the null space of A.

Numerical methods generally avoid forming the matrix inverse explicitly. They include Gaussian elimination and LU decomposition. For a symmetric positive definite matrix, the square root method can be used.

For a homogeneous n×n matrix equation

 [a_(11) a_(12) ... a_(1n); a_(21) a_(22) ... a_(2n); | | ... |; a_(n1) a_(n2) ... a_(nn)][x_1; x_2; |; x_n]=[0; 0; |; 0]
(3)

to be solved for the x_is, consider the determinant

 |a_(11) a_(12) ... a_(1n); a_(21) a_(22) ... a_(2n); | | ... |; a_(n1) a_(n2) ... a_(nn)|.
(4)

Now multiply by x_1, which is equivalent to multiplying the first column (or any column) by x_1,

 x_1|a_(11) a_(12) ... a_(1n); a_(21) a_(22) ... a_(2n); | | ... |; a_(n1) a_(n2) ... a_(nn)|=|a_(11)x_1 a_(12) ... a_(1n); a_(21)x_1 a_(22) ... a_(2n); | | ... |; a_(n1)x_1 a_(n2) ... a_(nn)|.
(5)

The value of the determinant is unchanged if multiples of columns are added to other columns. So add x_2 times column 2, ..., and x_n times column n to the first column to obtain

 x_1|a_(11) a_(12) ... a_(1n); a_(21) a_(22) ... a_(2n); | | ... |; a_(n1) a_(n2) ... a_(nn)|
 =|a_(11)x_1+a_(12)x_2+...+a_(1n)x_n a_(12) ... a_(1n); a_(21)x_1+a_(22)x_2+...+a_(2n)x_n a_(22) ... a_(2n); | | ... |; a_(n1)x_1+a_(n2)x_2+...+a_(nn)x_n a_(n2) ... a_(nn)|.
(6)

But from the original matrix, each of the entries in the first columns is zero since

 a_(i1)x_1+a_(i2)x_2+...+a_(in)x_n=0,
(7)

so

 |0 a_(12) ... a_(1n); 0 a_(22) ... a_(2n); | | ... |; 0 a_(n2) ... a_(nn)|=0.
(8)

Therefore, if there is an x_1!=0 which is a solution, the determinant is zero. This is also true for x_2, ..., x_n, so a nonzero solution vector can exist only if the determinant is zero. Conversely, a square singular matrix has a nonzero null space, so its homogeneous system has a nonzero solution. This approach is the basis for Cramer's rule.

Given a numerical solution to a matrix equation, the solution can be iteratively improved using the following technique. Assume that the numerically obtained solution to

 Ax=b
(9)

is x_1=x+deltax_1, where deltax_1 is an error term. The first solution therefore gives

 Ax_1=A(x+deltax_1)=b+deltab
(10)
 Adeltax_1=deltab,
(11)

where deltab is found by solving (10)

 deltab=Ax_1-b.
(12)

Combining (11) and (12) then gives

 deltax_1=A^(-1)deltab=A^(-1)(Ax_1-b)=x_1-A^(-1)b.
(13)

See also

Augmented Matrix, Cramer's Rule, Gaussian Elimination, LU Decomposition, Lyapunov Equation, Matrix, Matrix Addition, Matrix Inverse, Matrix Multiplication, Matrix Rank, Normal Equation, Null Space, Square Root Method, Sylvester Equation

Explore with Wolfram|Alpha

Cite this as:

Weisstein, Eric W. "Matrix Equation." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/MatrixEquation.html

Subject classifications