Algorithm Search⌘K

Proofs: Rayleigh quotient iteration

These are the human proofs of Rayleigh quotient iteration, at full length.

Rayleigh quotient iteration has a small backward error, monotone residuals and local cubic convergence for Hermitian matrices full

This proof shows: correctness, termination.

Exact arithmetic, except in Lemma 1, which holds for every pair the method returns. Notation of the page: xkx_k is the unit vector after kk executions of line L8 (x0x_0 from line L1), ρk=xk∗Axk\rho_k = x_k^* A x_k, rk=Axk−ρkxkr_k = A x_k - \rho_k x_k, and yky_k is the solution computed in line L7 from xkx_k, so xk+1=yk/∥yk∥2x_{k+1} = y_k / \|y_k\|_2. We assume that A−ρkIA - \rho_k I is nonsingular whenever line L7 is executed; the zero pivot rule of line L7 is a floating-point device and is not needed for the statements below.

Lemma 1 (backward error). If line L5 returns (ρ,x)(\rho, x), then (A−rx∗)x=ρx(A - r x^*) x = \rho x with ∥rx∗∥2=∥r∥2≤tol ∥A∥F\|r x^*\|_2 = \|r\|_2 \le \mathrm{tol} \, \|A\|_F. If AA is Hermitian, then also (A+E)x=ρx(A + E) x = \rho x for the Hermitian E=−(rx∗+xr∗)E = -(r x^* + x r^*) with ∥E∥2=∥r∥2\|E\|_2 = \|r\|_2, and some eigenvalue λ\lambda of AA satisfies ∣λ−ρ∣≤∥r∥2|\lambda - \rho| \le \|r\|_2.

Proof. (A−rx∗)x=Ax−r=ρx(A - r x^*) x = A x - r = \rho x because x∗x=1x^* x = 1, and the rank-one matrix rx∗r x^* has 2-norm ∥r∥2∥x∥2\|r\|_2 \|x\|_2. If AA is Hermitian, ρ\rho is real and x∗r=x∗Ax−ρ=0x^* r = x^* A x - \rho = 0. Then (A+E)x=Ax−r−x(r∗x)=ρx(A + E) x = A x - r - x (r^* x) = \rho x. If r=0r = 0 the claim is trivial; otherwise EE acts on the orthonormal pair x,r/∥r∥x, r / \|r\| by the matrix −∥r∥(0110)-\|r\| \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} and is zero on their orthogonal complement, so ∥E∥2=∥r∥2\|E\|_2 = \|r\|_2. By Weyl's inequality the eigenvalues of AA and of A+EA + E, both sorted, differ by at most ∥E∥2\|E\|_2, and ρ\rho is one of the eigenvalues of A+EA + E. □\square

Lemma 2 (one step of inverse iteration). Let AA be Hermitian with orthonormal eigenvectors viv_i, fix jj, and let σ\sigma be real and not an eigenvalue. Let xx be a unit vector with vj∗x≠0v_j^* x \ne 0 and θ=∠(x,vj)\theta = \angle(x, v_j), and let θ′=∠((A−σI)−1x,vj)\theta' = \angle\bigl((A - \sigma I)^{-1} x, v_j\bigr). Then

tan⁡θ′≤tan⁡θ ∣λj−σ∣min⁡i≠j∣λi−σ∣.\tan\theta' \le \tan\theta \, \frac{|\lambda_j - \sigma|}{\min_{i \ne j} |\lambda_i - \sigma|}.

Proof. Write x=∑icivix = \sum_i c_i v_i. Then (A−σI)−1x=∑ici(λi−σ)−1vi(A - \sigma I)^{-1} x = \sum_i c_i (\lambda_i - \sigma)^{-1} v_i, and

tan⁡θ′=(∑i≠j∣ci∣2∣λi−σ∣−2)1/2∣cj∣ ∣λj−σ∣−1≤∣λj−σ∣min⁡i≠j∣λi−σ∣⋅(∑i≠j∣ci∣2)1/2∣cj∣.\tan\theta' = \frac{\bigl(\sum_{i \ne j} |c_i|^2 |\lambda_i - \sigma|^{-2}\bigr)^{1/2}}{|c_j| \, |\lambda_j - \sigma|^{-1}} \le \frac{|\lambda_j - \sigma|}{\min_{i \ne j}|\lambda_i - \sigma|} \cdot \frac{\bigl(\sum_{i \ne j} |c_i|^2\bigr)^{1/2}}{|c_j|}.

The last factor is tan⁡θ\tan\theta. □\square

