Matrix Equations
Go to: Introduction, Notation, Index
In all the equations below, x, y, z, X, Y
and Z are the unknown vectors or matrices.
Conic
Equation
A conic, or conic section, is the locus of points satisfying the quadratic
equation [x; 1]TS[x; 1]=0
where x[2#1] is a 2-dimentional real vector and
S[3#3] is a real symmetric
matrix; all non-zero multiples of S result in the same conic.
The conic equation can be classified as one of the following cases (where
k is an arbitrary multiple):
| |
Case |
det(S) |
det(A) |
tr(A)det(S) |
A |
bTb -
tr(A)c |
c |
Conic type |
|
1. |
≠0 |
<0 |
|
|
|
|
Hyperbola |
| |
2. |
≠0 |
0 |
|
|
|
|
Parabola |
|
3. |
≠0 |
>0 |
<0 |
kI |
|
|
Circle: radius √(bTb/det(A)
- 2c/tr(A)) with centre at x=-A-1b. |
|
4. |
≠0 |
>0 |
<0 |
≠kI |
|
|
Ellipse: Centre at x=-A-1b.
Eccentricity e=√(1-d2/d1).
Semi-major axis √((bTA-1b
- c) /d2). Semi-minor axis √((bTA-1b
- c) /d1). Major axis ([I; bTA-1]R[1;
0])T [x; 1]=0. Minor axis ([I; bTA-1]R[0;
1])T [x; 1]=0. |
|
5. |
≠0 |
>0 |
≥0 |
|
|
|
[Empty] |
| |
6. |
0 |
<0 |
|
|
|
|
Two intersecting lines: ([I; bTA-1]R[+√|d1|; ±√|d1|])T [x;
1]=0. The lines intersect at x=-A-1b. |
| |
7. |
0 |
>0 |
|
|
|
|
A single point: x=-A-1b |
| |
8. |
0 |
0 |
|
≠0 |
<0 |
|
[Empty] |
|
9. |
0 |
0 |
|
≠0 |
0 |
|
A single line: [Rd; bTRD+d]T[x;
1]=0. |
|
10. |
0 |
0 |
|
≠0 |
>0 |
|
Two parallel lines: [Rd;
bTRD+d]T[x;
1]=±√(bTb - tr(A)c). |
|
11. |
0 |
0 |
|
0 |
0 |
≠0 |
[Empty] |
|
12. |
0 |
0 |
|
0 |
0 |
0 |
Entire Plane |
| |
13. |
0 |
0 |
|
0 |
>0 |
|
A single line: [2b; c]T [x;
1]=0 |
The discrete-time Lyapunov equation is AXAH
- X + Q = 0 where Q is hermitian. This is a special case of the Stein equation.
- There is a unique solution X iff
(eig(A)eig(A)H - 1) has no
zero elements, i.e. iff no eigenvalue of A is the reciprocal of an
eigenvalue of AH. If this condition is satisfied, the
unique X is Hermitian.
- If A is convergent then
X is unique and Hermitian and
X=SUM(AkQBk,k=0..infinity)
where B=AH.
- If A is convergent and
Q is positive definite (or semi-definite) then X is unique, Hermitian and positive definite (or
semi-definite).
The equivalent equation for continuous-time systems is the Lyapunov equation.
The discrete Riccati equation is the quadratic equation [A, X: n#n; B: n#m; C: m#n; R, Q: hermitian] X =
AHXA -
(C+BHXA)H(R+BHXB)-1(C+BHXA)
+ Q
Suppose H[n#n]=UDUH
is hermitian, U is unitary and
D=diag(d)=diag(eig(H)) contains the eigenvalues
(which are necessarily real) in
decreasing order. Then the corresponding quadratic form is the real-valued
expression xHHx.
- Rayleigh-Ritz
Theorem: the value of the ratio xHHx(xHx)-1
lies within the closed interval [dn, d1]
that is bounded by the smallest and largest eigenvalues of H.
Specifically
- minx
(xHHx | xHx=1)
= minx
(xHHx(xHx)-1
| x≠0) = dn and this bound is attained
by the corresponding eigenvector, x=un
[4.8]
- maxx (xHHx |
xHx=1) = maxx
(xHHx(xHx)-1
| x≠0) = d1 and this bound is attained
by the corresponding eigenvector, x=u1
[4.8]
-
Courant-Fischer Theorem: We can extend the Rayleigh-Ritz theorem to find the k-dimensional
subspace, W[n#n-k]Hx=0
, in which the the peak value of the ratio xHHx(xHx)-1
is as small as possible. Specifically
- minW
maxx (xHHx |
xHx=1 and
W[n#n-k]Hx=0)
= minW maxx
(xHHx(xHx)-1
| x≠0 and W[n#n-k]Hx=0)
= dk and this bound is attained by
W=U:,k+1:n and
x=uk [4.7].
- maxW
minx (xHHx |
xHx=1 and
W[n#n-k]Hx=0)
= maxW minx
(xHHx(xHx)-1
| x≠0 and W[n#n-k]Hx=0)
= dn-k+1 and this bound is attained by
W=U:,1:n-k and
x=un-k+1 .
- We can generalize the Rayleigh-Ritz theorem to a matrix argument, X, in either
of two ways which, surprisingly, turn out to be equivalent. If S is +ve
definite Hermitian and H is Hermitian, then
- maxX
tr((XHSX)-1 XHHX) |
rank(X[n#k])=k) =
sum(d1:k) [4.11]
- maxX
det((XHSX)-1 XHHX) |
rank(X[n#k])=k) =
prod(d1:k) [4.12]
where d are the eigenvalues of S-1H sorted into
decreasing order and these bounds are attained by taking the columns of
X to be the corresponding eigenvectors.
Linear Discriminant Analysis (LDA):
If vectors x are randomly generated from a number of classes with
H the covariance of the class means and S the average covariance
within each class, then tr((XHSX)-1
XHHX) and
det((XHSX)-1 XHHX) are two alternative measures of class
separability. We can find a dimension-reducing transformation that maximizes
separability by taking y = PTx where the
columns of P[k#n] are the eigenvectors of
S-1H corresponding to the k largest
eigenvalues. This choice maximizes both separability measures for any given
k.
- If S is +ve definite Hermitian and H is Hermitian and
A[n#m] is a given matrix, then
maxX tr(([A X]HS[A
X])-1 [A X]HH[A X] |
rank([A X[n#k]])=m+k) =
tr((AHSA)-1AHHA)
+ sum(d1:k) where d are
- the eigenvalues of
(I-A(AHSA)-1AHS)S-1H
sorted into decreasing order and this maximum may be attained by taking the
columns of X to be the corresponding eigenvectors [4.13].
- the eigenvalues of
VHC-HHC-1V
sorted into decreasing order where S=CHC is the
Cholesky decomposition and the
columns of V are an orthonormal basis for the null space of
AHCH. This maximum may be
attained by taking the columns of X to be the corresponding eigenvectors
pre-multiplied by C-1V [4.14].
- If S is +ve definite Hermitian and H is Hermitian and
A[n#m] is a given matrix, then
maxX det(([A X]HS[A
X])-1 [A X]HH[A X] |
rank([A X[n#k]])=m+k) =
det((AHSA)-1AHHA)×prod(l1:k)
where l are the eigenvalues of
S-1H(I - A
(AHHA)-1AHH
) sorted into decreasing order and this maximum may be attained by taking the
columns of X to be the corresponding eigenvectors. [4.15]
Linearly Constrained Quadratic Form Minimization
- If x is real and H is
positive-definite real-symmetric, we can use a Lagrange multiplier to minimize xTHx
subject to the real-valued constraint ATx=c
to obtain x = H-1A(ATH-1A)-1c
provided that both H and ATH-1A
are non-singular. For the special case, H=I, this becomes x=A(ATA)-1c
= (A+)Tc
where A+ is the
pseudoinverse.
- If x is complex and H is
positive-definite Hermitian, we can use a complex
Lagrange multiplier to minimize
xHHx subject to the
complex-valued constraint AHx+BTxC=c
to obtain x=H-1[A
B][U V; VH
UT]-1[c;
cC] provided that both H and [U V; VH
UT] are non-singular where U=AHH-1A+(BHH-1B)T
is Hermitian
and V=AHH-1B+(AHH-1B)T
is symmetric. [4.18]
A linear equation has the form Ax - b = 0.
Exact Solution
- [Am#n] The linear equation has a
unique exact solution iff rank([A b]) = rank([A]) = n. The
solution is x = A-1b.
- [Am#n] The linear equation has
infinitely many exact solutions iff rank([A b]) = rank([A]) <
n.
- The complete set of solutions is x = x0+y
where x0 is any solution and y ranges over the null
space of A.
Least Squares solutions
If there is no exact solution, we can find the x that minimizes
d = ||Ax-b|| = (Ax -
b)H(Ax - b) .
- The x that minimizes d is given by
x=A#b where A# is any
generalized inverse of A.
- Of all the x that attain the minimum d, the one with least
||x|| is given by x=A+b where
A+ is the pseudoinverse of A.
- [rank(Am#n)=n] The unique
x that minimizes d is given by x =
(AHA)-1AHb.
This x gives d =
bH(Im#m-A(AHA)-1AH)b.
- d is zero iff rank([A b]) = n.
- If we include a Hermitian weight matrix, W, the x that minimizes d
= (Ax -
b)HW(Ax - b) is x =
(AHWA)-1AHWb.
If W is taken as the inverse of the error-covariance matrix
of an observation vector, b, then the expression gives the
minimum variance unbiassed estimator of x.
Recursive Least Squares
We can express the least squares solution to the augmented equation
[A; U]y - [b; v] = 0 in terms of the least
squares solution to Ax - b = 0.
[rank(Am#n)=n] The least
squares solution to the is y = x + K(v-Ux)
where x is the least squares solution to Ax-b=0 and
K =
(AHA)-1UH(I+U(AHA)-1UH)-1.
The inverse of the augmented grammian is given by ([A;
U]H[A; U])-1 =
(AHA)-1-KU(AHA)-1.
Thus finding the least squares solution of the augmented equation requires the
inversion of a matrix,
(I+U(AHA)-1UH),
whose dimension equals the number of rows of U instead of the number of
rows of [A; U]. The process is particularly simple if
U has only one row. The computation may be reduced at the expense of
numerical stability by calculating
(AHA)-1UH
as
(U(AHA)-1)H.
The (continuous) Lyapunov equation is AX +
XAH + Q = 0 where Q is hermitian.
This is a special case of the Sylvester
equation.
- There is a unique solution for X iff no eigenvalue of A has a
zero real part and no two eigenvalues are negative complex conjugates of each
other. If this condition is satisfied then the unique X is hermitian.
- If A is stable then X is
unique and Hermitian and equals INTEGRAL(EXP(At)
Q EXP(AHt),t=0..infinity)
- If A is stable and Q is
positive definite (or semi-definite) then X is unique, hermitian
and positive definite (or semi-definite).
The equivalent equation for discrete-time systems is the Stein equation.
The (continuous) Riccati equation is the quadratic equation [A, X, C, D: n#n; C, D: hermitian] XDX + XA +
AHX - C = 0
A Stein equation has the form AXB - X + Q =
0.
- There is a unique solution for X iff
(eig(A)eig(B)T - 1) has no
zero elements, i.e. iff no eigenvalue of A is the reciprocal of an
eigenvalue of B.
- AXB - X + Q = 0 is equivalent to the linear
equation (I-KRON(BT,A))x:
= q: where x: and q: contain the concatenated columns of
X and Q. This is a numerically poor way to determine
X.
- The discrete-time lyapunov equation is a special
case of the Stein equation with B=AH and
Q hermitian.
The Sylvester equation is AX + XB + Q =
0
- There is a unique solution for X iff no eigenvalue of A is the
negative of an eigenvalue of B.
- AX + XB + Q = 0 is equivalent to the linear
equation (KRON(I,
A)+KRON(BT,I))x:
= -q: where x: and q: contain the concatenated columns of
X and Q. This is a numerically poor way to determine
X.
- The lyapunov equation is a special case of the
Sylvester equation with B=AH and Q
hermitian.
This page is part of The Matrix Reference
Manual. Copyright © 1998-2026 Mike Brookes, Imperial
College, London, UK. See the file gfl.html for copying
instructions. Please send any comments or suggestions to "mike.brookes" at
"imperial.ac.uk".
Updated: $Id: equation.html 11291 2021-01-05 18:26:10Z dmb $