Introduction to Linear Algebra

Systems of Linear Equations and Economic Models

A fundamental motivation for studying systems of linear equations arises in modeling interdependent economic sectors, known as the Leontief Input-Output closed model. In a simplified national economy divided into five primary sectors—agriculture, construction, energy, manufacturing, and services—each industry requires commodities produced by other industries to sustain operations. This interdependence is quantified by the percentage of production consumed by each sector.

Specifically, the consumption dependencies are structured such that:

  • Agriculture consumes 10%10\% of agriculture, 20%20\% of construction, 20%20\% of energy, 10%10\% of manufacturing, and 10%10\% of services.
  • Construction consumes 20%20\% of agriculture, 20%20\% of construction, 30%30\% of energy, 20%20\% of manufacturing, and 20%20\% of services.
  • Energy consumes 20%20\% of agriculture, 20%20\% of construction, 10%10\% of energy, 10%10\% of manufacturing, and 10%10\% of services.
  • Manufacturing consumes 30%30\% of agriculture, 20%20\% of construction, 20%20\% of energy, 20%20\% of manufacturing, and 30%30\% of services.
  • Services consume 20%20\% of agriculture, 20%20\% of construction, 20%20\% of energy, 40%40\% of manufacturing, and 30%30\% of services.

Assuming the economy is in equilibrium such that total output equates to total internal demand, the equilibrium output prices p1,p2,p3,p4,p5p_1, p_2, p_3, p_4, p_5 for each respective industry must satisfy the linear system:

{p1=0.1p1+0.2p2+0.2p3+0.1p4+0.1p5p2=0.2p1+0.2p2+0.3p3+0.2p4+0.2p5p3=0.2p1+0.2p2+0.1p3+0.1p4+0.1p5p4=0.3p1+0.2p2+0.2p3+0.2p4+0.3p5p5=0.2p1+0.2p2+0.2p3+0.4p4+0.3p5\begin{cases} p_1 = 0.1p_1 + 0.2p_2 + 0.2p_3 + 0.1p_4 + 0.1p_5 \\ p_2 = 0.2p_1 + 0.2p_2 + 0.3p_3 + 0.2p_4 + 0.2p_5 \\ p_3 = 0.2p_1 + 0.2p_2 + 0.1p_3 + 0.1p_4 + 0.1p_5 \\ p_4 = 0.3p_1 + 0.2p_2 + 0.2p_3 + 0.2p_4 + 0.3p_5 \\ p_5 = 0.2p_1 + 0.2p_2 + 0.2p_3 + 0.4p_4 + 0.3p_5 \end{cases}

Formally, a linear equation in nn variables x1,…,xnx_1, \dots, x_n is an expression of the form a1x1+a2x2+⋯+anxn=ba_1 x_1 + a_2 x_2 + \dots + a_n x_n = b, where a1,…,an,b∈Ra_1, \dots, a_n, b \in \mathbb{R}. A system of linear equations consists of a finite collection of mm such equations across nn unknowns:

{a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2⋮am1x1+am2x2+⋯+amnxn=bm\begin{cases} a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n = b_1 \\ a_{21}x_1 + a_{22}x_2 + \dots + a_{2n}x_n = b_2 \\ \vdots \\ a_{m1}x_1 + a_{m2}x_2 + \dots + a_{mn}x_n = b_m \end{cases}

A solution to such a system is a tuple (x1,…,xn)(x_1, \dots, x_n) satisfying every equation simultaneously. The system is classified as consistent if it possesses at least one solution, and inconsistent if no solution exists. While real coefficients are the standard focus, the entire theory generalizes without modification to systems over the complex field C\mathbb{C}.

The consistency and solution count of linear systems exhibit three distinct behaviors:

  • The system x1+x2=2x_1 + x_2 = 2 and x1−x2=0x_1 - x_2 = 0 is consistent with a unique solution (x1,x2)=(1,1)(x_1, x_2) = (1, 1).
  • The system x1+x2=2x_1 + x_2 = 2 and 2x1+2x2=42x_1 + 2x_2 = 4 is consistent with infinitely many solutions, parameterized by (x,2−x)(x, 2 - x) for any x∈Rx \in \mathbb{R}, because the second equation is a direct multiple of the first.
  • The system x1+x2=2x_1 + x_2 = 2 and 3x1+3x2=73x_1 + 3x_2 = 7 is inconsistent, as the first equation implies 3x1+3x2=63x_1 + 3x_2 = 6, which directly contradicts 3x1+3x2=73x_1 + 3x_2 = 7.
  • The system x1+x2=2x_1 + x_2 = 2, x1−x2=0x_1 - x_2 = 0, and 3x1+2x2=43x_1 + 2x_2 = 4 is inconsistent, since the unique solution to the first two equations, (1,1)(1, 1), yields 3(1)+2(1)=5≠43(1) + 2(1) = 5 \neq 4.

Gaussian Elimination and Matrix Systems

A system of mm linear equations is in upper triangular form if, for every 2≤i≤m2 \le i \le m, the ii-th equation does not contain the unknowns x1,…,xi−1x_1, \dots, x_{i-1}. Such systems are solved directly by back-substitution starting from the bottom equation. For instance, the system x1+x3=5x_1 + x_3 = 5, x2+2x3=4x_2 + 2x_3 = 4, and 3x3=33x_3 = 3 yields x3=1x_3 = 1 directly from the third equation, followed by x2=4−2(1)=2x_2 = 4 - 2(1) = 2 from the second, and x1=5−(1)=4x_1 = 5 - (1) = 4 from the first, delivering the unique solution tuple (4,2,1)(4, 2, 1).

To represent and manipulate systems systematically, an m×nm \times n matrix AA with real coefficients is defined as a rectangular array of real numbers comprising mm rows and nn columns, denoted A∈Mm,n(R)A \in M_{m,n}(\mathbb{R}) (or Mn(R)M_n(\mathbb{R}) if m=nm = n). The (i,j)(i, j)-entry is denoted aija_{ij}. The coefficient matrix and augmented matrix associated with an m×nm \times n linear system are given by:

A=(a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn),[A∣b⃗]=(a11a12…a1nb1a21a22…a2nb2⋮⋮⋱⋮⋮am1am2…amnbm)A = \begin{pmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} \end{pmatrix}, \quad [A \mid \vec{b}] = \begin{pmatrix} a_{11} & a_{12} & \dots & a_{1n} & b_1 \\ a_{21} & a_{22} & \dots & a_{2n} & b_2 \\ \vdots & \vdots & \ddots & \vdots & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} & b_m \end{pmatrix}

The solution set of a linear system is invariant under the following elementary row operations:

  • Row-switching: Ri↔RjR_i \leftrightarrow R_j.
  • Row-multiplying: Ri→aRiR_i \rightarrow a R_i with scalar a≠0a \neq 0.
  • Row-addition: Ri→Ri+aRjR_i \rightarrow R_i + a R_j for j≠ij \neq i and scalar a∈Ra \in \mathbb{R}.

The Gaussian elimination algorithm systematically reduces any augmented matrix to an upper triangular or row echelon form:

  1. Placing the pivot: Identify the leftmost non-zero column jj. Select a row containing a non-zero entry in this column, interchange it to the top active row position, and label this non-zero entry the pivot and its row RpR_p.
  2. Killing off coefficients below the pivot: For each row RiR_i located below the pivot row, replace RiR_i with a linear combination aRi+bRpa R_i + b R_p (with a≠0a \neq 0) chosen such that the entry in column jj becomes zero.
  3. Induction step: Freeze the current pivot row and repeat steps 1 and 2 on the submatrix formed by the remaining lower rows. Terminate when only one row remains or all columns in the remaining submatrix are zero.

An augmented matrix is in row echelon form if the first non-zero entry in any row (the pivot) appears strictly to the right of the pivots of all preceding rows. All entirely zero rows reside at the bottom. For example, the following matrices are in row echelon form:

(153−1200230000−11),(314200000000),(103104020039)\begin{pmatrix} 1 & 5 & 3 & -1 & 2 \\ 0 & 0 & 2 & 3 & 0 \\ 0 & 0 & 0 & -1 & 1 \end{pmatrix}, \quad \begin{pmatrix} 3 & 1 & 4 & 2 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{pmatrix}, \quad \begin{pmatrix} 1 & 0 & 3 & 1 \\ 0 & 4 & 0 & 2 \\ 0 & 0 & 3 & 9 \end{pmatrix}

Conversely, matrices such as the following are not in row echelon form:

(153−110130001),(184200010010)\begin{pmatrix} 1 & 5 & 3 & -1 \\ 1 & 0 & 1 & 3 \\ 0 & 0 & 0 & 1 \end{pmatrix}, \quad \begin{pmatrix} 1 & 8 & 4 & 2 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{pmatrix}

Applying Gaussian elimination to the system x1+2x2+x3=1x_1 + 2x_2 + x_3 = 1, x1+3x2+4x3=3x_1 + 3x_2 + 4x_3 = 3, and 2x1+5x2+6x3=52x_1 + 5x_2 + 6x_3 = 5 proceeds via row operations:

(121113432565)→R3→R3−2R1R2→R2−R1(121101320143)→R3→R3−R2(121101320011)\begin{pmatrix} 1 & 2 & 1 & 1 \\ 1 & 3 & 4 & 3 \\ 2 & 5 & 6 & 5 \end{pmatrix} \xrightarrow[R_3 \rightarrow R_3 - 2R_1]{R_2 \rightarrow R_2 - R_1} \begin{pmatrix} 1 & 2 & 1 & 1 \\ 0 & 1 & 3 & 2 \\ 0 & 1 & 4 & 3 \end{pmatrix} \xrightarrow{R_3 \rightarrow R_3 - R_2} \begin{pmatrix} 1 & 2 & 1 & 1 \\ 0 & 1 & 3 & 2 \\ 0 & 0 & 1 & 1 \end{pmatrix}

Back-substitution reveals x3=1x_3 = 1, x2=2−3(1)=−1x_2 = 2 - 3(1) = -1, and x1=1−2(−1)−1=2x_1 = 1 - 2(-1) - 1 = 2, yielding the unique solution (2,−1,1)(2, -1, 1).

Solution Structure and Homogeneous Systems

A system of linear equations possesses either zero, exactly one, or infinitely many solutions. A system is consistent if and only if the row echelon form of its augmented matrix contains no contradiction row of the form (0…0∣α)(0 \dots 0 \mid \alpha) where α≠0\alpha \neq 0. A consistent system has a unique solution if every column of the coefficient matrix contains a pivot, and infinitely many solutions if at least one column lacks a pivot.

Variables corresponding to columns containing a pivot are pivot variables; all other variables are free variables. To construct the general solution of a consistent system:

  1. Transform the augmented matrix to row echelon form via Gaussian elimination.
  2. Assign arbitrary real parameters α,β,γ,⋯∈R\alpha, \beta, \gamma, \dots \in \mathbb{R} to each free variable.
  3. Solve for the pivot variables in terms of the free variables via back-substitution from bottom to top.

For example, consider an augmented matrix already in row echelon form:

(15323003480000000000)\begin{pmatrix} 1 & 5 & 3 & 2 & 3 \\ 0 & 0 & 3 & 4 & 8 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{pmatrix}

Here, x1x_1 and x3x_3 are pivot variables, while x2x_2 and x4x_4 are free variables. Setting x4=αx_4 = \alpha and x2=βx_2 = \beta, back-substitution yields 3x3+4α=8  ⟹  x3=13(8−4α)3x_3 + 4\alpha = 8 \implies x_3 = \frac{1}{3}(8 - 4\alpha), and x1+5β+3(13(8−4α))+2α=3  ⟹  x1=−5+2α−5βx_1 + 5\beta + 3\left(\frac{1}{3}(8 - 4\alpha)\right) + 2\alpha = 3 \implies x_1 = -5 + 2\alpha - 5\beta. The general solution tuple is {(−5+2α−5β,β,13(8−4α),α)∣α,β∈R}\{(-5 + 2\alpha - 5\beta, \beta, \frac{1}{3}(8 - 4\alpha), \alpha) \mid \alpha, \beta \in \mathbb{R}\}. Specific choices produce explicit solutions, such as (−7,0,4,−1)(-7, 0, 4, -1) for (α,β)=(−1,0)(\alpha, \beta) = (-1, 0), and (−6,1,0,2)(-6, 1, 0, 2) for (α,β)=(2,1)(\alpha, \beta) = (2, 1).

A system of linear equations (E)(E) is homogeneous if b1=⋯=bm=0b_1 = \dots = b_m = 0; otherwise it is inhomogeneous. The homogeneous system associated with (E)(E) is denoted (E0)(E_0). Every homogeneous system is consistent because it always admits the trivial solution x1=⋯=xn=0x_1 = \dots = x_n = 0. Any homogeneous system with more unknowns than equations (m<nm < n) must have infinitely many solutions. This follows because Gaussian elimination on an m×(n+1)m \times (n+1) augmented matrix yields at most k≤m<nk \le m < n pivot rows, guaranteeing at least n−k>0n - k > 0 free variables. For instance, the system x+y+z=0x + y + z = 0 and x+2y+3z=0x + 2y + 3z = 0 contains two equations in three variables, immediately guaranteeing infinitely many solutions.

Vectors in Real Euclidean Space

A vector in R2\mathbb{R}^2 represents an arrow characterized by magnitude and direction, independent of any fixed initial point in the plane. Identifying vectors with points by placing their tails at the origin 0⃗=(0,0)T\vec{0} = (0, 0)^T, any vector v⃗∈R2\vec{v} \in \mathbb{R}^2 is uniquely specified by its horizontal displacement v1v_1 and vertical displacement v2v_2, written as a 2×12 \times 1 column matrix v⃗=(v1v2)=(v1,v2)T\vec{v} = \begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = (v_1, v_2)^T.

Geometric operations on vectors including addition and scalar multiplication

In general, the Euclidean space Rn\mathbb{R}^n is the set of all n×1n \times 1 column matrices with real entries:

Rn={(x1⋮xn)  |  xi∈R,  i=1,…,n}\mathbb{R}^n = \left\{ \begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} \;\middle|\; x_i \in \mathbb{R}, \; i = 1, \dots, n \right\}

Vector addition and scalar multiplication in Rn\mathbb{R}^n operate entrywise:

(x1⋮xn)+(y1⋮yn):=(x1+y1⋮xn+yn),λ(x1⋮xn):=(λx1⋮λxn)\begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} + \begin{pmatrix} y_1 \\ \vdots \\ y_n \end{pmatrix} := \begin{pmatrix} x_1 + y_1 \\ \vdots \\ x_n + y_n \end{pmatrix}, \quad \lambda \begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} := \begin{pmatrix} \lambda x_1 \\ \vdots \\ \lambda x_n \end{pmatrix}

A linear combination of vectors v⃗1,…,v⃗k∈Rn\vec{v}_1, \dots, \vec{v}_k \in \mathbb{R}^n is any vector of the form λ1v⃗1+⋯+λkv⃗k\lambda_1 \vec{v}_1 + \dots + \lambda_k \vec{v}_k for scalars λ1,…,λk∈R\lambda_1, \dots, \lambda_k \in \mathbb{R}. For example, (13)=3(12)−(23)\begin{pmatrix} 1 \\ 3 \end{pmatrix} = 3\begin{pmatrix} 1 \\ 2 \end{pmatrix} - \begin{pmatrix} 2 \\ 3 \end{pmatrix}, showing that (13)\begin{pmatrix} 1 \\ 3 \end{pmatrix} is a linear combination of (12)\begin{pmatrix} 1 \\ 2 \end{pmatrix} and (23)\begin{pmatrix} 2 \\ 3 \end{pmatrix}.

The standard basis vectors of Rn\mathbb{R}^n are defined by e⃗1=(1,0,…,0)T\vec{e}_1 = (1, 0, \dots, 0)^T, e⃗2=(0,1,…,0)T\vec{e}_2 = (0, 1, \dots, 0)^T, …, e⃗n=(0,…,0,1)T\vec{e}_n = (0, \dots, 0, 1)^T. Every vector x⃗=(x1,…,xn)T\vec{x} = (x_1, \dots, x_n)^T decomposes uniquely into the standard basis as x⃗=x1e⃗1+⋯+xne⃗n\vec{x} = x_1\vec{e}_1 + \dots + x_n\vec{e}_n.

Given an m×nm \times n matrix A=[col1(A)∣⋯∣coln(A)]A = [\text{col}_1(A) \mid \dots \mid \text{col}_n(A)] and a vector x⃗∈Rn\vec{x} \in \mathbb{R}^n, matrix-vector multiplication is defined as the linear combination of the columns of AA weighted by the components of x⃗\vec{x}:

Ax⃗:=x1col1(A)+⋯+xncoln(A)∈RmA\vec{x} := x_1 \text{col}_1(A) + \dots + x_n \text{col}_n(A) \in \mathbb{R}^m

The ii-th component of Ax⃗A\vec{x} is (Ax⃗)i=∑k=1naikxk(A\vec{x})_i = \sum_{k=1}^n a_{ik} x_k. Consequently, the linear system Ax⃗=b⃗A\vec{x} = \vec{b} has a solution if and only if the vector b⃗\vec{b} can be expressed as a linear combination of the columns of AA. The induced map TA:Rn→RmT_A: \mathbb{R}^n \rightarrow \mathbb{R}^m defined by TA(x⃗)=Ax⃗T_A(\vec{x}) = A\vec{x} satisfies additivity A(x⃗1+x⃗2)=Ax⃗1+Ax⃗2A(\vec{x}_1 + \vec{x}_2) = A\vec{x}_1 + A\vec{x}_2 and homogeneity A(λx⃗)=λAx⃗A(\lambda \vec{x}) = \lambda A\vec{x}.

Vector Spans, Linear Independence, and Bases in Euclidean Space

The span of a family of vectors v⃗1,…,v⃗k∈Rn\vec{v}_1, \dots, \vec{v}_k \in \mathbb{R}^n is the set of all their possible linear combinations:

span(v⃗1,…,v⃗k)={∑i=1kλiv⃗i  |  λi∈R for all i}\text{span}(\vec{v}_1, \dots, \vec{v}_k) = \left\{ \sum_{i=1}^k \lambda_i \vec{v}_i \;\middle|\; \lambda_i \in \mathbb{R} \text{ for all } i \right\}

Determining whether a target vector belongs to a span reduces to testing the consistency of a linear system. To check if (3,−4,2)T∈span((1,0,2)T,(1,1,3)T)(3, -4, 2)^T \in \text{span}((1, 0, 2)^T, (1, 1, 3)^T), one solves λ(1,0,2)T+κ(1,1,3)T=(3,−4,2)T\lambda(1, 0, 2)^T + \kappa(1, 1, 3)^T = (3, -4, 2)^T:

(11301−4232)→R3→R3−2R1(11301−401−4)→R3→R3−R2(11301−4000)\begin{pmatrix} 1 & 1 & 3 \\ 0 & 1 & -4 \\ 2 & 3 & 2 \end{pmatrix} \xrightarrow{R_3 \rightarrow R_3 - 2R_1} \begin{pmatrix} 1 & 1 & 3 \\ 0 & 1 & -4 \\ 0 & 1 & -4 \end{pmatrix} \xrightarrow{R_3 \rightarrow R_3 - R_2} \begin{pmatrix} 1 & 1 & 3 \\ 0 & 1 & -4 \\ 0 & 0 & 0 \end{pmatrix}

Back-substitution reveals κ=−4\kappa = -4 and λ=3−κ=7\lambda = 3 - \kappa = 7, so the vector is in the span with 7(1,0,2)T−4(1,1,3)T=(3,−4,2)T7(1, 0, 2)^T - 4(1, 1, 3)^T = (3, -4, 2)^T.

The span V=span(u⃗1,…,u⃗k)V = \text{span}(\vec{u}_1, \dots, \vec{u}_k) contains the zero vector 0⃗\vec{0}, is closed under vector addition (x⃗+y⃗∈V\vec{x} + \vec{y} \in V), and is closed under scalar multiplication (λx⃗∈V\lambda \vec{x} \in V). Any non-empty subset of Rn\mathbb{R}^n satisfying these three closure properties is a vector subspace of Rn\mathbb{R}^n. In R2\mathbb{R}^2, the span of two vectors can only be the trivial subspace {0⃗}\{\vec{0}\}, a line passing through the origin (if they are collinear), or the entirety of R2\mathbb{R}^2 (if they are non-collinear).

A family of vectors v⃗1,…,v⃗k\vec{v}_1, \dots, \vec{v}_k spans Rn\mathbb{R}^n if span(v⃗1,…,v⃗k)=Rn\text{span}(\vec{v}_1, \dots, \vec{v}_k) = \mathbb{R}^n. Any spanning family of Rn\mathbb{R}^n must contain at least nn vectors (k≥nk \ge n). If k<nk < n, reducing the associated n×kn \times k matrix would produce at least one row without a pivot, allowing one to construct an inconsistent system with an unreachable target vector b⃗\vec{b}.

A family of vectors v⃗1,…,v⃗k∈Rn\vec{v}_1, \dots, \vec{v}_k \in \mathbb{R}^n is linearly dependent if there exist scalars λ1,…,λk\lambda_1, \dots, \lambda_k, not all zero, such that λ1v⃗1+⋯+λkv⃗k=0⃗\lambda_1 \vec{v}_1 + \dots + \lambda_k \vec{v}_k = \vec{0}. Equivalently, at least one vector in the family is a linear combination of the others. A family is linearly independent if:

λ1v⃗1+⋯+λkv⃗k=0⃗  ⟹  λ1=⋯=λk=0\lambda_1 \vec{v}_1 + \dots + \lambda_k \vec{v}_k = \vec{0} \implies \lambda_1 = \dots = \lambda_k = 0

Linear independence guarantees that every vector in the span is uniquely expressed as a linear combination of the family. To test independence, solve c1v⃗1+⋯+ckv⃗k=0⃗c_1 \vec{v}_1 + \dots + c_k \vec{v}_k = \vec{0} via Gaussian elimination. If all variables are pivot variables, the family is linearly independent. If free variables occur, non-trivial solutions exist and the family is linearly dependent.

Testing the vectors (2,1,1)T,(1,2,1)T,(1,1,2)T(2, 1, 1)^T, (1, 2, 1)^T, (1, 1, 2)^T in R3\mathbb{R}^3 yields:

(211012101120)→R1↔R2(121021101120)→R3→R3−R1R2→R2−2R1(12100−3−100−110)→R3→3R3−R2(12100−3−100040)\begin{pmatrix} 2 & 1 & 1 & 0 \\ 1 & 2 & 1 & 0 \\ 1 & 1 & 2 & 0 \end{pmatrix} \xrightarrow{R_1 \leftrightarrow R_2} \begin{pmatrix} 1 & 2 & 1 & 0 \\ 2 & 1 & 1 & 0 \\ 1 & 1 & 2 & 0 \end{pmatrix} \xrightarrow[R_3 \rightarrow R_3 - R_1]{R_2 \rightarrow R_2 - 2R_1} \begin{pmatrix} 1 & 2 & 1 & 0 \\ 0 & -3 & -1 & 0 \\ 0 & -1 & 1 & 0 \end{pmatrix} \xrightarrow{R_3 \rightarrow 3R_3 - R_2} \begin{pmatrix} 1 & 2 & 1 & 0 \\ 0 & -3 & -1 & 0 \\ 0 & 0 & 4 & 0 \end{pmatrix}

All three variables are pivot variables, confirming linear independence. In contrast, evaluating (1,2,3,−1)T(1, 2, 3, -1)^T, (2,1,3,1)T(2, 1, 3, 1)^T, and (4,5,9,−1)T(4, 5, 9, -1)^T in R4\mathbb{R}^4 produces a row echelon form with only two pivots and one free variable c3=αc_3 = \alpha, giving c2=−αc_2 = -\alpha and c1=−2αc_1 = -2\alpha. Choosing α=1\alpha = 1 yields the explicit dependence relation −2(1,2,3,−1)T−(2,1,3,1)T+(4,5,9,−1)T=0⃗-2(1, 2, 3, -1)^T - (2, 1, 3, 1)^T + (4, 5, 9, -1)^T = \vec{0}.

Any linearly independent family in Rn\mathbb{R}^n contains at most nn vectors (k≤nk \le n), because a homogeneous system with k>nk > n variables and nn equations necessarily has free variables. A basis of Rn\mathbb{R}^n is a family of vectors that is both linearly independent and spans Rn\mathbb{R}^n. Every basis of Rn\mathbb{R}^n contains exactly nn vectors. For any family of exactly nn vectors in Rn\mathbb{R}^n, being a basis, spanning Rn\mathbb{R}^n, and being linearly independent are equivalent conditions.

Volume and Determinants

Geometrically, nn vectors u⃗1,…,u⃗n∈Rn\vec{u}_1, \dots, \vec{u}_n \in \mathbb{R}^n form a basis if and only if the nn-dimensional parallelepiped they span possesses non-zero volume. The algebraic volume function voln:(Rn)n→R\text{vol}_n: (\mathbb{R}^n)^n \rightarrow \mathbb{R} is uniquely characterized by three axiomatic properties:

  • (V1) Multilinear (nn-linear): The function is linear in each argument when all other n−1n-1 vectors are held fixed.
  • (V2) Degenerate on dependent sets: If x⃗1,…,x⃗n\vec{x}_1, \dots, \vec{x}_n is linearly dependent, then voln(x⃗1,…,x⃗n)=0\text{vol}_n(\vec{x}_1, \dots, \vec{x}_n) = 0.
  • (V3) Normalized on standard basis: voln(e⃗1,…,e⃗n)=1\text{vol}_n(\vec{e}_1, \dots, \vec{e}_n) = 1.

Under nn-linearity, condition (V2) is equivalent to being alternating: exchanging any two distinct vectors changes the sign of the volume:

voln(…,x⃗i,…,x⃗j,… )=−voln(…,x⃗j,…,x⃗i,… )\text{vol}_n(\dots, \vec{x}_i, \dots, \vec{x}_j, \dots) = -\text{vol}_n(\dots, \vec{x}_j, \dots, \vec{x}_i, \dots)

Applying these axioms in dimension 2 for x⃗=ae⃗1+be⃗2\vec{x} = a\vec{e}_1 + b\vec{e}_2 and y⃗=ce⃗1+de⃗2\vec{y} = c\vec{e}_1 + d\vec{e}_2 gives:

vol2(x⃗,y⃗)=ac vol2(e⃗1,e⃗1)+ad vol2(e⃗1,e⃗2)+bc vol2(e⃗2,e⃗1)+bd vol2(e⃗2,e⃗2)=ad−bc\text{vol}_2(\vec{x}, \vec{y}) = ac\,\text{vol}_2(\vec{e}_1, \vec{e}_1) + ad\,\text{vol}_2(\vec{e}_1, \vec{e}_2) + bc\,\text{vol}_2(\vec{e}_2, \vec{e}_1) + bd\,\text{vol}_2(\vec{e}_2, \vec{e}_2) = ad - bc

In dimension 3, evaluating vectors with components (a,b,c)T(a, b, c)^T, (d,e,f)T(d, e, f)^T, and (g,h,i)T(g, h, i)^T yields Sarrus' rule:

vol3(x⃗,y⃗,z⃗)=aei+bfg+cdh−ceg−afh−bdi\text{vol}_3(\vec{x}, \vec{y}, \vec{z}) = aei + bfg + cdh - ceg - afh - bdi

In dimension nn, the unique volume function corresponds to the Leibniz formula:

voln(x⃗1,…,x⃗n)=∑σ∈Snε(σ)aσ(1)1aσ(2)2…aσ(n)n\text{vol}_n(\vec{x}_1, \dots, \vec{x}_n) = \sum_{\sigma \in S_n} \varepsilon(\sigma) a_{\sigma(1)1} a_{\sigma(2)2} \dots a_{\sigma(n)n}

where ε(σ)∈{−1,1}\varepsilon(\sigma) \in \{-1, 1\} is the signature of the permutation σ\sigma. The determinant of an n×nn \times n matrix A=[c⃗1∣⋯∣c⃗n]A = [\vec{c}_1 \mid \dots \mid \vec{c}_n] is defined as det⁡(A):=voln(c⃗1,…,c⃗n)\det(A) := \text{vol}_n(\vec{c}_1, \dots, \vec{c}_n). A set of nn vectors forms a basis of Rn\mathbb{R}^n if and only if det⁡(A)≠0\det(A) \neq 0.

The Uniqueness Principle establishes that any nn-linear alternating map ψ:(Rn)n→R\psi: (\mathbb{R}^n)^n \rightarrow \mathbb{R} is proportional to the volume function, satisfying ψ=ψ(e⃗1,…,e⃗n)voln\psi = \psi(\vec{e}_1, \dots, \vec{e}_n) \text{vol}_n. Consequently, the determinant acts as a volume stretching factor: for any n×nn \times n matrix AA and vectors x⃗1,…,x⃗n∈Rn\vec{x}_1, \dots, \vec{x}_n \in \mathbb{R}^n,

voln(Ax⃗1,…,Ax⃗n)=det⁡(A)×voln(x⃗1,…,x⃗n)\text{vol}_n(A\vec{x}_1, \dots, A\vec{x}_n) = \det(A) \times \text{vol}_n(\vec{x}_1, \dots, \vec{x}_n)

Setting x⃗i=Be⃗i\vec{x}_i = B\vec{e}_i immediately proves the multiplicativity of the determinant: det⁡(AB)=det⁡(A)det⁡(B)\det(AB) = \det(A)\det(B).

Determinants can be calculated via Laplace expansion using the (i,j)(i, j)-minor MijM_{ij}, defined as the determinant of the (n−1)×(n−1)(n-1) \times (n-1) submatrix obtained by removing row ii and column jj from AA:

  • Expansion along column jj: det⁡(A)=∑i=1n(−1)i+jaijMij\det(A) = \sum_{i=1}^n (-1)^{i+j} a_{ij} M_{ij}.
  • Expansion along row ii: det⁡(A)=∑j=1n(−1)i+jaijMij\det(A) = \sum_{j=1}^n (-1)^{i+j} a_{ij} M_{ij}.

For an upper-triangular or lower-triangular matrix, the determinant simplifies to the product of its diagonal entries: det⁡(A)=d1d2…dn\det(A) = d_1 d_2 \dots d_n. Elementary row operations affect the determinant as follows: swapping two rows multiplies the determinant by −1-1, and replacing RiR_i with αRi+βRj\alpha R_i + \beta R_j scales the determinant by α\alpha.

Evaluating a 4×44 \times 4 determinant by expanding along the first column illustrates the method:

det⁡(0123123023013012)=−1det⁡(123301012)+2det⁡(123230012)−3det⁡(123230301)=4+2(4)−3(−28)=96\det\begin{pmatrix} 0 & 1 & 2 & 3 \\ 1 & 2 & 3 & 0 \\ 2 & 3 & 0 & 1 \\ 3 & 0 & 1 & 2 \end{pmatrix} = -1\det\begin{pmatrix} 1 & 2 & 3 \\ 3 & 0 & 1 \\ 0 & 1 & 2 \end{pmatrix} + 2\det\begin{pmatrix} 1 & 2 & 3 \\ 2 & 3 & 0 \\ 0 & 1 & 2 \end{pmatrix} - 3\det\begin{pmatrix} 1 & 2 & 3 \\ 2 & 3 & 0 \\ 3 & 0 & 1 \end{pmatrix} = 4 + 2(4) - 3(-28) = 96

Abstract Vector Spaces

A real vector space is a set VV equipped with vector addition +:V×V→V+: V \times V \rightarrow V and scalar multiplication ⋅:R×V→V\cdot: \mathbb{R} \times V \rightarrow V satisfying seven foundational axioms for all u⃗,v⃗,w⃗∈V\vec{u}, \vec{v}, \vec{w} \in V and a,b∈Ra, b \in \mathbb{R}:

  1. Null vector: There exists 0⃗∈V\vec{0} \in V such that v⃗+0⃗=v⃗\vec{v} + \vec{0} = \vec{v}.
  2. Opposite vector: There exists −v⃗∈V-\vec{v} \in V such that v⃗+(−v⃗)=0⃗\vec{v} + (-\vec{v}) = \vec{0}.
  3. Commutativity of addition: v⃗+w⃗=w⃗+v⃗\vec{v} + \vec{w} = \vec{w} + \vec{v}.
  4. Associativity of addition: (v⃗+w⃗)+u⃗=v⃗+(w⃗+u⃗)(\vec{v} + \vec{w}) + \vec{u} = \vec{v} + (\vec{w} + \vec{u}).
  5. Distributivity: a(v⃗+w⃗)=av⃗+aw⃗a(\vec{v} + \vec{w}) = a\vec{v} + a\vec{w} and (a+b)v⃗=av⃗+bv⃗(a + b)\vec{v} = a\vec{v} + b\vec{v}.
  6. Associativity of scalar multiplication: a(bv⃗)=(ab)v⃗a(b\vec{v}) = (ab)\vec{v}.
  7. Compatibility with scalar unit: 1⋅v⃗=v⃗1 \cdot \vec{v} = \vec{v}.

Standard real vector spaces include:

  • Real Euclidean spaces Rn\mathbb{R}^n.
  • Function spaces F(R)\mathcal{F}(\mathbb{R}) of all functions f:R→Rf: \mathbb{R} \rightarrow \mathbb{R}, as well as the subspaces of continuous functions C(R)C(\mathbb{R}) and smooth functions C∞(R)C^\infty(\mathbb{R}), with addition (f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x) and multiplication (λf)(x)=λf(x)(\lambda f)(x) = \lambda f(x).
  • Polynomial spaces P(R)\mathcal{P}(\mathbb{R}) of all polynomials, and Pn(R)\mathcal{P}_n(\mathbb{R}) of polynomials of degree at most nn.
  • Sequence spaces RN\mathbb{R}^\mathbb{N} of real sequences (un)n≥0(u_n)_{n \ge 0}, viewed as infinite vectors (u0,u1,… )T(u_0, u_1, \dots)^T, operated on pointwise.

Complex vector spaces are defined identically by taking the scalar field to be C\mathbb{C}. More broadly, vector spaces can be defined over arbitrary mathematical fields, such as finite fields Z/pZ\mathbb{Z}/p\mathbb{Z} for a prime pp, which form the foundation of algebraic error-correcting codes.

A family of vectors v⃗1,…,v⃗k∈V\vec{v}_1, \dots, \vec{v}_k \in V is linearly independent if ∑civ⃗i=0⃗  ⟹  c1=⋯=ck=0\sum c_i \vec{v}_i = \vec{0} \implies c_1 = \dots = c_k = 0. For instance, the functions f1(x)=cos⁡(x)f_1(x) = \cos(x), f2(x)=cos⁡(2x)f_2(x) = \cos(2x), and f3(x)=cos⁡(3x)f_3(x) = \cos(3x) in F(R)\mathcal{F}(\mathbb{R}) are linearly independent. Setting acos⁡(x)+bcos⁡(2x)+ccos⁡(3x)=0a\cos(x) + b\cos(2x) + c\cos(3x) = 0 for all xx and evaluating at specific test points reveals:

  • At x=π/2x = \pi/2: a(0)+b(−1)+c(0)=0  ⟹  b=0a(0) + b(-1) + c(0) = 0 \implies b = 0.
  • At x=π/6x = \pi/6: a(32)+c(0)=0  ⟹  a=0a(\frac{\sqrt{3}}{2}) + c(0) = 0 \implies a = 0.
  • At x=0x = 0: c(1)=0  ⟹  c=0c(1) = 0 \implies c = 0.

