Ångström method worked example 2026-10-18
Consider an original stipulated model, not measured material data: thermal diffusivity , period , driven temperature amplitude , and thermometers at and . Without side losses, and thermal penetration depth . ThusThe two no-loss estimates and the combined estimate all return .
Now retain the same thermal diffusivity and drive but introduce . The exact complex wavenumber gives and , henceUsing attenuation alone with the no-loss formula would give ; using lag alone would give . Their disagreement is informative. If an independent volumetric heat capacity measurement gives , the combined estimate implies thermal conductivity and .
The exact complex amplitudes can be checked independently by discretizing and solving the resulting linear system with a tridiagonal matrix. Halving the spatial step quarters the discrepancy, as expected for centered finite differences. Separately fitting the real time traces to a constant plus sine and cosine terms recovers both amplitudes and their lag; this also checks the sign convention used in the combined estimate.
Band matrix Created 2026-10-31 Updated 2026-11-05
A band matrix has nonzero entries confined to a band around its main diagonal. The nonnegative integers in the displayed condition are its lower and upper bandwidths. A tridiagonal matrix has . Storing only the band reduces memory use; banded Gaussian elimination can exploit the same structure when the pivoting assumptions permit it.
Block matrix inverse Created 2026-09-24 Updated 2026-10-18
A block matrix inverse expresses the matrix inverse in terms of smaller matrices. Partition a square matrix over a field asIf is an invertible matrix, define its Schur complement . Then is an invertible matrix exactly when is an invertible matrix, andThe order of the matrix products matters. In particular, the lower-right block is , rather than generally : the coupling through and changes the response.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. Appendix A.5.5, printed p. 650: inverse of a symmetric block matrix; §C.4.1, printed p. 673: elimination for general blocks
For an original example, takeThe Schur complement is . Substitution gives the concise answerMultiplying in either order gives the identity matrix; the lower-right entry is , whereas . The difference records the feedback through the two eliminated variables.
Often the desired output is a solution of a linear system, rather than every entry of a matrix inverse. Block elimination solves with and then with , recovering the eliminated variables by back substitution. Reusing an LU decomposition of avoids explicitly forming . A favourable block diagonal matrix or tridiagonal matrix block can make this useful; merely partitioning an unstructured dense matrix does not guarantee a faster solve.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §C.4.1, printed pp. 672–675: Algorithm C.4, factor-solve interpretation and dense complexity comparison
Block tridiagonal matrix Created 2026-10-03 Updated 2026-11-05
Consider the original small Poisson equation exampleIts exact solution is the quadratic polynomial . Use a uniform mesh with and three interior unknowns . The finite difference method replaces the negative second derivative byMultiplying by and moving the prescribed Dirichlet boundary conditions to the right givesThe endpoint values contribute and to the first and last equations; they are not additional unknowns. The Thomas algorithm givesand back substitution yieldsAll three values equal exactly: the centered finite difference for the second derivative is exact on a quadratic polynomial. This special nodal exactness does not assert exactness for arbitrary forcing or for the piecewise-linear curve joining the nodes.
Exact quadratic Dirichlet Poisson solution and the three interior values recovered by tridiagonal elimination
. Details. For any interior points with , the scaled tridiagonal matrix has and . Its pivot elements are : start at and use . All are positive. Interior rows have equality in diagonal dominance, so strict diagonal dominance is not the reason this example works. Instead it is a symmetric positive-definite matrix, since for a real vector with ,Zero would force every neighbouring value equal and hence all values zero. This connects the boundary constraints directly to the safe pivots for tridiagonal elimination.
For the Jacobi iteration for a three-variable tridiagonal system,An orthonormal eigenbasis iswith eigenvalues , , and , respectively. These are error modes: their shapes persist under the iteration matrix, while their coefficients change. Direct multiplication verifies them, or expansion of the determinant gives . Thus and convergence holds for every starting vector.
With , the initial forward error has coefficientsFor ,The zero mode disappears after one sweep; the negative mode alternates in sign. The Euclidean norm drops by exactly per sweep from onward. The first norm drop is different because includes the zero mode. A starting error proportional to would disappear entirely in one sweep, faster than the spectral radius predicts for generic errors.
Computed Jacobi method error curves and eigenvector modes for the original three-variable tridiagonal matrix
. Details. The curves are computed iterates and exact formulas for this linear system. Since , the same eigenvectors have eigenvalues , , and for . They prove that is a positive-definite matrix, and give the condition number used in residual and forward error in a stationary iteration.
Finite element solution of the one-dimensional Poisson equation Created 2026-10-14 Updated 2026-10-31
Consider the Poisson equation on an interval with homogeneous Dirichlet boundary conditions:Two integrations and the endpoint conditions give the exact solution . To approximate it, multiply by a test function that vanishes at both endpoints. Integration by parts givesThe boundary term is zero. Thus the weak formulation is to find such thatThe zero-trace Sobolev space consists of square-integrable functions with square-integrable weak derivatives and zero endpoint values in their continuous representatives; it does not require a classical second derivative. This is why continuous piecewise linear functions are admissible despite corners. The Poincaré inequality makes a coercive bilinear form on . Strang derives this one-dimensional weak formulation, the piecewise-linear hat functions, and their load and derivative-product integrals in the cited lecture; its endpoint example uses a free left endpoint, while both endpoints here are fixed.[ref]
https://ocw.mit.edu/courses/18-085-computational-science-and-engineering-i-fall-2008/676ba0a00eef45a6cb3823c4da61ee11_18-085F08-L18.pdf. Strang, MIT 18.085, Lecture 18, transcript pp. 2–8: weak form, hat basis, and assembly
Take the uniform finite element mesh , , with . The continuous trial space isHere means polynomials of degree at most one on each interval. This is a conforming finite element space in , with interior piecewise-linear hat functions as a basis. Their endpoint values enforce the Dirichlet boundary conditions automatically. Set and test the weak formulation against each :Each interior hat has two slopes and , each over a length . Its squared derivative therefore integrates to . Adjacent hats have opposite slopes on their one shared interval, giving . All other derivative products vanish. The stiffness matrix is the tridiagonal matrixThe load is the area of a triangle of base and height one, including hats next to the boundary. Boundary hats are omitted because the boundary values are prescribed. The piecewise-linear hat function article explains how the same entries arise by adding local two-node contributions.
With four mesh intervals, , there are three unknowns:For example, the first row gives and the middle gives . The coefficients are the nodal values . At , linear interpolation gives , whereas : exactness at the nodes still leaves a visible error between them.
In this model the Galerkin method solution equals the nodal approximation obtained by linear interpolation on any finite element mesh. Indeed, on each interval , is the average of and is constant. Therefore . Summing proves Galerkin orthogonality for , and uniqueness gives . This argument relies on the constant diffusion coefficient, conformity and exact integration; nodal exactness is not a general promise for finite element methods with other operators or integration rules.
On a uniform mesh, direct subtraction of the chord from the parabola gives, on every element of length ,The largest value error is at an element midpoint. Its size and the energy norm error are exactlyThus gives and . With eight elements, , these become and . Halving the mesh spacing quarters the maximum value error but only halves the energy norm error: values and slopes converge at different rates. The figure shows the small value error at its own scale, where the four-to-one reduction becomes clear.
Householder bidiagonalization Created 2026-10-31 Updated 2026-11-05
Alternating right and left Householder transformations reduce a real square matrix to a bidiagonal matrix. For a lower-bidiagonal result, first clear row beyond column using a right transformation on trailing columns. Then clear column below row using a left transformation on trailing rows. Previously completed rows and columns are preserved. Since is a symmetric tridiagonal matrix, its eigenvalues are the squares of the singular values of . This explains the reduction structurally; explicitly forming is unnecessary and can worsen numerical conditioning.
Householder tridiagonalization Created 2026-09-24 Updated 2026-11-05
Householder tridiagonalization reduces a real symmetric matrix by an orthogonal similarity to a real symmetric tridiagonal matrix :At column , a Householder reflection on coordinates eliminates entries below row . Apply the same reflection from the right, preserving symmetry. Since entries below the first subdiagonal become zero, symmetry also makes entries above the first superdiagonal zero. Earlier zeros are preserved by the restricted active coordinates.
The eigenvalues are unchanged by the similarity transformation; an eigenvector of gives the eigenvector of . Dense reduction costs arithmetic operations once, after which each structured QR algorithm step on the tridiagonal form is much cheaper than a new dense factorization. This is why eigensolvers separate reduction from iterative refinement of eigenvalues.
A strictly diagonally dominant matrix guarantees convergence of the Jacobi method for every initial vector.[ref]
Notes for Ma221 Lecture 21, Nov 10 2009. Math 221, Matrix Computations, Fall 2009; Theorem 1 on strict row diagonal dominance and its proof beginning “Split A = D − (D − A)”
Indeed, using the maximum norm , the induced operator norm is the largest absolute row sum. The Jacobi method has and for , soThis gives a cheap sufficient check without computing any eigenvalues. For the Jacobi iteration for a three-variable tridiagonal system, the absolute row sums of are , giving . The true spectral radius gives a sharper eventual rate.
Strict diagonal dominance is sufficient, not necessary: violates it in the first row, but its Jacobi method has eigenvalues and converges. Conversely, being a positive-definite matrix alone is insufficient: the Jacobi convergence for a three-by-three equicorrelation matrix with has positive eigenvalues for , but spectral radius for its iteration matrix. The extra tridiagonal matrix structure in Jacobi convergence for a symmetric positive-definite tridiagonal matrix is therefore substantive.
Consider the original linear system with a symmetric matrix that is also a tridiagonal matrix:Here and the Jacobi method readsStarting from , the first three vectors areEvery right-hand side uses superscript , including the middle row, even when a new first coordinate has already been computed.
Simultaneous old-to-new component updates in the Jacobi method, compared with immediate reuse in the Gauss-Seidel method
. Details. For comparison, a first Gauss-Seidel method sweep in coordinate order givesThe new first coordinate enters the middle update, and the new second coordinate enters the final update. Accidentally overwriting old coordinates during a Jacobi method sweep therefore changes the mathematical method.
Jacobi matrix Created 2026-09-24 Updated 2026-11-05
A Jacobi matrix is a real symmetric tridiagonal matrix with positive off-diagonal entries. Its diagonal entries and off-diagonal entries encode the three-term recurrence of orthonormal polynomials:where and the term is omitted. In the orthonormal polynomial basis this is the matrix of multiplication by , truncated to finitely many basis vectors. Positivity of excludes a reducible split into independent blocks.[ref]
The determinant of the leading -by- block satisfies , with . Thus its eigenvalues are the zeros of orthogonal polynomials of degree . For unit weight on , the first two normalized polynomials give , whose eigenvalues are the two-node Gaussian quadrature nodes.
Lanczos algorithm 2026-10-25
For a real symmetric matrix , the leading block of the Arnoldi decomposition is both symmetric and an upper Hessenberg matrix, hence a tridiagonal matrix. The resulting three-term recurrence is the Lanczos algorithm. If is a symmetric positive-definite matrix, its compression is too, since for nonzero .
LU decomposition of an upper Hessenberg matrix Created 2026-10-31 Updated 2026-11-05
When Gaussian elimination without row interchanges is defined, an upper Hessenberg matrix needs at most one elimination per pivot column, because only its first subdiagonal can be nonzero. The LU decomposition has a unit lower bidiagonal matrix and an upper triangular matrix . If the input matrix is also symmetric, it is a tridiagonal matrix and is upper bidiagonal.
The nonzero-pivot condition is essential: is upper Hessenberg and invertible but has no such unpivoted LU decomposition. A pivoted factorization can still be computed, with its permutations recorded explicitly.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 69 5 b Solution Created 2026-10-03 Updated 2026-10-20
The sine vectors , , simultaneously diagonalize these two symmetric tridiagonal matrices. Their eigenvalues areThus the semidiscrete decay rates are . The forward Euler method multiplies each mode by . Stability requires for every mode.
For a fixed finite Dirichlet grid the largest mode is . Consequently the exact finite-grid bound isAs the mesh is refined, the upper bound decreases to . Hence the mesh-independent answer is . This is the forward Euler limit for a consistent hat mass matrix. The frequently seen diffusion bound belongs to the standard second-difference scheme or a lumped mass matrix, and is not the bound for the consistent Galerkin equations derived here.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 67 5 b Solution Created 2026-10-03 Updated 2026-10-14
The B-spline collocation matrix in the cubic case is the finite tridiagonal matrixFor , this is simply the one-entry matrix .
To evaluate the inverse norm exactly, let . Then , where has ones immediately above and below the diagonal and zeros elsewhere. Since , the convergent Neumann serieshas nonnegative entries and proves invertibility. Since , its absolute entries equal those of . The absolute row sums are therefore the entries of .
The equation becomesIts constant particular solution is ; the two characteristic roots of the homogeneous recurrence are and . Imposing the two boundary values givesThis can also be checked by direct substitution, since . The numerator is smallest at the central index or central pair of indices: its successive difference is . Thus, with , the exact inverse norm of midpoint cubic spline collocation isEquivalently, if the fraction is , and if it is . The finite norm is not exactly three: it equals for , two for , and tends to three as grows. Hence three is the sharp dimension-independent bound for these inverse matrix norms.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 341 5 iii Solution Created 2026-10-03 Updated 2026-10-06
Put and . The interior piecewise-linear hat functions areThey are a basis of the continuous piecewise-affine functions vanishing at both endpoints. The support of a function for each hat only overlaps those of neighbouring hats, so the stiffness matrix is a tridiagonal matrix. Direct integration gives the derivative contribution on the diagonal and on adjacent diagonals.
For the potential contribution, symmetry about gives . On the overlap of and , their product is symmetric about , and its integral is . This is the affine-weighted hat mass matrix calculation. Consequently,and all other entries vanish. The exact right-hand side isThus, with , the requested scalar equations areAt the endpoints the coefficient multiplying the zero boundary value is simply omitted. Since , its point values are not even well defined; replacing by would require an additional quadrature rule convention and regularity hypothesis, not present here. The exact Ritz method uses the displayed integrals. The finite element interpolation estimate and Céa lemma, using , give an energy norm error; the Aubin–Nitsche duality argument gives in the L2 norm on this interval.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 216 3 b i Solution Created 2026-10-03 Updated 2026-10-05
Use the printed parameterization , , and . Let , be the design matrix with rows , and . Conditional on and the parameters, contributes no extra dependence on by conditional independence.
The stationary autoregressive normal distribution has prior density proportional toIts Gaussian autoregressive conditional precision is the tridiagonal matrix withCombining this prior with and completing the square givesThe precision matrix is positive definite. Compute its lower Cholesky decomposition , solve , draw , and solve . Then return . This Gaussian sampling from a precision Cholesky factor is exact because . Tridiagonal structure gives linear cost in and preserves the conditional correlation between days. Notice that the solve uses , not .
These conditionals are normalized for every fixed positive , despite the joint posterior impropriety explained in part (a). If the intended model uses instead, replace the observation coefficient by throughout; the information and precision terms then use and .
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 341 3 b Solution Created 2026-10-03 Updated 2026-10-05
Let be the tridiagonal matrix with diagonal two and adjacent entries minus one, incorporating zero Dirichlet boundary conditions. The actual PDF scheme isAn orthonormal basis of eigenvectors of has components , and substitution givesThey form an orthonormal basis by the spectral theorem for real symmetric matrices. Hence is invertible for every , and the amplification eigenvalues are . For the discrete L2 norm ,This bound has constant one independent of time step and mesh, which is the required stability of a numerical method. Therefore every positive Courant number is stable. If a forcing or local-defect sequence is added, the discrete variation-of-constants formula gives a bound by the initial norm plus the sum of those perturbation norms; this also justifies the global error conclusion in part (a).
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 341 4 b Solution Created 2026-10-03 Updated 2026-10-05
Arrange the interior values into a vector . Represent the five-point Dirichlet Laplacian as a Kronecker sum , where is the tridiagonal matrix with diagonal and adjacent entries one. This Kronecker sum is real symmetric; the real sampled potential has a real diagonal matrix . ThusThe generator is a skew-Hermitian matrix. ConsequentlyThe matrix exponential is a unitary matrix, either by differentiating its product with its adjoint or by unitary diagonalization of a normal matrix. For the two-dimensional discrete L2 norm , this givesApplying the same equation to a difference proves stability of a numerical method with a mesh-independent constant one. This is norm conservation of a semidiscrete Schrödinger equation. It concerns continuous time after spatial discretization; an arbitrary subsequent time integrator need not preserve this stability.
The printed coordinates do not discretize the stated square. For with interior points in each direction, use , , , and sample there. The printed and unshifted coordinates instead describe a grid on . The matrix proof is valid for either geometry with its corresponding boundary values, so this transcription-independent statement flaw does not alter the stability conclusion.





