{"id":236,"date":"2026-11-13T12:35:29","date_gmt":"2026-11-13T04:35:29","guid":{"rendered":"https:\/\/hoho.live\/luda\/index.php\/2026\/11\/13\/how-power-iteration-extracts-a-dominant-eigenvalue\/"},"modified":"2026-11-13T21:53:24","modified_gmt":"2026-11-13T13:53:24","slug":"how-power-iteration-extracts-a-dominant-eigenvalue","status":"publish","type":"post","link":"https:\/\/hoho.live\/luda\/index.php\/2026\/11\/13\/how-power-iteration-extracts-a-dominant-eigenvalue\/","title":{"rendered":"How power iteration extracts a dominant eigenvalue"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Short answer:<\/strong> <strong>Power iteration<\/strong> estimates the dominant eigenvector of a matrix by repeating x \u2190 Ax and normalizing. If one eigenvalue is strictly larger in magnitude than the others, the direction of x converges to that eigenvector and the Rayleigh quotient converges to the eigenvalue. The error shrinks by about <strong>|\u03bb\u2082\/\u03bb\u2081|<\/strong> each step. A tie for the largest magnitude, or a start that is orthogonal to the dominant eigenvector, breaks the argument. PageRank is this iteration on a damped link matrix.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>What the problem actually asks<\/strong><\/h4>\n\n<p class=\"wp-block-paragraph\">The definition Av = \u03bbv is a polynomial system. For one extreme eigenpair the power method uses only matrix-vector products. Each multiplication amplifies the component along the largest eigenvalue more than the others, so after normalization that component dominates. The Rayleigh quotient x\u00b7Ax \/ x\u00b7x reads the eigenvalue off the current vector without a separate solve.<\/p>\n\n\n<p class=\"wp-block-paragraph\">The method does not find the full spectrum. Subspace iteration and QR algorithms do that. A shift-and-invert variant finds an eigenvalue near a chosen shift and is a different algorithm that needs a linear solve.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>What the algorithm guarantees<\/strong><\/h4>\n\n<p class=\"wp-block-paragraph\">Under a unique dominant eigenvalue and a start that has a nonzero component along its eigenvector, the angle to that eigenvector falls geometrically with ratio |\u03bb\u2082\/\u03bb\u2081|. Time is one matrix-vector product per iteration. Extra memory is the vector. The sign of x is arbitrary. Convergence is slow when the top two magnitudes are close, which is a property of the matrix, not a bug in the normalization.<\/p>\n\n\n<p class=\"wp-block-paragraph\">A stochastic matrix for PageRank is damped by a teleport probability so the dominant eigenvalue is simple and the ratio is bounded away from 1. Undamped PageRank on a general graph can have a dominant eigenvalue that is not unique in the way the plain iteration wants.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>The working steps<\/strong><\/h4>\n\n<ol class=\"wp-block-list\">\n<li>Start with a nonzero vector x, not orthogonal to the target eigenvector. A random start is the usual choice.<\/li>\n<li>Replace x by Ax, then divide x by its norm. A maximum-norm scaling also works and avoids a square root.<\/li>\n<li>The Rayleigh quotient x\u00b7Ax \/ x\u00b7x estimates the eigenvalue. For a nonnegative PageRank vector, the one-norm is the usual scale so the entries sum to 1.<\/li>\n<li>Stop when successive vectors, compared up to sign, differ by less than a tolerance.<\/li>\n<li>If the top magnitudes are close, expect many iterations. A shift or a different algorithm is the remedy, not more of the same ratio.<\/li>\n<\/ol>\n\n\n<p class=\"wp-block-paragraph\">The geometric ratio requires a spectral gap. The method finds one extreme eigenpair. It is not a proof of the full set of eigenvalues. PageRank is a damped application. Without the damping the iteration may not match the theorem the caller has in mind.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>Approaches that look simpler and fail<\/strong><\/h4>\n\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Approach<\/th>\n<th>Why it fails when the two largest magnitudes are equal<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Expect convergence with no spectral gap<\/td>\n<td>The error factor is the ratio of magnitudes. A ratio of 1 does not shrink the unwanted component.<\/td>\n<\/tr>\n<tr>\n<td>Start at a vector orthogonal to the dominant eigenvector<\/td>\n<td>Multiplication never creates that component in exact arithmetic. The iteration lives in the remaining invariant subspace.<\/td>\n<\/tr>\n<tr>\n<td>Read an arbitrary entry of Ax as the eigenvalue<\/td>\n<td>The scale of x is reset every step. The Rayleigh quotient, or a known normalization such as the PageRank sum, is the readout.<\/td>\n<\/tr>\n<tr>\n<td>Use the undamped web matrix and cite the PageRank gap<\/td>\n<td>The teleport term is what creates the convenient gap. The bare link matrix of a general graph need not have it.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n\n<p class=\"wp-block-paragraph\">A full spectrum is a QR algorithm or a library eigensolver. A damped ranking iteration is PageRank. Power iteration is the repeated multiplication that isolates a dominant eigenpair.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>A working example<\/strong><\/h4>\n\n<p class=\"wp-block-paragraph\">This Python fragment repeatedly multiplies by the matrix and normalizes. The matrix [[2, 1], [1, 2]] has dominant eigenvalue 3 and eigenvector along (1, 1). It prints the Rayleigh quotient rounded to <code>3.00<\/code>.<\/p>\n\n<pre><code class=\"language-python\">vec = [1.0, 0.0]\nA = [[2.0, 1.0], [1.0, 2.0]]\nfor _ in range(20):\n    nxt = [A[i][0] * vec[0] + A[i][1] * vec[1] for i in range(2)]\n    norm = sum(v * v for v in nxt) ** 0.5\n    vec = [v \/ norm for v in nxt]\nrayleigh = sum(vec[i] * (A[i][0] * vec[0] + A[i][1] * vec[1]) for i in range(2))\nassert abs(rayleigh - 3) &lt; 1e-6\nprint(f&quot;{rayleigh:.2f}&quot;)\n<\/code><\/pre>\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>Where it is used<\/strong><\/h4>\n\n<p class=\"wp-block-paragraph\">Power iteration extracts the dominant eigenvector of a large sparse matrix. <strong>PageRank<\/strong> is that iteration on the damped link matrix. A symmetric matrix whose whole spectrum is required uses a different solver.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>When you can drop this algorithm<\/strong><\/h4>\n\n<p class=\"wp-block-paragraph\">Drop plain power iteration when the desired eigenvalue is not the largest in magnitude or the gap is tiny. Use a shift-and-invert method or a library solver. Keep it for a dominant pair with a real gap, including damped PageRank.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<h4 class=\"wp-block-heading\"><strong>Why this stays published<\/strong><\/h4>\n\n<p class=\"wp-block-paragraph\">We publish this so a search for power iteration returns the normalize-and-multiply loop and the spectral-gap ratio that sets its speed. <strong>Power iteration converges to the dominant eigenvector by repeated multiplication and normalization, at a rate set by the ratio of the two largest eigenvalue magnitudes.<\/strong><\/p>\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u7531 HoHo \u8207 AI \u5354\u4f5c\u6574\u7406\uff0c\u6700\u5f8c\u66f4\u65b0\u65bc 2026 \u5e74 11 \u6708 13 \u65e5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Short answer: Power iteration estimates the dominant eigenvector of a matrix by repeating x \u2190 Ax and normalizing. If one eigenvalue is strictly larger in magnitude than the others, the direction of x converges to that eigenvector and the Rayleigh quotient converges to the eigenvalue. The error shrinks by&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,45],"tags":[],"class_list":["post-236","post","type-post","status-publish","format-standard","hentry","category-algorithms","category-numerical"],"_links":{"self":[{"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":2,"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/posts\/236\/revisions"}],"predecessor-version":[{"id":635,"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/posts\/236\/revisions\/635"}],"wp:attachment":[{"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/categories?post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoho.live\/luda\/index.php\/wp-json\/wp\/v2\/tags?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}