Lemma 3 (the Rayleigh quotient error). For Hermitian AA and a unit xx with θ=∠(x,vj)\theta = \angle(x, v_j), ∣ρ(x)−λj∣≤δsin⁡2θ|\rho(x) - \lambda_j| \le \delta \sin^2\theta and ∥Ax−ρ(x)x∥2≤δsin⁡θ\|A x - \rho(x) x\|_2 \le \delta \sin\theta, where δ=λmax⁡−λmin⁡\delta = \lambda_{\max} - \lambda_{\min}.

Proof. Write x=ϕcos⁡θ vj+sin⁡θ wx = \phi \cos\theta \, v_j + \sin\theta \, w with ∣ϕ∣=1|\phi| = 1 and a unit w⊥vjw \perp v_j. Since Avj=λjvjA v_j = \lambda_j v_j and w⊥vjw \perp v_j, the cross terms vj∗Aw=λjvj∗wv_j^* A w = \lambda_j v_j^* w vanish, so ρ(x)=cos⁡2θ λj+sin⁡2θ ρ(w)\rho(x) = \cos^2\theta \, \lambda_j + \sin^2\theta \, \rho(w) and ρ(x)−λj=sin⁡2θ (ρ(w)−λj)\rho(x) - \lambda_j = \sin^2\theta \, (\rho(w) - \lambda_j). Both ρ(w)\rho(w) and λj\lambda_j lie in [λmin⁡,λmax⁡][\lambda_{\min}, \lambda_{\max}], which gives the first bound. For the second, ρ(x)\rho(x) minimizes ∥Ax−μx∥2\|A x - \mu x\|_2 over μ\mu, so ∥Ax−ρ(x)x∥≤∥(A−λjI)x∥=sin⁡θ ∥(A−λjI)w∥≤δsin⁡θ\|A x - \rho(x) x\| \le \|(A - \lambda_j I) x\| = \sin\theta \, \|(A - \lambda_j I) w\| \le \delta \sin\theta, because ww lies in the span of the viv_i with i≠ji \ne j and ∣λi−λj∣≤δ|\lambda_i - \lambda_j| \le \delta. □\square

Theorem 1 (local cubic convergence). Let AA be Hermitian, let λj\lambda_j be a simple eigenvalue with gapj=min⁡i≠j∣λi−λj∣>0\mathrm{gap}_j = \min_{i \ne j} |\lambda_i - \lambda_j| > 0, let c=2δ/gapjc = 2 \delta / \mathrm{gap}_j, and suppose ctan⁡2θ0<1c \tan^2\theta_0 < 1, where θ0=∠(x0,vj)\theta_0 = \angle(x_0, v_j). Then for every kk at which the method has not stopped,

tan⁡θk+1≤ctan⁡3θkandtan⁡θk+1≤tan⁡θk,\tan\theta_{k+1} \le c \tan^3\theta_k \quad\text{and}\quad \tan\theta_{k+1} \le \tan\theta_k,

so θk→0\theta_k \to 0, and the order of convergence is at least 3.

Proof. We show by induction that ctan⁡2θk≤ctan⁡2θ0<1c \tan^2\theta_k \le c \tan^2\theta_0 < 1. This holds for k=0k = 0. Assume it for kk. Then δsin⁡2θk≤δtan⁡2θk<gapj/2\delta \sin^2\theta_k \le \delta \tan^2\theta_k < \mathrm{gap}_j / 2, so by Lemma 3 ∣ρk−λj∣<gapj/2|\rho_k - \lambda_j| < \mathrm{gap}_j / 2, and for i≠ji \ne j

∣λi−ρk∣≥∣λi−λj∣−∣λj−ρk∣≥gapj−δsin⁡2θk>gapj/2.|\lambda_i - \rho_k| \ge |\lambda_i - \lambda_j| - |\lambda_j - \rho_k| \ge \mathrm{gap}_j - \delta \sin^2\theta_k > \mathrm{gap}_j / 2 .

If ρk=λj\rho_k = \lambda_j, then ρ(w)=λj\rho(w) = \lambda_j in the notation of Lemma 3; the method then either has rk=0r_k = 0 and stops, or meets a singular system, which we excluded. Otherwise Lemma 2 with σ=ρk\sigma = \rho_k applies (note vj∗xk≠0v_j^* x_k \ne 0 because tan⁡θk<∞\tan\theta_k < \infty), and with Lemma 3

tan⁡θk+1≤tan⁡θk⋅δsin⁡2θkgapj/2≤ctan⁡3θk.\tan\theta_{k+1} \le \tan\theta_k \cdot \frac{\delta \sin^2\theta_k}{\mathrm{gap}_j / 2} \le c \tan^3\theta_k .

Since ctan⁡2θk<1c \tan^2\theta_k < 1, this is at most tan⁡θk\tan\theta_k, and the induction hypothesis passes to k+1k + 1. Finally tan⁡θk≤(ctan⁡2θ0)(3k−1)/2tan⁡θ0\tan\theta_{k} \le (c \tan^2\theta_0)^{(3^k - 1)/2} \tan\theta_0 by induction from tan⁡θk+1≤(ctan⁡2θk)tan⁡θk\tan\theta_{k+1} \le (c \tan^2\theta_k) \tan\theta_k, which tends to 00. □\square

Theorem 2 (monotone residuals). Let AA be Hermitian. For every start and every kk at which line L7 is executed, ∥rk+1∥2≤∥rk∥2\|r_{k+1}\|_2 \le \|r_k\|_2.

Proof. Let y=yky = y_k, so (A−ρkI)y=xk(A - \rho_k I) y = x_k and (A−ρkI)xk+1=xk/∥y∥2(A - \rho_k I) x_{k+1} = x_k / \|y\|_2. Since ρk+1\rho_{k+1} minimizes ∥Axk+1−μxk+1∥\|A x_{k+1} - \mu x_{k+1}\| over μ\mu,

∥rk+1∥2≤∥(A−ρkI)xk+1∥2=1∥y∥2.\|r_{k+1}\|_2 \le \|(A - \rho_k I) x_{k+1}\|_2 = \frac{1}{\|y\|_2}.

On the other hand, since A−ρkIA - \rho_k I is Hermitian, xk+1∗(A−ρkI)xk=((A−ρkI)xk+1)∗xk=xk∗xk/∥y∥2=1/∥y∥2x_{k+1}^* (A - \rho_k I) x_k = \bigl((A - \rho_k I) x_{k+1}\bigr)^* x_k = x_k^* x_k / \|y\|_2 = 1/\|y\|_2. By the Cauchy-Schwarz inequality, 1/∥y∥2≤∥xk+1∥2 ∥(A−ρkI)xk∥2=∥rk∥21/\|y\|_2 \le \|x_{k+1}\|_2 \, \|(A - \rho_k I) x_k\|_2 = \|r_k\|_2. □\square

Theorem 3 (termination). Under the hypotheses of Theorem 1 and for every tol>0\mathrm{tol} > 0, line L5 returns CONVERGED after finitely many steps if maxit\mathrm{maxit} is large enough.

Proof. By Lemma 3 and Theorem 1, ∥rk∥2≤δsin⁡θk≤δtan⁡θk→0\|r_k\|_2 \le \delta \sin\theta_k \le \delta \tan\theta_k \to 0. If A≠0A \ne 0, then tol ∥A∥F>0\mathrm{tol} \, \|A\|_F > 0 and the test of line L5 passes for some finite kk. If A=0A = 0, then r0=0r_0 = 0 and the test passes at k=0k = 0. □\square

Remark (the rate is sharp, and it degrades without symmetry). For A=diag⁡(λ1,λ2)A = \operatorname{diag}(\lambda_1, \lambda_2) and xk=(cos⁡θ,sin⁡θ)Tx_k = (\cos\theta, \sin\theta)^T, ρk−λ1=(λ2−λ1)sin⁡2θ\rho_k - \lambda_1 = (\lambda_2 - \lambda_1) \sin^2\theta, λ2−ρk=(λ2−λ1)cos⁡2θ\lambda_2 - \rho_k = (\lambda_2 - \lambda_1) \cos^2\theta, and (A−ρkI)−1xk(A - \rho_k I)^{-1} x_k is a multiple of (−cos⁡θ/sin⁡2θ, sin⁡θ/cos⁡2θ)T(-\cos\theta / \sin^2\theta, \ \sin\theta / \cos^2\theta)^T, so tan⁡θk+1=−tan⁡3θk\tan\theta_{k+1} = -\tan^3\theta_k: equality, with constant 1, as the table of the page shows. For a nonnormal AA the identity ρ(x)−λj=sin⁡2θ (ρ(w)−λj)\rho(x) - \lambda_j = \sin^2\theta \, (\rho(w) - \lambda_j) fails, because the cross term vj∗Awv_j^* A w need not vanish; then ∣ρk−λj∣=O(sin⁡θk)|\rho_k - \lambda_j| = O(\sin\theta_k) only, and Lemma 2 (in its diagonalizable form) gives order 2. ■\blacksquare

Back to Rayleigh quotient iteration