Basis, Dimension, and Coordinatisation

A basis of an abstract vector space VV is a linearly independent family of vectors that spans VV. The standard polynomial basis for Pn(R)\mathcal{P}_n(\mathbb{R}) is {1,x,x2,…,xn}\{1, x, x^2, \dots, x^n\}. This family spans Pn(R)\mathcal{P}_n(\mathbb{R}) by definition. It is linearly independent because if a0+a1x+⋯+anxn=0a_0 + a_1 x + \dots + a_n x^n = 0 identically, evaluating at x=0x = 0 gives a0=0a_0 = 0. Differentiating the zero function produces the zero function; evaluating successive derivatives at x=0x = 0 sequentially proves a1=a2=⋯=an=0a_1 = a_2 = \dots = a_n = 0.

Any two bases for a given vector space contain the identical number of vectors. If a basis contains nn vectors, any family containing m>nm > n vectors must be linearly dependent: expressing each of the mm vectors as a linear combination of the nn basis vectors and setting up a linear combination equal to 0⃗\vec{0} leads to a homogeneous system with mm unknowns and nn equations, which always has non-trivial solutions.

The dimension of VV, denoted dim⁡(V)\dim(V), is the number of vectors in any basis. A space is finite-dimensional if it has a finite basis, and infinite-dimensional otherwise. Known dimensions include dim⁡(Rn)=n\dim(\mathbb{R}^n) = n, dim⁡(Pn(R))=n+1\dim(\mathcal{P}_n(\mathbb{R})) = n + 1, and dim⁡(P(R))=∞\dim(\mathcal{P}(\mathbb{R})) = \infty (since it contains arbitrarily large linearly independent sets {1,x,…,xn}\{1, x, \dots, x^n\}).

Choosing an ordered basis B=(e⃗1,…,e⃗n)B = (\vec{e}_1, \dots, \vec{e}_n) for an nn-dimensional vector space VV allows any vector x⃗=∑i=1nxie⃗i\vec{x} = \sum_{i=1}^n x_i \vec{e}_i to be uniquely identified with its coordinate matrix [x⃗]B=(x1,…,xn)T∈Rn[\vec{x}]_B = (x_1, \dots, x_n)^T \in \mathbb{R}^n. For example, with the basis B=(1,x,x2)B = (1, x, x^2) of P2(R)\mathcal{P}_2(\mathbb{R}), the polynomials P(x)=2x2−3x+5P(x) = 2x^2 - 3x + 5 and Q(x)=3x+7Q(x) = 3x + 7 have coordinate representations:

[P]B=(5−32),[Q]B=(730)[P]_B = \begin{pmatrix} 5 \\ -3 \\ 2 \end{pmatrix}, \quad [Q]_B = \begin{pmatrix} 7 \\ 3 \\ 0 \end{pmatrix}

The coordinatisation map T:V→RnT: V \rightarrow \mathbb{R}^n defined by T(x⃗)=[x⃗]BT(\vec{x}) = [\vec{x}]_B is an isomorphism (a bijective linear map). Consequently, a family of vectors v⃗1,…,v⃗k\vec{v}_1, \dots, \vec{v}_k in VV is linearly independent, spanning, or a basis of VV if and only if the coordinate vectors [v⃗1]B,…,[v⃗k]B[\vec{v}_1]_B, \dots, [\vec{v}_k]_B satisfy the identical property in Rn\mathbb{R}^n. As an application, any family of polynomials P0,P1,…,Pn∈Pn(R)P_0, P_1, \dots, P_n \in \mathcal{P}_n(\mathbb{R}) where deg⁡(Pi)=i\deg(P_i) = i for each ii forms a basis of Pn(R)\mathcal{P}_n(\mathbb{R}), because the coordinate matrix with columns [Pi]B[P_i]_B is upper-triangular with non-zero diagonal entries, guaranteeing a non-zero determinant. For example, {1,1+x,2+x2,3−x3}\{1, 1+x, 2+x^2, 3-x^3\} forms a basis of P3(R)\mathcal{P}_3(\mathbb{R}).

Vector Subspaces and Solution Spaces

A subset WW of a vector space VV is a vector subspace if:

  • 0⃗∈W\vec{0} \in W.
  • For all w⃗1,w⃗2∈W\vec{w}_1, \vec{w}_2 \in W, w⃗1+w⃗2∈W\vec{w}_1 + \vec{w}_2 \in W.
  • For all λ∈R\lambda \in \mathbb{R} and w⃗∈W\vec{w} \in W, λw⃗∈W\lambda \vec{w} \in W.

Any subspace WW is itself a vector space under the inherited operations. In R2\mathbb{R}^2, the only subspaces are the trivial set {0⃗}\{\vec{0}\}, straight lines passing through the origin, and R2\mathbb{R}^2 itself. Sets not passing through the origin, such as {(x,y)T∣x+y=1}\{(x, y)^T \mid x + y = 1\}, are not subspaces because they fail to contain 0⃗\vec{0} and are not closed under addition.

The solution set W={x⃗∈Rn∣Ax⃗=0⃗}W = \{\vec{x} \in \mathbb{R}^n \mid A\vec{x} = \vec{0}\} of a homogeneous system of linear equations in nn unknowns is a vector subspace of Rn\mathbb{R}^n. Its dimension equals the number of free variables in the row echelon form of AA. To find a basis for the solution space, reduce AA to row echelon form, parameterize the free variables, and decompose the general solution into a linear combination of constant vectors.

For the homogeneous system:

{x1−x2+2x3+x4=02x1+x2−x3+x4=04x1−x2+3x3+3x4=0x1+2x2−3x3=0\begin{cases} x_1 - x_2 + 2x_3 + x_4 = 0 \\ 2x_1 + x_2 - x_3 + x_4 = 0 \\ 4x_1 - x_2 + 3x_3 + 3x_4 = 0 \\ x_1 + 2x_2 - 3x_3 = 0 \end{cases}

Row reduction proceeds as:

(1−121021−1104−133012−300)→R4→R4−R1,R3→R3−4R1R2→R2−2R1(1−121003−5−1003−5−1003−5−10)→R4→R4−R2,R3→R3−R2(1−121003−5−100000000000)\begin{pmatrix} 1 & -1 & 2 & 1 & 0 \\ 2 & 1 & -1 & 1 & 0 \\ 4 & -1 & 3 & 3 & 0 \\ 1 & 2 & -3 & 0 & 0 \end{pmatrix} \xrightarrow[R_4 \rightarrow R_4 - R_1, R_3 \rightarrow R_3 - 4R_1]{R_2 \rightarrow R_2 - 2R_1} \begin{pmatrix} 1 & -1 & 2 & 1 & 0 \\ 0 & 3 & -5 & -1 & 0 \\ 0 & 3 & -5 & -1 & 0 \\ 0 & 3 & -5 & -1 & 0 \end{pmatrix} \xrightarrow{R_4 \rightarrow R_4 - R_2, R_3 \rightarrow R_3 - R_2} \begin{pmatrix} 1 & -1 & 2 & 1 & 0 \\ 0 & 3 & -5 & -1 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{pmatrix}

There are two free variables, x3=αx_3 = \alpha and x4=βx_4 = \beta. Back-substitution yields x2=13(5α+β)x_2 = \frac{1}{3}(5\alpha + \beta) and x1=−13α−23βx_1 = -\frac{1}{3}\alpha - \frac{2}{3}\beta. Decomposing the general solution gives:

x⃗=α(−1/35/310)+β(−2/31/301)=α3(−1530)+β3(−2103)\vec{x} = \alpha \begin{pmatrix} -1/3 \\ 5/3 \\ 1 \\ 0 \end{pmatrix} + \beta \begin{pmatrix} -2/3 \\ 1/3 \\ 0 \\ 1 \end{pmatrix} = \frac{\alpha}{3} \begin{pmatrix} -1 \\ 5 \\ 3 \\ 0 \end{pmatrix} + \frac{\beta}{3} \begin{pmatrix} -2 \\ 1 \\ 0 \\ 3 \end{pmatrix}

A basis of the solution space is given by the two vectors {13(−1,5,3,0)T,13(−2,1,0,3)T}\{\frac{1}{3}(-1, 5, 3, 0)^T, \frac{1}{3}(-2, 1, 0, 3)^T\}.

The solution set of a linear differential equation also forms a vector subspace. For the simple harmonic oscillator equation y′′+ω2y=0y'' + \omega^2 y = 0, the sum of any two solutions y1,y2y_1, y_2 satisfies (y1+y2)′′+ω2(y1+y2)=(y1′′+ω2y1)+(y2′′+ω2y2)=0(y_1 + y_2)'' + \omega^2(y_1 + y_2) = (y_1'' + \omega^2 y_1) + (y_2'' + \omega^2 y_2) = 0, and any scalar multiple satisfies (λy1)′′+ω2(λy1)=λ(y1′′+ω2y1)=0(\lambda y_1)'' + \omega^2(\lambda y_1) = \lambda(y_1'' + \omega^2 y_1) = 0. Hence the solution space is a subspace of F(R)\mathcal{F}(\mathbb{R}), given explicitly by span(cos⁡(ωx),sin⁡(ωx))\text{span}(\cos(\omega x), \sin(\omega x)).

For any finite-dimensional space VV and subspace W⊆VW \subseteq V, dim⁡(W)≤dim⁡(V)\dim(W) \le \dim(V), with dim⁡(W)=dim⁡(V)\dim(W) = \dim(V) if and only if W=VW = V. The rank of a family of vectors v⃗1,…,v⃗k\vec{v}_1, \dots, \vec{v}_k is the dimension of the subspace they span. To determine the rank and extract a basis for span(v⃗1,…,v⃗k)\text{span}(\vec{v}_1, \dots, \vec{v}_k), form the matrix with columns v⃗i\vec{v}_i and reduce it to row echelon form. The rank is the number of pivots; the original vectors corresponding to the pivot columns form a basis of the span.

Applying this to the vectors (1,2,3,0)T,(2,1,2,1)T,(1,5,7,−1)T,(0,0,1,2)T(1, 2, 3, 0)^T, (2, 1, 2, 1)^T, (1, 5, 7, -1)^T, (0, 0, 1, 2)^T in R4\mathbb{R}^4:

(12102150327101−12)→(12−130−54−5000230000)\begin{pmatrix} 1 & 2 & 1 & 0 \\ 2 & 1 & 5 & 0 \\ 3 & 2 & 7 & 1 \\ 0 & 1 & -1 & 2 \end{pmatrix} \rightarrow \begin{pmatrix} 1 & 2 & -1 & 3 \\ 0 & -5 & 4 & -5 \\ 0 & 0 & 0 & 23 \\ 0 & 0 & 0 & 0 \end{pmatrix}

Pivots reside in columns 1, 2, and 4. Thus the family has rank 3, and a basis for the subspace is {(1,2,3,0)T,(2,1,2,1)T,(0,0,1,2)T}\{(1, 2, 3, 0)^T, (2, 1, 2, 1)^T, (0, 0, 1, 2)^T\}.

Linear Maps and Matrix Representations

A map T:U→VT: U \rightarrow V between vector spaces is a linear map if for all u⃗1,u⃗2∈U\vec{u}_1, \vec{u}_2 \in U and λ∈R\lambda \in \mathbb{R}:

  • T(u⃗1+u⃗2)=T(u⃗1)+T(u⃗2)T(\vec{u}_1 + \vec{u}_2) = T(\vec{u}_1) + T(\vec{u}_2).
  • T(λu⃗)=λT(u⃗)T(\lambda \vec{u}) = \lambda T(\vec{u}).

Linear maps preserve linear combinations, T(∑ciu⃗i)=∑ciT(u⃗i)T(\sum c_i \vec{u}_i) = \sum c_i T(\vec{u}_i), and preserve the zero vector, T(0⃗)=0⃗T(\vec{0}) = \vec{0}. A linear map is completely determined by its values on a basis. For example, if T:R2→R3T: \mathbb{R}^2 \rightarrow \mathbb{R}^3 satisfies T((1,1)T)=(4,3,5)TT((1, 1)^T) = (4, 3, 5)^T and T((0,1)T)=(1,2,0)TT((0, 1)^T) = (1, 2, 0)^T, then because (5,3)T=5(1,1)T−2(0,1)T(5, 3)^T = 5(1, 1)^T - 2(0, 1)^T, linearity requires:

T((5,3)T)=5T((1,1)T)−2T((0,1)T)=5(435)−2(120)=(181125)T((5, 3)^T) = 5T((1, 1)^T) - 2T((0, 1)^T) = 5\begin{pmatrix} 4 \\ 3 \\ 5 \end{pmatrix} - 2\begin{pmatrix} 1 \\ 2 \\ 0 \end{pmatrix} = \begin{pmatrix} 18 \\ 11 \\ 25 \end{pmatrix}

Every linear map T:Rn→RmT: \mathbb{R}^n \rightarrow \mathbb{R}^m corresponds to a unique m×nm \times n matrix A=[T]A = [T] such that T(v⃗)=Av⃗T(\vec{v}) = A\vec{v}, where the columns of AA are the images of the standard basis vectors: A=[T(e⃗1)∣⋯∣T(e⃗n)]A = [T(\vec{e}_1) \mid \dots \mid T(\vec{e}_n)]. The space of linear maps L(Rn,Rm)\mathcal{L}(\mathbb{R}^n, \mathbb{R}^m) is isomorphic to the matrix space Mm,n(R)M_{m,n}(\mathbb{R}). For example, a counterclockwise planar rotation by angle θ\theta is linear, with canonical matrix:

Aθ=(cos⁡(θ)−sin⁡(θ)sin⁡(θ)cos⁡(θ))A_\theta = \begin{pmatrix} \cos(\theta) & -\sin(\theta) \\ \sin(\theta) & \cos(\theta) \end{pmatrix}

Linear maps on function spaces include the differentiation operator D:C∞(R)→C∞(R)D: C^\infty(\mathbb{R}) \rightarrow C^\infty(\mathbb{R}) given by D(f)=f′D(f) = f', and the integration operator I:C(R)→RI: C(\mathbb{R}) \rightarrow \mathbb{R} given by I(f)=∫01f(s) dsI(f) = \int_0^1 f(s)\,ds.

Sum, scalar multiplication, and composition of linear maps correspond directly to matrix addition, scalar multiplication, and matrix multiplication:

  • [T+S]=[T]+[S][T + S] = [T] + [S].
  • [λT]=λ[T][\lambda T] = \lambda [T].
  • [S∘T]=[S][T][S \circ T] = [S][T], where (AB)ij=∑k=1maikbkj(AB)_{ij} = \sum_{k=1}^m a_{ik} b_{kj}.

Matrix multiplication is associative, (AB)C=A(BC)(AB)C = A(BC), and distributive, but strictly non-commutative in general (AB≠BAAB \neq BA).

For a linear operator T:V→VT: V \rightarrow V on an nn-dimensional vector space with basis B=(e⃗1,…,e⃗n)B = (\vec{e}_1, \dots, \vec{e}_n), the matrix of TT relative to BB is defined by [T]B=[[T(e⃗1)]B∣⋯∣[T(e⃗n)]B][T]_B = [[T(\vec{e}_1)]_B \mid \dots \mid [T(\vec{e}_n)]_B], which satisfies [T(v⃗)]B=[T]B[v⃗]B[T(\vec{v})]_B = [T]_B [\vec{v}]_B. Consider the shift operator T:P2(R)→P2(R)T: \mathcal{P}_2(\mathbb{R}) \rightarrow \mathcal{P}_2(\mathbb{R}) defined by T(P)(x)=P(x+1)T(P)(x) = P(x + 1) under the basis B=(1,x,x2)B = (1, x, x^2). Evaluating the basis elements gives:

  • T(1)=1  ⟹  [T(1)]B=(1,0,0)TT(1) = 1 \implies [T(1)]_B = (1, 0, 0)^T.
  • T(x)=x+1  ⟹  [T(x)]B=(1,1,0)TT(x) = x + 1 \implies [T(x)]_B = (1, 1, 0)^T.
  • T(x2)=(x+1)2=x2+2x+1  ⟹  [T(x2)]B=(1,2,1)TT(x^2) = (x + 1)^2 = x^2 + 2x + 1 \implies [T(x^2)]_B = (1, 2, 1)^T.

Hence:

[T]B=(111012001)[T]_B = \begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{pmatrix}

To compute T(x2−x)T(x^2 - x), multiply by the coordinate vector [x2−x]B=(0,−1,1)T[x^2 - x]_B = (0, -1, 1)^T:

[T(x2−x)]B=(111012001)(0−11)=(011)  ⟹  T(x2−x)=x2+x[T(x^2 - x)]_B = \begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} 0 \\ -1 \\ 1 \end{pmatrix} = \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} \implies T(x^2 - x) = x^2 + x

Matrix Inverses and Change of Basis

A square matrix A∈Mn(R)A \in M_n(\mathbb{R}) is invertible if there exists a matrix A−1A^{-1} such that AA−1=A−1A=InAA^{-1} = A^{-1}A = I_n. Invertibility is equivalent to TAT_A being a bijection, to the row echelon form having nn pivots, and to det⁡(A)≠0\det(A) \neq 0. When AA is invertible, the unique solution to Ax⃗=y⃗A\vec{x} = \vec{y} is x⃗=A−1y⃗\vec{x} = A^{-1}\vec{y}, and det⁡(A−1)=1det⁡(A)\det(A^{-1}) = \frac{1}{\det(A)}.

To compute A−1A^{-1}, row reduce the augmented matrix [A∣In][A \mid I_n] to the form [In∣A−1][I_n \mid A^{-1}]. For the matrix:

A=(124−1−1521−3)A = \begin{pmatrix} 1 & 2 & 4 \\ -1 & -1 & 5 \\ 2 & 1 & -3 \end{pmatrix}

Row operations proceed:

(124100−1−1501021−3001)→R3→R3−2R1R2→R2+R1(1241000191100−3−11−201)→R3→R3+3R2R1→R1−2R2(10−14−1−200191100016131)\begin{pmatrix} 1 & 2 & 4 & 1 & 0 & 0 \\ -1 & -1 & 5 & 0 & 1 & 0 \\ 2 & 1 & -3 & 0 & 0 & 1 \end{pmatrix} \xrightarrow[R_3 \rightarrow R_3 - 2R_1]{R_2 \rightarrow R_2 + R_1} \begin{pmatrix} 1 & 2 & 4 & 1 & 0 & 0 \\ 0 & 1 & 9 & 1 & 1 & 0 \\ 0 & -3 & -11 & -2 & 0 & 1 \end{pmatrix} \xrightarrow[R_3 \rightarrow R_3 + 3R_2]{R_1 \rightarrow R_1 - 2R_2} \begin{pmatrix} 1 & 0 & -14 & -1 & -2 & 0 \\ 0 & 1 & 9 & 1 & 1 & 0 \\ 0 & 0 & 16 & 1 & 3 & 1 \end{pmatrix}

Clearing above the third pivot gives:

A−1=116(−210147−11−9131)A^{-1} = \frac{1}{16} \begin{pmatrix} -2 & 10 & 14 \\ 7 & -11 & -9 \\ 1 & 3 & 1 \end{pmatrix}

Given two bases B=(e⃗1,…,e⃗n)B = (\vec{e}_1, \dots, \vec{e}_n) and B′=(e⃗1′,…,e⃗n′)B' = (\vec{e}'_1, \dots, \vec{e}'_n) of VV, the change of basis matrix from B′B' to BB is P=[B′]B=[[e⃗1′]B∣⋯∣[e⃗n′]B]P = [B']_B = [[\vec{e}'_1]_B \mid \dots \mid [\vec{e}'_n]_B]. Coordinates transform according to [v⃗]B′=P−1[v⃗]B[\vec{v}]_{B'} = P^{-1}[\vec{v}]_B, and linear operator matrices transform by similarity:

[T]B′=P−1[T]BP[T]_{B'} = P^{-1} [T]_B P

Consider the reflection across the line at angle π/4\pi/4 in R2\mathbb{R}^2. In the standard basis, its matrix is [s]B=(0110)[s]_B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}. Transforming to the rotated basis B′=(12(1,1)T,12(−1,1)T)B' = (\frac{1}{\sqrt{2}}(1, 1)^T, \frac{1}{\sqrt{2}}(-1, 1)^T) using the change of basis matrix P=12(1−111)P = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} produces:

[s]B′=P−1[s]BP=12(11−11)(0110)12(1−111)=(100−1)[s]_{B'} = P^{-1} [s]_B P = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}

The determinant of an operator, det⁡(T)=det⁡([T]B)\det(T) = \det([T]_B), is independent of the chosen basis because det⁡(P−1[T]BP)=det⁡(P)−1det⁡([T]B)det⁡(P)=det⁡([T]B)\det(P^{-1}[T]_B P) = \det(P)^{-1}\det([T]_B)\det(P) = \det([T]_B).

The Rank-Nullity Theorem and Interpolation

For a matrix A∈Mm,n(R)A \in M_{m,n}(\mathbb{R}), the image Im(A)\text{Im}(A) is the subspace of Rm\mathbb{R}^m spanned by its columns; its dimension is the rank rk(A)\text{rk}(A). The kernel ker⁡(A)\ker(A) is the subspace of Rn\mathbb{R}^n consisting of all solutions to Ax⃗=0⃗A\vec{x} = \vec{0}; its dimension is the nullity. The Rank-Nullity Theorem for matrices establishes that:

rk(A)+dim⁡(ker⁡(A))=n\text{rk}(A) + \dim(\ker(A)) = n

This follows because Gaussian elimination divides the nn columns into rk(A)\text{rk}(A) pivot variables and n−rk(A)n - \text{rk}(A) free variables, which parameterize the kernel.

For an abstract linear map T:U→VT: U \rightarrow V between vector spaces, the kernel is ker⁡(T)={u⃗∈U∣T(u⃗)=0⃗}\ker(T) = \{\vec{u} \in U \mid T(\vec{u}) = \vec{0}\} (a subspace of UU), and the image is Im(T)={T(u⃗)∣u⃗∈U}\text{Im}(T) = \{T(\vec{u}) \mid \vec{u} \in U\} (a subspace of VV). The general Rank-Nullity Theorem states:

dim⁡(Im(T))+dim⁡(ker⁡(T))=dim⁡(U)\dim(\text{Im}(T)) + \dim(\ker(T)) = \dim(U)

If dim⁡(U)=dim⁡(V)\dim(U) = \dim(V), then TT is an isomorphism if and only if ker⁡(T)={0⃗}.\ker(T) = \{\vec{0}\}. This provides an elegant proof of polynomial interpolation. Given pairwise distinct points x0,x1,…,xn∈Rx_0, x_1, \dots, x_n \in \mathbb{R} and arbitrary values y0,y1,…,yn∈Ry_0, y_1, \dots, y_n \in \mathbb{R}, consider the linear evaluation map:

T:Pn(R)→Rn+1,T(P)=(P(x0)⋮P(xn))T: \mathcal{P}_n(\mathbb{R}) \rightarrow \mathbb{R}^{n+1}, \quad T(P) = \begin{pmatrix} P(x_0) \\ \vdots \\ P(x_n) \end{pmatrix}

Both spaces have dimension n+1n + 1. If P∈ker⁡(T)P \in \ker(T), then P(x0)=⋯=P(xn)=0P(x_0) = \dots = P(x_n) = 0. A non-zero real polynomial of degree at most nn can have at most nn roots. Since PP has n+1n + 1 distinct roots, PP must be the zero polynomial. Hence ker⁡(T)={0⃗}\ker(T) = \{\vec{0}\}, proving that TT is an isomorphism, which guarantees the existence and uniqueness of an interpolating polynomial.

Inner Product Spaces and Distance Minimization

Overdetermined linear systems often fail to have exact solutions. Approximating statistical data with a linear trend P(x)=a+bxP(x) = a + bx across NN data points (xi,yi)(x_i, y_i) requires finding a vector in the 2-dimensional subspace W=span((1,…,1)T,(x1,…,xN)T)W = \text{span}((1, \dots, 1)^T, (x_1, \dots, x_N)^T) of RN\mathbb{R}^N that is closest to the observation vector v⃗=(y1,…,yN)T\vec{v} = (y_1, \dots, y_N)^T.

The Euclidean inner product of u⃗,v⃗∈Rn\vec{u}, \vec{v} \in \mathbb{R}^n is defined by ⟨u⃗,v⃗⟩=u⃗Tv⃗=∑i=1nuivi\langle \vec{u}, \vec{v} \rangle = \vec{u}^T \vec{v} = \sum_{i=1}^n u_i v_i. It induces the Euclidean norm ∥v⃗∥=⟨v⃗,v⃗⟩\lVert \vec{v} \rVert = \sqrt{\langle \vec{v}, \vec{v} \rangle} and the distance metric d(u⃗,v⃗)=∥u⃗−v⃗∥d(\vec{u}, \vec{v}) = \lVert \vec{u} - \vec{v} \rVert. The transpose satisfies (AB)T=BTAT(AB)^T = B^T A^T. Two vectors are orthogonal (u⃗⊥v⃗\vec{u} \perp \vec{v}) if ⟨u⃗,v⃗⟩=0\langle \vec{u}, \vec{v} \rangle = 0. Pythagoras' theorem holds: ∥u⃗+v⃗∥2=∥u⃗∥2+∥v⃗∥2  ⟺  ⟨u⃗,v⃗⟩=0\lVert \vec{u} + \vec{v} \rVert^2 = \lVert \vec{u} \rVert^2 + \lVert \vec{v} \rVert^2 \iff \langle \vec{u}, \vec{v} \rangle = 0.

An abstract inner product on a real vector space VV is a map ⟨⋅,⋅⟩:V×V→R\langle \cdot, \cdot \rangle: V \times V \rightarrow \mathbb{R} satisfying for all u⃗,v⃗,w⃗∈V\vec{u}, \vec{v}, \vec{w} \in V and λ∈R\lambda \in \mathbb{R}:

  • Symmetry: ⟨u⃗,v⃗⟩=⟨v⃗,u⃗⟩\langle \vec{u}, \vec{v} \rangle = \langle \vec{v}, \vec{u} \rangle.
  • Positive definiteness: ⟨v⃗,v⃗⟩≥0\langle \vec{v}, \vec{v} \rangle \ge 0, with ⟨v⃗,v⃗⟩=0  ⟺  v⃗=0⃗\langle \vec{v}, \vec{v} \rangle = 0 \iff \vec{v} = \vec{0}.
  • Linearity: ⟨u⃗+v⃗,w⃗⟩=⟨u⃗,w⃗⟩+⟨v⃗,w⃗⟩\langle \vec{u} + \vec{v}, \vec{w} \rangle = \langle \vec{u}, \vec{w} \rangle + \langle \vec{v}, \vec{w} \rangle and ⟨λu⃗,v⃗⟩=λ⟨u⃗,v⃗⟩\langle \lambda \vec{u}, \vec{v} \rangle = \lambda \langle \vec{u}, \vec{v} \rangle.

The space of continuous functions C([0,1])C([0, 1]) becomes an inner product space under:

⟨f,g⟩=∫01f(x)g(x) dx\langle f, g \rangle = \int_0^1 f(x)g(x)\,dx

Positive definiteness holds because if ff is not the zero function, continuity ensures f(x)2>ε2>0f(x)^2 > \varepsilon^2 > 0 across some non-empty interval [a,b]⊂[0,1][a, b] \subset [0, 1], yielding ∫01f(x)2 dx≥(b−a)ε2>0\int_0^1 f(x)^2\,dx \ge (b - a)\varepsilon^2 > 0.

For a vector v⃗∈V\vec{v} \in V and a finite-dimensional subspace W⊂VW \subset V, the orthogonal projection πW(v⃗)\pi_W(\vec{v}) is the unique vector p⃗∈W\vec{p} \in W such that v⃗−p⃗\vec{v} - \vec{p} is orthogonal to WW, meaning ⟨v⃗−p⃗,w⃗⟩=0\langle \vec{v} - \vec{p}, \vec{w} \rangle = 0 for all w⃗∈W\vec{w} \in W. This projection is the unique minimizer of the distance to v⃗\vec{v} over WW. For any other w⃗′∈W\vec{w}' \in W, Pythagoras' theorem dictates:

∥v⃗−w⃗′∥2=∥(v⃗−p⃗)+(p⃗−w⃗′)∥2=∥v⃗−p⃗∥2+∥p⃗−w⃗′∥2>∥v⃗−p⃗∥2\lVert \vec{v} - \vec{w}' \rVert^2 = \lVert (\vec{v} - \vec{p}) + (\vec{p} - \vec{w}') \rVert^2 = \lVert \vec{v} - \vec{p} \rVert^2 + \lVert \vec{p} - \vec{w}' \rVert^2 > \lVert \vec{v} - \vec{p} \rVert^2

When WW is spanned by a basis e⃗1,…,e⃗k\vec{e}_1, \dots, \vec{e}_k, writing p⃗=∑i=1kλie⃗i\vec{p} = \sum_{i=1}^k \lambda_i \vec{e}_i leads to the normal equations in terms of the matrix A=[e⃗1∣⋯∣e⃗k]A = [\vec{e}_1 \mid \dots \mid \vec{e}_k]:

ATAλ⃗=ATv⃗A^T A \vec{\lambda} = A^T \vec{v}

Because AA has full column rank, ATAA^T A is invertible, guaranteeing a unique solution for λ⃗\vec{\lambda}.

Least Squares Data Fitting and Polynomial Regression

For an inconsistent linear system Ax⃗=v⃗A\vec{x} = \vec{v}, a least squares solution is a vector x⃗∈Rm\vec{x} \in \mathbb{R}^m that minimizes the residual norm ∥Ax⃗−v⃗∥\lVert A\vec{x} - \vec{v} \rVert, which occurs precisely when Ax⃗=πIm(A)(v⃗)A\vec{x} = \pi_{\text{Im}(A)}(\vec{v}). A vector x⃗\vec{x} is a least squares solution if and only if it satisfies the normal equations:

ATAx⃗=ATv⃗A^T A \vec{x} = A^T \vec{v}

To find the optimal quadratic polynomial P(x)=a+bx+cx2P(x) = a + bx + cx^2 approximating data values P(0)=0P(0) = 0, P(1)=1P(1) = 1, P(2)=4P(2) = 4, and P(3)=7P(3) = 7, set up the matrix system Ac⃗=v⃗A\vec{c} = \vec{v}:

A=(100111124139),c⃗=(abc),v⃗=(0147)A = \begin{pmatrix} 1 & 0 & 0 \\ 1 & 1 & 1 \\ 1 & 2 & 4 \\ 1 & 3 & 9 \end{pmatrix}, \quad \vec{c} = \begin{pmatrix} a \\ b \\ c \end{pmatrix}, \quad \vec{v} = \begin{pmatrix} 0 \\ 1 \\ 4 \\ 7 \end{pmatrix}

Computing the normal system components gives:

ATA=(461461436143698),ATv⃗=(123080)A^T A = \begin{pmatrix} 4 & 6 & 14 \\ 6 & 14 & 36 \\ 14 & 36 & 98 \end{pmatrix}, \quad A^T \vec{v} = \begin{pmatrix} 12 \\ 30 \\ 80 \end{pmatrix}

Solving via Gaussian elimination yields:

(abc)=(−0.10.90.5)\begin{pmatrix} a \\ b \\ c \end{pmatrix} = \begin{pmatrix} -0.1 \\ 0.9 \\ 0.5 \end{pmatrix}

The best-fitting quadratic polynomial is P(x)=0.5x2+0.9x−0.1P(x) = 0.5x^2 + 0.9x - 0.1.

Orthogonal Bases, Gram-Schmidt, and Audio Compression

A family of vectors is orthogonal if each pair of distinct vectors is orthogonal. If every vector has norm 1, the family is orthonormal. Any orthogonal family of non-zero vectors is linearly independent: taking the inner product of ∑ciu⃗i=0⃗\sum c_i \vec{u}_i = \vec{0} with u⃗k\vec{u}_k yields ck⟨u⃗k,u⃗k⟩=0c_k \langle \vec{u}_k, \vec{u}_k \rangle = 0, forcing ck=0c_k = 0.

Decomposing a vector v⃗\vec{v} along an orthogonal basis (e⃗1,…,e⃗n)(\vec{e}_1, \dots, \vec{e}_n) requires no matrix inversion. The coefficients are computed directly via projections:

v⃗=∑k=1n⟨v⃗,e⃗k⟩⟨e⃗k,e⃗k⟩e⃗k\vec{v} = \sum_{k=1}^n \frac{\langle \vec{v}, \vec{e}_k \rangle}{\langle \vec{e}_k, \vec{e}_k \rangle} \vec{e}_k

If the basis is orthonormal, the expansion simplifies to v⃗=∑k=1n⟨v⃗,e⃗k⟩e⃗k\vec{v} = \sum_{k=1}^n \langle \vec{v}, \vec{e}_k \rangle \vec{e}_k. Similarly, the orthogonal projection onto a subspace WW with orthogonal basis (e⃗1,…,e⃗k)(\vec{e}_1, \dots, \vec{e}_k) is the sum of projections onto the individual basis lines:

πW(v⃗)=∑i=1k⟨v⃗,e⃗i⟩⟨e⃗i,e⃗i⟩e⃗i\pi_W(\vec{v}) = \sum_{i=1}^k \frac{\langle \vec{v}, \vec{e}_i \rangle}{\langle \vec{e}_i, \vec{e}_i \rangle} \vec{e}_i

The Gram-Schmidt algorithm converts any basis (u⃗1,…,u⃗n)(\vec{u}_1, \dots, \vec{u}_n) into an orthogonal basis (e⃗1,…,e⃗n)(\vec{e}_1, \dots, \vec{e}_n):

  1. Set e⃗1=u⃗1\vec{e}_1 = \vec{u}_1.
  2. For each successive index ii, subtract the projections onto the preceding orthogonal vectors:

e⃗i=u⃗i−∑j=1i−1⟨u⃗i,e⃗j⟩⟨e⃗j,e⃗j⟩e⃗j\vec{e}_i = \vec{u}_i - \sum_{j=1}^{i-1} \frac{\langle \vec{u}_i, \vec{e}_j \rangle}{\langle \vec{e}_j, \vec{e}_j \rangle} \vec{e}_j

Any vector e⃗i\vec{e}_i may be scaled by a non-zero scalar to eliminate fractions before proceeding. Normalizing each resulting vector produces an orthonormal basis.

