Rayleigh quotient

From The Right Wiki
(Redirected from Rayleigh's quotient)
Jump to navigationJump to search

In mathematics, the Rayleigh quotient[1] (/ˈr.li/) for a given complex Hermitian matrix M and nonzero vector x is defined as:[2][3]R(M,x)=x*Mxx*x.For real matrices and vectors, the condition of being Hermitian reduces to that of being symmetric, and the conjugate transpose x* to the usual transpose x. Note that R(M,cx)=R(M,x) for any non-zero scalar c. Recall that a Hermitian (or real symmetric) matrix is diagonalizable with only real eigenvalues. It can be shown that, for a given matrix, the Rayleigh quotient reaches its minimum value λmin (the smallest eigenvalue of M) when x is vmin (the corresponding eigenvector).[4] Similarly, R(M,x)λmax and R(M,vmax)=λmax. The Rayleigh quotient is used in the min-max theorem to get exact values of all eigenvalues. It is also used in eigenvalue algorithms (such as Rayleigh quotient iteration) to obtain an eigenvalue approximation from an eigenvector approximation. The range of the Rayleigh quotient (for any matrix, not necessarily Hermitian) is called a numerical range and contains its spectrum. When the matrix is Hermitian, the numerical radius is equal to the spectral norm. Still in functional analysis, λmax is known as the spectral radius. In the context of C-algebras or algebraic quantum mechanics, the function that to M associates the Rayleigh–Ritz quotient R(M,x) for a fixed x and M varying through the algebra would be referred to as vector state of the algebra. In quantum mechanics, the Rayleigh quotient gives the expectation value of the observable corresponding to the operator M for a system whose state is given by x. If we fix the complex matrix M, then the resulting Rayleigh quotient map (considered as a function of x) completely determines M via the polarization identity; indeed, this remains true even if we allow M to be non-Hermitian. However, if we restrict the field of scalars to the real numbers, then the Rayleigh quotient only determines the symmetric part of M.

Bounds for Hermitian M

As stated in the introduction, for any vector x, one has R(M,x)[λmin,λmax], where λmin,λmax are respectively the smallest and largest eigenvalues of M. This is immediate after observing that the Rayleigh quotient is a weighted average of eigenvalues of M: R(M,x)=x*Mxx*x=i=1nλiyi2i=1nyi2 where (λi,vi) is the i-th eigenpair after orthonormalization and yi=vi*x is the ith coordinate of x in the eigenbasis. It is then easy to verify that the bounds are attained at the corresponding eigenvectors vmin,vmax. The fact that the quotient is a weighted average of the eigenvalues can be used to identify the second, the third, ... largest eigenvalues. Let λmax=λ1λ2λn=λmin be the eigenvalues in decreasing order. If n=2 and x is constrained to be orthogonal to v1, in which case y1=v1*x=0, then R(M,x) has maximum value λ2, which is achieved when x=v2.

Special case of covariance matrices

An empirical covariance matrix M can be represented as the product AA of the data matrix A pre-multiplied by its transpose A. Being a positive semi-definite matrix, M has non-negative eigenvalues, and orthogonal (or orthogonalisable) eigenvectors, which can be demonstrated as follows. Firstly, that the eigenvalues λi are non-negative: Mvi=AAvi=λiviviAAvi=viλiviAvi2=λivi2λi=Avi2vi20. Secondly, that the eigenvectors vi are orthogonal to one another: Mvi=λivivjMvi=vjλivi(Mvj)vi=λjvjviλjvjvi=λivjvi(λjλi)vjvi=0vjvi=0 if the eigenvalues are different – in the case of multiplicity, the basis can be orthogonalized. To now establish that the Rayleigh quotient is maximized by the eigenvector with the largest eigenvalue, consider decomposing an arbitrary vector x on the basis of the eigenvectors vi: x=i=1nαivi, where αi=xvivivi=x,vivi2 is the coordinate of x orthogonally projected onto vi. Therefore, we have: R(M,x)=xAAxxx=(j=1nαjvj)(AA)(i=1nαivi)(j=1nαjvj)(i=1nαivi)=(j=1nαjvj)(i=1nαi(AA)vi)(i=1nαi2vivi)=(j=1nαjvj)(i=1nαiλivi)(i=1nαi2vi2) which, by orthonormality of the eigenvectors, becomes: R(M,x)=i=1nαi2λii=1nαi2=i=1nλi(xvi)2(xx)(vivi)2=i=1nλi(xvi)2(xx) The last representation establishes that the Rayleigh quotient is the sum of the squared cosines of the angles formed by the vector x and each eigenvector vi, weighted by corresponding eigenvalues. If a vector x maximizes R(M,x), then any non-zero scalar multiple kx also maximizes R, so the problem can be reduced to the Lagrange problem of maximizing i=1nαi2λi under the constraint that i=1nαi2=1. Define: βi=αi2. This then becomes a linear program, which always attains its maximum at one of the corners of the domain. A maximum point will have α1=±1 and αi=0 for all i>1 (when the eigenvalues are ordered by decreasing magnitude). Thus, the Rayleigh quotient is maximized by the eigenvector with the largest eigenvalue.

Formulation using Lagrange multipliers

Alternatively, this result can be arrived at by the method of Lagrange multipliers. The first part is to show that the quotient is constant under scaling xcx, where c is a scalar R(M,cx)=(cx)*Mcx(cx)*cx=c*cc*cx*Mxx*x=R(M,x). Because of this invariance, it is sufficient to study the special case x2=xTx=1. The problem is then to find the critical points of the function R(M,x)=xTMx, subject to the constraint x2=xTx=1. In other words, it is to find the critical points of (x)=xTMxλ(xTx1), where λ is a Lagrange multiplier. The stationary points of (x) occur at d(x)dx=02xTM2λxT=02Mx2λx=0 (taking the transpose of both sides and noting that M is Hermitian)Mx=λx and R(M,x)=xTMxxTx=λxTxxTx=λ. Therefore, the eigenvectors x1,,xn of M are the critical points of the Rayleigh quotient and their corresponding eigenvalues λ1,,λn are the stationary values of . This property is the basis for principal components analysis and canonical correlation.

Use in Sturm–Liouville theory

Sturm–Liouville theory concerns the action of the linear operator L(y)=1w(x)(ddx[p(x)dydx]+q(x)y) on the inner product space defined by y1,y2=abw(x)y1(x)y2(x)dx of functions satisfying some specified boundary conditions at a and b. In this case the Rayleigh quotient is y,Lyy,y=aby(x)(ddx[p(x)dydx]+q(x)y(x))dxabw(x)y(x)2dx. This is sometimes presented in an equivalent form, obtained by separating the integral in the numerator and using integration by parts: y,Lyy,y={aby(x)(ddx[p(x)y(x)])dx}+{abq(x)y(x)2dx}abw(x)y(x)2dx={y(x)[p(x)y(x)]|ab}+{aby(x)[p(x)y(x)]dx}+{abq(x)y(x)2dx}abw(x)y(x)2dx={p(x)y(x)y(x)|ab}+{ab[p(x)y(x)2+q(x)y(x)2]dx}abw(x)y(x)2dx.

Generalizations

  1. For a given pair (A, B) of matrices, and a given non-zero vector x, the generalized Rayleigh quotient is defined as: R(A,B;x):=x*Axx*Bx. The generalized Rayleigh quotient can be reduced to the Rayleigh Quotient R(D,C*x) through the transformation D=C1AC*1 where CC* is the Cholesky decomposition of the Hermitian positive-definite matrix B.
  2. For a given pair (x, y) of non-zero vectors, and a given Hermitian matrix H, the generalized Rayleigh quotient can be defined as: R(H;x,y):=y*Hxy*yx*x which coincides with R(H,x) when x = y. In quantum mechanics, this quantity is called a "matrix element" or sometimes a "transition amplitude".

See also

References

  1. Also known as the Rayleigh–Ritz ratio; named after Walther Ritz and Lord Rayleigh.
  2. Horn, R. A.; Johnson, C. A. (1985). Matrix Analysis. Cambridge University Press. pp. 176–180. ISBN 0-521-30586-1.
  3. Parlett, B. N. (1998). The Symmetric Eigenvalue Problem. Classics in Applied Mathematics. SIAM. ISBN 0-89871-402-8.
  4. Costin, Rodica D. (2013). "Midterm notes" (PDF). Mathematics 5102 Linear Mathematics in Infinite Dimensions, lecture notes. The Ohio State University.

Further reading