Course Introduction and Homework
Study Notes: Permutations, Diffusion, and Eigenvalue Decomposition
Reordering Systems of Equations
Reordering equations or unknowns can make a linear system easier to solve. It is especially important in Gaussian elimination, where an appropriate ordering can improve numerical accuracy or reduce computation and memory requirements.
Why reordering matters
Pivoting reorders rows to choose more suitable pivot elements. This can reduce numerical error during elimination.
Reducing fill-in changes the ordering of equations and unknowns to limit the number of zero entries that become nonzero during elimination. Less fill-in can make a large sparse system practical to solve.
For a very large system, an unfavorable ordering can cause elimination to use far more memory than the original matrix requires.
Reordering is a form of preconditioning: it changes how a problem is represented so that a numerical method can solve it more reliably or efficiently.
Permutation matrices
A permutation matrix is formed by rearranging the rows of an identity matrix. Multiplying by one reorders rows or columns.
For example, the matrix that swaps the first two entries of a vector is
It acts on a vector by swapping its first two components:
Because a vector is a matrix with one column, left multiplication by P also swaps rows of a matrix:
PA reorders the rows of A.
Multiplication on the right reorders columns. In the example above, P=PT, so AP swaps the first two columns. In general, APT implements the column permutation corresponding to the row permutation represented by P.
A permutation matrix is orthogonal (and, more generally, unitary over the complex numbers):
Applying a permutation and then its inverse restores the original ordering.
Applying permutations to a linear system
For a system Ax=b:
Multiplying both sides by a row-permutation matrix reorders the equations:
PAx=Pb.Reordering the unknowns can be represented by introducing a permuted variable vector. Since a permutation is invertible, the original variables can be recovered afterward.
The equations and unknowns can therefore be reordered systematically rather than by informal bookkeeping.
Sparse Matrices and a Diffusion Model
A sparse matrix contains mostly zeros. Many physical models produce sparse matrices because each component interacts directly with only a small number of nearby components.
Diffusion as local transfer
A Plinko board provides a simple model of diffusion. A chip at one position reaches one of two neighboring positions, left or right, with equal probability. If the probability of being in a particular cell is pi, that probability is split between neighboring cells at the next level.
The evolution can be written as
where pi is the vector of probabilities at level i, and A is a sparse transition matrix. In a simple interior model, each cell passes half of its probability to each neighbor, so the matrix has nonzero entries on two diagonals, each equal to 21. Boundary cells require special entries or boundary conditions so that probability is handled appropriately at the edges.
Repeated multiplication,
describes the distribution after many levels or steps. A distribution initially concentrated in one cell spreads out over time. Under suitable conditions, the distribution approaches a more uniform pattern.
Stationary distributions and eigenvectors
A stationary distribution is a probability vector that is unchanged by the transition:
It is therefore an eigenvector of A with eigenvalue 1. In models where the board alternates between two arrangements of cells, the distribution may return to itself only after two steps:
In that case, p is an eigenvector of A2 with eigenvalue 1.
This example links diffusion to eigenvectors: an eigenvector describes a direction or pattern that is preserved by a transformation, except possibly for a change in magnitude. Many physical systems are local in the sense that their evolution depends mainly on neighboring components, which naturally leads to sparse matrices.
Eigenvalues and Eigenvectors
For a square matrix A, an eigenvector is a nonzero vector w whose direction is unchanged when multiplied by A. The multiplication may stretch, shrink, or reverse the vector:
Here:
w is an eigenvector.
λ is its corresponding eigenvalue, the factor by which the vector is scaled.
An eigenvalue can be zero, positive, or negative. A negative eigenvalue reverses the direction as well as changing the magnitude. Eigenvalues and eigenvectors may also be complex, even when A is real.
Eigenvectors are not unique in magnitude
If w is an eigenvector with eigenvalue λ, then any nonzero scalar multiple of it is also an eigenvector with the same eigenvalue:
Thus, an eigenvector specifies a direction (or, for complex vectors, a one-dimensional subspace), not a unique length. The eigenvalue gives the scaling associated with that direction.
Finding Eigenvalues
Starting from
one can move all terms to the left:
For a nonzero eigenvector to exist, A−λI must have a nontrivial null space. Therefore it must be singular, which requires
The expression det(A−λI) is a polynomial in λ of degree N for an N×N matrix. It is called the characteristic polynomial. Its roots are the eigenvalues of A.
For each eigenvalue λ, the corresponding eigenvectors are the nonzero vectors in
Examples
For a diagonal matrix,
the eigenvalues are the diagonal entries: −2, 1, and 3. Each coordinate direction is an eigenvector direction.
The diagonal entries of a triangular matrix are also its eigenvalues. This follows because the determinant of a triangular matrix is the product of its diagonal entries.
Properties of Eigenvalues
For an N×N real matrix:
There are N eigenvalues when counted with algebraic multiplicity, although some may be repeated or complex.
There can be no more than N distinct eigenvalues.
If the matrix is real, any nonreal eigenvalues occur in complex-conjugate pairs.
The determinant equals the product of the eigenvalues:
det(A)=∏i=1Nλi.The trace—the sum of the diagonal entries—equals the sum of the eigenvalues:
tr(A)=∑i=1Nλi.
Eigenvalues of a rate matrix
In a system of chemical reactions, a vector of species concentrations may evolve according to a linear equation such as
where A is a rate matrix. The entries of A, and hence its eigenvalues, have units of inverse time. Eigenvalues describe characteristic rates of evolution.
A zero eigenvalue can represent a steady state: a concentration pattern that is unchanged by the rate matrix. Other eigenvalues describe evolving modes. For example, an eigenvalue involving a rate constant k1 can correspond to the reaction process that converts one species into another at a rate related to k1. Eigenvalues involving several rate constants can describe coupled interconversions among several species.
The eigenvector associated with a zero eigenvalue gives the corresponding steady-state composition. In a reaction system, mass conservation may impose an additional constraint that determines the overall scale of that composition.
Finding Eigenvectors
Once an eigenvalue λ is known, its eigenvectors are found by solving
Gaussian elimination can be applied to this homogeneous system. Because A−λI is singular, elimination cannot produce a pivot in every column. Free variables remain, and those free variables determine the eigenvector or eigenvectors.
Example: a diagonal matrix
For the matrix with diagonal entries −2, 1, and 3:
For λ=−2, the first component of w is free while the other two must be zero. One eigenvector is
100.For λ=1, one eigenvector is
010.For λ=3, one eigenvector is
001.
Each eigenvalue has one independent eigenvector direction. Any nonzero scalar multiple of a listed vector is also valid.
Example: a steady-state eigenvector
For a chemical rate matrix, an eigenvector with eigenvalue zero is found by solving
Elimination expresses some species concentrations in terms of one or more free components. A free component sets the overall scale; it can be chosen for convenience and later fixed using a total-mass or total-concentration constraint. The resulting vector gives the relative composition of the steady state.
Algebraic and Geometric Multiplicity
A repeated eigenvalue can have more than one independent eigenvector, but the number of eigenvectors is not determined by the repetition alone.
Algebraic multiplicity
The algebraic multiplicity of an eigenvalue is the number of times it occurs as a root of the characteristic polynomial. For example, if the characteristic polynomial contains the factor
then λ0 has algebraic multiplicity 2.
Geometric multiplicity
The geometric multiplicity of λ is the dimension of the null space of A−λI:
It is the number of linearly independent eigenvectors associated with that eigenvalue. Geometric multiplicity is at least 1 and cannot exceed algebraic multiplicity.
Repeated-eigenvalue examples
For the zero matrix, every vector satisfies Aw=0. In a two-dimensional space, zero has algebraic multiplicity 2 and geometric multiplicity $2`.
Consider
A=[0010].Its only eigenvalue is zero, with algebraic multiplicity 2. Solving Aw=0 gives only vectors parallel to
[10],so its geometric multiplicity is 1.
A related three-dimensional example can have zero as an eigenvalue with algebraic multiplicity 3 but geometric multiplicity $2`. In such a case, two independent directions are mapped to zero, even though zero is a root of the characteristic polynomial three times.
These examples show why the characteristic polynomial alone does not determine how many independent eigenvectors a matrix has.
Diagonalization and Eigendecomposition
A matrix has a complete set of eigenvectors when its eigenvectors span the full space. An N×N matrix with a complete set can be diagonalized.
Place the eigenvectors in the columns of a matrix W, and place the corresponding eigenvalues on the diagonal of a matrix Λ:
Stacking the eigenvector equations Awi=λiwi gives
If the eigenvectors are linearly independent, W is invertible, and the equation can be rearranged as
This is an eigendecomposition. It represents the action of A as a change of coordinates, independent scaling along eigenvector directions, and a change back to the original coordinates.
A matrix whose geometric multiplicity is smaller than algebraic multiplicity for some eigenvalue may lack a complete set of eigenvectors and cannot be diagonalized in this way.
Using Eigendecomposition to Solve Linear Systems
Suppose A is diagonalizable and the system to solve is
Using A=WΛW−1 gives
Multiplying by W−1 and defining y=W−1x and c=W−1b yields
Because Λ is diagonal, this system separates into independent scalar equations. If every eigenvalue is nonzero, then
The inversion of a diagonal matrix simply takes the reciprocal of each diagonal entry. If an eigenvalue is zero, Λ is singular, and the original system may not have a unique solution; the right-hand side must also be consistent with the system.
An eigendecomposition can be especially useful when many systems with the same matrix A but different right-hand sides must be solved, since the decomposition can be reused.
Symmetric Matrices and Orthogonal Eigenvectors
A real symmetric matrix satisfies
Its eigenvectors can be chosen to be orthogonal. If each eigenvector is also normalized to have Euclidean length 1, the eigenvector matrix W is orthogonal:
The eigendecomposition then becomes
This makes changing between coordinates especially simple. Symmetric matrices occur frequently in applications, so this property is important in both analysis and computation.
Eigendecomposition of Linear Differential Equations
Consider the linear system of ordinary differential equations
If A=WΛW−1 and the new variable is defined by y=W−1x, then
Because Λ is diagonal, each component evolves independently:
Each component has an exponential solution,
Thus, eigenvalues determine the growth or decay rates of the independent modes, while eigenvectors describe the corresponding directions in the original state space. For chemical kinetics, this separates coupled concentration changes into characteristic modes. The same reasoning can help analyze linearized versions of nonlinear systems.
When a Matrix Cannot Be Diagonalized
Some matrices do not have enough independent eigenvectors to form a basis. In that case, diagonalization cannot fully decouple the system.
Other matrix transformations can still simplify the problem:
Jordan normal form gives a nearly diagonal representation, with small blocks that retain the coupling that cannot be eliminated.
Schur decomposition transforms a matrix into an upper-triangular form.
Singular value decomposition provides a different matrix factorization that remains useful when a complete set of eigenvectors is unavailable.
These transformations provide alternatives when eigendecomposition is not possible or is not the most useful representation.
Computing Eigenvalues and Eigenvectors
Computing the characteristic polynomial by hand can explain why eigenvalues satisfy det(A−λI)=0, but it is not generally the preferred computational method for large matrices. Directly finding each eigenvector by a separate Gaussian elimination can require repeated work; for a dense matrix, that approach can reach roughly O(N4) operations.
Numerical software instead uses specialized methods. One family of approaches is based on Krylov subspaces, which are constructed from repeated products of a matrix with selected vectors. The Lanczos algorithm is an example used for suitable matrices. Such iterative methods infer eigenvalue and eigenvector information without independently solving a full system for every eigenvector. For dense matrices, standard eigensolvers generally require on the order of N3 operations to compute a full eigendecomposition.
The key structural requirement remains the same: diagonalization is possible only when the matrix has enough linearly independent eigenvectors to span its space.

Ask anything
We've read this whole study set, so questions about it get the best answers.