Applying Gram-Schmidt to the vectors u⃗1=(1,1,1,1)T\vec{u}_1 = (1, 1, 1, 1)^T, u⃗2=(0,1,0,1)T\vec{u}_2 = (0, 1, 0, 1)^T, and u⃗3=(−1,1,3,2)T\vec{u}_3 = (-1, 1, 3, 2)^T in R4\mathbb{R}^4 proceeds as follows:

  • e⃗1=(1,1,1,1)T\vec{e}_1 = (1, 1, 1, 1)^T.
  • e⃗2=(0,1,0,1)T−24(1,1,1,1)T=12(−1,1,−1,1)T\vec{e}_2 = (0, 1, 0, 1)^T - \frac{2}{4}(1, 1, 1, 1)^T = \frac{1}{2}(-1, 1, -1, 1)^T.
  • Projecting u⃗3\vec{u}_3 onto e⃗1\vec{e}_1 and e⃗2\vec{e}_2 gives e⃗3=12(−4,−1,4,1)T\vec{e}_3 = \frac{1}{2}(-4, -1, 4, 1)^T.

Normalizing the orthogonal vectors produces the orthonormal basis:

{12(1111),  12(−11−11),  134(−4−141)}\left\{ \frac{1}{2}\begin{pmatrix} 1 \\ 1 \\ 1 \\ 1 \end{pmatrix}, \; \frac{1}{2}\begin{pmatrix} -1 \\ 1 \\ -1 \\ 1 \end{pmatrix}, \; \frac{1}{\sqrt{34}}\begin{pmatrix} -4 \\ -1 \\ 4 \\ 1 \end{pmatrix} \right\}

Acoustic waveforms of a pure sine wave, violin, and piano illustrating acoustic timbre

In audio signal processing, musical sounds represent air pressure variations encoded as functions f:R→Rf: \mathbb{R} \rightarrow \mathbb{R}. Pitch corresponds to frequency ω\omega, amplitude represents volume, and the waveform profile dictates acoustic timbre. Periodic waveforms of period 1/ω1/\omega reside in C1/ω(R)C_{1/\omega}(\mathbb{R}), equipped with the inner product:

⟨u,v⟩=∫01/ωu(x)v(x) dx\langle u, v \rangle = \int_0^{1/\omega} u(x)v(x)\,dx

The trigonometric family {cos⁡(2πωkx),sin⁡(2πωkx)}k=1n\{\cos(2\pi \omega k x), \sin(2\pi \omega k x)\}_{k=1}^n forms an orthogonal set. Projecting the waveform ff onto the subspace Wn=span({cos⁡(2πωkx),sin⁡(2πωkx)}k=1n)W_n = \text{span}(\{\cos(2\pi \omega k x), \sin(2\pi \omega k x)\}_{k=1}^n) produces the truncated Fourier series Snf(x)S_n f(x). By Fourier's theorem, as n→∞n \rightarrow \infty, SnfS_n f converges to ff. Audio compression algorithms store only the leading Fourier coefficients ak,bka_k, b_k, discarding high frequencies beyond human auditory range (20 Hz20\,\text{Hz} to 20,000 Hz20{,}000\,\text{Hz}) and harmonics with negligible energy.

Eigenvalues, Eigenvectors, and Matrix Powers

In population ecology, modeling population dynamics requires analyzing transitions between life stages. In an age-structured model dividing an animal population into adults ana_n and juveniles jnj_n, adults produce an average of γ\gamma juveniles annually and survive with probability α\alpha, while juveniles survive and mature into adults with probability β\beta:

(an+1jn+1)=(αβγ0)(anjn)  ⟹  x⃗n=Anx⃗0\begin{pmatrix} a_{n+1} \\ j_{n+1} \end{pmatrix} = \begin{pmatrix} \alpha & \beta \\ \gamma & 0 \end{pmatrix} \begin{pmatrix} a_n \\ j_n \end{pmatrix} \implies \vec{x}_n = A^n \vec{x}_0

Evaluating the long-term behavior of such dynamical systems requires computing high matrix powers AnA^n, which becomes straightforward when AA can be diagonalized as A=PDP−1A = P D P^{-1}, giving An=PDnP−1A^n = P D^n P^{-1}.

For a linear map T:V→VT: V \rightarrow V, a scalar λ∈R\lambda \in \mathbb{R} is an eigenvalue of TT if there exists a non-zero vector x⃗∈V\vec{x} \in V such that T(x⃗)=λx⃗T(\vec{x}) = \lambda \vec{x}; the vector x⃗\vec{x} is an eigenvector for λ\lambda. For an n×nn \times n matrix AA, eigenvalues are the roots of the characteristic polynomial:

χA(λ):=det⁡(A−λIn)=0\chi_A(\lambda) := \det(A - \lambda I_n) = 0

A matrix A∈Mn(R)A \in M_n(\mathbb{R}) has at most nn eigenvalues. Eigenvectors corresponding to pairwise distinct eigenvalues are linearly independent. The eigenspace for an eigenvalue λ\lambda is the subspace Eλ(A)=ker⁡(A−λIn)E_\lambda(A) = \ker(A - \lambda I_n).

A matrix A∈Mn(R)A \in M_n(\mathbb{R}) is diagonalisable over R\mathbb{R} if there exists an invertible matrix PP and a diagonal matrix DD such that P−1AP=DP^{-1}AP = D. This occurs if and only if:

  • All complex roots of χA(λ)\chi_A(\lambda) are real.
  • For every eigenvalue λ\lambda, the geometric multiplicity (defined as dim⁡(Eλ(A))\dim(E_\lambda(A))) equals the algebraic multiplicity (the multiplicity of λ\lambda as a root of χA\chi_A).

If AA has nn distinct real eigenvalues, it is automatically diagonalisable.

The trace of a square matrix tr(A)=∑i=1naii\text{tr}(A) = \sum_{i=1}^n a_{ii} and the determinant are invariant under similarity transformations: tr(PAP−1)=tr(A)\text{tr}(P A P^{-1}) = \text{tr}(A) and det⁡(PAP−1)=det⁡(A)\det(P A P^{-1}) = \det(A). For any diagonalisable matrix with eigenvalues λ1,…,λn\lambda_1, \dots, \lambda_n counted with multiplicity:

tr(A)=∑i=1nλi,det⁡(A)=∏i=1nλi\text{tr}(A) = \sum_{i=1}^n \lambda_i, \quad \det(A) = \prod_{i=1}^n \lambda_i

Consider diagonalising the symmetric matrix:

A=(324202423)A = \begin{pmatrix} 3 & 2 & 4 \\ 2 & 0 & 2 \\ 4 & 2 & 3 \end{pmatrix}

The characteristic polynomial is χA(λ)=−λ3+6λ2+15λ+8=−(λ+1)2(λ−8)\chi_A(\lambda) = -\lambda^3 + 6\lambda^2 + 15\lambda + 8 = -(\lambda + 1)^2(\lambda - 8). The eigenvalues are λ=8\lambda = 8 (algebraic multiplicity 1) and λ=−1\lambda = -1 (algebraic multiplicity 2). The trace check confirms 8+(−1)+(−1)=6=3+0+38 + (-1) + (-1) = 6 = 3 + 0 + 3, and the determinant check confirms 8(−1)(−1)=8=det⁡(A)8(-1)(-1) = 8 = \det(A).

Solving (A−8I3)x⃗=0⃗(A - 8I_3)\vec{x} = \vec{0} via Gaussian elimination yields the eigenspace E8(A)=span((1,1/2,1)T)E_8(A) = \text{span}((1, 1/2, 1)^T), giving geometric multiplicity 1. Solving (A+I3)x⃗=0⃗(A + I_3)\vec{x} = \vec{0} yields the single independent equation 2x+y+2z=02x + y + 2z = 0, which has two free variables and produces the basis E−1(A)=span((−1,0,1)T,(−1/2,1,0)T)E_{-1}(A) = \text{span}((-1, 0, 1)^T, (-1/2, 1, 0)^T), giving geometric multiplicity 2. Because geometric and algebraic multiplicities coincide, AA is diagonalisable with modal matrix PP and diagonal matrix DD:

P=(1−1−1/21/201110),D=(8000−1000−1)P = \begin{pmatrix} 1 & -1 & -1/2 \\ 1/2 & 0 & 1 \\ 1 & 1 & 0 \end{pmatrix}, \quad D = \begin{pmatrix} 8 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & -1 \end{pmatrix}

To compute matrix powers Ak=PDkP−1A^k = P D^k P^{-1}, consider A=(2213)A = \begin{pmatrix} 2 & 2 \\ 1 & 3 \end{pmatrix}. Its characteristic polynomial is χA(λ)=λ2−5λ+4=(λ−1)(λ−4)\chi_A(\lambda) = \lambda^2 - 5\lambda + 4 = (\lambda - 1)(\lambda - 4). Eigenspaces are E1(A)=span((2,−1)T)E_1(A) = \text{span}((2, -1)^T) and E4(A)=span((1,1)T)E_4(A) = \text{span}((1, 1)^T). The transformation matrices are:

P=(21−11),P−1=13(1−112),D=(1004)P = \begin{pmatrix} 2 & 1 \\ -1 & 1 \end{pmatrix}, \quad P^{-1} = \frac{1}{3}\begin{pmatrix} 1 & -1 \\ 1 & 2 \end{pmatrix}, \quad D = \begin{pmatrix} 1 & 0 \\ 0 & 4 \end{pmatrix}

For any exponent kk, the matrix power is:

Ak=PDkP−1=13(21−11)(1k004k)(1−112)=13(2+4k−2+2⋅4k−1+4k1+2⋅4k)A^k = P D^k P^{-1} = \frac{1}{3} \begin{pmatrix} 2 & 1 \\ -1 & 1 \end{pmatrix} \begin{pmatrix} 1^k & 0 \\ 0 & 4^k \end{pmatrix} \begin{pmatrix} 1 & -1 \\ 1 & 2 \end{pmatrix} = \frac{1}{3} \begin{pmatrix} 2 + 4^k & -2 + 2 \cdot 4^k \\ -1 + 4^k & 1 + 2 \cdot 4^k \end{pmatrix}

Setting k=20k = 20 delivers A20A^{20}.

Applications to Dynamical Systems and Recurrence Relations

For a dynamical system x⃗k+1=Ax⃗k\vec{x}_{k+1} = A\vec{x}_k, decomposing the initial condition along an eigenvector basis x⃗0=∑i=1nαie⃗i\vec{x}_0 = \sum_{i=1}^n \alpha_i \vec{e}_i delivers the explicit trajectory:

x⃗k=Akx⃗0=∑i=1nαiλike⃗i\vec{x}_k = A^k \vec{x}_0 = \sum_{i=1}^n \alpha_i \lambda_i^k \vec{e}_i

In the Leslie population model with adult survival α=1/2\alpha = 1/2 and juvenile maturation β=3/10\beta = 3/10, the transition matrix has characteristic polynomial χA(x)=x2−12x−310γ\chi_A(x) = x^2 - \frac{1}{2}x - \frac{3}{10}\gamma. Its eigenvalues are:

λ1,2=5±25+120γ20\lambda_{1, 2} = \frac{5 \pm \sqrt{25 + 120\gamma}}{20}

The long-term population trajectory depends on the dominant eigenvalue relative to 1:

  • If γ<5/3\gamma < 5/3, both eigenvalues satisfy ∣λi∣<1|\lambda_i| < 1, causing x⃗k→0⃗\vec{x}_k \rightarrow \vec{0} (population extinction).
  • If γ>5/3\gamma > 5/3, the dominant eigenvalue satisfies λ2>1\lambda_2 > 1, causing x⃗k→∞\vec{x}_k \rightarrow \infty (population explosion).
  • If γ=5/3\gamma = 5/3, then λ2=1\lambda_2 = 1 and λ1=−1/4\lambda_1 = -1/4. The population converges to the stable eigenvector for λ2=1\lambda_2 = 1, which is e⃗2=(3/5,1)T\vec{e}_2 = (3/5, 1)^T. The equilibrium ratio of adults to juveniles is a=35ja = \frac{3}{5}j.

