Misplaced Pages

Rayleigh quotient

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Construct for Hermitian matrices

In mathematics, the Rayleigh quotient (/ˈreɪ.li/) for a given complex Hermitian matrix M {\displaystyle M} and nonzero vector x {\displaystyle x} is defined as: R ( M , x ) = x M x x x . {\displaystyle R(M,x)={x^{*}Mx \over x^{*}x}.} For real matrices and vectors, the condition of being Hermitian reduces to that of being symmetric, and the conjugate transpose x {\displaystyle x^{*}} to the usual transpose x {\displaystyle x'} . Note that R ( M , c x ) = R ( M , x ) {\displaystyle R(M,cx)=R(M,x)} for any non-zero scalar c {\displaystyle 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 {\displaystyle \lambda _{\min }} (the smallest eigenvalue of M {\displaystyle M} ) when x {\displaystyle x} is v min {\displaystyle v_{\min }} (the corresponding eigenvector). Similarly, R ( M , x ) λ max {\displaystyle R(M,x)\leq \lambda _{\max }} and R ( M , v max ) = λ max {\displaystyle R(M,v_{\max })=\lambda _{\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 {\displaystyle \lambda _{\max }} is known as the spectral radius. In the context of C {\displaystyle C^{\star }} -algebras or algebraic quantum mechanics, the function that to M {\displaystyle M} associates the Rayleigh–Ritz quotient R ( M , x ) {\displaystyle R(M,x)} for a fixed x {\displaystyle x} and M {\displaystyle 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 {\displaystyle M} for a system whose state is given by x {\displaystyle x} .

If we fix the complex matrix M {\displaystyle M} , then the resulting Rayleigh quotient map (considered as a function of x {\displaystyle x} ) completely determines M {\displaystyle M} via the polarization identity; indeed, this remains true even if we allow M {\displaystyle 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 {\displaystyle M} .

Bounds for Hermitian M

As stated in the introduction, for any vector x, one has R ( M , x ) [ λ min , λ max ] {\displaystyle R(M,x)\in \left} , where λ min , λ max {\displaystyle \lambda _{\min },\lambda _{\max }} are respectively the smallest and largest eigenvalues of M {\displaystyle M} . This is immediate after observing that the Rayleigh quotient is a weighted average of eigenvalues of M: R ( M , x ) = x M x x x = i = 1 n λ i y i 2 i = 1 n y i 2 {\displaystyle R(M,x)={x^{*}Mx \over x^{*}x}={\frac {\sum _{i=1}^{n}\lambda _{i}y_{i}^{2}}{\sum _{i=1}^{n}y_{i}^{2}}}} where ( λ i , v i ) {\displaystyle (\lambda _{i},v_{i})} is the i {\displaystyle i} -th eigenpair after orthonormalization and y i = v i x {\displaystyle y_{i}=v_{i}^{*}x} is the i {\displaystyle i} th coordinate of x in the eigenbasis. It is then easy to verify that the bounds are attained at the corresponding eigenvectors v min , v max {\displaystyle v_{\min },v_{\max }} .

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 {\displaystyle \lambda _{\max }=\lambda _{1}\geq \lambda _{2}\geq \cdots \geq \lambda _{n}=\lambda _{\min }} be the eigenvalues in decreasing order. If n = 2 {\displaystyle n=2} and x {\displaystyle x} is constrained to be orthogonal to v 1 {\displaystyle v_{1}} , in which case y 1 = v 1 x = 0 {\displaystyle y_{1}=v_{1}^{*}x=0} , then R ( M , x ) {\displaystyle R(M,x)} has maximum value λ 2 {\displaystyle \lambda _{2}} , which is achieved when x = v 2 {\displaystyle x=v_{2}} .

Special case of covariance matrices

An empirical covariance matrix M {\displaystyle M} can be represented as the product A A {\displaystyle A'A} of the data matrix A {\displaystyle A} pre-multiplied by its transpose A {\displaystyle A'} . Being a positive semi-definite matrix, M {\displaystyle M} has non-negative eigenvalues, and orthogonal (or orthogonalisable) eigenvectors, which can be demonstrated as follows.

Firstly, that the eigenvalues λ i {\displaystyle \lambda _{i}} are non-negative: M v i = A A v i = λ i v i v i A A v i = v i λ i v i A v i 2 = λ i v i 2 λ i = A v i 2 v i 2 0. {\displaystyle {\begin{aligned}&Mv_{i}=A'Av_{i}=\lambda _{i}v_{i}\\\Rightarrow {}&v_{i}'A'Av_{i}=v_{i}'\lambda _{i}v_{i}\\\Rightarrow {}&\left\|Av_{i}\right\|^{2}=\lambda _{i}\left\|v_{i}\right\|^{2}\\\Rightarrow {}&\lambda _{i}={\frac {\left\|Av_{i}\right\|^{2}}{\left\|v_{i}\right\|^{2}}}\geq 0.\end{aligned}}}

Secondly, that the eigenvectors v i {\displaystyle v_{i}} are orthogonal to one another: M v i = λ i v i v j M v i = v j λ i v i ( M v j ) v i = λ j v j v i λ j v j v i = λ i v j v i ( λ j λ i ) v j v i = 0 v j v i = 0 {\displaystyle {\begin{aligned}&Mv_{i}=\lambda _{i}v_{i}\\\Rightarrow {}&v_{j}'Mv_{i}=v_{j}'\lambda _{i}v_{i}\\\Rightarrow {}&\left(Mv_{j}\right)'v_{i}=\lambda _{j}v_{j}'v_{i}\\\Rightarrow {}&\lambda _{j}v_{j}'v_{i}=\lambda _{i}v_{j}'v_{i}\\\Rightarrow {}&\left(\lambda _{j}-\lambda _{i}\right)v_{j}'v_{i}=0\\\Rightarrow {}&v_{j}'v_{i}=0\end{aligned}}} 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 {\displaystyle x} on the basis of the eigenvectors v i {\displaystyle v_{i}} : x = i = 1 n α i v i , {\displaystyle x=\sum _{i=1}^{n}\alpha _{i}v_{i},} where α i = x v i v i v i = x , v i v i 2 {\displaystyle \alpha _{i}={\frac {x'v_{i}}{v_{i}'v_{i}}}={\frac {\langle x,v_{i}\rangle }{\left\|v_{i}\right\|^{2}}}} is the coordinate of x {\displaystyle x} orthogonally projected onto v i {\displaystyle v_{i}} . Therefore, we have: R ( M , x ) = x A A x x x = ( j = 1 n α j v j ) ( A A ) ( i = 1 n α i v i ) ( j = 1 n α j v j ) ( i = 1 n α i v i ) = ( j = 1 n α j v j ) ( i = 1 n α i ( A A ) v i ) ( i = 1 n α i 2 v i v i ) = ( j = 1 n α j v j ) ( i = 1 n α i λ i v i ) ( i = 1 n α i 2 v i 2 ) {\displaystyle {\begin{aligned}R(M,x)&={\frac {x'A'Ax}{x'x}}\\&={\frac {{\Bigl (}\sum _{j=1}^{n}\alpha _{j}v_{j}{\Bigr )}'\left(A'A\right){\Bigl (}\sum _{i=1}^{n}\alpha _{i}v_{i}{\Bigr )}}{{\Bigl (}\sum _{j=1}^{n}\alpha _{j}v_{j}{\Bigr )}'{\Bigl (}\sum _{i=1}^{n}\alpha _{i}v_{i}{\Bigr )}}}\\&={\frac {{\Bigl (}\sum _{j=1}^{n}\alpha _{j}v_{j}{\Bigr )}'{\Bigl (}\sum _{i=1}^{n}\alpha _{i}(A'A)v_{i}{\Bigr )}}{{\Bigl (}\sum _{i=1}^{n}\alpha _{i}^{2}{v_{i}}'{v_{i}}{\Bigr )}}}\\&={\frac {{\Bigl (}\sum _{j=1}^{n}\alpha _{j}v_{j}{\Bigr )}'{\Bigl (}\sum _{i=1}^{n}\alpha _{i}\lambda _{i}v_{i}{\Bigr )}}{{\Bigl (}\sum _{i=1}^{n}\alpha _{i}^{2}\|{v_{i}}\|^{2}{\Bigr )}}}\end{aligned}}} which, by orthonormality of the eigenvectors, becomes: R ( M , x ) = i = 1 n α i 2 λ i i = 1 n α i 2 = i = 1 n λ i ( x v i ) 2 ( x x ) ( v i v i ) 2 = i = 1 n λ i ( x v i ) 2 ( x x ) {\displaystyle {\begin{aligned}R(M,x)&={\frac {\sum _{i=1}^{n}\alpha _{i}^{2}\lambda _{i}}{\sum _{i=1}^{n}\alpha _{i}^{2}}}\\&=\sum _{i=1}^{n}\lambda _{i}{\frac {(x'v_{i})^{2}}{(x'x)(v_{i}'v_{i})^{2}}}\\&=\sum _{i=1}^{n}\lambda _{i}{\frac {(x'v_{i})^{2}}{(x'x)}}\end{aligned}}}

The last representation establishes that the Rayleigh quotient is the sum of the squared cosines of the angles formed by the vector x {\displaystyle x} and each eigenvector v i {\displaystyle v_{i}} , weighted by corresponding eigenvalues.

If a vector x {\displaystyle x} maximizes R ( M , x ) {\displaystyle R(M,x)} , then any non-zero scalar multiple k x {\displaystyle kx} also maximizes R {\displaystyle R} , so the problem can be reduced to the Lagrange problem of maximizing i = 1 n α i 2 λ i {\textstyle \sum _{i=1}^{n}\alpha _{i}^{2}\lambda _{i}} under the constraint that i = 1 n α i 2 = 1 {\textstyle \sum _{i=1}^{n}\alpha _{i}^{2}=1} .

Define: β i = α i 2 {\displaystyle \beta _{i}=\alpha _{i}^{2}} . 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 {\displaystyle \alpha _{1}=\pm 1} and α i = 0 {\displaystyle \alpha _{i}=0} for all i > 1 {\displaystyle 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 x c x {\displaystyle x\to cx} , where c {\displaystyle c} is a scalar R ( M , c x ) = ( c x ) M c x ( c x ) c x = c c c c x M x x x = R ( M , x ) . {\displaystyle R(M,cx)={\frac {(cx)^{*}Mcx}{(cx)^{*}cx}}={\frac {c^{*}c}{c^{*}c}}{\frac {x^{*}Mx}{x^{*}x}}=R(M,x).}

Because of this invariance, it is sufficient to study the special case x 2 = x T x = 1 {\displaystyle \|x\|^{2}=x^{T}x=1} . The problem is then to find the critical points of the function R ( M , x ) = x T M x , {\displaystyle R(M,x)=x^{\mathsf {T}}Mx,} subject to the constraint x 2 = x T x = 1. {\displaystyle \|x\|^{2}=x^{T}x=1.} In other words, it is to find the critical points of L ( x ) = x T M x λ ( x T x 1 ) , {\displaystyle {\mathcal {L}}(x)=x^{\mathsf {T}}Mx-\lambda \left(x^{\mathsf {T}}x-1\right),} where λ {\displaystyle \lambda } is a Lagrange multiplier. The stationary points of L ( x ) {\displaystyle {\mathcal {L}}(x)} occur at d L ( x ) d x = 0 2 x T M 2 λ x T = 0 2 M x 2 λ x = 0  (taking the transpose of both sides and noting that  M  is Hermitian) M x = λ x {\displaystyle {\begin{aligned}&{\frac {d{\mathcal {L}}(x)}{dx}}=0\\\Rightarrow {}&2x^{\mathsf {T}}M-2\lambda x^{\mathsf {T}}=0\\\Rightarrow {}&2Mx-2\lambda x=0{\text{ (taking the transpose of both sides and noting that }}M{\text{ is Hermitian)}}\\\Rightarrow {}&Mx=\lambda x\end{aligned}}} and R ( M , x ) = x T M x x T x = λ x T x x T x = λ . {\displaystyle \therefore R(M,x)={\frac {x^{\mathsf {T}}Mx}{x^{\mathsf {T}}x}}=\lambda {\frac {x^{\mathsf {T}}x}{x^{\mathsf {T}}x}}=\lambda .}

Therefore, the eigenvectors x 1 , , x n {\displaystyle x_{1},\ldots ,x_{n}} of M {\displaystyle M} are the critical points of the Rayleigh quotient and their corresponding eigenvalues λ 1 , , λ n {\displaystyle \lambda _{1},\ldots ,\lambda _{n}} are the stationary values of L {\displaystyle {\mathcal {L}}} . 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 ) = 1 w ( x ) ( d d x [ p ( x ) d y d x ] + q ( x ) y ) {\displaystyle L(y)={\frac {1}{w(x)}}\left(-{\frac {d}{dx}}\left+q(x)y\right)} on the inner product space defined by y 1 , y 2 = a b w ( x ) y 1 ( x ) y 2 ( x ) d x {\displaystyle \langle {y_{1},y_{2}}\rangle =\int _{a}^{b}w(x)y_{1}(x)y_{2}(x)\,dx} of functions satisfying some specified boundary conditions at a and b. In this case the Rayleigh quotient is y , L y y , y = a b y ( x ) ( d d x [ p ( x ) d y d x ] + q ( x ) y ( x ) ) d x a b w ( x ) y ( x ) 2 d x . {\displaystyle {\frac {\langle {y,Ly}\rangle }{\langle {y,y}\rangle }}={\frac {\int _{a}^{b}y(x)\left(-{\frac {d}{dx}}\left+q(x)y(x)\right)dx}{\int _{a}^{b}{w(x)y(x)^{2}}dx}}.}

This is sometimes presented in an equivalent form, obtained by separating the integral in the numerator and using integration by parts: y , L y y , y = { a b y ( x ) ( d d x [ p ( x ) y ( x ) ] ) d x } + { a b q ( x ) y ( x ) 2 d x } a b w ( x ) y ( x ) 2 d x = { y ( x ) [ p ( x ) y ( x ) ] | a b } + { a b y ( x ) [ p ( x ) y ( x ) ] d x } + { a b q ( x ) y ( x ) 2 d x } a b w ( x ) y ( x ) 2 d x = { p ( x ) y ( x ) y ( x ) | a b } + { a b [ p ( x ) y ( x ) 2 + q ( x ) y ( x ) 2 ] d x } a b w ( x ) y ( x ) 2 d x . {\displaystyle {\begin{aligned}{\frac {\langle {y,Ly}\rangle }{\langle {y,y}\rangle }}&={\frac {\left\{\int _{a}^{b}y(x)\left(-{\frac {d}{dx}}\left\right)dx\right\}+\left\{\int _{a}^{b}{q(x)y(x)^{2}}\,dx\right\}}{\int _{a}^{b}{w(x)y(x)^{2}}\,dx}}\\&={\frac {\left\{\left.-y(x)\left\right|_{a}^{b}\right\}+\left\{\int _{a}^{b}y'(x)\left\,dx\right\}+\left\{\int _{a}^{b}{q(x)y(x)^{2}}\,dx\right\}}{\int _{a}^{b}w(x)y(x)^{2}\,dx}}\\&={\frac {\left\{\left.-p(x)y(x)y'(x)\right|_{a}^{b}\right\}+\left\{\int _{a}^{b}\left\,dx\right\}}{\int _{a}^{b}{w(x)y(x)^{2}}\,dx}}.\end{aligned}}}

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 A x x B x . {\displaystyle R(A,B;x):={\frac {x^{*}Ax}{x^{*}Bx}}.} The generalized Rayleigh quotient can be reduced to the Rayleigh Quotient R ( D , C x ) {\displaystyle R(D,C^{*}x)} through the transformation D = C 1 A C 1 {\displaystyle D=C^{-1}A{C^{*}}^{-1}} where C C {\displaystyle 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 H x y y x x {\displaystyle R(H;x,y):={\frac {y^{*}Hx}{\sqrt {y^{*}y\cdot x^{*}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

Category: