Initial vector v_0 = (1, 1, 1)/sqrt(3)
Top: lambda_est[k] (red) and lambda_true (gray dashed) / Bottom: log10|lambda_est[k]−lambda_true| (blue). Slope ≈ log10|lambda2/lambda1|
Power iteration is the basic algorithm for finding the dominant eigenvalue (largest in absolute value) and its eigenvector of a matrix $A$ by repeated multiplication.
Basic iteration with normalization. $v_0$ is any starting vector:
$$v_{k+1} = \frac{A\,v_k}{\|A\,v_k\|_2}$$Eigenvalue estimate by the Rayleigh quotient. Accuracy improves as $v_k$ approaches the eigenvector:
$$\lambda_k = \frac{v_k^{\!\top} A\,v_k}{v_k^{\!\top} v_k}$$Convergence rate. The smaller the dominance ratio $r = |\lambda_2/\lambda_1|$, the faster:
$$|\lambda_k - \lambda_1| \;\sim\; r^{\,2k} \quad (\text{for symmetric } A)$$Because this matrix is symmetric, all eigenvalues are real. With the default values the characteristic polynomial $\lambda^3 - 9\lambda^2 + 24\lambda - 18 = 0$ gives $\lambda_1 = 3+\sqrt{3} \approx 4.732$, $\lambda_2 = 3$, $\lambda_3 = 3-\sqrt{3} \approx 1.268$.