Choose an elimination order
A four-vertex star has centre 1, joined only to leaves 2, 3 and 4. Its symmetric positive definite matrix has generic nonzero edge weights. Count newly introduced edges if the centre goes first. Give an ordering avoiding fill and explain why it works.
Worked solution
Eliminating 1 connects each pair of its surviving neighbours. The three unordered pairs are (2,3), (2,4) and (3,4), none previously present. They occupy three new positions in one triangular factor's remaining graph.
In order (2,3,4,1) each eliminated leaf has a single surviving neighbour. There is no pair to connect, so no fill occurs. Positive definiteness ensures diagonal pivots exist without changing this structural ordering.
Explore the related calculation with adjustable inputs. Inspect the effective couplings obtained by eliminating an interior variable. The same substitution generates the Schur operator in the stated constrained system.
Two minimum-residual steps
Take \(A=\left(\begin{smallmatrix}1&2\\0&1\end{smallmatrix}\right)\), \(b=e_2\) and \(x_0=0\). Compute the first GMRES iterate and its residual norm. Show that the second unrestarted step can give zero residual.
Worked solution
Along \(x=\alpha e_2\) the squared residual is \(4\alpha^2+(1-\alpha)^2\). Its derivative is \(10\alpha-2\), so \(x_1=e_2/5\) and \(r_1=(-2/5,4/5)^T\). Its norm is \(2/\sqrt5\).
The directions \(e_2,Ae_2=(2,1)^T\) span the plane. Their combination can realise \(x_\star=(-2,1)^T\); multiplication gives
Thus the second minimum is exactly zero.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.
Does the load matter?
Reuse the preceding matrix with \(b=e_1\). Determine the Krylov dimension and first residual. Generalise your result to loads \((c,0)^T\), and explain the discrepancy with the previous problem.
Worked solution
Now \(Ae_1=e_1\), so every power of \(A\) produces the same direction. Choosing \(x=e_1\) solves the system in one step. For \(c\ne0\), the dimension is one and \(x=ce_1\) already solves it. A zero load has zero initial residual.
The earlier load occupied the generalised eigenvector direction, so \(Ae_2\) added an independent component. Matrix size and eigenvalues agree in both tests, but the minimal polynomial relative to the starting residual changes.
Explore the related calculation with adjustable inputs. Change the parameters in the corresponding calculation and compare its independently recomputed values with the equation derived in this solution.