For the Fibonacci sequence an+1=an+an−1a_{n+1} = a_n + a_{n-1} with a0=0a_0 = 0 and a1=1a_1 = 1, define x⃗n=(an+1,an)T\vec{x}_n = (a_{n+1}, a_n)^T. The recurrence is encoded as x⃗n+1=Ax⃗n\vec{x}_{n+1} = A\vec{x}_n with A=(1110)A = \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix}. The characteristic polynomial χA(x)=x2−x−1\chi_A(x) = x^2 - x - 1 has roots given by the golden ratio ϕ=1+52\phi = \frac{1+\sqrt{5}}{2} and its conjugate ϕ′=1−52\phi' = \frac{1-\sqrt{5}}{2}. The eigenvectors are e⃗ϕ=(ϕ,1)T\vec{e}_\phi = (\phi, 1)^T and e⃗ϕ′=(ϕ′,1)T\vec{e}_{\phi'} = (\phi', 1)^T. Expanding x⃗0=(1,0)T=15e⃗ϕ−15e⃗ϕ′\vec{x}_0 = (1, 0)^T = \frac{1}{\sqrt{5}}\vec{e}_\phi - \frac{1}{\sqrt{5}}\vec{e}_{\phi'} and computing Anx⃗0A^n \vec{x}_0 yields Binet's formula:

an=ϕn−(ϕ′)n5a_n = \frac{\phi^n - (\phi')^n}{\sqrt{5}}

This method generalizes to any mm-th order linear recurrence an+m=∑i=0m−1cian+ia_{n+m} = \sum_{i=0}^{m-1} c_i a_{n+i} by using the companion matrix. If the characteristic polynomial has complex roots, diagonalisation over C\mathbb{C} yields oscillatory real solutions. For un+2=−un+1−unu_{n+2} = -u_{n+1} - u_n, the characteristic roots are λ1,2=e±2iπ/3\lambda_{1, 2} = e^{\pm 2i\pi/3}. For initial conditions u0=2u_0 = 2 and u1=1u_1 = 1, the solution is un=e2inπ/3+e−2inπ/3=2cos⁡(2nπ/3)u_n = e^{2in\pi/3} + e^{-2in\pi/3} = 2\cos(2n\pi/3).

Markov Chains, Stochastic Matrices, and the Perron-Frobenius Theorem

A finite Markov chain models a memoryless stochastic process across nn discrete states s1,…,sns_1, \dots, s_n. The transition probability from state sjs_j to state sis_i depends solely on the current state. A Markov diagram is a directed graph where each edge from vertex vjv_j to viv_i carries weight aij∈(0,1]a_{ij} \in (0, 1] such that the outgoing weights from each vertex sum to 1: ∑i=1naij=1\sum_{i=1}^n a_{ij} = 1. The associated transition matrix A=(aij)A = (a_{ij}) is a stochastic matrix: all entries are non-negative (aij≥0a_{ij} \ge 0) and every column sums to 1.

Given an initial probability or resource distribution x⃗0\vec{x}_0, the expected distribution after kk steps is x⃗k=Akx⃗0\vec{x}_k = A^k \vec{x}_0. A stationary distribution is an equilibrium vector satisfying Ax⃗=x⃗A\vec{x} = \vec{x}, representing an eigenvector for the eigenvalue λ=1\lambda = 1.

A non-negative matrix AA is positive if aij>0a_{ij} > 0 for all i,ji, j, and regular if there exists an integer k≥1k \ge 1 such that AkA^k is positive. In terms of the Markov diagram, regularity is equivalent to the existence of an integer k≥1k \ge 1 such that a directed path of length exactly kk exists between every pair of vertices.

Every square matrix and its transpose share the identical characteristic polynomial and eigenvalues, because det⁡(AT−λIn)=det⁡((A−λIn)T)=det⁡(A−λIn)\det(A^T - \lambda I_n) = \det((A - \lambda I_n)^T) = \det(A - \lambda I_n). For any stochastic matrix AA, the vector of all ones 1=(1,…,1)T\mathbf{1} = (1, \dots, 1)^T satisfies AT1=1A^T \mathbf{1} = \mathbf{1}, proving that λ=1\lambda = 1 is always an eigenvalue of ATA^T, and therefore also an eigenvalue of AA.

The Perron-Frobenius Theorem for regular stochastic matrices establishes:

  1. The value λ=1\lambda = 1 is an eigenvalue of AA, and there exists a stationary distribution whose components are all strictly positive.
  2. The eigenspace for λ=1\lambda = 1 has dimension 1 (dim⁡(E1(A))=1\dim(E_1(A)) = 1).
  3. Every other eigenvalue λ\lambda of AA satisfies ∣λ∣<1|\lambda| < 1.
  4. For every initial vector x⃗\vec{x} whose components do not sum to zero (∑xi≠0\sum x_i \neq 0), the sequence Akx⃗A^k \vec{x} converges to a stationary distribution of AA.

When AA is diagonalisable with eigenvalues 1=λ1>∣λ2∣≥⋯≥∣λn∣1 = \lambda_1 > |\lambda_2| \ge \dots \ge |\lambda_n|, the convergence error decays exponentially according to the second largest eigenvalue magnitude μ=max⁡2≤i≤n∣λi∣\mu = \max_{2 \le i \le n} |\lambda_i|:

∥Akx⃗−x⃗∞∥=O(μk)\lVert A^k \vec{x} - \vec{x}_\infty \rVert = \mathcal{O}(\mu^k)

If AA is not diagonalisable, the error satisfies O(μk)\mathcal{O}(\mu^k) for any μ\mu strictly between the second eigenvalue magnitude and 1.

In the Edinburgh bicycle redistribution problem across four zones, the transition matrix is:

A=(0.50.40.30.10.20.20.20.20.20.20.40.20.10.20.10.5)A = \begin{pmatrix} 0.5 & 0.4 & 0.3 & 0.1 \\ 0.2 & 0.2 & 0.2 & 0.2 \\ 0.2 & 0.2 & 0.4 & 0.2 \\ 0.1 & 0.2 & 0.1 & 0.5 \end{pmatrix}

Because AA has strictly positive entries, it is regular. Distributing 200 bicycles equally as x⃗0=(50,50,50,50)T\vec{x}_0 = (50, 50, 50, 50)^T produces the successive daily distributions:

x⃗1=(65405045),x⃗2=(68405042),x⃗3=(69.2405040.8),x⃗4≈(69.7405040.3)\vec{x}_1 = \begin{pmatrix} 65 \\ 40 \\ 50 \\ 45 \end{pmatrix}, \quad \vec{x}_2 = \begin{pmatrix} 68 \\ 40 \\ 50 \\ 42 \end{pmatrix}, \quad \vec{x}_3 = \begin{pmatrix} 69.2 \\ 40 \\ 50 \\ 40.8 \end{pmatrix}, \quad \vec{x}_4 \approx \begin{pmatrix} 69.7 \\ 40 \\ 50 \\ 40.3 \end{pmatrix}

This converges rapidly to the unique stationary distribution x⃗∞=(70,40,50,40)T\vec{x}_\infty = (70, 40, 50, 40)^T.

The PageRank Algorithm

The World Wide Web can be modeled as a directed graph where pages are vertices and hyperlinks are directed edges. If page jj contains djd_j total outgoing links, and nijn_{ij} links point to page ii, a random web surfer clicks link ii with probability aij=nijdja_{ij} = \frac{n_{ij}}{d_j}. For a four-page network with link counts given by:

(0022202111021110)\begin{pmatrix} 0 & 0 & 2 & 2 \\ 2 & 0 & 2 & 1 \\ 1 & 1 & 0 & 2 \\ 1 & 1 & 1 & 0 \end{pmatrix}

The raw link transition matrix is:

A=(002/52/51/202/51/51/41/202/51/41/21/50)A = \begin{pmatrix} 0 & 0 & 2/5 & 2/5 \\ 1/2 & 0 & 2/5 & 1/5 \\ 1/4 & 1/2 & 0 & 2/5 \\ 1/4 & 1/2 & 1/5 & 0 \end{pmatrix}

To prevent surfers from getting trapped in cycles or dead ends, the model incorporates random teleportation: with probability α\alpha (the damping factor, conventionally α=0.85\alpha = 0.85), the surfer follows a hyperlink; with probability 1−α1 - \alpha, the surfer jumps uniformly at random to any page in the network. The uniform jump matrix is U=(1/n)i,jU = (1/n)_{i, j}. The resulting Google matrix is:

G=αA+(1−α)UG = \alpha A + (1 - \alpha) U

Because GG is strictly positive, it is regular, and the Perron-Frobenius Theorem guarantees a unique positive stationary distribution r⃗\vec{r} satisfying Gr⃗=r⃗G\vec{r} = \vec{r} with ∑ri=1\sum r_i = 1. For the four-page network with α=0.85\alpha = 0.85:

G=0.85(002/52/51/202/51/51/41/202/51/41/21/50)+0.15(1/41/41/41/41/41/41/41/41/41/41/41/41/41/41/41/4)=(0.03750.03750.37750.37750.46250.03750.37750.20750.25000.46250.03750.37750.25000.46250.20750.0375)G = 0.85 \begin{pmatrix} 0 & 0 & 2/5 & 2/5 \\ 1/2 & 0 & 2/5 & 1/5 \\ 1/4 & 1/2 & 0 & 2/5 \\ 1/4 & 1/2 & 1/5 & 0 \end{pmatrix} + 0.15 \begin{pmatrix} 1/4 & 1/4 & 1/4 & 1/4 \\ 1/4 & 1/4 & 1/4 & 1/4 \\ 1/4 & 1/4 & 1/4 & 1/4 \\ 1/4 & 1/4 & 1/4 & 1/4 \end{pmatrix} = \begin{pmatrix} 0.0375 & 0.0375 & 0.3775 & 0.3775 \\ 0.4625 & 0.0375 & 0.3775 & 0.2075 \\ 0.2500 & 0.4625 & 0.0375 & 0.3775 \\ 0.2500 & 0.4625 & 0.2075 & 0.0375 \end{pmatrix}

Solving Gr⃗=r⃗G\vec{r} = \vec{r} under the constraint ∑ri=1\sum r_i = 1 yields the ranking vector:

r⃗≈(0.210.260.280.24)\vec{r} \approx \begin{pmatrix} 0.21 \\ 0.26 \\ 0.28 \\ 0.24 \end{pmatrix}

The resulting page ranking from most popular to least popular is Page 3 (0.280.28), followed by Page 2 (0.260.26), Page 4 (0.240.24), and Page 1 (0.210.21).

The rate of convergence is governed by the damping factor α\alpha. Using the 11-norm ∥x⃗∥1=∑∣xi∣\lVert \vec{x} \rVert_1 = \sum |x_i|, for any stochastic matrix AA, ∥Ax⃗∥1≤∥x⃗∥1\lVert A\vec{x} \rVert_1 \le \lVert \vec{x} \rVert_1. For any probability vectors x⃗\vec{x} and y⃗\vec{y}, the uniform components cancel:

Gx⃗−Gy⃗=αA(x⃗−y⃗)  ⟹  ∥Gx⃗−Gy⃗∥1≤α∥x⃗−y⃗∥1G\vec{x} - G\vec{y} = \alpha A(\vec{x} - \vec{y}) \implies \lVert G\vec{x} - G\vec{y} \rVert_1 \le \alpha \lVert \vec{x} - \vec{y} \rVert_1

By induction, the convergence of the power method to the stationary vector r⃗\vec{r} satisfies:

∥Gkx⃗−r⃗∥1≤2αk\lVert G^k \vec{x} - \vec{r} \rVert_1 \le 2\alpha^k

This convergence rate depends entirely on α=0.85\alpha = 0.85 and is independent of the total number of web pages nn. Achieving an approximation error below 10−610^{-6} requires at most 90 power iterations, making the algorithm computationally feasible on global scales.