Linear Algebra · ClipSAT

⏱ Exam Timer: 00:00

Linear Algebra

Level · University · post-calculus foundation Chapters · 8 Feeds into · Multivariable Calculus · Engineering · CS
✓ Official Syllabus Verified Last reviewed against official syllabus: 2025–2026 Academic Year Standards & Rigor ↗
1

Vectors in Rn \mathbb{R}^n & Inner Product Spaces

📌 Linear Algebra · Chapter 1 Foundations  ·  Euclidean vectors & algebraic axioms  ·  Dot product, norm & angle in Rⁿ  ·  Cauchy–Schwarz, Triangle inequality & projections

Vectors in Rn \mathbb{R}^n form the foundational geometric and algebraic substrate of linear algebra. Ordered n n -tuples of real numbers admit two primary operations: vector addition and scalar multiplication. From these elementary operations emerge geometric concepts of length (Euclidean norm), direction, orthogonality, and projections that extend seamlessly into abstract inner product spaces.

Level 1 · Foundations — Vector Space Axioms of Rn \mathbb{R}^n , Norms & Normalization

A vector u∈Rn \mathbf{u} \in \mathbb{R}^n is represented as an n×1 n \times 1 column vector u=(u1u2⋮un) \mathbf{u} = \begin{pmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{pmatrix} or an ordered n n -tuple (u1,u2,…,un) (u_1, u_2, \dots, u_n) . Addition and scalar multiplication operate componentwise.

Vectors in Rn \mathbb{R}^n & Inner Product Spaces — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
● Definition 1.1 — Algebraic Operations & Euclidean Inner Product in Rn \mathbb{R}^n

Let u=(u1,…,un) \mathbf{u} = (u_1, \dots, u_n) , v=(v1,…,vn)∈Rn \mathbf{v} = (v_1, \dots, v_n) \in \mathbb{R}^n , and c∈R c \in \mathbb{R} :

  1. Vector Addition: u+v=(u1+v1,u2+v2,…,un+vn) \mathbf{u} + \mathbf{v} = (u_1 + v_1, u_2 + v_2, \dots, u_n + v_n) .
  2. Scalar Multiplication: cu=(cu1,cu2,…,cun) c\mathbf{u} = (c u_1, c u_2, \dots, c u_n) .
  3. Standard Inner Product (Dot Product): u⋅v=uTv=∑i=1nuivi=u1v1+u2v2+⋯+unvn. \mathbf{u} \cdot \mathbf{v} = \mathbf{u}^T \mathbf{v} = \sum_{i=1}^n u_i v_i = u_1 v_1 + u_2 v_2 + \dots + u_n v_n.
  4. Euclidean Norm (Length): ∥u∥=u⋅u=∑i=1nui2=u12+u22+⋯+un2. \|\mathbf{u}\| = \sqrt{\mathbf{u} \cdot \mathbf{u}} = \sqrt{\sum_{i=1}^n u_i^2} = \sqrt{u_1^2 + u_2^2 + \dots + u_n^2}.
  5. Unit Vector (Normalization): If u≠0 \mathbf{u} \neq \mathbf{0} , the vector u^=u∥u∥ \hat{\mathbf{u}} = \frac{\mathbf{u}}{\|\mathbf{u}\|} satisfies ∥u^∥=1 \|\hat{\mathbf{u}}\| = 1 and points in the direction of u \mathbf{u} .

Fundamental Axioms of the Euclidean Dot Product

Symmetry (Commutativity)
u⋅v=v⋅u \mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u} for all u,v∈Rn \mathbf{u}, \mathbf{v} \in \mathbb{R}^n
Bilinearity (Distributivity)
u⋅(cv+dw)=c(u⋅v)+d(u⋅w) \mathbf{u} \cdot (c\mathbf{v} + d\mathbf{w}) = c(\mathbf{u} \cdot \mathbf{v}) + d(\mathbf{u} \cdot \mathbf{w})
Positive Definiteness
u⋅u≥0 \mathbf{u} \cdot \mathbf{u} \ge 0 , with u⋅u=0  ⟺  u=0 \mathbf{u} \cdot \mathbf{u} = 0 \iff \mathbf{u} = \mathbf{0}
Scalar Homogeneity of Norm
∥cu∥=∣c∣ ∥u∥ \|c\mathbf{u}\| = |c|\,\|\mathbf{u}\| for any scalar c∈R c \in \mathbb{R}
Level 1 (Foundations) — Worked Example · Componentwise Calculus & Normalization

Problem: Given vectors u=(2−14−2) \mathbf{u} = \begin{pmatrix} 2 \\ -1 \\ 4 \\ -2 \end{pmatrix} and v=(32−15) \mathbf{v} = \begin{pmatrix} 3 \\ 2 \\ -1 \\ 5 \end{pmatrix} in R4 \mathbb{R}^4 , calculate the linear combination w=3u−2v \mathbf{w} = 3\mathbf{u} - 2\mathbf{v} , compute the inner product u⋅v \mathbf{u} \cdot \mathbf{v} , and find the unit vector u^ \hat{\mathbf{u}} .

Step 1 · Linear Combination: w=3(2−14−2)−2(32−15)=(6−6−3−412−(−2)−6−10)=(0−714−16). \mathbf{w} = 3\begin{pmatrix} 2 \\ -1 \\ 4 \\ -2 \end{pmatrix} - 2\begin{pmatrix} 3 \\ 2 \\ -1 \\ 5 \end{pmatrix} = \begin{pmatrix} 6 - 6 \\ -3 - 4 \\ 12 - (-2) \\ -6 - 10 \end{pmatrix} = \mathbf{\begin{pmatrix} 0 \\ -7 \\ 14 \\ -16 \end{pmatrix}}.

Step 2 · Inner Product: u⋅v=(2)(3)+(−1)(2)+(4)(−1)+(−2)(5)=6−2−4−10=−10. \mathbf{u} \cdot \mathbf{v} = (2)(3) + (-1)(2) + (4)(-1) + (-2)(5) = 6 - 2 - 4 - 10 = \mathbf{-10}.

Step 3 · Euclidean Norm and Normalization: ∥u∥=22+(−1)2+42+(−2)2=4+1+16+4=25=5. \|\mathbf{u}\| = \sqrt{2^2 + (-1)^2 + 4^2 + (-2)^2} = \sqrt{4 + 1 + 16 + 4} = \sqrt{25} = 5. The normalized unit vector is: u^=15u=(2/5−1/54/5−2/5). \hat{\mathbf{u}} = \frac{1}{5}\mathbf{u} = \mathbf{\begin{pmatrix} 2/5 \\ -1/5 \\ 4/5 \\ -2/5 \end{pmatrix}}.

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

Level 1 · Foundations

Let a=(12−2) \mathbf{a} = \begin{pmatrix} 1 \\ 2 \\ -2 \end{pmatrix} and b=(k41) \mathbf{b} = \begin{pmatrix} k \\ 4 \\ 1 \end{pmatrix} in R3 \mathbb{R}^3 . Determine the unique scalar value of k k such that a \mathbf{a} and b \mathbf{b} are orthogonal (perpendicular).

Two non-zero vectors are orthogonal if and only if their inner product is zero: a⋅b=0. \mathbf{a} \cdot \mathbf{b} = 0. Compute the dot product: (1)(k)+(2)(4)+(−2)(1)=0  ⟹  k+8−2=0  ⟹  k+6=0  ⟹  k=−6. (1)(k) + (2)(4) + (-2)(1) = 0 \implies k + 8 - 2 = 0 \implies k + 6 = 0 \implies \mathbf{k = -6}.

Level 2 · Medium — Cauchy–Schwarz Inequality, Triangle Inequality & Orthogonal Decomposition

The Cauchy–Schwarz inequality is the paramount foundational inequality in linear analysis. It guarantees that the geometric definition of the angle between two vectors cos⁡θ=u⋅v∥u∥∥v∥ \cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{u}\|\|\mathbf{v}\|} is always mathematically well-defined.

● Theorem 1.1 & Formal Analytical Proof · The Cauchy–Schwarz Inequality

Theorem (Cauchy–Schwarz): For all u,v∈Rn \mathbf{u}, \mathbf{v} \in \mathbb{R}^n : ∣u⋅v∣≤∥u∥∥v∥, |\mathbf{u} \cdot \mathbf{v}| \le \|\mathbf{u}\| \|\mathbf{v}\|, with equality holding if and only if u \mathbf{u} and v \mathbf{v} are linearly dependent (one vector is a scalar multiple of the other).

Proof via Quadratic Discriminant: If v=0 \mathbf{v} = \mathbf{0} , then u⋅0=0 \mathbf{u} \cdot \mathbf{0} = 0 and ∥u∥∥0∥=0 \|\mathbf{u}\|\|\mathbf{0}\| = 0 , so equality holds trivially. Assume v≠0 \mathbf{v} \neq \mathbf{0} . For any real parameter t∈R t \in \mathbb{R} , consider the vector w(t)=u−tv \mathbf{w}(t) = \mathbf{u} - t\mathbf{v} . By the positive definiteness of the Euclidean norm: 0≤∥u−tv∥2=(u−tv)⋅(u−tv). 0 \le \|\mathbf{u} - t\mathbf{v}\|^2 = (\mathbf{u} - t\mathbf{v}) \cdot (\mathbf{u} - t\mathbf{v}). Expanding by bilinearity and symmetry: 0≤u⋅u−2t(u⋅v)+t2(v⋅v)=∥v∥2t2−2(u⋅v)t+∥u∥2. 0 \le \mathbf{u} \cdot \mathbf{u} - 2t(\mathbf{u} \cdot \mathbf{v}) + t^2(\mathbf{v} \cdot \mathbf{v}) = \|\mathbf{v}\|^2 t^2 - 2(\mathbf{u} \cdot \mathbf{v}) t + \|\mathbf{u}\|^2. This is a quadratic polynomial p(t)=At2+Bt+C p(t) = A t^2 + B t + C in t t , where A=∥v∥2>0 A = \|\mathbf{v}\|^2 > 0 , B=−2(u⋅v) B = -2(\mathbf{u} \cdot \mathbf{v}) , and C=∥u∥2 C = \|\mathbf{u}\|^2 . Because p(t)≥0 p(t) \ge 0 for all t∈R t \in \mathbb{R} , the parabola cannot cross the t t -axis twice, which requires that its discriminant Δ=B2−4AC \Delta = B^2 - 4AC be non-positive: Δ=[−2(u⋅v)]2−4(∥v∥2)(∥u∥2)≤0. \Delta = [-2(\mathbf{u} \cdot \mathbf{v})]^2 - 4(\|\mathbf{v}\|^2)(\|\mathbf{u}\|^2) \le 0. 4(u⋅v)2−4∥u∥2∥v∥2≤0  ⟹  (u⋅v)2≤∥u∥2∥v∥2. 4(\mathbf{u} \cdot \mathbf{v})^2 - 4\|\mathbf{u}\|^2 \|\mathbf{v}\|^2 \le 0 \implies (\mathbf{u} \cdot \mathbf{v})^2 \le \|\mathbf{u}\|^2 \|\mathbf{v}\|^2. Taking the positive square root of both sides establishes: ∣u⋅v∣≤∥u∥∥v∥.■ |\mathbf{u} \cdot \mathbf{v}| \le \|\mathbf{u}\| \|\mathbf{v}\|. \quad \blacksquare

● Corollary 1.2 · The Triangle Inequality in Rn \mathbb{R}^n

Theorem (Minkowski's Triangle Inequality): For all u,v∈Rn \mathbf{u}, \mathbf{v} \in \mathbb{R}^n : ∥u+v∥≤∥u∥+∥v∥. \|\mathbf{u} + \mathbf{v}\| \le \|\mathbf{u}\| + \|\mathbf{v}\|.

Proof: Compute the squared norm using inner products: ∥u+v∥2=(u+v)⋅(u+v)=∥u∥2+2(u⋅v)+∥v∥2. \|\mathbf{u} + \mathbf{v}\|^2 = (\mathbf{u} + \mathbf{v}) \cdot (\mathbf{u} + \mathbf{v}) = \|\mathbf{u}\|^2 + 2(\mathbf{u} \cdot \mathbf{v}) + \|\mathbf{v}\|^2. Applying the Cauchy–Schwarz inequality, u⋅v≤∣u⋅v∣≤∥u∥∥v∥ \mathbf{u} \cdot \mathbf{v} \le |\mathbf{u} \cdot \mathbf{v}| \le \|\mathbf{u}\| \|\mathbf{v}\| : ∥u+v∥2≤∥u∥2+2∥u∥∥v∥+∥v∥2=(∥u∥+∥v∥)2. \|\mathbf{u} + \mathbf{v}\|^2 \le \|\mathbf{u}\|^2 + 2\|\mathbf{u}\| \|\mathbf{v}\| + \|\mathbf{v}\|^2 = (\|\mathbf{u}\| + \|\mathbf{v}\|)^2. Taking the non-negative square root yields ∥u+v∥≤∥u∥+∥v∥ \|\mathbf{u} + \mathbf{v}\| \le \|\mathbf{u}\| + \|\mathbf{v}\| . ■\blacksquare

⊙ Explorer · Dot product & Cauchy–Schwarzinteractive
u · v4.023
|u| |v| (bound)5.000

u = ⟨1, 2⟩ is fixed; v keeps the same length as Worked example 1.B's v = ⟨2, 1⟩ (|v| = √5) but rotates freely. Drag near θ ≈ 63.43° and observe u·v approach the bound |u||v| = 5, the equality case in Cauchy-Schwarz where the vectors are parallel.

Orthogonal Vectors and Dot Product in R² — Coordinate plane with graph of Span of u = (3, 2), Span of v = (-2, 3); marked points Origin (0,0) (0, 0), u = (3, 2) (3, 2), v = (-2, 3) (-2, 3)-3-2-11234-224xySpan of u = (3, 2)Span of v = (-2, 3)Origin (0,0)u = (3, 2)v = (-2, 3)
Orthogonal vectors u=⟨3,2⟩ \mathbf{u} = \langle 3, 2 \rangle and v=⟨−2,3⟩ \mathbf{v} = \langle -2, 3 \rangle in R2 \mathbb{R}^2 . Their dot product u⋅v=3(−2)+2(3)=0 \mathbf{u} \cdot \mathbf{v} = 3(-2) + 2(3) = 0 confirms that the angle between them is 90∘ 90^\circ and their directions are perpendicular.
Level 2 (Medium) — Worked Example · Orthogonal Projection & Vector Decomposition

Problem: Decompose u=(512) \mathbf{u} = \begin{pmatrix} 5 \\ 1 \\ 2 \end{pmatrix} into the sum of two orthogonal vectors u=u∥+u⊥ \mathbf{u} = \mathbf{u}_\parallel + \mathbf{u}_\perp , where u∥ \mathbf{u}_\parallel is parallel to v=(12−1) \mathbf{v} = \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} and u⊥ \mathbf{u}_\perp is orthogonal to v \mathbf{v} .

Step 1 · Compute Projection u∥=projv(u) \mathbf{u}_\parallel = \text{proj}_\mathbf{v}(\mathbf{u}) : u⋅v=(5)(1)+(1)(2)+(2)(−1)=5+2−2=5. \mathbf{u} \cdot \mathbf{v} = (5)(1) + (1)(2) + (2)(-1) = 5 + 2 - 2 = 5. ∥v∥2=12+22+(−1)2=1+4+1=6. \|\mathbf{v}\|^2 = 1^2 + 2^2 + (-1)^2 = 1 + 4 + 1 = 6. u∥=u⋅v∥v∥2v=56(12−1)=(5/610/6−5/6)=(5/65/3−5/6). \mathbf{u}_\parallel = \frac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{v}\|^2}\mathbf{v} = \frac{5}{6}\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} = \mathbf{\begin{pmatrix} 5/6 \\ 10/6 \\ -5/6 \end{pmatrix}} = \begin{pmatrix} 5/6 \\ 5/3 \\ -5/6 \end{pmatrix}.

Step 2 · Compute Orthogonal Complement u⊥ \mathbf{u}_\perp : u⊥=u−u∥=(5−5/61−10/62−(−5/6))=(25/6−4/617/6)=(25/6−2/317/6). \mathbf{u}_\perp = \mathbf{u} - \mathbf{u}_\parallel = \begin{pmatrix} 5 - 5/6 \\ 1 - 10/6 \\ 2 - (-5/6) \end{pmatrix} = \mathbf{\begin{pmatrix} 25/6 \\ -4/6 \\ 17/6 \end{pmatrix}} = \begin{pmatrix} 25/6 \\ -2/3 \\ 17/6 \end{pmatrix}.

Step 3 · Verify Orthogonality: u⊥⋅v=256(1)+(−46)(2)+176(−1)=25−8−176=0.✓ \mathbf{u}_\perp \cdot \mathbf{v} = \frac{25}{6}(1) + \left(-\frac{4}{6}\right)(2) + \frac{17}{6}(-1) = \frac{25 - 8 - 17}{6} = 0. \quad \checkmark

Level 2 · Medium

Find the distance from the point P(3,−1,4) P(3, -1, 4) in R3 \mathbb{R}^3 to the line passing through the origin along the direction vector d=(21−2) \mathbf{d} = \begin{pmatrix} 2 \\ 1 \\ -2 \end{pmatrix} .

Let p=(3−14) \mathbf{p} = \begin{pmatrix} 3 \\ -1 \\ 4 \end{pmatrix} . The orthogonal distance from P P to the line span(d) \text{span}(\mathbf{d}) is ∥p⊥∥=∥p−projd(p)∥ \|\mathbf{p}_\perp\| = \|\mathbf{p} - \text{proj}_\mathbf{d}(\mathbf{p})\| .

Step 1: Compute projection of p \mathbf{p} onto d \mathbf{d} : p⋅d=3(2)+(−1)(1)+4(−2)=6−1−8=−3. \mathbf{p} \cdot \mathbf{d} = 3(2) + (-1)(1) + 4(-2) = 6 - 1 - 8 = -3. ∥d∥2=22+12+(−2)2=4+1+4=9. \|\mathbf{d}\|^2 = 2^2 + 1^2 + (-2)^2 = 4 + 1 + 4 = 9. projd(p)=−39d=−13(21−2)=(−2/3−1/32/3). \text{proj}_\mathbf{d}(\mathbf{p}) = \frac{-3}{9}\mathbf{d} = -\frac{1}{3}\begin{pmatrix} 2 \\ 1 \\ -2 \end{pmatrix} = \begin{pmatrix} -2/3 \\ -1/3 \\ 2/3 \end{pmatrix}.

Step 2: Compute orthogonal error vector: p⊥=(3−(−2/3)−1−(−1/3)4−2/3)=(11/3−2/310/3)=13(11−210). \mathbf{p}_\perp = \begin{pmatrix} 3 - (-2/3) \\ -1 - (-1/3) \\ 4 - 2/3 \end{pmatrix} = \begin{pmatrix} 11/3 \\ -2/3 \\ 10/3 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 11 \\ -2 \\ 10 \end{pmatrix}.

Step 3: Compute distance: Distance=∥p⊥∥=13112+(−2)2+102=13121+4+100=2253=153=5. \text{Distance} = \|\mathbf{p}_\perp\| = \frac{1}{3}\sqrt{11^2 + (-2)^2 + 10^2} = \frac{1}{3}\sqrt{121 + 4 + 100} = \frac{\sqrt{225}}{3} = \frac{15}{3} = \mathbf{5}.

Level 3 · Advanced / University Rigor — Inner Product Identities, Parallelogram Law & Hyperplanes

In advanced linear algebra and functional analysis, an inner product space (V,⟨⋅,⋅⟩) (V, \langle \cdot, \cdot \rangle) is characterized by geometric identities that relate the induced norm to the underlying inner product. Chief among these are the Parallelogram Law and the Polarization Identity.

● Theorem 1.3 & Formal Analytical Proof · The Parallelogram Law & Polarization Identity

Theorem (Parallelogram Law): In any real inner product space, the sum of the squares of the lengths of the four sides of a parallelogram equals the sum of the squares of the lengths of the two diagonals: ∥u+v∥2+∥u−v∥2=2∥u∥2+2∥v∥2. \|\mathbf{u} + \mathbf{v}\|^2 + \|\mathbf{u} - \mathbf{v}\|^2 = 2\|\mathbf{u}\|^2 + 2\|\mathbf{v}\|^2.

Proof: Expanding both squared norms by inner product bilinearity: ∥u+v∥2=∥u∥2+2⟨u,v⟩+∥v∥2, \|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + 2\langle \mathbf{u}, \mathbf{v} \rangle + \|\mathbf{v}\|^2, ∥u−v∥2=∥u∥2−2⟨u,v⟩+∥v∥2. \|\mathbf{u} - \mathbf{v}\|^2 = \|\mathbf{u}\|^2 - 2\langle \mathbf{u}, \mathbf{v} \rangle + \|\mathbf{v}\|^2. Adding the two equations eliminates the cross-term 2⟨u,v⟩ 2\langle \mathbf{u}, \mathbf{v} \rangle : ∥u+v∥2+∥u−v∥2=2∥u∥2+2∥v∥2.■ \|\mathbf{u} + \mathbf{v}\|^2 + \|\mathbf{u} - \mathbf{v}\|^2 = 2\|\mathbf{u}\|^2 + 2\|\mathbf{v}\|^2. \quad \blacksquare


Theorem (Polarization Identity): The inner product can be completely recovered from the norm function: ⟨u,v⟩=14(∥u+v∥2−∥u−v∥2). \langle \mathbf{u}, \mathbf{v} \rangle = \frac{1}{4}\left( \|\mathbf{u} + \mathbf{v}\|^2 - \|\mathbf{u} - \mathbf{v}\|^2 \right).

Significance: By the Jordan–von Neumann Theorem, a normed vector space (V,∥⋅∥) (V, \|\cdot\|) can be equipped with an inner product that induces the norm if and only if the norm satisfies the Parallelogram Law.

⚠️ Common Traps & University Pitfalls · Vectors in Rⁿ
  1. Canceling Dot Products: u⋅v=u⋅w \mathbf{u} \cdot \mathbf{v} = \mathbf{u} \cdot \mathbf{w} does NOT imply v=w \mathbf{v} = \mathbf{w} . It only implies u⋅(v−w)=0 \mathbf{u} \cdot (\mathbf{v} - \mathbf{w}) = 0 , meaning u \mathbf{u} is orthogonal to v−w \mathbf{v} - \mathbf{w} . Dot product division is mathematically undefined!
  2. Norm of a Sum: ∥u+v∥2≠∥u∥2+∥v∥2 \|\mathbf{u} + \mathbf{v}\|^2 \neq \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2 in general. The Pythagorean Theorem ∥u+v∥2=∥u∥2+∥v∥2 \|\mathbf{u} + \mathbf{v}\|^2 = \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2 holds if and only if u⋅v=0 \mathbf{u} \cdot \mathbf{v} = 0 (orthogonality).
  3. Associativity Fallacy: The expression u⋅v⋅w \mathbf{u} \cdot \mathbf{v} \cdot \mathbf{w} is syntax nonsense because u⋅v \mathbf{u} \cdot \mathbf{v} is a scalar; you cannot take the dot product of a scalar with the vector w \mathbf{w} . The vector scalar multiplication is (u⋅v)w (\mathbf{u} \cdot \mathbf{v})\mathbf{w} .
Level 3 (Advanced) — Worked Example · Hyperplane Equations & Point-to-Plane Distance in Rⁿ

Problem: In R4 \mathbb{R}^4 , a hyperplane H H is defined by the equation 2x1−x2+3x3+2x4=14 2x_1 - x_2 + 3x_3 + 2x_4 = 14 .
1. Identify the normal vector n \mathbf{n} and express H H in vector form n⋅(x−p)=0 \mathbf{n} \cdot (\mathbf{x} - \mathbf{p}) = 0 .
2. Prove analytically and calculate the shortest Euclidean distance from the point x0=(1,2,0,1) \mathbf{x}_0 = (1, 2, 0, 1) to H H .

Step 1 · Normal Vector and Plane Representation:
The coefficients define the normal vector n=(2−132) \mathbf{n} = \begin{pmatrix} 2 \\ -1 \\ 3 \\ 2 \end{pmatrix} . For any point p∈H \mathbf{p} \in H , n⋅p=14 \mathbf{n} \cdot \mathbf{p} = 14 . For instance, choosing p=(7,0,0,0) \mathbf{p} = (7, 0, 0, 0) gives n⋅p=14 \mathbf{n} \cdot \mathbf{p} = 14 . Thus H={x∈R4:n⋅(x−p)=0} H = \{ \mathbf{x} \in \mathbb{R}^4 : \mathbf{n} \cdot (\mathbf{x} - \mathbf{p}) = 0 \} .

Step 2 · Analytical Distance Derivation:
The vector connecting any p∈H \mathbf{p} \in H to x0 \mathbf{x}_0 is x0−p \mathbf{x}_0 - \mathbf{p} . The distance to the hyperplane is the length of the projection of x0−p \mathbf{x}_0 - \mathbf{p} onto the unit normal n^ \hat{\mathbf{n}} : d(x0,H)=∣n⋅(x0−p)∣∥n∥=∣n⋅x0−n⋅p∣∥n∥=∣n⋅x0−14∣∥n∥. d(\mathbf{x}_0, H) = \frac{|\mathbf{n} \cdot (\mathbf{x}_0 - \mathbf{p})|}{\|\mathbf{n}\|} = \frac{|\mathbf{n} \cdot \mathbf{x}_0 - \mathbf{n} \cdot \mathbf{p}|}{\|\mathbf{n}\|} = \frac{|\mathbf{n} \cdot \mathbf{x}_0 - 14|}{\|\mathbf{n}\|}.

Step 3 · Numerical Computation: n⋅x0=2(1)−1(2)+3(0)+2(1)=2−2+0+2=2. \mathbf{n} \cdot \mathbf{x}_0 = 2(1) - 1(2) + 3(0) + 2(1) = 2 - 2 + 0 + 2 = 2. ∥n∥=22+(−1)2+32+22=4+1+9+4=18=32. \|\mathbf{n}\| = \sqrt{2^2 + (-1)^2 + 3^2 + 2^2} = \sqrt{4 + 1 + 9 + 4} = \sqrt{18} = 3\sqrt{2}. d(x0,H)=∣2−14∣32=1232=42=22. d(\mathbf{x}_0, H) = \frac{|2 - 14|}{3\sqrt{2}} = \frac{12}{3\sqrt{2}} = \frac{4}{\sqrt{2}} = \mathbf{2\sqrt{2}}.

Level 3 · Advanced / University Rigor

Let u,v∈Rn \mathbf{u}, \mathbf{v} \in \mathbb{R}^n satisfy ∥u∥=4 \|\mathbf{u}\| = 4 , ∥v∥=5 \|\mathbf{v}\| = 5 , and ∥u+v∥=7 \|\mathbf{u} + \mathbf{v}\| = 7 . Using the Parallelogram Law, find the exact length of the difference vector ∥u−v∥ \|\mathbf{u} - \mathbf{v}\| , and determine the angle θ \theta between u \mathbf{u} and v \mathbf{v} .

Step 1 · Apply the Parallelogram Law: ∥u+v∥2+∥u−v∥2=2∥u∥2+2∥v∥2. \|\mathbf{u} + \mathbf{v}\|^2 + \|\mathbf{u} - \mathbf{v}\|^2 = 2\|\mathbf{u}\|^2 + 2\|\mathbf{v}\|^2. Substitute known values: 72+∥u−v∥2=2(42)+2(52)  ⟹  49+∥u−v∥2=2(16)+2(25)=32+50=82. 7^2 + \|\mathbf{u} - \mathbf{v}\|^2 = 2(4^2) + 2(5^2) \implies 49 + \|\mathbf{u} - \mathbf{v}\|^2 = 2(16) + 2(25) = 32 + 50 = 82. ∥u−v∥2=82−49=33  ⟹  ∥u−v∥=33. \|\mathbf{u} - \mathbf{v}\|^2 = 82 - 49 = 33 \implies \mathbf{\|\mathbf{u} - \mathbf{v}\| = \sqrt{33}}.

Step 2 · Determine the angle θ \theta :
Using the Polarization Identity: u⋅v=14(∥u+v∥2−∥u−v∥2)=14(49−33)=164=4. \mathbf{u} \cdot \mathbf{v} = \frac{1}{4}\left( \|\mathbf{u} + \mathbf{v}\|^2 - \|\mathbf{u} - \mathbf{v}\|^2 \right) = \frac{1}{4}(49 - 33) = \frac{16}{4} = 4. Now compute cos⁡θ \cos\theta : cos⁡θ=u⋅v∥u∥∥v∥=4(4)(5)=15=0.2  ⟹  θ=arccos⁡(0.2)≈78.46∘. \cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{u}\|\|\mathbf{v}\|} = \frac{4}{(4)(5)} = \frac{1}{5} = 0.2 \implies \mathbf{\theta = \arccos(0.2) \approx 78.46^\circ}.

[Vectors in Rn \mathbb{R}^n & Inner Product Spaces · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
2

Systems of Linear Equations & Row Reduction

📌 Linear Algebra · Chapter 2 Core Technique  ·  Augmented matrices & elementary row operations  ·  REF vs. RREF & Gauss–Jordan algorithm  ·  Pivot existence theorem & parametric vector solutions

Systems of linear equations represent the most widely used mathematical construct in quantitative science. Any linear system can be encoded compactly as an augmented matrix [A∣b] [A \mid \mathbf{b}] . Through Gaussian and Gauss–Jordan elimination, elementary row operations transform the system into echelon form while preserving its solution set, revealing existence, uniqueness, and parametric solution spaces.

Level 1 · Foundations — Augmented Matrices, Elementary Row Operations & Echelon Forms

A system of m m linear equations in n n unknowns x1,x2,…,xn x_1, x_2, \dots, x_n can be written as: a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2    ⋮am1x1+am2x2+⋯+amnxn=bm⟺Ax=b. \begin{aligned} 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{aligned} \quad \Longleftrightarrow \quad A\mathbf{x} = \mathbf{b}.

Systems of Linear Equations & Row Reduction — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
● Definition 2.1 — Augmented Matrix, REF & RREF

1. Augmented Matrix: The m×(n+1) m \times (n+1) rectangular array: [A∣b]=(a11a12…a1n∣b1a21a22…a2n∣b2⋮⋮⋱⋮∣⋮am1am2…amn∣bm). [A \mid \mathbf{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}.


2. Row Echelon Form (REF): A matrix is in REF if:
• All all-zero rows are grouped at the very bottom.
• Each leading non-zero entry (called a pivot) of a non-zero row is strictly to the right of the pivot in the row above it.
• All entries in a column directly below a pivot are zero.


3. Reduced Row Echelon Form (RREF): A matrix is in RREF if it satisfies REF plus:
• Every pivot entry is equal to 1 1 .
• Each pivot 1 1 is the only non-zero entry in its entire column (entries above and below are zero).

The Three Elementary Row Operations

Row Interchange (Swap)
Ri⟷Rj R_i \longleftrightarrow R_j : Swap equation i i and equation j j
Row Scaling
Ri⟵cRi R_i \longleftarrow c R_i with c≠0 c \neq 0 : Multiply equation i i by a non-zero scalar
Row Replacement (Elimination)
Ri⟵Ri+cRj R_i \longleftarrow R_i + c R_j : Add a scalar multiple of row j j to row i i
Level 1 (Foundations) — Worked Example · Gauss–Jordan Elimination to RREF

Problem: Solve the linear system using Gauss–Jordan elimination: x1+2x2−x3=12x1+5x2+x3=73x1+7x2+2x3=12 \begin{aligned} x_1 + 2x_2 - x_3 &= 1 \\ 2x_1 + 5x_2 + x_3 &= 7 \\ 3x_1 + 7x_2 + 2x_3 &= 12 \end{aligned}

Step 1 · Form the Augmented Matrix: [A∣b]=(12−1∣1251∣7372∣12). [A \mid \mathbf{b}] = \begin{pmatrix} 1 & 2 & -1 & | & 1 \\ 2 & 5 & 1 & | & 7 \\ 3 & 7 & 2 & | & 12 \end{pmatrix}.

Step 2 · Forward Elimination (Column 1):
Perform R2←R2−2R1 R_2 \leftarrow R_2 - 2R_1 and R3←R3−3R1 R_3 \leftarrow R_3 - 3R_1 : (12−1∣1013∣5015∣9). \begin{pmatrix} 1 & 2 & -1 & | & 1 \\ 0 & 1 & 3 & | & 5 \\ 0 & 1 & 5 & | & 9 \end{pmatrix}.

Step 3 · Forward Elimination (Column 2):
Perform R3←R3−R2 R_3 \leftarrow R_3 - R_2 : (12−1∣1013∣5002∣4). \begin{pmatrix} 1 & 2 & -1 & | & 1 \\ 0 & 1 & 3 & | & 5 \\ 0 & 0 & 2 & | & 4 \end{pmatrix}.

Step 4 · Backward Elimination to RREF:
Scale R3←12R3 R_3 \leftarrow \frac{1}{2}R_3 : (12−1∣1013∣5001∣2). \begin{pmatrix} 1 & 2 & -1 & | & 1 \\ 0 & 1 & 3 & | & 5 \\ 0 & 0 & 1 & | & 2 \end{pmatrix}. Eliminate above pivot 3: R2←R2−3R3 R_2 \leftarrow R_2 - 3R_3 and R1←R1+R3 R_1 \leftarrow R_1 + R_3 : (120∣3010∣−1001∣2). \begin{pmatrix} 1 & 2 & 0 & | & 3 \\ 0 & 1 & 0 & | & -1 \\ 0 & 0 & 1 & | & 2 \end{pmatrix}. Eliminate above pivot 2: R1←R1−2R2 R_1 \leftarrow R_1 - 2R_2 : (100∣5010∣−1001∣2). \begin{pmatrix} 1 & 0 & 0 & | & 5 \\ 0 & 1 & 0 & | & -1 \\ 0 & 0 & 1 & | & 2 \end{pmatrix}.

Conclusion: The system has the unique solution x1=5,  x2=−1,  x3=2 \mathbf{x_1 = 5, \; x_2 = -1, \; x_3 = 2} .

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

Level 1 · Foundations

Convert the matrix into Reduced Row Echelon Form (RREF): M=(1−212−45). M = \begin{pmatrix} 1 & -2 & 1 \\ 2 & -4 & 5 \end{pmatrix}.

Step 1 · Eliminate below pivot 1: Perform R2←R2−2R1 R_2 \leftarrow R_2 - 2R_1 : (1−21003). \begin{pmatrix} 1 & -2 & 1 \\ 0 & 0 & 3 \end{pmatrix}.

Step 2 · Scale pivot 2 to 1: Perform R2←13R2 R_2 \leftarrow \frac{1}{3}R_2 : (1−21001). \begin{pmatrix} 1 & -2 & 1 \\ 0 & 0 & 1 \end{pmatrix}.

Step 3 · Eliminate above pivot 2: Perform R1←R1−R2 R_1 \leftarrow R_1 - R_2 : (1−20001). \mathbf{\begin{pmatrix} 1 & -2 & 0 \\ 0 & 0 & 1 \end{pmatrix}}.

Level 2 · Medium — The Existence & Uniqueness Theorem and Solution Invariance

Every linear system has either no solution, exactly one unique solution, or infinitely many solutions. This fundamental trichotomy is determined completely by the pivot positions in the augmented matrix.

● Theorem 2.1 & Proof · Invariance of Solution Sets Under Row Operations

Theorem: Applying any sequence of elementary row operations to the augmented matrix [A∣b] [A \mid \mathbf{b}] preserves the solution set of the linear system Ax=b A\mathbf{x} = \mathbf{b} .

Proof: It suffices to verify each elementary row operation individually:
• Row Interchange (Ri↔Rj R_i \leftrightarrow R_j ): Swapping two equations changes only their presentation order in the conjunction of statements E1∧⋯∧Em E_1 \land \dots \land E_m . Conjunction is commutative, so the solution set is unchanged.
• Row Scaling (Ri←cRi,c≠0 R_i \leftarrow c R_i, c \neq 0 ): If x \mathbf{x} satisfies equation Ei:∑aikxk=bi E_i: \sum a_{ik}x_k = b_i , multiplying both sides by c c shows x \mathbf{x} satisfies cEi c E_i . Conversely, since c≠0 c \neq 0 , multiplying cEi c E_i by 1/c 1/c recovers Ei E_i . Hence x \mathbf{x} satisfies Ei  ⟺  x E_i \iff \mathbf{x} satisfies cEi c E_i .
• Row Replacement (Ri←Ri+cRj,j≠i R_i \leftarrow R_i + c R_j, j \neq i ): If x \mathbf{x} satisfies both Ei E_i and Ej E_j , it satisfies Ei+cEj E_i + c E_j . Conversely, if x \mathbf{x} satisfies the new system, it satisfies Ej E_j (which was untouched) and Ei+cEj E_i + c E_j ; subtracting cEj c E_j recovers the original equation Ei E_i .
Since each operation is reversible and preserves the solution set, any finite composition of row operations preserves the exact solution set. ■\blacksquare

● Theorem 2.2 · Existence and Uniqueness (Rouché–Capelli Theorem)

Let [A∣b] [A \mid \mathbf{b}] be the augmented matrix of a linear system with n n unknowns, and let [U∣c] [U \mid \mathbf{c}] be its row echelon form.

  1. Consistency Criterion: A linear system is consistent (possesses at least one solution) if and only if the rightmost column of the augmented matrix is NOT a pivot column. In other words, there is no row of the form: (00…0∣d)with d≠0. \begin{pmatrix} 0 & 0 & \dots & 0 & | & d \end{pmatrix} \quad \text{with } d \neq 0.
  2. Uniqueness vs. Infinitude: If the system is consistent:
    • Unique Solution: Exactly when every column of A A contains a pivot (no free variables, rank(A)=n \text{rank}(A) = n ).
    • Infinitely Many Solutions: When there is at least one column of A A without a pivot (at least one free variable, rank(A)<n \text{rank}(A) < n ).
⊙ Explorer · Two lines, one systeminteractive
system typeunique solution
solution(3.000, 2.000)

Eq. 1 is fixed at x + y = 5 (indigo). Eq. 2 is a·x − y = c (amber), which at default a = 1, c = 1 is x − y = 1. Drag a to −1 to make the lines parallel, then adjust c to observe both dependent (c = −5, identical lines) and inconsistent (c ≠ −5, parallel lines) cases.

Intersection of Linear System Equations in R² — Coordinate plane with graph of x + y = 5, x - y = 1; marked points Solution (3, 2) (3, 2)123456246xyx + y = 5x − y = 1Solution (3, 2)
Geometric representation of the linear system x+y=5 x + y = 5 and x−y=1 x - y = 1 . The unique solution (3,2) (3, 2) is the single point where the two lines intersect.
Level 2 (Medium) — Worked Example · Parametric Vector Form for Consistent Underdetermined Systems

Problem: Express the solution set of the system in parametric vector form: x1−2x2+x3+3x4=42x1−4x2+3x3+8x4=11 \begin{aligned} x_1 - 2x_2 + x_3 + 3x_4 &= 4 \\ 2x_1 - 4x_2 + 3x_3 + 8x_4 &= 11 \end{aligned}

Step 1 · Reduce Augmented Matrix to RREF: (1−213∣42−438∣11)→R2←R2−2R1(1−213∣40012∣3). \begin{pmatrix} 1 & -2 & 1 & 3 & | & 4 \\ 2 & -4 & 3 & 8 & | & 11 \end{pmatrix} \xrightarrow{R_2 \leftarrow R_2 - 2R_1} \begin{pmatrix} 1 & -2 & 1 & 3 & | & 4 \\ 0 & 0 & 1 & 2 & | & 3 \end{pmatrix}. Eliminate above pivot 2 via R1←R1−R2 R_1 \leftarrow R_1 - R_2 : (1−201∣10012∣3). \begin{pmatrix} 1 & -2 & 0 & 1 & | & 1 \\ 0 & 0 & 1 & 2 & | & 3 \end{pmatrix}.

Step 2 · Identify Basic and Free Variables:
Pivots are in columns 1 and 3   ⟹  x1,x3\implies x_1, x_3 are basic variables.
Columns 2 and 4 lack pivots   ⟹  x2=s\implies x_2 = s and x4=tx_4 = t are free parameters (s,t∈Rs, t \in \mathbb{R}).

Step 3 · Express Basic Variables in terms of Free Variables: x1=1+2s−t,x3=3−2t. x_1 = 1 + 2s - t, \qquad x_3 = 3 - 2t.

Step 4 · Assemble Parametric Vector Form: x=(x1x2x3x4)=(1+2s−ts3−2tt)=(1030)+s(2100)+t(−10−21). \mathbf{x} = \begin{pmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{pmatrix} = \begin{pmatrix} 1 + 2s - t \\ s \\ 3 - 2t \\ t \end{pmatrix} = \mathbf{\begin{pmatrix} 1 \\ 0 \\ 3 \\ 0 \end{pmatrix} + s\begin{pmatrix} 2 \\ 1 \\ 0 \\ 0 \end{pmatrix} + t\begin{pmatrix} -1 \\ 0 \\ -2 \\ 1 \end{pmatrix}}.

Geometric Interpretation: The solution set is a 2-dimensional affine plane in R4 \mathbb{R}^4 passing through particular solution xp=(1,0,3,0)T \mathbf{x}_p = (1, 0, 3, 0)^T spanned by the null space vectors.

Level 2 · Medium

Find all solutions to the homogeneous linear system: x1+3x2−2x3=02x1+6x2−4x3=0 \begin{aligned} x_1 + 3x_2 - 2x_3 &= 0 \\ 2x_1 + 6x_2 - 4x_3 &= 0 \end{aligned}

Step 1: Set up and row reduce the coefficient matrix: (13−226−4)→R2←R2−2R1(13−2000). \begin{pmatrix} 1 & 3 & -2 \\ 2 & 6 & -4 \end{pmatrix} \xrightarrow{R_2 \leftarrow R_2 - 2R_1} \begin{pmatrix} 1 & 3 & -2 \\ 0 & 0 & 0 \end{pmatrix}.

Step 2: Pivot is in column 1 (x1x_1 basic); columns 2 and 3 have no pivots (x2=s,x3=tx_2 = s, x_3 = t free).

Step 3: Solve for x1=−3s+2tx_1 = -3s + 2t. Write in parametric vector form: x=(x1x2x3)=s(−310)+t(201),s,t∈R. \mathbf{x} = \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \mathbf{s\begin{pmatrix} -3 \\ 1 \\ 0 \end{pmatrix} + t\begin{pmatrix} 2 \\ 0 \\ 1 \end{pmatrix}, \quad s, t \in \mathbb{R}}.

Level 3 · Advanced / University Rigor — Parameterized Systems, Affine Structure & Contradiction Geometry

In advanced applications, linear systems frequently contain physical or engineering parameters k∈R k \in \mathbb{R} . Determining bifurcation points where a system transitions between unique, infinite, and zero solutions requires rigorous analysis of leading variables and determinant degeneration.

● Theorem 2.3 · Affine Structure of Solution Sets

Theorem: Let Ax=b A\mathbf{x} = \mathbf{b} be a consistent linear system, and let xp \mathbf{x}_p be any particular solution such that Axp=b A\mathbf{x}_p = \mathbf{b} . Then the complete solution set S S is given by: S=xp+Null⁡(A)={xp+xh:Axh=0}. S = \mathbf{x}_p + \operatorname{Null}(A) = \{ \mathbf{x}_p + \mathbf{x}_h : A\mathbf{x}_h = \mathbf{0} \}.

Proof:
1. Suppose x=xp+xh \mathbf{x} = \mathbf{x}_p + \mathbf{x}_h with Axh=0 A\mathbf{x}_h = \mathbf{0} . Then: Ax=A(xp+xh)=Axp+Axh=b+0=b. A\mathbf{x} = A(\mathbf{x}_p + \mathbf{x}_h) = A\mathbf{x}_p + A\mathbf{x}_h = \mathbf{b} + \mathbf{0} = \mathbf{b}. Thus every vector of the form xp+xh \mathbf{x}_p + \mathbf{x}_h is a solution.
2. Conversely, let x \mathbf{x} be any arbitrary solution satisfying Ax=b A\mathbf{x} = \mathbf{b} . Define xh=x−xp \mathbf{x}_h = \mathbf{x} - \mathbf{x}_p . Then: Axh=A(x−xp)=Ax−Axp=b−b=0. A\mathbf{x}_h = A(\mathbf{x} - \mathbf{x}_p) = A\mathbf{x} - A\mathbf{x}_p = \mathbf{b} - \mathbf{b} = \mathbf{0}. Thus xh∈Null⁡(A) \mathbf{x}_h \in \operatorname{Null}(A) , so x=xp+xh∈xp+Null⁡(A) \mathbf{x} = \mathbf{x}_p + \mathbf{x}_h \in \mathbf{x}_p + \operatorname{Null}(A) . ■\blacksquare

⚠️ Common Traps & University Pitfalls · Linear Systems
  1. Dividing by Parameter Expressions: During row operations with parameter k k , performing Ri←1k−2Ri R_i \leftarrow \frac{1}{k-2} R_i assumes k≠2 k \neq 2 . You must explicitly bifurcate your analysis: treat k=2 k = 2 as an independent case before dividing!
  2. Overdetermined vs. Inconsistent: Having more equations than unknowns (m>n m > n ) does NOT mean the system has no solution. If equations are linearly dependent, an overdetermined system can have a unique solution or even infinitely many solutions.
  3. Free Variables vs. Free Parameters: A variable is free only if its corresponding column in A A lacks a pivot in REF. Never arbitrarily choose a basic variable as a free parameter.
Level 3 (Advanced) — Worked Example · Complete Parameter Bifurcation Analysis

Problem: Determine all values of the parameter k∈R k \in \mathbb{R} for which the linear system has (a) a unique solution, (b) infinitely many solutions, or (c) no solution: x+y+kz=23x+4y+2z=k2x+3y−z=1 \begin{aligned} x + y + kz &= 2 \\ 3x + 4y + 2z &= k \\ 2x + 3y - z &= 1 \end{aligned}

Step 1 · Set up Augmented Matrix and Row Reduce: (11k∣2342∣k23−1∣1)→R2←R2−3R1R3←R3−2R1(11k∣2012−3k∣k−601−1−2k∣−3). \begin{pmatrix} 1 & 1 & k & | & 2 \\ 3 & 4 & 2 & | & k \\ 2 & 3 & -1 & | & 1 \end{pmatrix} \xrightarrow{\substack{R_2 \leftarrow R_2 - 3R_1 \\ R_3 \leftarrow R_3 - 2R_1}} \begin{pmatrix} 1 & 1 & k & | & 2 \\ 0 & 1 & 2 - 3k & | & k - 6 \\ 0 & 1 & -1 - 2k & | & -3 \end{pmatrix}.

Step 2 · Eliminate Column 2 in Row 3: Perform R3←R3−R2 R_3 \leftarrow R_3 - R_2 : (11k∣2012−3k∣k−600(−1−2k)−(2−3k)∣−3−(k−6))=(11k∣2012−3k∣k−600k−3∣3−k). \begin{pmatrix} 1 & 1 & k & | & 2 \\ 0 & 1 & 2 - 3k & | & k - 6 \\ 0 & 0 & (-1 - 2k) - (2 - 3k) & | & -3 - (k - 6) \end{pmatrix} = \begin{pmatrix} 1 & 1 & k & | & 2 \\ 0 & 1 & 2 - 3k & | & k - 6 \\ 0 & 0 & k - 3 & | & 3 - k \end{pmatrix}.

Step 3 · Analyze Row 3: (k−3)z=3−k (k - 3)z = 3 - k :
• Case 1 (k≠3 k \neq 3 ): The coefficient k−3≠0 k - 3 \neq 0 , so there is a pivot in row 3 column 3. All three columns of A A have pivots   ⟹  \implies Unique solution for all k≠3 \mathbf{k \neq 3} (with z=−1 z = -1 ).
• Case 2 (k=3 k = 3 ): Row 3 becomes: (003−3∣3−3)=(000∣0). \begin{pmatrix} 0 & 0 & 3 - 3 & | & 3 - 3 \end{pmatrix} = \begin{pmatrix} 0 & 0 & 0 & | & 0 \end{pmatrix}. The system is consistent and column 3 lacks a pivot (z z is free)   ⟹  \implies Infinitely many solutions when k=3 \mathbf{k = 3} .
• Case 3 (No Solution): For row 3 to represent a contradiction 0=d≠0 0 = d \neq 0 , we would require k−3=0 k - 3 = 0 and 3−k≠0 3 - k \neq 0 , which is impossible since 3−3=0 3 - 3 = 0 . Hence there is no value of k k for which the system is inconsistent.

Level 3 · Advanced / University Rigor

Find the general solution in parametric vector form for the underdetermined linear system: x1+2x2−3x3+x4+2x5=3−x1−2x2+4x3−2x4−x5=−22x1+4x2−5x3+x4+5x5=7 \begin{aligned} x_1 + 2x_2 - 3x_3 + x_4 + 2x_5 &= 3 \\ -x_1 - 2x_2 + 4x_3 - 2x_4 - x_5 &= -2 \\ 2x_1 + 4x_2 - 5x_3 + x_4 + 5x_5 &= 7 \end{aligned}

Step 1 · Set up Augmented Matrix and Eliminate: (12−312∣3−1−24−2−1∣−224−515∣7)→R2←R2+R1R3←R3−2R1(12−312∣3001−11∣1001−11∣1). \begin{pmatrix} 1 & 2 & -3 & 1 & 2 & | & 3 \\ -1 & -2 & 4 & -2 & -1 & | & -2 \\ 2 & 4 & -5 & 1 & 5 & | & 7 \end{pmatrix} \xrightarrow{\substack{R_2 \leftarrow R_2 + R_1 \\ R_3 \leftarrow R_3 - 2R_1}} \begin{pmatrix} 1 & 2 & -3 & 1 & 2 & | & 3 \\ 0 & 0 & 1 & -1 & 1 & | & 1 \\ 0 & 0 & 1 & -1 & 1 & | & 1 \end{pmatrix}. Perform R3←R3−R2 R_3 \leftarrow R_3 - R_2 and R1←R1+3R2 R_1 \leftarrow R_1 + 3R_2 to reach RREF: (120−25∣6001−11∣100000∣0). \begin{pmatrix} 1 & 2 & 0 & -2 & 5 & | & 6 \\ 0 & 0 & 1 & -1 & 1 & | & 1 \\ 0 & 0 & 0 & 0 & 0 & | & 0 \end{pmatrix}.

Step 2 · Identify Basic and Free Variables:
Pivots in columns 1 and 3   ⟹  x1,x3\implies x_1, x_3 are basic.
Columns 2, 4, 5 lack pivots   ⟹  x2=r,x4=s,x5=t\implies x_2 = r, x_4 = s, x_5 = t are free parameters.

Step 3 · Express Basic Variables: x1=6−2r+2s−5t,x3=1+s−t. x_1 = 6 - 2r + 2s - 5t, \qquad x_3 = 1 + s - t.

Step 4 · Parametric Vector Form: x=(60100)+r(−21000)+s(20110)+t(−50−101),r,s,t∈R. \mathbf{x} = \mathbf{\begin{pmatrix} 6 \\ 0 \\ 1 \\ 0 \\ 0 \end{pmatrix} + r\begin{pmatrix} -2 \\ 1 \\ 0 \\ 0 \\ 0 \end{pmatrix} + s\begin{pmatrix} 2 \\ 0 \\ 1 \\ 1 \\ 0 \end{pmatrix} + t\begin{pmatrix} -5 \\ 0 \\ -1 \\ 0 \\ 1 \end{pmatrix}, \quad r, s, t \in \mathbb{R}}.

[Systems of Linear Equations & Row Reduction · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
3

Matrices, Matrix Algebra & Inverses

📌 Linear Algebra · Chapter 3 Core Technique  ·  Matrix operations, column perspective & transpose  ·  Matrix inversion & Gauss–Jordan [A | I] algorithm  ·  Elementary matrices & the Invertible Matrix Theorem

A matrix is both an algebraic data structure for linear equations and the concrete representation of a linear map between vector spaces. Matrix multiplication embodies the composition of linear mappings, while matrix inversion represents the exact reversal of that transformation. This chapter develops the complete algebra of matrices, elementary matrix factorizations, and the unifying Invertible Matrix Theorem.

Level 1 · Foundations — Matrix Operations, The Column Perspective & Transpose

An m×n m \times n matrix A A consists of m m rows and n n columns. It can be viewed horizontally as a stack of row vectors or vertically as an array of column vectors: A=[a1  a2  …  an] A = [\mathbf{a}_1 \; \mathbf{a}_2 \; \dots \; \mathbf{a}_n] .

Matrices, Matrix Algebra & Inverses — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
● Definition 3.1 — Matrix Operations & The Two Perspectives of Matrix Multiplication

1. Entrywise Operations: For matrices A,B∈Rm×n A, B \in \mathbb{R}^{m \times n} and c∈R c \in \mathbb{R} :
• Addition: (A+B)ij=aij+bij (A + B)_{ij} = a_{ij} + b_{ij} .
• Scalar Multiplication: (cA)ij=caij (c A)_{ij} = c a_{ij} .


2. Matrix-Vector Product (Column Combination Perspective): For x=(x1,…,xn)T∈Rn \mathbf{x} = (x_1, \dots, x_n)^T \in \mathbb{R}^n : Ax=x1a1+x2a2+⋯+xnan. A\mathbf{x} = x_1 \mathbf{a}_1 + x_2 \mathbf{a}_2 + \dots + x_n \mathbf{a}_n. The vector Ax A\mathbf{x} is a linear combination of the columns of A A with weights from x \mathbf{x} .


3. Matrix Multiplication: For A∈Rm×n A \in \mathbb{R}^{m \times n} and B∈Rn×p B \in \mathbb{R}^{n \times p} :
• Dot Product Rule: The (i,k) (i, k) -th entry of AB AB is: (AB)ik=∑j=1naijbjk=Rowi(A)⋅Colk(B). (AB)_{ik} = \sum_{j=1}^n a_{ij} b_{jk} = \text{Row}_i(A) \cdot \text{Col}_k(B).
• Column Perspective: AB=[Ab1  Ab2  …  Abp] AB = [A\mathbf{b}_1 \; A\mathbf{b}_2 \; \dots \; A\mathbf{b}_p] . Each column of AB AB is A A applied to a column of B B .

● Theorem 3.1 & Analytical Proof · Transpose of a Matrix Product

Theorem: For any A∈Rm×n A \in \mathbb{R}^{m \times n} and B∈Rn×p B \in \mathbb{R}^{n \times p} : (AB)T=BTAT. (AB)^T = B^T A^T. (Notice the order of multiplication is strictly reversed).

Proof: Let C=AB C = AB . The (i,k) (i, k) -th entry of CT=(AB)T C^T = (AB)^T is the (k,i) (k, i) -th entry of C C : (CT)ik=Cki=(AB)ki=∑j=1nAkjBji. (C^T)_{ik} = C_{ki} = (AB)_{ki} = \sum_{j=1}^n A_{kj} B_{ji}. Now consider the product D=BTAT D = B^T A^T . The (i,k) (i, k) -th entry of D D is: Dik=∑j=1n(BT)ij(AT)jk=∑j=1nBjiAkj=∑j=1nAkjBji. D_{ik} = \sum_{j=1}^n (B^T)_{ij} (A^T)_{jk} = \sum_{j=1}^n B_{ji} A_{kj} = \sum_{j=1}^n A_{kj} B_{ji}. Since (CT)ik=Dik (C^T)_{ik} = D_{ik} for all i,k i, k , it follows that (AB)T=BTAT (AB)^T = B^T A^T . ■\blacksquare

Level 1 (Foundations) — Worked Example · Matrix Multiplication & Non-Commutativity

Problem: Let A=(1234) A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} and B=(0−121) B = \begin{pmatrix} 0 & -1 \\ 2 & 1 \end{pmatrix} . Compute AB AB and BA BA , verify that AB≠BA AB \neq BA , and verify that (AB)T=BTAT (AB)^T = B^T A^T .

Step 1 · Compute AB AB : AB=(1(0)+2(2)1(−1)+2(1)3(0)+4(2)3(−1)+4(1))=(4181). AB = \begin{pmatrix} 1(0) + 2(2) & 1(-1) + 2(1) \\ 3(0) + 4(2) & 3(-1) + 4(1) \end{pmatrix} = \mathbf{\begin{pmatrix} 4 & 1 \\ 8 & 1 \end{pmatrix}}.

Step 2 · Compute BA BA : BA=(0(1)+(−1)(3)0(2)+(−1)(4)2(1)+1(3)2(2)+1(4))=(−3−458). BA = \begin{pmatrix} 0(1) + (-1)(3) & 0(2) + (-1)(4) \\ 2(1) + 1(3) & 2(2) + 1(4) \end{pmatrix} = \mathbf{\begin{pmatrix} -3 & -4 \\ 5 & 8 \end{pmatrix}}. Clearly AB≠BA AB \neq BA , confirming that matrix multiplication is non-commutative.

Step 3 · Verify (AB)T=BTAT (AB)^T = B^T A^T : (AB)T=(4811). (AB)^T = \begin{pmatrix} 4 & 8 \\ 1 & 1 \end{pmatrix}. BTAT=(02−11)(1324)=(0(1)+2(2)0(3)+2(4)−1(1)+1(2)−1(3)+1(4))=(4811).✓ B^T A^T = \begin{pmatrix} 0 & 2 \\ -1 & 1 \end{pmatrix} \begin{pmatrix} 1 & 3 \\ 2 & 4 \end{pmatrix} = \begin{pmatrix} 0(1) + 2(2) & 0(3) + 2(4) \\ -1(1) + 1(2) & -1(3) + 1(4) \end{pmatrix} = \begin{pmatrix} 4 & 8 \\ 1 & 1 \end{pmatrix}. \quad \checkmark

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

Level 1 · Foundations

Let A=(2−1340−2) A = \begin{pmatrix} 2 & -1 & 3 \\ 4 & 0 & -2 \end{pmatrix} and x=(3−21) \mathbf{x} = \begin{pmatrix} 3 \\ -2 \\ 1 \end{pmatrix} . Compute Ax A\mathbf{x} explicitly using the linear combination of columns definition.

Using the column combination perspective: Ax=3(24)+(−2)(−10)+1(3−2)=(612)+(20)+(3−2)=(1110). A\mathbf{x} = 3\begin{pmatrix} 2 \\ 4 \end{pmatrix} + (-2)\begin{pmatrix} -1 \\ 0 \end{pmatrix} + 1\begin{pmatrix} 3 \\ -2 \end{pmatrix} = \begin{pmatrix} 6 \\ 12 \end{pmatrix} + \begin{pmatrix} 2 \\ 0 \end{pmatrix} + \begin{pmatrix} 3 \\ -2 \end{pmatrix} = \mathbf{\begin{pmatrix} 11 \\ 10 \end{pmatrix}}.

Level 2 · Medium — Matrix Inverses, Invertibility of 2×2 Matrices & The Gauss–Jordan Algorithm

A square n×n n \times n matrix A A is invertible (non-singular) if it represents a bijection on Rn \mathbb{R}^n . Inverting A A allows direct algebraic solution of linear systems: Ax=b  ⟺  x=A−1b A\mathbf{x} = \mathbf{b} \iff \mathbf{x} = A^{-1}\mathbf{b} .

● Theorem 3.2 & Proof · Inversion of 2×2 Matrices & The Product Inversion Rule

Theorem 1 (2×2 Inversion): The matrix A=(abcd) A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} is invertible if and only if det⁡(A)=ad−bc≠0 \det(A) = ad - bc \neq 0 . Its inverse is: A−1=1ad−bc(d−b−ca). A^{-1} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}.

Proof: Let Δ=ad−bc≠0 \Delta = ad - bc \neq 0 . Multiply A A by B=1Δ(d−b−ca) B = \frac{1}{\Delta}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix} : AB=1Δ(abcd)(d−b−ca)=1Δ(ad−bc−ab+bacd−dc−cb+da)=1Δ(Δ00Δ)=(1001)=I. AB = \frac{1}{\Delta} \begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix} = \frac{1}{\Delta} \begin{pmatrix} ad - bc & -ab + ba \\ cd - dc & -cb + da \end{pmatrix} = \frac{1}{\Delta} \begin{pmatrix} \Delta & 0 \\ 0 & \Delta \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = I. Similarly, computing BA BA gives I I . Thus B=A−1 B = A^{-1} . ■\blacksquare


Theorem 2 (Inverse of a Product): If A A and B B are invertible n×n n \times n matrices, then AB AB is invertible and: (AB)−1=B−1A−1. (AB)^{-1} = B^{-1} A^{-1}.

Proof: Using associativity: (AB)(B−1A−1)=A(BB−1)A−1=AIA−1=AA−1=I. (AB)(B^{-1} A^{-1}) = A(B B^{-1}) A^{-1} = A I A^{-1} = A A^{-1} = I. (B−1A−1)(AB)=B−1(A−1A)B=B−1IB=B−1B=I. (B^{-1} A^{-1})(AB) = B^{-1}(A^{-1} A) B = B^{-1} I B = B^{-1} B = I. By uniqueness of inverses, (AB)−1=B−1A−1 (AB)^{-1} = B^{-1} A^{-1} . ■\blacksquare

⊙ Explorer · Matrix transformation sandboxinteractive
det(A)1.000
area scale factor1.000

The indigo arrow is A's first column A e₁; the amber arrow is its second column A e₂. The filled parallelogram represents the image of the unit square, with area equal to |det(A)|. When det(A) < 0, the fill switches to amber, reflecting orientation reversal.

Matrix Column Vectors as Basis Images in R² — Coordinate plane with graph of Col 1: a₁ = (3, 1), Col 2: a₂ = (1, 2); marked points Origin (0,0) (0, 0), A e₁ = (3, 1) (3, 1), A e₂ = (1, 2) (1, 2)12341234xyCol 1: a₁ = (3, 1)Col 2: a₂ = (1, 2)Origin (0,0)A e₁ = (3, 1)A e₂ = (1, 2)
Action of matrix A=(3112) A = \begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix} on standard basis vectors e1=⟨1,0⟩ \mathbf{e}_1 = \langle 1, 0 \rangle and e2=⟨0,1⟩ \mathbf{e}_2 = \langle 0, 1 \rangle . The columns of A A define the transformed coordinate axes.
Level 2 (Medium) — Worked Example · Matrix Inversion via Gauss–Jordan [A | I] Algorithm

Problem: Invert the 3×3 3 \times 3 matrix A=(1022−13418) A = \begin{pmatrix} 1 & 0 & 2 \\ 2 & -1 & 3 \\ 4 & 1 & 8 \end{pmatrix} using row reduction on [A∣I] [A \mid I] .

Step 1 · Augment with Identity Matrix: [A∣I]=(102∣1002−13∣010418∣001). [A \mid I] = \begin{pmatrix} 1 & 0 & 2 & | & 1 & 0 & 0 \\ 2 & -1 & 3 & | & 0 & 1 & 0 \\ 4 & 1 & 8 & | & 0 & 0 & 1 \end{pmatrix}.

Step 2 · Forward Elimination:
Perform R2←R2−2R1 R_2 \leftarrow R_2 - 2R_1 and R3←R3−4R1 R_3 \leftarrow R_3 - 4R_1 : (102∣1000−1−1∣−210010∣−401). \begin{pmatrix} 1 & 0 & 2 & | & 1 & 0 & 0 \\ 0 & -1 & -1 & | & -2 & 1 & 0 \\ 0 & 1 & 0 & | & -4 & 0 & 1 \end{pmatrix}. Scale R2←−R2 R_2 \leftarrow -R_2 : (102∣100011∣2−10010∣−401). \begin{pmatrix} 1 & 0 & 2 & | & 1 & 0 & 0 \\ 0 & 1 & 1 & | & 2 & -1 & 0 \\ 0 & 1 & 0 & | & -4 & 0 & 1 \end{pmatrix}. Eliminate in row 3: R3←R3−R2 R_3 \leftarrow R_3 - R_2 : (102∣100011∣2−1000−1∣−611)→R3←−R3(102∣100011∣2−10001∣6−1−1). \begin{pmatrix} 1 & 0 & 2 & | & 1 & 0 & 0 \\ 0 & 1 & 1 & | & 2 & -1 & 0 \\ 0 & 0 & -1 & | & -6 & 1 & 1 \end{pmatrix} \xrightarrow{R_3 \leftarrow -R_3} \begin{pmatrix} 1 & 0 & 2 & | & 1 & 0 & 0 \\ 0 & 1 & 1 & | & 2 & -1 & 0 \\ 0 & 0 & 1 & | & 6 & -1 & -1 \end{pmatrix}.

Step 3 · Backward Elimination to RREF:
Eliminate column 3 above row 3: R2←R2−R3 R_2 \leftarrow R_2 - R_3 and R1←R1−2R3 R_1 \leftarrow R_1 - 2R_3 : (100∣1−2(6)0−2(−1)0−2(−1)010∣2−6−1−(−1)0−(−1)001∣6−1−1)=(100∣−1122010∣−401001∣6−1−1). \begin{pmatrix} 1 & 0 & 0 & | & 1 - 2(6) & 0 - 2(-1) & 0 - 2(-1) \\ 0 & 1 & 0 & | & 2 - 6 & -1 - (-1) & 0 - (-1) \\ 0 & 0 & 1 & | & 6 & -1 & -1 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 & | & -11 & 2 & 2 \\ 0 & 1 & 0 & | & -4 & 0 & 1 \\ 0 & 0 & 1 & | & 6 & -1 & -1 \end{pmatrix}.

Conclusion: A−1=(−1122−4016−1−1). \mathbf{A^{-1} = \begin{pmatrix} -11 & 2 & 2 \\ -4 & 0 & 1 \\ 6 & -1 & -1 \end{pmatrix}}.

Level 2 · Medium

Let A=(3512) A = \begin{pmatrix} 3 & 5 \\ 1 & 2 \end{pmatrix} and b=(41) \mathbf{b} = \begin{pmatrix} 4 \\ 1 \end{pmatrix} . Compute A−1 A^{-1} and use it to solve the linear system Ax=b A\mathbf{x} = \mathbf{b} .

Step 1 · Invert A A : det⁡(A)=(3)(2)−(5)(1)=6−5=1. \det(A) = (3)(2) - (5)(1) = 6 - 5 = 1. A−1=11(2−5−13)=(2−5−13). A^{-1} = \frac{1}{1}\begin{pmatrix} 2 & -5 \\ -1 & 3 \end{pmatrix} = \begin{pmatrix} 2 & -5 \\ -1 & 3 \end{pmatrix}.

Step 2 · Multiply x=A−1b \mathbf{x} = A^{-1}\mathbf{b} : x=(2−5−13)(41)=(2(4)−5(1)−1(4)+3(1))=(3−1). \mathbf{x} = \begin{pmatrix} 2 & -5 \\ -1 & 3 \end{pmatrix} \begin{pmatrix} 4 \\ 1 \end{pmatrix} = \begin{pmatrix} 2(4) - 5(1) \\ -1(4) + 3(1) \end{pmatrix} = \mathbf{\begin{pmatrix} 3 \\ -1 \end{pmatrix}}.

Level 3 · Advanced / University Rigor — Elementary Matrices & The Invertible Matrix Theorem

Every elementary row operation corresponds to pre-multiplying by an elementary matrix E E . This establishes the profound equivalence between row reduction algorithms, matrix factorizations, and the structural properties of linear mappings.

● Theorem 3.3 · Elementary Matrix Decomposition

An elementary matrix E E is obtained by performing a single elementary row operation on the identity matrix I I . Pre-multiplying any matrix A A by E E executes that exact row operation on A A : RowOp(A)=EA. \text{RowOp}(A) = E A.

Every elementary matrix E E is invertible, and its inverse E−1 E^{-1} is the elementary matrix of the same type that reverses the operation. Consequently, an n×n n \times n matrix A A is invertible if and only if it is row equivalent to In I_n , in which case A A can be factored as a product of elementary matrices: A=E1E2…Ek. A = E_1 E_2 \dots E_k.

● Theorem 3.4 · The Invertible Matrix Theorem (IMT)

Let A A be a square n×n n \times n matrix. The following statements are mathematically equivalent (either all are true, or all are false):

  1. A A is an invertible matrix.
  2. A A is row equivalent to the n×n n \times n identity matrix In I_n .
  3. A A has n n pivot positions (rank A=n A = n ).
  4. The equation Ax=0 A\mathbf{x} = \mathbf{0} has only the trivial solution x=0 \mathbf{x} = \mathbf{0} .
  5. The columns of A A form a linearly independent set.
  6. The linear transformation T(x)=Ax T(\mathbf{x}) = A\mathbf{x} is one-to-one (injective).
  7. The equation Ax=b A\mathbf{x} = \mathbf{b} has at least one solution for each b∈Rn \mathbf{b} \in \mathbb{R}^n .
  8. The columns of A A span Rn \mathbb{R}^n .
  9. The linear transformation T(x)=Ax T(\mathbf{x}) = A\mathbf{x} maps Rn \mathbb{R}^n onto Rn \mathbb{R}^n (surjective).
  10. There is an n×n n \times n matrix C C such that CA=I CA = I .
  11. There is an n×n n \times n matrix D D such that AD=I AD = I .
  12. AT A^T is an invertible matrix.
  13. det⁡(A)≠0 \det(A) \neq 0 .
  14. The number 0 0 is not an eigenvalue of A A .
  15. Col⁡(A)=Rn \operatorname{Col}(A) = \mathbb{R}^n and Null⁡(A)={0} \operatorname{Null}(A) = \{ \mathbf{0} \} .
⚠️ Common Traps & University Pitfalls · Matrices
  1. Assuming Zero Product Property: If AB=0 AB = 0 , it does NOT imply A=0 A = 0 or B=0 B = 0 . For example, (0100)(0100)=(0000) \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix} . Non-zero matrices can have zero products!
  2. Cancellation Fallacy: If AB=AC AB = AC and A≠0 A \neq 0 , you CANNOT cancel A A to conclude B=C B = C . Cancellation is legal only if A A is invertible (det⁡(A)≠0 \det(A) \neq 0 ).
  3. Order of Inverses and Transposes: Remembering socks and shoes: (AB)−1=B−1A−1 (AB)^{-1} = B^{-1} A^{-1} and (AB)T=BTAT (AB)^T = B^T A^T . Writing (AB)−1=A−1B−1 (AB)^{-1} = A^{-1} B^{-1} is a fatal error in non-commutative matrix algebra.
Level 3 (Advanced) — Worked Example · One-Sided Inverses for Square Matrices

Problem: Let A A and B B be n×n n \times n square matrices such that AB=I AB = I . Prove rigorously that BA=I BA = I and therefore B=A−1 B = A^{-1} .

Step 1 · Consider the Homogeneous Equation Bx=0 B\mathbf{x} = \mathbf{0} :
Suppose Bx=0 B\mathbf{x} = \mathbf{0} for some vector x∈Rn \mathbf{x} \in \mathbb{R}^n . Pre-multiply by A A : A(Bx)=A0  ⟹  (AB)x=0  ⟹  Ix=0  ⟹  x=0. A(B\mathbf{x}) = A\mathbf{0} \implies (AB)\mathbf{x} = \mathbf{0} \implies I\mathbf{x} = \mathbf{0} \implies \mathbf{x} = \mathbf{0}. Thus Bx=0 B\mathbf{x} = \mathbf{0} has only the trivial solution.

Step 2 · Apply the Invertible Matrix Theorem:
Since B B is an n×n n \times n square matrix whose homogeneous equation has only the trivial solution, by the IMT (statement 4   ⟹  \implies statement 1), B B is invertible, so B−1 B^{-1} exists.

Step 3 · Compute BA BA :
Multiply AB=I AB = I on the left by B−1 B^{-1} and on the right by B B : B−1(AB)B=B−1(I)B  ⟹  (B−1AB)B=B−1B=I. B^{-1}(AB)B = B^{-1}(I)B \implies (B^{-1}A B)B = B^{-1}B = I. More directly, multiply AB=I AB = I on the left by B B and on the right by B−1 B^{-1} : B(AB)B−1=B(I)B−1  ⟹  (BA)(BB−1)=BB−1  ⟹  (BA)I=I  ⟹  BA=I. B(AB)B^{-1} = B(I)B^{-1} \implies (BA)(BB^{-1}) = BB^{-1} \implies (BA)I = I \implies \mathbf{BA = I}. Thus B B is the genuine two-sided inverse of A A . ■\blacksquare

Level 3 · Advanced / University Rigor

Suppose an n×n n \times n matrix A A satisfies the polynomial equation A3−4A2+2A−5I=0 A^3 - 4A^2 + 2A - 5I = 0 . Prove that A A is invertible, and express A−1 A^{-1} as an explicit polynomial in A A .

Step 1 · Isolate the Identity Matrix: A3−4A2+2A=5I. A^3 - 4A^2 + 2A = 5I. Divide both sides by 5: 15(A3−4A2+2A)=I. \frac{1}{5}\left( A^3 - 4A^2 + 2A \right) = I.

Step 2 · Factor out A A : A[15(A2−4A+2I)]=I. A \left[ \frac{1}{5}\left( A^2 - 4A + 2I \right) \right] = I. Similarly, since polynomials in A A commute: [15(A2−4A+2I)]A=I. \left[ \frac{1}{5}\left( A^2 - 4A + 2I \right) \right] A = I.

Conclusion: By the definition of matrix inverse, A A is invertible, and its inverse is: A−1=15A2−45A+25I. \mathbf{A^{-1} = \frac{1}{5}A^2 - \frac{4}{5}A + \frac{2}{5}I}.

[Matrices, Matrix Algebra & Inverses · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
4

Determinants & Geometric Volume

📌 Linear Algebra · Chapter 4 Analytical Invariant  ·  Axiomatic characterization & Laplace expansion  ·  Multiplicative property det(AB) = det(A)det(B)  ·  Adjugate formula, Cramer's rule & volume scaling

The determinant is the unique multilinear, alternating scalar functional on square matrices that measures the volume scaling factor and orientation change induced by a linear transformation. Its non-zero status completely characterizes matrix invertibility, while its algebraic properties provide the foundational connection between algebra and geometry.

Level 1 · Foundations — Axiomatic Definition, Laplace Cofactor Expansion & Triangular Matrices

The determinant can be defined axiomatically through three characterizing properties, or constructively via recursive cofactor expansion along any row or column.

Determinants & Geometric Volume — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
● Definition 4.1 — Axiomatic Characterization & Laplace Cofactor Expansion

1. The Three Axioms of the Determinant: The determinant det⁡:Rn×n→R \det: \mathbb{R}^{n \times n} \to \mathbb{R} is the unique function satisfying:
• Multilinearity in Rows: det⁡ \det is linear with respect to each individual row when all other rows are held fixed.
• Alternating Property: Swapping any two rows negates the determinant: det⁡(R1,…,Rj,…,Ri,…,Rn)=−det⁡(R1,…,Ri,…,Rj,…,Rn) \det(R_1, \dots, R_j, \dots, R_i, \dots, R_n) = -\det(R_1, \dots, R_i, \dots, R_j, \dots, R_n) . If two rows are identical, det⁡(A)=0 \det(A) = 0 .
• Normalization: det⁡(In)=1 \det(I_n) = 1 .


2. Laplace Cofactor Expansion: For any chosen row i i (or column j j ): det⁡(A)=∑j=1naijCij=∑j=1n(−1)i+jaijdet⁡(Mij), \det(A) = \sum_{j=1}^n a_{ij} C_{ij} = \sum_{j=1}^n (-1)^{i+j} a_{ij} \det(M_{ij}), where Mij M_{ij} is the (n−1)×(n−1) (n-1) \times (n-1) minor submatrix formed by deleting row i i and column j j , and Cij=(−1)i+jdet⁡(Mij) C_{ij} = (-1)^{i+j} \det(M_{ij}) is the cofactor.


3. Triangular Matrices: If A A is upper-triangular, lower-triangular, or diagonal, its determinant is simply the product of its main diagonal entries: det⁡(A)=a11a22…ann=∏i=1naii. \det(A) = a_{11} a_{22} \dots a_{nn} = \prod_{i=1}^n a_{ii}.

Level 1 (Foundations) — Worked Example · Cofactor Expansion Strategy

Problem: Evaluate det⁡(A) \det(A) for the 3×3 3 \times 3 matrix by expanding along the row or column with the most zeros: A=(25−30401−26). A = \begin{pmatrix} 2 & 5 & -3 \\ 0 & 4 & 0 \\ 1 & -2 & 6 \end{pmatrix}.

Step 1 · Choose Optimal Expansion Path:
Row 2 contains two zeros (a21=0,a23=0 a_{21} = 0, a_{23} = 0 ), leaving only a22=4 a_{22} = 4 .

Step 2 · Apply Laplace Expansion along Row 2: det⁡(A)=(−1)2+1(0)det⁡(M21)+(−1)2+2(4)det⁡(M22)+(−1)2+3(0)det⁡(M23). \det(A) = (-1)^{2+1}(0)\det(M_{21}) + (-1)^{2+2}(4)\det(M_{22}) + (-1)^{2+3}(0)\det(M_{23}). det⁡(A)=4det⁡(M22)=4∣2−316∣. \det(A) = 4 \det(M_{22}) = 4 \begin{vmatrix} 2 & -3 \\ 1 & 6 \end{vmatrix}.

Step 3 · Evaluate 2×2 Minor: ∣2−316∣=(2)(6)−(−3)(1)=12+3=15. \begin{vmatrix} 2 & -3 \\ 1 & 6 \end{vmatrix} = (2)(6) - (-3)(1) = 12 + 3 = 15. det⁡(A)=4(15)=60. \det(A) = 4(15) = \mathbf{60}.

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

Level 1 · Foundations

Evaluate the determinant of the 4×4 4 \times 4 triangular matrix: T=(3−2740−158002−30005). T = \begin{pmatrix} 3 & -2 & 7 & 4 \\ 0 & -1 & 5 & 8 \\ 0 & 0 & 2 & -3 \\ 0 & 0 & 0 & 5 \end{pmatrix}.

Since T T is upper-triangular, its determinant is the product of its diagonal entries: det⁡(T)=(3)(−1)(2)(5)=−30. \det(T) = (3)(-1)(2)(5) = \mathbf{-30}.

Level 2 · Medium — Geometric Volume Interpretation & The Multiplicative Property

Geometrically, ∣det⁡(A)∣ |\det(A)| represents the hypervolume of the n n -dimensional parallelotope spanned by the column vectors of A A . Under a linear mapping T(x)=Ax T(\mathbf{x}) = A\mathbf{x} , any region S⊂Rn S \subset \mathbb{R}^n with volume V(S) V(S) is mapped to an image with volume ∣det⁡(A)∣V(S) |\det(A)| V(S) .

⊙ Explorer · Determinant as signed areainteractive
det([u v])5.000
area = |det|5.000
matrix [u v]invertible

u and v are the columns of the matrix [u v]; det([u v]) = uₓvy − uyvx is the signed area. Drag u onto v and the parallelogram collapses to a line of area 0, showing that the matrix is singular when its columns are linearly dependent.

Determinant as Signed Area of Parallelogram — Coordinate plane with graph of v = (1, 2), Shifted by u; marked points (0,0) (0, 0), u = (3, 0) (3, 0), v = (1, 2) (1, 2), u + v = (4, 2) (4, 2)123451234xyv = (1, 2)Shifted by u(0,0)u = (3, 0)v = (1, 2)u + v = (4, 2)
Parallelogram in R2 \mathbb{R}^2 spanned by vectors u=⟨3,0⟩ \mathbf{u} = \langle 3, 0 \rangle and v=⟨1,2⟩ \mathbf{v} = \langle 1, 2 \rangle . The determinant det⁡(3102)=(3)(2)−(1)(0)=6 \det\begin{pmatrix} 3 & 1 \\ 0 & 2 \end{pmatrix} = (3)(2) - (1)(0) = 6 represents the exact geometric area of the parallelogram.
● Theorem 4.1 & Proof · The Multiplicative Property det(AB) = det(A)det(B)

Theorem: For any n×n n \times n matrices A A and B B : det⁡(AB)=det⁡(A)det⁡(B). \det(AB) = \det(A) \det(B).

Proof via Elementary Matrices:
1. If E E is an elementary matrix:
• Row interchange: det⁡(E)=−1 \det(E) = -1 , and det⁡(EA)=−det⁡(A)=det⁡(E)det⁡(A) \det(EA) = -\det(A) = \det(E)\det(A) .
• Row scaling by c c : det⁡(E)=c \det(E) = c , and det⁡(EA)=cdet⁡(A)=det⁡(E)det⁡(A) \det(EA) = c\det(A) = \det(E)\det(A) .
• Row replacement: det⁡(E)=1 \det(E) = 1 , and det⁡(EA)=det⁡(A)=det⁡(E)det⁡(A) \det(EA) = \det(A) = \det(E)\det(A) .
Hence for any elementary matrix E E , det⁡(EB)=det⁡(E)det⁡(B) \det(EB) = \det(E)\det(B) .
2. By induction, if A=E1E2…Ek A = E_1 E_2 \dots E_k is invertible: det⁡(AB)=det⁡(E1…EkB)=det⁡(E1)…det⁡(Ek)det⁡(B)=det⁡(E1…Ek)det⁡(B)=det⁡(A)det⁡(B). \det(AB) = \det(E_1 \dots E_k B) = \det(E_1)\dots\det(E_k)\det(B) = \det(E_1 \dots E_k)\det(B) = \det(A)\det(B).
3. If A A is not invertible, then rank(A)<n  ⟹  rank(AB)≤rank(A)<n \text{rank}(A) < n \implies \text{rank}(AB) \le \text{rank}(A) < n , so AB AB is also not invertible. Thus det⁡(AB)=0 \det(AB) = 0 and det⁡(A)det⁡(B)=0⋅det⁡(B)=0 \det(A)\det(B) = 0 \cdot \det(B) = 0 .
Therefore det⁡(AB)=det⁡(A)det⁡(B) \det(AB) = \det(A)\det(B) holds universally. ■\blacksquare


Corollaries:
• Transpose: det⁡(AT)=det⁡(A) \det(A^T) = \det(A) .
• Inverse: If A A is invertible, det⁡(A−1)=1det⁡(A) \det(A^{-1}) = \frac{1}{\det(A)} .
• Scalar Multiple: det⁡(cA)=cndet⁡(A) \det(c A) = c^n \det(A) for n×n n \times n matrix A A .

Level 2 (Medium) — Worked Example · Fast Determinant via Row Reduction

Problem: Evaluate the determinant of A=(12−13241503211224) A = \begin{pmatrix} 1 & 2 & -1 & 3 \\ 2 & 4 & 1 & 5 \\ 0 & 3 & 2 & 1 \\ 1 & 2 & 2 & 4 \end{pmatrix} using Gaussian row operations.

Step 1 · Row Replacement on Column 1:
Perform R2←R2−2R1 R_2 \leftarrow R_2 - 2R_1 and R4←R4−R1 R_4 \leftarrow R_4 - R_1 (row replacements leave determinant unchanged): det⁡(A)=∣12−13003−103210031∣. \det(A) = \begin{vmatrix} 1 & 2 & -1 & 3 \\ 0 & 0 & 3 & -1 \\ 0 & 3 & 2 & 1 \\ 0 & 0 & 3 & 1 \end{vmatrix}.

Step 2 · Row Swap to place pivot in Row 2:
Perform R2↔R3 R_2 \leftrightarrow R_3 (multiplies determinant by −1 -1 ): det⁡(A)=−∣12−130321003−10031∣. \det(A) = -\begin{vmatrix} 1 & 2 & -1 & 3 \\ 0 & 3 & 2 & 1 \\ 0 & 0 & 3 & -1 \\ 0 & 0 & 3 & 1 \end{vmatrix}.

Step 3 · Eliminate Column 3 in Row 4:
Perform R4←R4−R3 R_4 \leftarrow R_4 - R_3 (no change to determinant): det⁡(A)=−∣12−130321003−10002∣. \det(A) = -\begin{vmatrix} 1 & 2 & -1 & 3 \\ 0 & 3 & 2 & 1 \\ 0 & 0 & 3 & -1 \\ 0 & 0 & 0 & 2 \end{vmatrix}.

Step 4 · Multiply Triangular Diagonal: det⁡(A)=−(1)(3)(3)(2)=−18. \det(A) = -(1)(3)(3)(2) = \mathbf{-18}.

Level 2 · Medium

Let A A and B B be 3×3 3 \times 3 matrices with det⁡(A)=3 \det(A) = 3 and det⁡(B)=−2 \det(B) = -2 . Compute the exact numerical value of: det⁡(2A2B−1AT). \det\left( 2 A^2 B^{-1} A^T \right).

Apply determinant algebraic properties for 3×3 3 \times 3 matrices: det⁡(2M)=23det⁡(M)=8det⁡(M). \det(2 M) = 2^3 \det(M) = 8 \det(M). Using the multiplicative, power, transpose, and inverse properties: det⁡(A2B−1AT)=[det⁡(A)]2⋅1det⁡(B)⋅det⁡(A)=[det⁡(A)]3det⁡(B). \det(A^2 B^{-1} A^T) = [\det(A)]^2 \cdot \frac{1}{\det(B)} \cdot \det(A) = \frac{[\det(A)]^3}{\det(B)}. Substitute det⁡(A)=3 \det(A) = 3 and det⁡(B)=−2 \det(B) = -2 : det⁡(2A2B−1AT)=8⋅33−2=8⋅27−2=8(−13.5)=−108. \det\left( 2 A^2 B^{-1} A^T \right) = 8 \cdot \frac{3^3}{-2} = 8 \cdot \frac{27}{-2} = 8(-13.5) = \mathbf{-108}.

Level 3 · Advanced / University Rigor — The Classical Adjugate, Cramer's Rule & Invertibility Invariant

The adjugate matrix provides an explicit analytical formula for the inverse of an arbitrary n×n n \times n matrix, leading to Cramer's Rule for solving non-singular linear systems without row operations.

● Theorem 4.2 & Proof · The Fundamental Adjugate Identity & Cramer's Rule

Definition: Let C C be the cofactor matrix of A A with entries Cij=(−1)i+jdet⁡(Mij) C_{ij} = (-1)^{i+j}\det(M_{ij}) . The adjugate matrix adj⁡(A) \operatorname{adj}(A) is the transpose of the cofactor matrix: adj⁡(A)=CT,(adj⁡(A))ij=Cji. \operatorname{adj}(A) = C^T, \qquad (\operatorname{adj}(A))_{ij} = C_{ji}.


Theorem (Fundamental Adjugate Identity): For any square matrix A∈Rn×n A \in \mathbb{R}^{n \times n} : Aadj⁡(A)=adj⁡(A)A=det⁡(A)In. A \operatorname{adj}(A) = \operatorname{adj}(A) A = \det(A) I_n. Consequently, if det⁡(A)≠0 \det(A) \neq 0 , then A A is invertible and: A−1=1det⁡(A)adj⁡(A). A^{-1} = \frac{1}{\det(A)} \operatorname{adj}(A).

Proof: Consider the (i,k) (i, k) -th entry of the product Aadj⁡(A) A \operatorname{adj}(A) : (Aadj⁡(A))ik=∑j=1naij(adj⁡(A))jk=∑j=1naijCkj. (A \operatorname{adj}(A))_{ik} = \sum_{j=1}^n a_{ij} (\operatorname{adj}(A))_{jk} = \sum_{j=1}^n a_{ij} C_{kj}. • If i=k i = k , this is precisely the Laplace cofactor expansion of det⁡(A) \det(A) along row i i , yielding det⁡(A) \det(A) .
• If i≠k i \neq k , this represents the cofactor expansion along row k k of a matrix whose k k -th row has been replaced by row i i . Such a matrix has two identical rows (row i i and row k k ), so its determinant is zero! (This is known as expansion by alien cofactors).
Thus (Aadj⁡(A))ik=det⁡(A)δik (A \operatorname{adj}(A))_{ik} = \det(A) \delta_{ik} , where δik \delta_{ik} is the Kronecker delta. Therefore Aadj⁡(A)=det⁡(A)In A \operatorname{adj}(A) = \det(A) I_n . ■\blacksquare


Theorem (Cramer's Rule): Let Ax=b A \mathbf{x} = \mathbf{b} with det⁡(A)≠0 \det(A) \neq 0 . Then the unique solution coordinates are given by: xi=det⁡(Ai(b))det⁡(A),i=1,…,n, x_i = \frac{\det(A_i(\mathbf{b}))}{\det(A)}, \qquad i = 1, \dots, n, where Ai(b) A_i(\mathbf{b}) is the matrix obtained by replacing column i i of A A with the vector b \mathbf{b} .

⚠️ Common Traps & University Pitfalls · Determinants
  1. Additivity Myth: In general, det⁡(A+B)≠det⁡(A)+det⁡(B) \det(A + B) \neq \det(A) + \det(B) . For instance, I2+(−I2)=0 I_2 + (-I_2) = 0 , yet det⁡(I2)+det⁡(−I2)=1+1=2≠0 \det(I_2) + \det(-I_2) = 1 + 1 = 2 \neq 0 .
  2. Scalar Multiple Power Rule: For an n×n n \times n matrix, det⁡(cA)=cndet⁡(A) \det(c A) = c^n \det(A) , NOT cdet⁡(A) c \det(A) . For a 4×4 4 \times 4 matrix, det⁡(−A)=(−1)4det⁡(A)=det⁡(A) \det(-A) = (-1)^4 \det(A) = \det(A) .
  3. Adjugate Transpose Transposition: The adjugate is adj⁡(A)=CT \operatorname{adj}(A) = C^T . Forgetting to transpose the cofactor matrix produces incorrect inverse entries off the main diagonal.
Level 3 (Advanced) — Worked Example · Cramer's Rule & Invertibility Characterization

Problem: Solve the linear system for x2 x_2 using Cramer's Rule: 2x1+x2+x3=4x1−x2+2x3=13x1+2x2−x3=3 \begin{aligned} 2x_1 + x_2 + x_3 &= 4 \\ x_1 - x_2 + 2x_3 &= 1 \\ 3x_1 + 2x_2 - x_3 &= 3 \end{aligned}

Step 1 · Compute Coefficient Determinant det⁡(A) \det(A) : det⁡(A)=∣2111−1232−1∣=2((−1)(−1)−(2)(2))−1((1)(−1)−(2)(3))+1((1)(2)−(−1)(3)). \det(A) = \begin{vmatrix} 2 & 1 & 1 \\ 1 & -1 & 2 \\ 3 & 2 & -1 \end{vmatrix} = 2((-1)(-1) - (2)(2)) - 1((1)(-1) - (2)(3)) + 1((1)(2) - (-1)(3)). =2(1−4)−1(−1−6)+1(2+3)=2(−3)−1(−7)+1(5)=−6+7+5=6. = 2(1 - 4) - 1(-1 - 6) + 1(2 + 3) = 2(-3) - 1(-7) + 1(5) = -6 + 7 + 5 = \mathbf{6}. Since det⁡(A)=6≠0 \det(A) = 6 \neq 0 , Cramer's Rule applies.

Step 2 · Replace Column 2 with b=(4,1,3)T \mathbf{b} = (4, 1, 3)^T : det⁡(A2(b))=∣24111233−1∣. \det(A_2(\mathbf{b})) = \begin{vmatrix} 2 & 4 & 1 \\ 1 & 1 & 2 \\ 3 & 3 & -1 \end{vmatrix}. Expand along row 1: =2((1)(−1)−(2)(3))−4((1)(−1)−(2)(3))+1((1)(3)−(1)(3)) = 2((1)(-1) - (2)(3)) - 4((1)(-1) - (2)(3)) + 1((1)(3) - (1)(3)) =2(−1−6)−4(−1−6)+1(0)=2(−7)−4(−7)=−14+28=14. = 2(-1 - 6) - 4(-1 - 6) + 1(0) = 2(-7) - 4(-7) = -14 + 28 = \mathbf{14}.

Step 3 · Compute x2 x_2 : x2=det⁡(A2(b))det⁡(A)=146=73. x_2 = \frac{\det(A_2(\mathbf{b}))}{\det(A)} = \frac{14}{6} = \mathbf{\frac{7}{3}}.

Level 3 · Advanced / University Rigor

Let A A be an invertible n×n n \times n matrix with n≥2 n \ge 2 . Prove analytically that: det⁡(adj⁡(A))=[det⁡(A)]n−1. \det(\operatorname{adj}(A)) = [\det(A)]^{n-1}.

Step 1 · Use the Fundamental Adjugate Identity: Aadj⁡(A)=det⁡(A)In. A \operatorname{adj}(A) = \det(A) I_n.

Step 2 · Take determinants of both sides: Using the multiplicative property det⁡(M1M2)=det⁡(M1)det⁡(M2) \det(M_1 M_2) = \det(M_1) \det(M_2) : det⁡(Aadj⁡(A))=det⁡(det⁡(A)In). \det(A \operatorname{adj}(A)) = \det(\det(A) I_n). det⁡(A)⋅det⁡(adj⁡(A))=[det⁡(A)]ndet⁡(In)=[det⁡(A)]n(1)=[det⁡(A)]n. \det(A) \cdot \det(\operatorname{adj}(A)) = [\det(A)]^n \det(I_n) = [\det(A)]^n (1) = [\det(A)]^n.

Step 3 · Divide by det⁡(A) \det(A) : Since A A is invertible, det⁡(A)≠0 \det(A) \neq 0 . Dividing both sides by det⁡(A) \det(A) yields: det⁡(adj⁡(A))=[det⁡(A)]n−1.■ \mathbf{\det(\operatorname{adj}(A)) = [\det(A)]^{n-1}}. \quad \blacksquare

[Determinants & Geometric Volume · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
5

Vector Spaces, Subspaces & The Four Fundamental Subspaces

📌 Linear Algebra · Chapter 5 Structural Core  ·  Vector space axioms & subspace criteria  ·  Span, linear independence, basis & dimension  ·  Rank-Nullity theorem & 4 fundamental subspaces

Abstract vector spaces extract the universal algebraic mechanisms of linear combinations beyond Euclidean space Rn \mathbb{R}^n to spaces of polynomials, matrices, and functions. This chapter develops the foundational hierarchy of linear structures: subspaces, span, linear independence, basis, dimension, and concludes with the Rank-Nullity Theorem and the Four Fundamental Subspaces of a matrix.

Level 1 · Foundations — Vector Space Axioms, Subspaces & The Subspace Test

A vector space is a set V V equipped with addition + + and scalar multiplication ⋅ \cdot over a field (here, R \mathbb{R} ) satisfying ten fundamental closure and operational axioms.

Vector Spaces, Subspaces & The Four Fundamental Subspaces — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
● Definition 5.1 — Abstract Vector Space & Subspace

A vector space V V over R \mathbb{R} satisfies:
1. u+v∈V \mathbf{u} + \mathbf{v} \in V (Additive Closure).
2. u+v=v+u \mathbf{u} + \mathbf{v} = \mathbf{v} + \mathbf{u} (Commutativity).
3. (u+v)+w=u+(v+w) (\mathbf{u} + \mathbf{v}) + \mathbf{w} = \mathbf{u} + (\mathbf{v} + \mathbf{w}) (Associativity).
4. There exists 0∈V \mathbf{0} \in V such that u+0=u \mathbf{u} + \mathbf{0} = \mathbf{u} (Additive Identity).
5. For each u∈V \mathbf{u} \in V , there exists −u∈V -\mathbf{u} \in V such that u+(−u)=0 \mathbf{u} + (-\mathbf{u}) = \mathbf{0} (Additive Inverse).
6. cu∈V c\mathbf{u} \in V for any scalar c∈R c \in \mathbb{R} (Scalar Closure).
7. c(u+v)=cu+cv c(\mathbf{u} + \mathbf{v}) = c\mathbf{u} + c\mathbf{v} (Distributivity over Vectors).
8. (c+d)u=cu+du (c + d)\mathbf{u} = c\mathbf{u} + d\mathbf{u} (Distributivity over Scalars).
9. c(du)=(cd)u c(d\mathbf{u}) = (cd)\mathbf{u} (Scalar Compatibility).
10. 1u=u 1\mathbf{u} = \mathbf{u} (Scalar Multiplicative Identity).


A subset W⊆V W \subseteq V is a subspace if W W is itself a vector space under the operations inherited from V V .

● Theorem 5.1 & Proof · The 3-Step Subspace Test

Theorem: A non-empty subset W⊆V W \subseteq V is a subspace of V V if and only if:
1. 0∈W \mathbf{0} \in W (Contains Zero Vector).
2. For all u,v∈W \mathbf{u}, \mathbf{v} \in W , u+v∈W \mathbf{u} + \mathbf{v} \in W (Closed under Addition).
3. For all u∈W \mathbf{u} \in W and c∈R c \in \mathbb{R} , cu∈W c\mathbf{u} \in W (Closed under Scalar Multiplication).

Proof:
(  ⟹   \implies ) If W W is a subspace, it is a vector space in its own right, so axioms 1, 4, 6 guarantee conditions 1–3.
(  ⟸   \impliedby ) Assume conditions 1–3 hold. Closure under addition and scalar multiplication is given by conditions 2 and 3. Axioms 2, 3, 7, 8, 9, 10 hold automatically because elements of W W are elements of V V . Condition 1 gives the zero vector. Finally, for any u∈W \mathbf{u} \in W , setting c=−1 c = -1 in condition 3 gives −u=(−1)u∈W -\mathbf{u} = (-1)\mathbf{u} \in W , providing additive inverses. Thus W W satisfies all vector space axioms. ■\blacksquare

Level 1 (Foundations) — Worked Example · Applying the Subspace Test

Problem: Determine whether each subset is a subspace of R3 \mathbb{R}^3 :
(a) W1={(x,y,z)∈R3:2x−3y+z=0} W_1 = \{ (x, y, z) \in \mathbb{R}^3 : 2x - 3y + z = 0 \}
(b) W2={(x,y,z)∈R3:2x−3y+z=4} W_2 = \{ (x, y, z) \in \mathbb{R}^3 : 2x - 3y + z = 4 \}
(c) W3={(x,y,z)∈R3:xy≥0} W_3 = \{ (x, y, z) \in \mathbb{R}^3 : x y \ge 0 \}

Analysis:
• (a) W1 W_1 : (1) 2(0)−3(0)+0=0  ⟹  0∈W1 2(0) - 3(0) + 0 = 0 \implies \mathbf{0} \in W_1 . (2) If u,v∈W1 \mathbf{u}, \mathbf{v} \in W_1 , then 2(u1+v1)−3(u2+v2)+(u3+v3)=(2u1−3u2+u3)+(2v1−3v2+v3)=0+0=0  ⟹  u+v∈W1 2(u_1+v_1) - 3(u_2+v_2) + (u_3+v_3) = (2u_1-3u_2+u_3) + (2v_1-3v_2+v_3) = 0 + 0 = 0 \implies \mathbf{u} + \mathbf{v} \in W_1 . (3) 2(cu1)−3(cu2)+(cu3)=c(2u1−3u2+u3)=c(0)=0  ⟹  cu∈W1 2(cu_1) - 3(cu_2) + (cu_3) = c(2u_1-3u_2+u_3) = c(0) = 0 \implies c\mathbf{u} \in W_1 . W1 W_1 is a subspace (a plane through the origin).
• (b) W2 W_2 : 2(0)−3(0)+0=0≠4  ⟹  0∉W2 2(0) - 3(0) + 0 = 0 \neq 4 \implies \mathbf{0} \notin W_2 . Fails immediately: W2 W_2 is NOT a subspace (an affine plane that misses the origin).
• (c) W3 W_3 : Contains 0 \mathbf{0} . However, test closure under addition: u=(2,1,0)∈W3 \mathbf{u} = (2, 1, 0) \in W_3 (since (2)(1)=2≥0 (2)(1) = 2 \ge 0 ) and v=(−1,−3,0)∈W3 \mathbf{v} = (-1, -3, 0) \in W_3 (since (−1)(−3)=3≥0 (-1)(-3) = 3 \ge 0 ). Their sum is u+v=(1,−2,0) \mathbf{u} + \mathbf{v} = (1, -2, 0) , but (1)(−2)=−2<0  ⟹  u+v∉W3 (1)(-2) = -2 < 0 \implies \mathbf{u} + \mathbf{v} \notin W_3 . W3 W_3 is NOT a subspace.

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

Level 1 · Foundations

Let M2×2 M_{2 \times 2} be the vector space of all 2×2 2 \times 2 real matrices. Show that the set of all symmetric matrices W={A∈M2×2:AT=A} W = \{ A \in M_{2 \times 2} : A^T = A \} is a subspace of M2×2 M_{2 \times 2} .

Step 1 · Zero vector: The 2×2 2 \times 2 zero matrix satisfies 0T=0 0^T = 0 , so 0∈W 0 \in W .

Step 2 · Closed under addition: Let A,B∈W A, B \in W . Then AT=A A^T = A and BT=B B^T = B . Using transpose properties: (A+B)T=AT+BT=A+B  ⟹  A+B∈W. (A + B)^T = A^T + B^T = A + B \implies A + B \in W.

Step 3 · Closed under scalar multiplication: Let A∈W A \in W and c∈R c \in \mathbb{R} : (cA)T=cAT=cA  ⟹  cA∈W. (cA)^T = c A^T = c A \implies cA \in W. All three conditions hold, so W W is a subspace of M2×2 M_{2 \times 2} .

Level 2 · Medium — Span, Linear Independence, Basis & Dimension

The structural skeleton of any vector space is defined by linear independence and bases. A basis is a minimal spanning set and a maximal linearly independent set, providing unique coordinates for every vector in the space.

● Definition 5.2 — Span, Independence, Basis & Dimension

1. Span: The set of all linear combinations of vectors {v1,…,vk} \{ \mathbf{v}_1, \dots, \mathbf{v}_k \} : span⁡(v1,…,vk)={∑i=1kcivi:ci∈R}. \operatorname{span}(\mathbf{v}_1, \dots, \mathbf{v}_k) = \left\{ \sum_{i=1}^k c_i \mathbf{v}_i : c_i \in \mathbb{R} \right\}. The span is always a subspace of V V .


2. Linear Independence: Vectors {v1,…,vk} \{ \mathbf{v}_1, \dots, \mathbf{v}_k \} are linearly independent if: c1v1+c2v2+⋯+ckvk=0  ⟹  c1=c2=⋯=ck=0. c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \dots + c_k \mathbf{v}_k = \mathbf{0} \implies c_1 = c_2 = \dots = c_k = 0. If a non-trivial linear combination yields 0 \mathbf{0} , the set is linearly dependent.


3. Basis & Dimension: A subset B={b1,…,bn}⊂V \mathcal{B} = \{ \mathbf{b}_1, \dots, \mathbf{b}_n \} \subset V is a basis for V V if:
• B \mathcal{B} is linearly independent.
• span⁡(B)=V \operatorname{span}(\mathcal{B}) = V .
The number of vectors n n in any basis of V V is an invariant, called the dimension dim⁡(V) \dim(V) .

● Theorem 5.2 & Proof · Unique Representation Theorem

Theorem: Let B={b1,…,bn} \mathcal{B} = \{ \mathbf{b}_1, \dots, \mathbf{b}_n \} be a basis for vector space V V . Then every vector v∈V \mathbf{v} \in V can be written in exactly one unique way as a linear combination of the basis vectors: v=c1b1+c2b2+⋯+cnbn. \mathbf{v} = c_1 \mathbf{b}_1 + c_2 \mathbf{b}_2 + \dots + c_n \mathbf{b}_n.

Proof: Since B \mathcal{B} spans V V , there exists at least one representation v=∑i=1ncibi \mathbf{v} = \sum_{i=1}^n c_i \mathbf{b}_i . Suppose there exists a second representation v=∑i=1ndibi \mathbf{v} = \sum_{i=1}^n d_i \mathbf{b}_i . Subtracting the two equations gives: 0=v−v=∑i=1n(ci−di)bi. \mathbf{0} = \mathbf{v} - \mathbf{v} = \sum_{i=1}^n (c_i - d_i) \mathbf{b}_i. Because B \mathcal{B} is linearly independent, the only solution to this linear combination is the trivial one: ci−di=0  ⟹  ci=difor all i=1,…,n. c_i - d_i = 0 \implies c_i = d_i \quad \text{for all } i = 1, \dots, n. Hence the coefficients are uniquely determined. The tuple [v]B=(c1,…,cn)T [\mathbf{v}]_\mathcal{B} = (c_1, \dots, c_n)^T constitutes the coordinate vector of v \mathbf{v} relative to B \mathcal{B} . ■\blacksquare

⊙ Explorer · Span of two vectors in ℝ²interactive
c₁u + c₂v⟨3.00, 1.73⟩
span(u, v)all of ℝ²

u = ⟨2, 0⟩ is fixed; v's direction is set by the angle slider. When the angle is between 1° and 179°, u and v are linearly independent and span all of ℝ². When the angle is 0° or 180°, u and v are collinear, collapsing the span to a single line.

Subspaces of R²: Lines Passing Through the Origin — Coordinate plane with graph of Subspace W (passes through 0), Affine line (not a subspace); marked points Origin (0,0) in W (0, 0), (0,2) not in W (0, 2)-4-3-2-11234-4-224xySubspace W (passes through 0)Affine line (not a subspace)Origin (0,0) in W(0,2) not in W
Comparison of a linear subspace and an affine line in R2 \mathbb{R}^2 . The line through the origin y=0.5x y = 0.5x contains the zero vector and is closed under addition and scalar multiplication; the shifted line y=0.5x+2 y = 0.5x + 2 fails the zero vector axiom.
Level 2 (Medium) — Worked Example · Finding Bases for Null Space & Column Space

Problem: Find a basis for the column space Col⁡(A) \operatorname{Col}(A) and null space Null⁡(A) \operatorname{Null}(A) of: A=(1−2032−4191−216). A = \begin{pmatrix} 1 & -2 & 0 & 3 \\ 2 & -4 & 1 & 9 \\ 1 & -2 & 1 & 6 \end{pmatrix}.

Step 1 · Row Reduce A A to RREF: (1−2032−4191−216)→R2←R2−2R1R3←R3−R1(1−20300130013)→R3←R3−R2(1−20300130000). \begin{pmatrix} 1 & -2 & 0 & 3 \\ 2 & -4 & 1 & 9 \\ 1 & -2 & 1 & 6 \end{pmatrix} \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 - R_1}} \begin{pmatrix} 1 & -2 & 0 & 3 \\ 0 & 0 & 1 & 3 \\ 0 & 0 & 1 & 3 \end{pmatrix} \xrightarrow{R_3 \leftarrow R_3 - R_2} \begin{pmatrix} 1 & -2 & 0 & 3 \\ 0 & 0 & 1 & 3 \\ 0 & 0 & 0 & 0 \end{pmatrix}.

Step 2 · Basis for Column Space Col⁡(A) \operatorname{Col}(A) :
Pivots occur in columns 1 and 3. The basis for Col⁡(A) \operatorname{Col}(A) consists of the corresponding original columns of A A (never the RREF columns!): Basis(Col⁡(A))={(121),(011)},dim⁡(Col⁡(A))=2. \text{Basis}(\operatorname{Col}(A)) = \mathbf{\left\{ \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} \right\}}, \qquad \dim(\operatorname{Col}(A)) = 2.

Step 3 · Basis for Null Space Null⁡(A) \operatorname{Null}(A) :
Columns 2 and 4 lack pivots   ⟹  x2=s,x4=t\implies x_2 = s, x_4 = t free. Basic variables: x1=2s−3t x_1 = 2s - 3t , x3=−3t x_3 = -3t . x=(2s−3ts−3tt)=s(2100)+t(−30−31). \mathbf{x} = \begin{pmatrix} 2s - 3t \\ s \\ -3t \\ t \end{pmatrix} = s\begin{pmatrix} 2 \\ 1 \\ 0 \\ 0 \end{pmatrix} + t\begin{pmatrix} -3 \\ 0 \\ -3 \\ 1 \end{pmatrix}. Basis(Null⁡(A))={(2100),(−30−31)},dim⁡(Null⁡(A))=2. \text{Basis}(\operatorname{Null}(A)) = \mathbf{\left\{ \begin{pmatrix} 2 \\ 1 \\ 0 \\ 0 \end{pmatrix}, \begin{pmatrix} -3 \\ 0 \\ -3 \\ 1 \end{pmatrix} \right\}}, \qquad \dim(\operatorname{Null}(A)) = 2.

Level 2 · Medium

Determine whether the polynomials p1(x)=1+x p_1(x) = 1 + x , p2(x)=x+x2 p_2(x) = x + x^2 , and p3(x)=1+x2 p_3(x) = 1 + x^2 form a basis for P2 \mathcal{P}_2 (the vector space of polynomials of degree at most 2).

Step 1 · Coordinate vectors: The standard basis for P2 \mathcal{P}_2 is E={1,x,x2} \mathcal{E} = \{ 1, x, x^2 \} , so dim⁡(P2)=3 \dim(\mathcal{P}_2) = 3 . The coordinate vectors are: [p1]E=(110),[p2]E=(011),[p3]E=(101). [p_1]_\mathcal{E} = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}, \quad [p_2]_\mathcal{E} = \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}, \quad [p_3]_\mathcal{E} = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix}.

Step 2 · Test independence via determinant: det⁡(101110011)=1(1−0)−0+1(1−0)=1+1=2≠0. \det\begin{pmatrix} 1 & 0 & 1 \\ 1 & 1 & 0 \\ 0 & 1 & 1 \end{pmatrix} = 1(1 - 0) - 0 + 1(1 - 0) = 1 + 1 = 2 \neq 0. Since the determinant is non-zero, the three coordinate vectors are linearly independent. Because dim⁡(P2)=3 \dim(\mathcal{P}_2) = 3 , any three linearly independent vectors form a basis. Yes, {p1,p2,p3} \{ p_1, p_2, p_3 \} is a basis for P2 \mathcal{P}_2 .

Level 3 · Advanced / University Rigor — The Four Fundamental Subspaces & The Rank-Nullity Theorem

Every m×n m \times n matrix A A determines four fundamental subspaces that completely characterize the geometry of linear mappings and matrix equations.

● Theorem 5.3 & Proof · The Rank-Nullity Theorem

Theorem (Rank-Nullity / Dimension Theorem): Let A A be an m×n m \times n matrix. Then: rank⁡(A)+nullity⁡(A)=n, \operatorname{rank}(A) + \operatorname{nullity}(A) = n, where rank⁡(A)=dim⁡(Col⁡(A)) \operatorname{rank}(A) = \dim(\operatorname{Col}(A)) and nullity⁡(A)=dim⁡(Null⁡(A)) \operatorname{nullity}(A) = \dim(\operatorname{Null}(A)) .

Proof via RREF: Let R R be the reduced row echelon form of A A . Row operations preserve linear relationships among columns, so the pivot columns of A A form a basis for Col⁡(A) \operatorname{Col}(A) . Therefore, rank⁡(A)=r \operatorname{rank}(A) = r , where r r is the number of pivot columns.
The remaining n−r n - r non-pivot columns correspond directly to the free variables in the homogeneous equation Ax=0 A\mathbf{x} = \mathbf{0} . Each free variable xj x_j produces exactly one special basis vector in the parametric representation of Null⁡(A) \operatorname{Null}(A) , and these n−r n - r vectors are linearly independent because each vector has a 1 in its respective free variable coordinate and 0 in all other free coordinates.
Thus nullity⁡(A)=n−r \operatorname{nullity}(A) = n - r . Adding the two dimensions: rank⁡(A)+nullity⁡(A)=r+(n−r)=n.■ \operatorname{rank}(A) + \operatorname{nullity}(A) = r + (n - r) = n. \quad \blacksquare

● Theorem 5.4 · The Fundamental Theorem of Linear Algebra (Gilbert Strang)

For any m×n m \times n matrix A A with rank r r :

SubspaceNotationAmbient SpaceDimensionOrthogonal Complement
Column SpaceC(A)=Col⁡(A) C(A) = \operatorname{Col}(A) Rm \mathbb{R}^m r r N(AT) N(A^T)
Null SpaceN(A)=Null⁡(A) N(A) = \operatorname{Null}(A) Rn \mathbb{R}^n n−r n - r C(AT) C(A^T)
Row SpaceC(AT)=Row⁡(A) C(A^T) = \operatorname{Row}(A) Rn \mathbb{R}^n r r N(A) N(A)
Left Null SpaceN(AT) N(A^T) Rm \mathbb{R}^m m−r m - r C(A) C(A)

Orthogonal Complements: Null⁡(A)=[Row⁡(A)]⊥,Null⁡(AT)=[Col⁡(A)]⊥. \operatorname{Null}(A) = [\operatorname{Row}(A)]^\perp, \qquad \operatorname{Null}(A^T) = [\operatorname{Col}(A)]^\perp. This implies the orthogonal direct sum decompositions: Rn=Row⁡(A)⊕Null⁡(A),Rm=Col⁡(A)⊕Null⁡(AT). \mathbb{R}^n = \operatorname{Row}(A) \oplus \operatorname{Null}(A), \qquad \mathbb{R}^m = \operatorname{Col}(A) \oplus \operatorname{Null}(A^T).

⚠️ Common Traps & University Pitfalls · Vector Spaces
  1. Basis for Column Space: You must take the pivot columns from the original matrix A A , NOT from its row reduced form R R . Row operations change the column space! By contrast, a basis for the row space can be taken directly from the non-zero rows of R R .
  2. Rank vs Dimension of Ambient Space: Rank is the dimension of the column space (number of pivots), bounded by min⁡(m,n) \min(m, n) . A 3×5 3 \times 5 matrix can have rank at most 3, so its nullity must be at least 5−3=2 5 - 3 = 2 .
  3. Union of Subspaces: The union W1∪W2 W_1 \cup W_2 of two subspaces is almost never a subspace (it is a subspace if and only if one is contained in the other). The sum W1+W2={w1+w2:w1∈W1,w2∈W2} W_1 + W_2 = \{ \mathbf{w}_1 + \mathbf{w}_2 : \mathbf{w}_1 \in W_1, \mathbf{w}_2 \in W_2 \} is always a subspace.
Level 3 (Advanced) — Worked Example · Complete Four Fundamental Subspaces Decomposition

Problem: For A=(13322697−1−334) A = \begin{pmatrix} 1 & 3 & 3 & 2 \\ 2 & 6 & 9 & 7 \\ -1 & -3 & 3 & 4 \end{pmatrix} , determine the dimension and find a basis for each of the four fundamental subspaces.

Step 1 · Row Reduce A A to RREF: (13322697−1−334)→R2←R2−2R1R3←R3+R1(133200330066)→R3←R3−2R2(133200110000)→R1←R1−3R2(130−100110000). \begin{pmatrix} 1 & 3 & 3 & 2 \\ 2 & 6 & 9 & 7 \\ -1 & -3 & 3 & 4 \end{pmatrix} \xrightarrow{\substack{R_2 \leftarrow R_2 - 2R_1 \\ R_3 \leftarrow R_3 + R_1}} \begin{pmatrix} 1 & 3 & 3 & 2 \\ 0 & 0 & 3 & 3 \\ 0 & 0 & 6 & 6 \end{pmatrix} \xrightarrow{R_3 \leftarrow R_3 - 2R_2} \begin{pmatrix} 1 & 3 & 3 & 2 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 0 \end{pmatrix} \xrightarrow{R_1 \leftarrow R_1 - 3R_2} \begin{pmatrix} 1 & 3 & 0 & -1 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 0 \end{pmatrix}. Pivots in columns 1 and 3   ⟹  rank⁡(A)=r=2\implies \operatorname{rank}(A) = r = 2.

Step 2 · The Four Subspaces:
• Col⁡(A)⊂R3 \operatorname{Col}(A) \subset \mathbb{R}^3 : Original columns 1 and 3: Basis={(12−1),(393)},dim⁡=2. \text{Basis} = \mathbf{\left\{ \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}, \begin{pmatrix} 3 \\ 9 \\ 3 \end{pmatrix} \right\}}, \qquad \dim = 2.
• Null⁡(A)⊂R4 \operatorname{Null}(A) \subset \mathbb{R}^4 : Free variables x2=s,x4=t x_2 = s, x_4 = t . x1=−3s+t x_1 = -3s + t , x3=−t x_3 = -t : Basis={(−3100),(10−11)},dim⁡=4−2=2. \text{Basis} = \mathbf{\left\{ \begin{pmatrix} -3 \\ 1 \\ 0 \\ 0 \end{pmatrix}, \begin{pmatrix} 1 \\ 0 \\ -1 \\ 1 \end{pmatrix} \right\}}, \qquad \dim = 4 - 2 = 2.
• Row⁡(A)⊂R4 \operatorname{Row}(A) \subset \mathbb{R}^4 : Non-zero rows of RREF: Basis={(130−1),(0011)},dim⁡=2. \text{Basis} = \mathbf{\left\{ \begin{pmatrix} 1 \\ 3 \\ 0 \\ -1 \end{pmatrix}, \begin{pmatrix} 0 \\ 0 \\ 1 \\ 1 \end{pmatrix} \right\}}, \qquad \dim = 2.
• Null⁡(AT)⊂R3 \operatorname{Null}(A^T) \subset \mathbb{R}^3 : Left null space has dimension m−r=3−2=1 m - r = 3 - 2 = 1 . Solve ATy=0 A^T \mathbf{y} = \mathbf{0} : (12−136−3393274)→(10−5012000000)  ⟹  y1=5t,y2=−2t,y3=t. \begin{pmatrix} 1 & 2 & -1 \\ 3 & 6 & -3 \\ 3 & 9 & 3 \\ 2 & 7 & 4 \end{pmatrix} \to \begin{pmatrix} 1 & 0 & -5 \\ 0 & 1 & 2 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix} \implies y_1 = 5t, y_2 = -2t, y_3 = t. Basis={(5−21)},dim⁡=1. \text{Basis} = \mathbf{\left\{ \begin{pmatrix} 5 \\ -2 \\ 1 \end{pmatrix} \right\}}, \qquad \dim = 1.

Step 3 · Verify Orthogonality:
Check Col⁡(A)⊥Null⁡(AT) \operatorname{Col}(A) \perp \operatorname{Null}(A^T) :
• (1)(5)+(2)(−2)+(−1)(1)=5−4−1=0 (1)(5) + (2)(-2) + (-1)(1) = 5 - 4 - 1 = 0 . ✓
• (3)(5)+(9)(−2)+(3)(1)=15−18+3=0 (3)(5) + (9)(-2) + (3)(1) = 15 - 18 + 3 = 0 . ✓

Level 3 · Advanced / University Rigor

Let A A be a 5×8 5 \times 8 matrix with rank⁡(A)=4 \operatorname{rank}(A) = 4 .
(a) What is the dimension of the solution space to Ax=0 A\mathbf{x} = \mathbf{0} ?
(b) Is Ax=b A\mathbf{x} = \mathbf{b} consistent for every b∈R5 \mathbf{b} \in \mathbb{R}^5 ? Explain.
(c) What is the dimension of Null⁡(AT) \operatorname{Null}(A^T) ?

(a) Null Space Dimension: By the Rank-Nullity Theorem, rank⁡(A)+nullity⁡(A)=n \operatorname{rank}(A) + \operatorname{nullity}(A) = n . Here n=8 n = 8 and rank⁡(A)=4 \operatorname{rank}(A) = 4 : nullity⁡(A)=8−4=4. \operatorname{nullity}(A) = 8 - 4 = \mathbf{4}.

(b) Consistency for all b \mathbf{b} : No. Col⁡(A) \operatorname{Col}(A) has dimension 4, which is a proper subspace of R5 \mathbb{R}^5 (dimension 5). Therefore, there exist vectors b∈R5 \mathbf{b} \in \mathbb{R}^5 that do not lie in Col⁡(A) \operatorname{Col}(A) , making Ax=b A\mathbf{x} = \mathbf{b} inconsistent.

(c) Left Null Space Dimension: The left null space Null⁡(AT) \operatorname{Null}(A^T) is the orthogonal complement of Col⁡(A) \operatorname{Col}(A) in Rm=R5 \mathbb{R}^m = \mathbb{R}^5 . Its dimension is: dim⁡(Null⁡(AT))=m−rank⁡(A)=5−4=1. \dim(\operatorname{Null}(A^T)) = m - \operatorname{rank}(A) = 5 - 4 = \mathbf{1}.

[Vector Spaces, Subspaces & The Four Fundamental Subspaces · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
6

Eigenvalues, Eigenvectors & Diagonalization

📌 Linear Algebra · Chapter 6 Spectral Theory  ·  Characteristic equation, trace & determinant relations  ·  Multiplicity, eigenvector independence & A = PDP⁻¹  ·  Matrix powers, Cayley–Hamilton & systems of ODEs

Under a general linear transformation, vectors typically experience both stretching and rotation. An eigenvector identifies an invariant direction that is purely scaled by a scalar factor known as the eigenvalue. Spectral theory decouples coupled linear systems, enabling explicit computation of matrix powers, Markov processes, and systems of linear differential equations.

Level 1 · Foundations — Eigenvalues, Eigenvectors, Eigenspaces & Characteristic Equations

Let A∈Rn×n A \in \mathbb{R}^{n \times n} . A non-zero vector v∈Rn \mathbf{v} \in \mathbb{R}^n is an eigenvector of A A corresponding to eigenvalue λ∈C \lambda \in \mathbb{C} if: Av=λv(v≠0). A\mathbf{v} = \lambda \mathbf{v} \quad (\mathbf{v} \neq \mathbf{0}).

Eigenvalues, Eigenvectors & Diagonalization — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
● Definition 6.1 — Eigenspaces & The Characteristic Polynomial

1. Eigenspace: For a given eigenvalue λ \lambda , the set of all eigenvectors along with the zero vector forms a subspace of Rn \mathbb{R}^n , the eigenspace Eλ E_\lambda : Eλ=Null⁡(A−λI)={v∈Rn:(A−λI)v=0}. E_\lambda = \operatorname{Null}(A - \lambda I) = \{ \mathbf{v} \in \mathbb{R}^n : (A - \lambda I)\mathbf{v} = \mathbf{0} \}.


2. The Characteristic Equation: The homogeneous system (A−λI)v=0 (A - \lambda I)\mathbf{v} = \mathbf{0} has a non-trivial solution v≠0 \mathbf{v} \neq \mathbf{0} if and only if A−λI A - \lambda I is singular (non-invertible): p(λ)=det⁡(A−λI)=0. p(\lambda) = \det(A - \lambda I) = 0. Expanding the determinant yields a degree-n n polynomial in λ \lambda , the characteristic polynomial.


3. Trace & Determinant Invariants: If λ1,…,λn \lambda_1, \dots, \lambda_n are the eigenvalues of A A counted with multiplicity: ∑i=1nλi=tr⁡(A)=∑i=1naii,∏i=1nλi=det⁡(A). \sum_{i=1}^n \lambda_i = \operatorname{tr}(A) = \sum_{i=1}^n a_{ii}, \qquad \prod_{i=1}^n \lambda_i = \det(A).

Level 1 (Foundations) — Worked Example · Computing Eigenvalues, Eigenspaces & Invariant Checks

Problem: Find the eigenvalues and corresponding eigenspace bases for A=(4123) A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix} , and verify the trace and determinant relations.

Step 1 · Solve Characteristic Equation: det⁡(A−λI)=∣4−λ123−λ∣=(4−λ)(3−λ)−(1)(2)=λ2−7λ+12−2=λ2−7λ+10=0. \det(A - \lambda I) = \begin{vmatrix} 4 - \lambda & 1 \\ 2 & 3 - \lambda \end{vmatrix} = (4 - \lambda)(3 - \lambda) - (1)(2) = \lambda^2 - 7\lambda + 12 - 2 = \lambda^2 - 7\lambda + 10 = 0. Factoring: (λ−5)(λ−2)=0  ⟹  λ1=5,λ2=2. (\lambda - 5)(\lambda - 2) = 0 \implies \mathbf{\lambda_1 = 5, \quad \lambda_2 = 2}.

Step 2 · Verify Invariants:
• tr⁡(A)=4+3=7 \operatorname{tr}(A) = 4 + 3 = 7 , and λ1+λ2=5+2=7 \lambda_1 + \lambda_2 = 5 + 2 = 7 . ✓
• det⁡(A)=(4)(3)−(1)(2)=10 \det(A) = (4)(3) - (1)(2) = 10 , and λ1λ2=(5)(2)=10 \lambda_1 \lambda_2 = (5)(2) = 10 . ✓

Step 3 · Eigenspace E5 E_5 (λ=5 \lambda = 5 ): A−5I=(−112−2)→R2←R2+2R1(−1100)  ⟹  −v1+v2=0  ⟹  v1=(11). A - 5I = \begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix} \xrightarrow{R_2 \leftarrow R_2 + 2R_1} \begin{pmatrix} -1 & 1 \\ 0 & 0 \end{pmatrix} \implies -v_1 + v_2 = 0 \implies \mathbf{v}_1 = \mathbf{\begin{pmatrix} 1 \\ 1 \end{pmatrix}}.

Step 4 · Eigenspace E2 E_2 (λ=2 \lambda = 2 ): A−2I=(2121)→R2←R2−R1(2100)  ⟹  2v1+v2=0  ⟹  v2=(1−2). A - 2I = \begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix} \xrightarrow{R_2 \leftarrow R_2 - R_1} \begin{pmatrix} 2 & 1 \\ 0 & 0 \end{pmatrix} \implies 2v_1 + v_2 = 0 \implies \mathbf{v}_2 = \mathbf{\begin{pmatrix} 1 \\ -2 \end{pmatrix}}.

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

Level 1 · Foundations

Find the eigenvalues of the upper-triangular matrix: T=(6−250−31004). T = \begin{pmatrix} 6 & -2 & 5 \\ 0 & -3 & 1 \\ 0 & 0 & 4 \end{pmatrix}.

The characteristic matrix is: T−λI=(6−λ−250−3−λ1004−λ). T - \lambda I = \begin{pmatrix} 6 - \lambda & -2 & 5 \\ 0 & -3 - \lambda & 1 \\ 0 & 0 & 4 - \lambda \end{pmatrix}. Since T−λI T - \lambda I is upper-triangular, its determinant is the product of its diagonal entries: det⁡(T−λI)=(6−λ)(−3−λ)(4−λ)=0. \det(T - \lambda I) = (6 - \lambda)(-3 - \lambda)(4 - \lambda) = 0. Thus the eigenvalues are the diagonal entries themselves: λ1=6,λ2=−3,λ3=4. \mathbf{\lambda_1 = 6, \quad \lambda_2 = -3, \quad \lambda_3 = 4}.

Level 2 · Medium — Linear Independence of Eigenvectors & Matrix Diagonalization

When a matrix has a full set of linearly independent eigenvectors, it can be factored into a product A=PDP−1 A = P D P^{-1} where D D is diagonal. This diagonal representation decouples the action of A A into independent 1D scalings along the eigenvector coordinate axes.

● Theorem 6.1 & Analytical Proof · Independence of Eigenvectors for Distinct Eigenvalues

Theorem: Let v1,v2,…,vk \mathbf{v}_1, \mathbf{v}_2, \dots, \mathbf{v}_k be eigenvectors of A A corresponding to mutually distinct eigenvalues λ1,λ2,…,λk \lambda_1, \lambda_2, \dots, \lambda_k (i.e. λi≠λj \lambda_i \neq \lambda_j for i≠j i \neq j ). Then the set {v1,…,vk} \{ \mathbf{v}_1, \dots, \mathbf{v}_k \} is linearly independent.

Proof by Induction:
• Base Case (k=1 k = 1 ): v1≠0 \mathbf{v}_1 \neq \mathbf{0} by definition of an eigenvector, so {v1} \{ \mathbf{v}_1 \} is linearly independent.
• Inductive Step: Assume the statement holds for k−1 k - 1 eigenvectors. Suppose: c1v1+c2v2+⋯+ckvk=0.(Equation 1) c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \dots + c_k \mathbf{v}_k = \mathbf{0}. \quad \text{(Equation 1)} Multiply both sides by λk \lambda_k : c1λkv1+c2λkv2+⋯+ckλkvk=0.(Equation 2) c_1 \lambda_k \mathbf{v}_1 + c_2 \lambda_k \mathbf{v}_2 + \dots + c_k \lambda_k \mathbf{v}_k = \mathbf{0}. \quad \text{(Equation 2)} Apply the matrix A A to Equation 1, using Avi=λivi A\mathbf{v}_i = \lambda_i \mathbf{v}_i : c1λ1v1+c2λ2v2+⋯+ckλkvk=0.(Equation 3) c_1 \lambda_1 \mathbf{v}_1 + c_2 \lambda_2 \mathbf{v}_2 + \dots + c_k \lambda_k \mathbf{v}_k = \mathbf{0}. \quad \text{(Equation 3)} Subtract Equation 2 from Equation 3: c1(λ1−λk)v1+c2(λ2−λk)v2+⋯+ck−1(λk−1−λk)vk−1+0=0. c_1(\lambda_1 - \lambda_k)\mathbf{v}_1 + c_2(\lambda_2 - \lambda_k)\mathbf{v}_2 + \dots + c_{k-1}(\lambda_{k-1} - \lambda_k)\mathbf{v}_{k-1} + \mathbf{0} = \mathbf{0}. By the inductive hypothesis, {v1,…,vk−1} \{ \mathbf{v}_1, \dots, \mathbf{v}_{k-1} \} is linearly independent, so each coefficient must be zero: ci(λi−λk)=0for i=1,…,k−1. c_i(\lambda_i - \lambda_k) = 0 \quad \text{for } i = 1, \dots, k - 1. Because all eigenvalues are distinct, λi−λk≠0 \lambda_i - \lambda_k \neq 0 , forcing ci=0 c_i = 0 for all i=1,…,k−1 i = 1, \dots, k - 1 . Substituting these zeros back into Equation 1 gives ckvk=0 c_k \mathbf{v}_k = \mathbf{0} , which forces ck=0 c_k = 0 since vk≠0 \mathbf{v}_k \neq \mathbf{0} .
Therefore, all ci=0 c_i = 0 , proving linear independence. ■\blacksquare

● Theorem 6.2 · The Diagonalization Theorem

An n×n n \times n matrix A A is diagonalizable (there exists invertible P P and diagonal D D such that A=PDP−1 A = P D P^{-1} ) if and only if A A has n n linearly independent eigenvectors.

In this case: P=[v1  v2  …  vn],D=(λ10…00λ2…0⋮⋮⋱⋮00…λn), P = [\mathbf{v}_1 \; \mathbf{v}_2 \; \dots \; \mathbf{v}_n], \qquad D = \begin{pmatrix} \lambda_1 & 0 & \dots & 0 \\ 0 & \lambda_2 & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & \lambda_n \end{pmatrix}, where column j j of P P is an eigenvector corresponding to the diagonal entry λj \lambda_j in D D .

Corollaries:
• If A A has n n distinct eigenvalues, A A is automatically diagonalizable.
• Powers of A A : For any integer k≥1 k \ge 1 , Ak=PDkP−1=P(λ1k0⋱0λnk)P−1. A^k = P D^k P^{-1} = P \begin{pmatrix} \lambda_1^k & & 0 \\ & \ddots & \\ 0 & & \lambda_n^k \end{pmatrix} P^{-1}.

⊙ Explorer · Eigenvectors — invariant transformation directionsinteractive
λ₁5.000
λ₂2.000

The grey curve is the unit circle; indigo is its image ellipse under A. The amber and teal lines represent the real eigenvector directions along which the transformation purely dilates vectors without rotation. When the discriminant tr(A)² - 4 det(A) < 0, eigenvalues become complex and no real invariant line exists.

Eigenspaces and Direction Invariance under A — Coordinate plane with graph of Eigenspace for λ = 3 (y = x), Eigenspace for λ = 1 (y = -x); marked points v₁ = (2, 2) ⟶ (6, 6) (2, 2), v₂ = (-2, 2) ⟶ (-2, 2) (-2, 2)-4-3-2-11234-4-224xyEigenspace for λ = 3 (y = x)Eigenspace for λ = 1 (y = −x)v₁ = (2, 2) ⟶ (6, 6)v₂ = (-2, 2) ⟶ (-2, 2)
Eigenspaces of A=(2112) A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} . Vectors lying along y=x y = x are scaled by λ1=3 \lambda_1 = 3 ; vectors along y=−x y = -x are scaled by λ2=1 \lambda_2 = 1 . The directions of the eigenvectors remain invariant under transformation by A A .
Level 2 (Medium) — Worked Example · High Matrix Power via Diagonalization

Problem: Compute A10 A^{10} for A=(1331) A = \begin{pmatrix} 1 & 3 \\ 3 & 1 \end{pmatrix} using diagonalization.

Step 1 · Find Eigenvalues: det⁡(A−λI)=(1−λ)2−9=λ2−2λ−8=(λ−4)(λ+2)=0  ⟹  λ1=4,λ2=−2. \det(A - \lambda I) = (1 - \lambda)^2 - 9 = \lambda^2 - 2\lambda - 8 = (\lambda - 4)(\lambda + 2) = 0 \implies \lambda_1 = 4, \quad \lambda_2 = -2.

Step 2 · Find Eigenvectors:
• For λ=4 \lambda = 4 : A−4I=(−333−3)  ⟹  v1=(11) A - 4I = \begin{pmatrix} -3 & 3 \\ 3 & -3 \end{pmatrix} \implies \mathbf{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix} .
• For λ=−2 \lambda = -2 : A+2I=(3333)  ⟹  v2=(−11) A + 2I = \begin{pmatrix} 3 & 3 \\ 3 & 3 \end{pmatrix} \implies \mathbf{v}_2 = \begin{pmatrix} -1 \\ 1 \end{pmatrix} .

Step 3 · Construct P P , D D , and P−1 P^{-1} : P=(1−111),D=(400−2). P = \begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}, \qquad D = \begin{pmatrix} 4 & 0 \\ 0 & -2 \end{pmatrix}. det⁡(P)=1(1)−(−1)(1)=2  ⟹  P−1=12(11−11). \det(P) = 1(1) - (-1)(1) = 2 \implies P^{-1} = \frac{1}{2}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}.

Step 4 · Compute A10=PD10P−1 A^{10} = P D^{10} P^{-1} : D10=(41000(−2)10)=(1048576001024). D^{10} = \begin{pmatrix} 4^{10} & 0 \\ 0 & (-2)^{10} \end{pmatrix} = \begin{pmatrix} 1048576 & 0 \\ 0 & 1024 \end{pmatrix}. A10=12(1−111)(41000210)(11−11)=12(410−210410210)(11−11) A^{10} = \frac{1}{2}\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}\begin{pmatrix} 4^{10} & 0 \\ 0 & 2^{10} \end{pmatrix}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 4^{10} & -2^{10} \\ 4^{10} & 2^{10} \end{pmatrix}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix} A10=12(410+210410−210410−210410+210)=(524800523776523776524800). A^{10} = \frac{1}{2}\begin{pmatrix} 4^{10} + 2^{10} & 4^{10} - 2^{10} \\ 4^{10} - 2^{10} & 4^{10} + 2^{10} \end{pmatrix} = \mathbf{\begin{pmatrix} 524800 & 523776 \\ 523776 & 524800 \end{pmatrix}}.

Level 2 · Medium

Explain why the matrix A=(3103) A = \begin{pmatrix} 3 & 1 \\ 0 & 3 \end{pmatrix} is not diagonalizable.

Step 1 · Algebraic Multiplicity: A A is upper-triangular, so its characteristic polynomial is p(λ)=(3−λ)2=0 p(\lambda) = (3 - \lambda)^2 = 0 . The only eigenvalue is λ=3 \lambda = 3 with algebraic multiplicity ma(3)=2 m_a(3) = 2 .

Step 2 · Geometric Multiplicity: Compute the eigenspace E3=Null⁡(A−3I) E_3 = \operatorname{Null}(A - 3I) : A−3I=(0100). A - 3I = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}. This matrix has pivot in column 2, with only one free variable x1=t x_1 = t . The eigenvectors are v=t(10) \mathbf{v} = t \begin{pmatrix} 1 \\ 0 \end{pmatrix} , so dim⁡(E3)=1 \dim(E_3) = 1 .

Conclusion: Since the geometric multiplicity mg(3)=1 m_g(3) = 1 is strictly less than the algebraic multiplicity ma(3)=2 m_a(3) = 2 , A A fails to possess 2 linearly independent eigenvectors. Therefore, A A is defective and NOT diagonalizable.

Level 3 · Advanced / University Rigor — The Cayley–Hamilton Theorem & Matrix Differential Equations

The Cayley–Hamilton Theorem asserts that every square matrix satisfies its own characteristic equation, providing a powerful analytic tool for computing inverse matrices and powers. Furthermore, spectral theory solves systems of first-order linear differential equations x′(t)=Ax(t) \mathbf{x}'(t) = A\mathbf{x}(t) via the matrix exponential.

● Theorem 6.3 & Proof · The Cayley–Hamilton Theorem

Theorem (Cayley–Hamilton): Let A A be an n×n n \times n matrix with characteristic polynomial p(λ)=det⁡(A−λI)=(−1)nλn+cn−1λn−1+⋯+c1λ+c0 p(\lambda) = \det(A - \lambda I) = (-1)^n \lambda^n + c_{n-1} \lambda^{n-1} + \dots + c_1 \lambda + c_0 . Then substituting A A into its own polynomial yields the zero matrix: p(A)=(−1)nAn+cn−1An−1+⋯+c1A+c0I=0. p(A) = (-1)^n A^n + c_{n-1} A^{n-1} + \dots + c_1 A + c_0 I = 0.

Proof via Adjugate Matrix: Recall from Theorem 4.2 that for any square matrix, Madj⁡(M)=det⁡(M)I M \operatorname{adj}(M) = \det(M) I . Setting M=A−λI M = A - \lambda I : (A−λI)adj⁡(A−λI)=det⁡(A−λI)I=p(λ)I. (A - \lambda I) \operatorname{adj}(A - \lambda I) = \det(A - \lambda I) I = p(\lambda) I. The entries of adj⁡(A−λI) \operatorname{adj}(A - \lambda I) are cofactors of A−λI A - \lambda I , which are polynomials in λ \lambda of degree at most n−1 n - 1 . Therefore, adj⁡(A−λI) \operatorname{adj}(A - \lambda I) can be expanded as a matrix polynomial: adj⁡(A−λI)=Bn−1λn−1+Bn−2λn−2+⋯+B1λ+B0, \operatorname{adj}(A - \lambda I) = B_{n-1} \lambda^{n-1} + B_{n-2} \lambda^{n-2} + \dots + B_1 \lambda + B_0, where each Bk∈Rn×n B_k \in \mathbb{R}^{n \times n} . Substituting into the adjugate identity: (A−λI)(Bn−1λn−1+⋯+B0)=(cnλn+cn−1λn−1+⋯+c0)I. (A - \lambda I)(B_{n-1} \lambda^{n-1} + \dots + B_0) = (c_n \lambda^n + c_{n-1} \lambda^{n-1} + \dots + c_0) I. Expanding and equating coefficients of λk \lambda^k yields a telescoping sequence of matrix equations. Pre-multiplying the k k -th equation by Ak A^k and summing all equations eliminates all terms on the left side, yielding 0=p(A) 0 = p(A) . ■\blacksquare

⚠️ Common Traps & University Pitfalls · Eigenvalues & Diagonalization
  1. Row Operations Alter Eigenvalues: Performing elementary row operations A→R A \to R preserves row space and null space, but completely destroys eigenvalues: det⁡(A−λI)≠det⁡(R−λI) \det(A - \lambda I) \neq \det(R - \lambda I) . Never row reduce A A prior to setting up det⁡(A−λI)=0 \det(A - \lambda I) = 0 !
  2. Defective Matrices: Having repeated eigenvalues (ma(λ)≥2 m_a(\lambda) \ge 2 ) does NOT automatically mean the matrix is not diagonalizable. For example, I2 I_2 has λ=1 \lambda = 1 with multiplicity 2, but E1=R2 E_1 = \mathbb{R}^2 has dimension 2, so I2 I_2 is diagonalizable. A matrix is non-diagonalizable only when mg(λ)<ma(λ) m_g(\lambda) < m_a(\lambda) for some eigenvalue.
  3. Complex Eigenvalues for Real Matrices: A real matrix can have complex conjugate eigenvalues a±bi a \pm bi representing rotation-dilations. A real matrix with complex eigenvalues is not diagonalizable over R \mathbb{R} (though it is diagonalizable over C \mathbb{C} ).
Level 3 (Advanced) — Worked Example · Systems of Differential Equations via Diagonalization

Problem: Solve the initial value problem for the coupled linear ODE system: x′(t)=(1221)x(t),x(0)=(51). \mathbf{x}'(t) = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} \mathbf{x}(t), \qquad \mathbf{x}(0) = \begin{pmatrix} 5 \\ 1 \end{pmatrix}.

Step 1 · Diagonalize Coefficient Matrix A A : det⁡(A−λI)=(1−λ)2−4=λ2−2λ−3=(λ−3)(λ+1)=0  ⟹  λ1=3,  λ2=−1. \det(A - \lambda I) = (1 - \lambda)^2 - 4 = \lambda^2 - 2\lambda - 3 = (\lambda - 3)(\lambda + 1) = 0 \implies \lambda_1 = 3, \; \lambda_2 = -1. • For λ1=3 \lambda_1 = 3 : A−3I=(−222−2)  ⟹  v1=(11) A - 3I = \begin{pmatrix} -2 & 2 \\ 2 & -2 \end{pmatrix} \implies \mathbf{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix} .
• For λ2=−1 \lambda_2 = -1 : A+I=(2222)  ⟹  v2=(1−1) A + I = \begin{pmatrix} 2 & 2 \\ 2 & 2 \end{pmatrix} \implies \mathbf{v}_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix} .

Step 2 · Decouple via Coordinate Change x=Py \mathbf{x} = P \mathbf{y} :
Since A=PDP−1 A = P D P^{-1} , x′=Ax  ⟹  Py′=PDy  ⟹  y′=Dy \mathbf{x}' = A\mathbf{x} \implies P\mathbf{y}' = P D \mathbf{y} \implies \mathbf{y}' = D\mathbf{y} .
The decoupled solutions are y1(t)=c1e3t y_1(t) = c_1 e^{3t} and y2(t)=c2e−t y_2(t) = c_2 e^{-t} . Therefore: x(t)=c1e3tv1+c2e−tv2=c1e3t(11)+c2e−t(1−1). \mathbf{x}(t) = c_1 e^{3t} \mathbf{v}_1 + c_2 e^{-t} \mathbf{v}_2 = c_1 e^{3t} \begin{pmatrix} 1 \\ 1 \end{pmatrix} + c_2 e^{-t} \begin{pmatrix} 1 \\ -1 \end{pmatrix}.

Step 3 · Apply Initial Condition x(0)=(5,1)T \mathbf{x}(0) = (5, 1)^T : c1(11)+c2(1−1)=(51)  ⟹  c1+c2=5c1−c2=1  ⟹  c1=3,  c2=2. c_1 \begin{pmatrix} 1 \\ 1 \end{pmatrix} + c_2 \begin{pmatrix} 1 \\ -1 \end{pmatrix} = \begin{pmatrix} 5 \\ 1 \end{pmatrix} \implies \begin{aligned} c_1 + c_2 &= 5 \\ c_1 - c_2 &= 1 \end{aligned} \implies c_1 = 3, \; c_2 = 2. x(t)=3e3t(11)+2e−t(1−1)=(3e3t+2e−t3e3t−2e−t). \mathbf{x}(t) = \mathbf{3e^{3t}\begin{pmatrix} 1 \\ 1 \end{pmatrix} + 2e^{-t}\begin{pmatrix} 1 \\ -1 \end{pmatrix} = \begin{pmatrix} 3e^{3t} + 2e^{-t} \\ 3e^{3t} - 2e^{-t} \end{pmatrix}}.

Level 3 · Advanced / University Rigor

Let A=(2103) A = \begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix} . Using the Cayley–Hamilton Theorem, express A4 A^4 and A−1 A^{-1} as linear combinations c1A+c0I c_1 A + c_0 I .

Step 1 · Find Characteristic Polynomial: p(λ)=(2−λ)(3−λ)−0=λ2−5λ+6. p(\lambda) = (2 - \lambda)(3 - \lambda) - 0 = \lambda^2 - 5\lambda + 6.

Step 2 · Apply Cayley–Hamilton: A2−5A+6I=0 A^2 - 5A + 6I = 0 :
From this: A2=5A−6I A^2 = 5A - 6I . Multiply by A A : A3=5A2−6A=5(5A−6I)−6A=25A−30I−6A=19A−30I. A^3 = 5A^2 - 6A = 5(5A - 6I) - 6A = 25A - 30I - 6A = 19A - 30I. Multiply by A A again: A4=19A2−30A=19(5A−6I)−30A=95A−114I−30A=65A−114I. A^4 = 19A^2 - 30A = 19(5A - 6I) - 30A = 95A - 114I - 30A = \mathbf{65A - 114I}.

Step 3 · Express A−1 A^{-1} : Multiply A2−5A+6I=0 A^2 - 5A + 6I = 0 by A−1 A^{-1} : A−5I+6A−1=0  ⟹  6A−1=5I−A  ⟹  A−1=−16A+56I. A - 5I + 6A^{-1} = 0 \implies 6A^{-1} = 5I - A \implies \mathbf{A^{-1} = -\frac{1}{6}A + \frac{5}{6}I}.

[Eigenvalues, Eigenvectors & Diagonalization · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
7

Linear Transformations, Matrix Representations & Change of Basis

A function between vector spaces that respects addition and scalar multiplication is called a linear transformation. While Chapter 3 introduced matrix–vector multiplication as an algebraic operation, this chapter reveals the deeper geometric reality: every linear operator on finite-dimensional spaces is intrinsically represented by a matrix once bases are chosen. Linear transformations form the conceptual bridge connecting abstract vector spaces, geometry, and linear operator theory across quantum mechanics, computer graphics, and continuous dynamical systems.

● Level 1 Foundation — Definition 7.1: Linear Transformation

Let V V and W W be vector spaces over R \mathbb{R} . A mapping T:V→W T: V \to W is a linear transformation (or linear operator when V=W V = W ) if and only if for all vectors u,v∈V \mathbf{u}, \mathbf{v} \in V and every scalar c∈R c \in \mathbb{R} :

  1. Additivity: T(u+v)=T(u)+T(v) T(\mathbf{u} + \mathbf{v}) = T(\mathbf{u}) + T(\mathbf{v})
  2. Scalar Homogeneity: T(cu)=c T(u) T(c\mathbf{u}) = c\,T(\mathbf{u})

These two conditions are equivalent to the single superposition condition: T(c1u+c2v)=c1T(u)+c2T(v) T(c_1\mathbf{u} + c_2\mathbf{v}) = c_1 T(\mathbf{u}) + c_2 T(\mathbf{v}) for all scalars c1,c2 c_1, c_2 . By induction, a linear map preserves arbitrary linear combinations: T(∑i=1kcivi)=∑i=1kciT(vi). T\left(\sum_{i=1}^k c_i \mathbf{v}_i\right) = \sum_{i=1}^k c_i T(\mathbf{v}_i).

Zero Vector Property: Taking c=0 c = 0 yields T(0V)=T(0⋅0V)=0⋅T(0V)=0W T(\mathbf{0}_V) = T(0 \cdot \mathbf{0}_V) = 0 \cdot T(\mathbf{0}_V) = \mathbf{0}_W . Every linear map strictly maps the origin of the domain to the origin of the codomain. Any mapping with T(0)≠0 T(\mathbf{0}) \neq \mathbf{0} (such as the affine shift f(x)=Ax+b f(\mathbf{x}) = A\mathbf{x} + \mathbf{b} with b≠0 \mathbf{b} \neq \mathbf{0} ) is not linear.

Linear Transformations, Matrix Representations & Change of Basis — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
⊙ Explorer · Interactive Linear Transformations, Matrix Representations & Change of Basis Labinteractive
Primary Metric2.00
Secondary Metric1.00
▲ Level 1 Foundation — Theorem 7.1: The Standard Matrix Representation

Let T:Rn→Rm T: \mathbb{R}^n \to \mathbb{R}^m be a linear transformation. Then there exists a unique m×n m \times n matrix [T] [T] (or A A ), called the standard matrix of T T , such that: T(x)=[T]xfor all x∈Rn. T(\mathbf{x}) = [T]\mathbf{x} \quad \text{for all } \mathbf{x} \in \mathbb{R}^n. Furthermore, the columns of [T] [T] are precisely the images of the standard basis vectors e1,e2,…,en \mathbf{e}_1, \mathbf{e}_2, \ldots, \mathbf{e}_n of Rn \mathbb{R}^n : [T]=(∣∣∣T(e1)T(e2)⋯T(en)∣∣∣). [T] = \begin{pmatrix} | & | & & | \\ T(\mathbf{e}_1) & T(\mathbf{e}_2) & \cdots & T(\mathbf{e}_n) \\ | & | & & | \end{pmatrix}.

Proof of Theorem 7.1

Any vector x=(x1,x2,…,xn)T∈Rn \mathbf{x} = (x_1, x_2, \ldots, x_n)^T \in \mathbb{R}^n can be uniquely expressed as a linear combination of standard basis vectors: x=x1e1+x2e2+⋯+xnen=∑j=1nxjej. \mathbf{x} = x_1\mathbf{e}_1 + x_2\mathbf{e}_2 + \cdots + x_n\mathbf{e}_n = \sum_{j=1}^n x_j \mathbf{e}_j. Applying the linear transformation T T and utilizing linearity across the summation and scalar coefficients: T(x)=T(∑j=1nxjej)=∑j=1nxjT(ej). T(\mathbf{x}) = T\left( \sum_{j=1}^n x_j \mathbf{e}_j \right) = \sum_{j=1}^n x_j T(\mathbf{e}_j). By the fundamental definition of matrix–vector multiplication (a linear combination of the matrix columns weighted by the vector components): ∑j=1nxjT(ej)=(∣∣∣T(e1)T(e2)⋯T(en)∣∣∣)(x1x2⋮xn)=[T]x. \sum_{j=1}^n x_j T(\mathbf{e}_j) = \begin{pmatrix} | & | & & | \\ T(\mathbf{e}_1) & T(\mathbf{e}_2) & \cdots & T(\mathbf{e}_n) \\ | & | & & | \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{pmatrix} = [T]\mathbf{x}. Uniqueness follows from evaluating T(ej) T(\mathbf{e}_j) : if Ax=Bx A\mathbf{x} = B\mathbf{x} for all x \mathbf{x} , setting x=ej \mathbf{x} = \mathbf{e}_j yields Aej=Bej A\mathbf{e}_j = B\mathbf{e}_j , forcing the j j -th columns of A A and B B to be identical for all j j . Hence [T] [T] is unique. ■ \blacksquare

Worked Example 7.A (Level 1) — Canonical Geometric Operators in ℝ²

Construct the standard transformation matrices for three foundational geometric operators on R2 \mathbb{R}^2 :

  1. Counterclockwise Rotation by Angle θ \theta (Rθ R_\theta ):
    Under rotation by θ \theta , e1=(1,0)T↦(cos⁡θ,sin⁡θ)T \mathbf{e}_1 = (1, 0)^T \mapsto (\cos\theta, \sin\theta)^T and e2=(0,1)T↦(−sin⁡θ,cos⁡θ)T \mathbf{e}_2 = (0, 1)^T \mapsto (-\sin\theta, \cos\theta)^T .
    Therefore: [Rθ]=(cos⁡θ−sin⁡θsin⁡θcos⁡θ). [R_\theta] = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}.
  2. Reflection Across a Line Through the Origin at Angle α \alpha (Mα M_\alpha ):
    Unit vector along the line is u=(cos⁡α,sin⁡α)T \mathbf{u} = (\cos\alpha, \sin\alpha)^T . Reflection maps x↦2(x⋅u)u−x \mathbf{x} \mapsto 2(\mathbf{x} \cdot \mathbf{u})\mathbf{u} - \mathbf{x} . Evaluating on standard basis vectors: [Mα]=(cos⁡(2α)sin⁡(2α)sin⁡(2α)−cos⁡(2α)). [M_\alpha] = \begin{pmatrix} \cos(2\alpha) & \sin(2\alpha) \\ \sin(2\alpha) & -\cos(2\alpha) \end{pmatrix}.
  3. Horizontal Shear by Factor k k (Sk S_k ):
    Sk(x,y)=(x+ky,y) S_k(x, y) = (x + ky, y) . Here Sk(e1)=(1,0)T S_k(\mathbf{e}_1) = (1, 0)^T and Sk(e2)=(k,1)T S_k(\mathbf{e}_2) = (k, 1)^T , giving: [Sk]=(1k01). [S_k] = \begin{pmatrix} 1 & k \\ 0 & 1 \end{pmatrix}.

● Level 2 Analytical Application — Definition 7.2: Kernel, Image & Morphisms

For any linear transformation T:V→W T: V \to W :

  • Kernel (Null Space): The set of all input vectors mapped to the zero vector in W W : ker⁡(T)=null⁡(T)={v∈V:T(v)=0W}. \ker(T) = \operatorname{null}(T) = \{ \mathbf{v} \in V : T(\mathbf{v}) = \mathbf{0}_W \}. ker⁡(T) \ker(T) is a vector subspace of the domain V V . Its dimension is the nullity of T T : nullity⁡(T)=dim⁡(ker⁡T) \operatorname{nullity}(T) = \dim(\ker T) .
  • Image (Range): The set of all output vectors achievable in W W : im⁡(T)=range⁡(T)={w∈W:∃v∈V such that T(v)=w}. \operatorname{im}(T) = \operatorname{range}(T) = \{ \mathbf{w} \in W : \exists \mathbf{v} \in V \text{ such that } T(\mathbf{v}) = \mathbf{w} \}. im⁡(T) \operatorname{im}(T) is a vector subspace of the codomain W W , equivalent to the column space Col⁡([T]) \operatorname{Col}([T]) . Its dimension is the rank of T T : rank⁡(T)=dim⁡(im⁡T) \operatorname{rank}(T) = \dim(\operatorname{im} T) .
  • Injectivity (One-to-One): T T is injective if T(u)=T(v)  ⟹  u=v T(\mathbf{u}) = T(\mathbf{v}) \implies \mathbf{u} = \mathbf{v} .
  • Surjectivity (Onto): T T is surjective if im⁡(T)=W \operatorname{im}(T) = W (i.e., rank⁡(T)=dim⁡(W) \operatorname{rank}(T) = \dim(W) ).
  • Isomorphism (Bijective): T T is an isomorphism if it is both injective and surjective. In this case, V V and W W are isomorphic (V≅W V \cong W ), which requires dim⁡(V)=dim⁡(W) \dim(V) = \dim(W) .
▲ Level 2 Analytical Application — Theorem 7.2: Injectivity and the Trivial Kernel

Let T:V→W T: V \to W be a linear transformation. Then T T is injective (one-to-one) if and only if ker⁡(T)={0V} \ker(T) = \{ \mathbf{0}_V \} (i.e., nullity⁡(T)=0 \operatorname{nullity}(T) = 0 ).

Proof of Theorem 7.2

Forward Direction (  ⟹   \implies ): Assume T T is injective. We already know T(0V)=0W T(\mathbf{0}_V) = \mathbf{0}_W , so 0V∈ker⁡(T) \mathbf{0}_V \in \ker(T) . Now let v∈ker⁡(T) \mathbf{v} \in \ker(T) . Then T(v)=0W T(\mathbf{v}) = \mathbf{0}_W . Thus T(v)=T(0V) T(\mathbf{v}) = T(\mathbf{0}_V) . Because T T is injective, this directly implies v=0V \mathbf{v} = \mathbf{0}_V . Hence, ker⁡(T)={0V} \ker(T) = \{ \mathbf{0}_V \} .

Reverse Direction (  ⟸   \impliedby ): Assume ker⁡(T)={0V} \ker(T) = \{ \mathbf{0}_V \} . Suppose T(u)=T(v) T(\mathbf{u}) = T(\mathbf{v}) for some u,v∈V \mathbf{u}, \mathbf{v} \in V . Subtracting T(v) T(\mathbf{v}) from both sides and applying linearity gives: T(u)−T(v)=T(u−v)=0W. T(\mathbf{u}) - T(\mathbf{v}) = T(\mathbf{u} - \mathbf{v}) = \mathbf{0}_W. By definition of the kernel, u−v∈ker⁡(T) \mathbf{u} - \mathbf{v} \in \ker(T) . Since ker⁡(T)={0V} \ker(T) = \{ \mathbf{0}_V \} , we must have u−v=0V \mathbf{u} - \mathbf{v} = \mathbf{0}_V , which means u=v \mathbf{u} = \mathbf{v} . Therefore, T T is one-to-one. ■ \blacksquare

▲ Level 2 Analytical Application — Theorem 7.3: The Dimension Theorem for Linear Maps

If V V is a finite-dimensional vector space and T:V→W T: V \to W is a linear transformation, then: dim⁡(ker⁡T)+dim⁡(im⁡T)=dim⁡(V), \dim(\ker T) + \dim(\operatorname{im} T) = \dim(V), or equivalently: nullity⁡(T)+rank⁡(T)=dim⁡(V). \operatorname{nullity}(T) + \operatorname{rank}(T) = \dim(V).

Proof of the Dimension Theorem (Rank-Nullity)

Let n=dim⁡(V) n = \dim(V) and let k=dim⁡(ker⁡T) k = \dim(\ker T) . If k=0 k = 0 , the kernel is {0} \{ \mathbf{0} \} with basis ∅ \emptyset . Otherwise, choose a basis BK={u1,u2,…,uk} \mathcal{B}_K = \{ \mathbf{u}_1, \mathbf{u}_2, \ldots, \mathbf{u}_k \} for ker⁡(T) \ker(T) .

By the Basis Extension Theorem, extend BK \mathcal{B}_K to a complete basis for V V : B={u1,…,uk,w1,…,wn−k}. \mathcal{B} = \{ \mathbf{u}_1, \ldots, \mathbf{u}_k, \mathbf{w}_1, \ldots, \mathbf{w}_{n-k} \}. We claim that the set S={T(w1),T(w2),…,T(wn−k)} \mathcal{S} = \{ T(\mathbf{w}_1), T(\mathbf{w}_2), \ldots, T(\mathbf{w}_{n-k}) \} is a basis for im⁡(T) \operatorname{im}(T) .

1. S \mathcal{S} spans im⁡(T) \operatorname{im}(T) : Let y∈im⁡(T) \mathbf{y} \in \operatorname{im}(T) . Then y=T(v) \mathbf{y} = T(\mathbf{v}) for some v∈V \mathbf{v} \in V . Express v \mathbf{v} in terms of B \mathcal{B} : v=∑i=1kciui+∑j=1n−kdjwj. \mathbf{v} = \sum_{i=1}^k c_i \mathbf{u}_i + \sum_{j=1}^{n-k} d_j \mathbf{w}_j. Applying T T and noting T(ui)=0 T(\mathbf{u}_i) = \mathbf{0} for all i i : y=T(v)=∑i=1kciT(ui)+∑j=1n−kdjT(wj)=∑j=1n−kdjT(wj). \mathbf{y} = T(\mathbf{v}) = \sum_{i=1}^k c_i T(\mathbf{u}_i) + \sum_{j=1}^{n-k} d_j T(\mathbf{w}_j) = \sum_{j=1}^{n-k} d_j T(\mathbf{w}_j). Thus span⁡(S)=im⁡(T) \operatorname{span}(\mathcal{S}) = \operatorname{im}(T) .

2. S \mathcal{S} is linearly independent: Suppose ∑j=1n−kdjT(wj)=0W. \sum_{j=1}^{n-k} d_j T(\mathbf{w}_j) = \mathbf{0}_W. By linearity, T(∑j=1n−kdjwj)=0W T\left( \sum_{j=1}^{n-k} d_j \mathbf{w}_j \right) = \mathbf{0}_W , which proves that the vector w=∑j=1n−kdjwj \mathbf{w} = \sum_{j=1}^{n-k} d_j \mathbf{w}_j lies in ker⁡(T) \ker(T) . Since BK \mathcal{B}_K is a basis for ker⁡(T) \ker(T) , w \mathbf{w} can be written as: ∑j=1n−kdjwj=∑i=1kciui  ⟺  ∑i=1k(−ci)ui+∑j=1n−kdjwj=0V. \sum_{j=1}^{n-k} d_j \mathbf{w}_j = \sum_{i=1}^k c_i \mathbf{u}_i \iff \sum_{i=1}^k (-c_i)\mathbf{u}_i + \sum_{j=1}^{n-k} d_j \mathbf{w}_j = \mathbf{0}_V. Because the combined set B \mathcal{B} is linearly independent in V V , all coefficients must vanish: c1=⋯=ck=d1=⋯=dn−k=0 c_1 = \cdots = c_k = d_1 = \cdots = d_{n-k} = 0 . In particular, d1=d2=⋯=dn−k=0 d_1 = d_2 = \cdots = d_{n-k} = 0 , establishing that S \mathcal{S} is linearly independent.

Since S \mathcal{S} spans im⁡(T) \operatorname{im}(T) and is linearly independent, it is a basis for im⁡(T) \operatorname{im}(T) . Hence dim⁡(im⁡T)=n−k=dim⁡(V)−dim⁡(ker⁡T) \dim(\operatorname{im} T) = n - k = \dim(V) - \dim(\ker T) , completing the proof. ■ \blacksquare

Worked Example 7.B (Level 2) — Dimension Theorem & Kernel Computation

Consider the linear transformation T:R4→R3 T: \mathbb{R}^4 \to \mathbb{R}^3 defined by T(x)=Ax T(\mathbf{x}) = A\mathbf{x} where: A=(1−12322024048). A = \begin{pmatrix} 1 & -1 & 2 & 3 \\ 2 & 2 & 0 & 2 \\ 4 & 0 & 4 & 8 \end{pmatrix}. Determine a basis for ker⁡(T) \ker(T) , a basis for im⁡(T) \operatorname{im}(T) , and verify the Dimension Theorem.

Step 1: Row reduce A A to RREF: (1−12322024048)→R2−2R1, R3−4R1(1−12304−4−404−4−4)→R3−R2, R2/4(1−12301−1−10000)→R1+R2(101201−1−10000). \begin{pmatrix} 1 & -1 & 2 & 3 \\ 2 & 2 & 0 & 2 \\ 4 & 0 & 4 & 8 \end{pmatrix} \xrightarrow{R_2 - 2R_1,\, R_3 - 4R_1} \begin{pmatrix} 1 & -1 & 2 & 3 \\ 0 & 4 & -4 & -4 \\ 0 & 4 & -4 & -4 \end{pmatrix} \xrightarrow{R_3 - R_2,\, R_2 / 4} \begin{pmatrix} 1 & -1 & 2 & 3 \\ 0 & 1 & -1 & -1 \\ 0 & 0 & 0 & 0 \end{pmatrix} \xrightarrow{R_1 + R_2} \begin{pmatrix} 1 & 0 & 1 & 2 \\ 0 & 1 & -1 & -1 \\ 0 & 0 & 0 & 0 \end{pmatrix}.

Step 2: Basis for ker⁡(T) \ker(T) : Pivot variables are x1,x2 x_1, x_2 ; free variables are x3=s,x4=t x_3 = s, x_4 = t . Expressing pivot variables: x1=−s−2t x_1 = -s - 2t and x2=s+t x_2 = s + t . In parametric vector form: x=s(−1110)+t(−2101). \mathbf{x} = s \begin{pmatrix} -1 \\ 1 \\ 1 \\ 0 \end{pmatrix} + t \begin{pmatrix} -2 \\ 1 \\ 0 \\ 1 \end{pmatrix}. Thus a basis for ker⁡(T) \ker(T) is {(−1110),(−2101)} \left\{ \begin{pmatrix} -1 \\ 1 \\ 1 \\ 0 \end{pmatrix}, \begin{pmatrix} -2 \\ 1 \\ 0 \\ 1 \end{pmatrix} \right\} , and nullity⁡(T)=2 \operatorname{nullity}(T) = 2 .

Step 3: Basis for im⁡(T) \operatorname{im}(T) : Pivot columns are columns 1 and 2 of the original matrix A A : Basis for im⁡(T)={(124),(−120)},rank⁡(T)=2. \text{Basis for } \operatorname{im}(T) = \left\{ \begin{pmatrix} 1 \\ 2 \\ 4 \end{pmatrix}, \begin{pmatrix} -1 \\ 2 \\ 0 \end{pmatrix} \right\}, \quad \operatorname{rank}(T) = 2.

Verification: nullity⁡(T)+rank⁡(T)=2+2=4=dim⁡(domain R4) \operatorname{nullity}(T) + \operatorname{rank}(T) = 2 + 2 = 4 = \dim(\text{domain } \mathbb{R}^4) . ✓

● Level 3 University Rigor — Definition 7.3: Matrix Relative to Arbitrary Bases

Let V V and W W be vector spaces with ordered bases B={v1,v2,…,vn} \mathcal{B} = \{ \mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_n \} and C={w1,w2,…,wm} \mathcal{C} = \{ \mathbf{w}_1, \mathbf{w}_2, \ldots, \mathbf{w}_m \} , respectively. Let [v]B [\mathbf{v}]_\mathcal{B} denote the coordinate vector of v \mathbf{v} relative to B \mathcal{B} .

The matrix representation of T:V→W T: V \to W relative to bases B \mathcal{B} and C \mathcal{C} , denoted [T]BC [T]_\mathcal{B}^\mathcal{C} (or simply [T]B [T]_\mathcal{B} when V=W V = W and B=C \mathcal{B} = \mathcal{C} ), is the m×n m \times n matrix whose j j -th column is the coordinate vector of T(vj) T(\mathbf{v}_j) with respect to C \mathcal{C} : [T]BC=(∣∣∣[T(v1)]C[T(v2)]C⋯[T(vn)]C∣∣∣). [T]_\mathcal{B}^\mathcal{C} = \begin{pmatrix} | & | & & | \\ [T(\mathbf{v}_1)]_\mathcal{C} & [T(\mathbf{v}_2)]_\mathcal{C} & \cdots & [T(\mathbf{v}_n)]_\mathcal{C} \\ | & | & & | \end{pmatrix}. This matrix satisfies the commutative diagram property: [T(x)]C=[T]BC[x]Bfor all x∈V. [T(\mathbf{x})]_\mathcal{C} = [T]_\mathcal{B}^\mathcal{C} [\mathbf{x}]_\mathcal{B} \quad \text{for all } \mathbf{x} \in V.

▲ Level 3 University Rigor — Theorem 7.4: Change of Basis & Similarity Transformations

Let T:V→V T: V \to V be a linear operator on an n n -dimensional space V V , and let B \mathcal{B} and C \mathcal{C} be two ordered bases of V V . Let P=PB←C P = P_{\mathcal{B} \leftarrow \mathcal{C}} be the change-of-basis transition matrix from C \mathcal{C} to B \mathcal{B} , whose columns are [wj]B [\mathbf{w}_j]_\mathcal{B} for wj∈C \mathbf{w}_j \in \mathcal{C} .

Then P P is invertible, [x]B=P[x]C [\mathbf{x}]_\mathcal{B} = P [\mathbf{x}]_\mathcal{C} , and the matrices representing T T under B \mathcal{B} and C \mathcal{C} are related by a similarity transformation: [T]C=P−1[T]BP. [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P.

Similarity Invariants: Because [T]C [T]_\mathcal{C} and [T]B [T]_\mathcal{B} are similar matrices (B=P−1AP B = P^{-1}AP ), they share identical intrinsic geometric properties independent of the chosen coordinate basis:

  1. det⁡([T]C)=det⁡([T]B) \det([T]_\mathcal{C}) = \det([T]_\mathcal{B})
  2. tr⁡([T]C)=tr⁡([T]B) \operatorname{tr}([T]_\mathcal{C}) = \operatorname{tr}([T]_\mathcal{B})
  3. p[T]C(λ)=p[T]B(λ) p_{[T]_\mathcal{C}}(\lambda) = p_{[T]_\mathcal{B}}(\lambda) (identical characteristic polynomial and eigenvalues)
  4. Identical rank and nullity
Proof of Theorem 7.4

Let x∈V \mathbf{x} \in V . By definition of the transition matrix, coordinates convert via: [x]B=P[x]C  ⟺  [x]C=P−1[x]B. [\mathbf{x}]_\mathcal{B} = P [\mathbf{x}]_\mathcal{C} \iff [\mathbf{x}]_\mathcal{C} = P^{-1} [\mathbf{x}]_\mathcal{B}. Applying this conversion rule to the transformed vector T(x) T(\mathbf{x}) : [T(x)]C=P−1[T(x)]B. [T(\mathbf{x})]_\mathcal{C} = P^{-1} [T(\mathbf{x})]_\mathcal{B}. Substituting the definition [T(x)]B=[T]B[x]B [T(\mathbf{x})]_\mathcal{B} = [T]_\mathcal{B} [\mathbf{x}]_\mathcal{B} : [T(x)]C=P−1([T]B[x]B)=P−1[T]B(P[x]C)=(P−1[T]BP)[x]C. [T(\mathbf{x})]_\mathcal{C} = P^{-1} \left( [T]_\mathcal{B} [\mathbf{x}]_\mathcal{B} \right) = P^{-1} [T]_\mathcal{B} \left( P [\mathbf{x}]_\mathcal{C} \right) = \left( P^{-1} [T]_\mathcal{B} P \right) [\mathbf{x}]_\mathcal{C}. Since this equality holds for all coordinate vectors [x]C∈Rn [\mathbf{x}]_\mathcal{C} \in \mathbb{R}^n , uniqueness of the matrix representation establishes: [T]C=P−1[T]BP.■ [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P. \quad \blacksquare

Worked Example 7.C (Level 3) — Differential Operator Representation in Polynomial Spaces

Let P2 \mathcal{P}_2 be the vector space of real polynomials of degree at most 2. Let D:P2→P2 D: \mathcal{P}_2 \to \mathcal{P}_2 be the linear differential operator D(p(x))=xp′(x)−2p(x) D(p(x)) = x p'(x) - 2 p(x) .

  1. Find the matrix representation [D]B [D]_\mathcal{B} relative to the standard monomial basis B={1,x,x2} \mathcal{B} = \{ 1, x, x^2 \} .
  2. Find ker⁡(D) \ker(D) and im⁡(D) \operatorname{im}(D) , and determine whether D D is an isomorphism.

Step 1: Compute images of basis elements:

  • For p1(x)=1 p_1(x) = 1 : D(1)=x(0)−2(1)=−2=−2(1)+0(x)+0(x2)  ⟹  [D(1)]B=(−200) D(1) = x(0) - 2(1) = -2 = -2(1) + 0(x) + 0(x^2) \implies [D(1)]_\mathcal{B} = \begin{pmatrix} -2 \\ 0 \\ 0 \end{pmatrix} .
  • For p2(x)=x p_2(x) = x : D(x)=x(1)−2(x)=−x=0(1)−1(x)+0(x2)  ⟹  [D(x)]B=(0−10) D(x) = x(1) - 2(x) = -x = 0(1) - 1(x) + 0(x^2) \implies [D(x)]_\mathcal{B} = \begin{pmatrix} 0 \\ -1 \\ 0 \end{pmatrix} .
  • For p3(x)=x2 p_3(x) = x^2 : D(x2)=x(2x)−2(x2)=0=0(1)+0(x)+0(x2)  ⟹  [D(x2)]B=(000) D(x^2) = x(2x) - 2(x^2) = 0 = 0(1) + 0(x) + 0(x^2) \implies [D(x^2)]_\mathcal{B} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix} .

Assembling the columns into the matrix representation: [D]B=(−2000−10000). [D]_\mathcal{B} = \begin{pmatrix} -2 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 0 \end{pmatrix}.

Step 2: Kernel and Image Analysis:
The matrix has a pivot in columns 1 and 2, while column 3 is a free column. The null space of [D]B [D]_\mathcal{B} is spanned by (0,0,1)T (0, 0, 1)^T , corresponding to the polynomial x2 x^2 .
Therefore: ker⁡(D)=span⁡{x2},dim⁡(ker⁡D)=1. \ker(D) = \operatorname{span}\{ x^2 \}, \quad \dim(\ker D) = 1. Since ker⁡(D)≠{0} \ker(D) \neq \{0\} , D D is not injective, and by Rank-Nullity rank⁡(D)=3−1=2<3 \operatorname{rank}(D) = 3 - 1 = 2 < 3 (not surjective). Hence D D is not an isomorphism.
The image is spanned by {p1,p2} \{ p_1, p_2 \} : im⁡(D)=span⁡{1,x} \operatorname{im}(D) = \operatorname{span}\{ 1, x \} .

⚠️ Common Traps & University Pitfalls — Linear Transformations
  • Affine Shifts are NOT Linear: A common exam trap is mistaking T(x)=Ax+b T(\mathbf{x}) = A\mathbf{x} + \mathbf{b} (for b≠0 \mathbf{b} \neq \mathbf{0} ) for a linear transformation. Because T(0)=b≠0 T(\mathbf{0}) = \mathbf{b} \neq \mathbf{0} , additivity and scalar scaling fail completely. It is an affine map, never a linear transformation.
  • Codomain Dimension vs. Range Dimension: If T:R5→R3 T: \mathbb{R}^5 \to \mathbb{R}^3 , students frequently confuse the codomain R3 \mathbb{R}^3 with im⁡(T) \operatorname{im}(T) . The dimension of the range is rank⁡(T)≤3 \operatorname{rank}(T) \le 3 ; T T is onto only if rank⁡(T)=3 \operatorname{rank}(T) = 3 .
  • Inverting the Transition Matrix Direction: In changing basis with [T]C=P−1[T]BP [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P , the transition matrix P=PB←C P = P_{\mathcal{B} \leftarrow \mathcal{C}} has columns given by the coordinates of the new basis C \mathcal{C} relative to the old basis B \mathcal{B} . Swapping P P and P−1 P^{-1} flips the entire coordinate perspective.
  • Composition Order: The composite transformation (S∘T)(x)=S(T(x)) (S \circ T)(\mathbf{x}) = S(T(\mathbf{x})) corresponds to matrix product [S][T] [S][T] , applied from right to left. Reversing this product to [T][S] [T][S] computes T∘S T \circ S , which is generally completely distinct or undefined when dimensions differ.
Linearity Axioms
T(c1u+c2v)=c1T(u)+c2T(v) T(c_1\mathbf{u} + c_2\mathbf{v}) = c_1T(\mathbf{u}) + c_2T(\mathbf{v})
Standard Matrix
Columns are T(e1),…,T(en) T(\mathbf{e}_1), \ldots, T(\mathbf{e}_n)
Dimension Theorem
dim⁡(ker⁡T)+dim⁡(im⁡T)=dim⁡(V) \dim(\ker T) + \dim(\operatorname{im} T) = \dim(V)
Change of Basis
[T]C=P−1[T]BP [T]_\mathcal{C} = P^{-1} [T]_\mathcal{B} P
Linear Transformation: 90° Counterclockwise Rotation — Coordinate plane with graph of Span of e₁ = (1, 0), Span of T(e₁) = (0, 1); marked points e₁ = (1, 0) (1, 0), T(e₁) = (0, 1) (0, 1), Origin (0,0) (0, 0)-2-112-2-112xySpan of e₁ = (1, 0)Span of T(e₁) = (0, 1)e₁ = (1, 0)T(e₁) = (0, 1)Origin (0,0)
Geometric effect of the rotation transformation T(x)=(0−110)x T(\mathbf{x}) = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}\mathbf{x} . The standard basis vector e1=⟨1,0⟩ \mathbf{e}_1 = \langle 1, 0 \rangle maps to ⟨0,1⟩ \langle 0, 1 \rangle , rotating the plane 90∘ 90^\circ counterclockwise.
Practice Problem (Level 1) — Composition & Matrix Inverse

T:R2→R2 T: \mathbb{R}^2 \to \mathbb{R}^2 projects every vector onto the x x -axis: T(x,y)=(x,0) T(x,y)=(x,0) . (a) Verify T T is linear and find its standard matrix [T] [T] . (b) Find ker⁡(T) \ker(T) and im⁡(T) \operatorname{im}(T) , and verify the Dimension Theorem. (c) Explain geometrically and algebraically why [T] [T] cannot be invertible.

Show solution

(a) T(c1(x1,y1)+c2(x2,y2))=T(c1x1+c2x2,c1y1+c2y2)=(c1x1+c2x2,0)=c1(x1,0)+c2(x2,0)=c1T(x1,y1)+c2T(x2,y2) T(c_1(x_1, y_1) + c_2(x_2, y_2)) = T(c_1 x_1 + c_2 x_2, c_1 y_1 + c_2 y_2) = (c_1 x_1 + c_2 x_2, 0) = c_1(x_1, 0) + c_2(x_2, 0) = c_1 T(x_1, y_1) + c_2 T(x_2, y_2) — strictly linear. Testing standard basis: T(1,0)=(1,0) T(1,0)=(1,0) and T(0,1)=(0,0) T(0,1)=(0,0) , hence [T]=(1000) [T] = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} .

(b) T(x,y)=(0,0)  ⟺  x=0 T(x,y) = (0,0) \iff x = 0 . Thus ker⁡(T)={(0,y):y∈R}=span⁡((0,1)T) \ker(T) = \{ (0, y) : y \in \mathbb{R} \} = \operatorname{span}\big((0,1)^T\big) , which is the y y -axis (dim⁡=1 \dim = 1 ). The range is im⁡(T)={(x,0):x∈R}=span⁡((1,0)T) \operatorname{im}(T) = \{ (x, 0) : x \in \mathbb{R} \} = \operatorname{span}\big((1,0)^T\big) , which is the x x -axis (dim⁡=1 \dim = 1 ).
Check: dim⁡(ker⁡T)+dim⁡(im⁡T)=1+1=2=dim⁡(R2) \dim(\ker T) + \dim(\operatorname{im} T) = 1 + 1 = 2 = \dim(\mathbb{R}^2) . ✓

(c) Algebraically, det⁡([T])=(1)(0)−(0)(0)=0 \det([T]) = (1)(0) - (0)(0) = 0 , so [T] [T] is singular. Geometrically, projection permanently collapses the entire 2D plane onto a 1D line; all information along the y y -axis is lost (ker⁡T≠{0} \ker T \neq \{0\} ), so the operation is non-injective and cannot be uniquely reversed.

Worked Example  ·  Matrix Representation Under Non-Standard Basis

Let T:R2→R2 T: \mathbb{R}^2 \to \mathbb{R}^2 be reflection across the line y=2x y = 2x . Find [T]B [T]_\mathcal{B} relative to the basis B={v1,v2} \mathcal{B} = \{ \mathbf{v}_1, \mathbf{v}_2 \} where v1=(12) \mathbf{v}_1 = \begin{pmatrix} 1 \\ 2 \end{pmatrix} lies on the line and v2=(−21) \mathbf{v}_2 = \begin{pmatrix} -2 \\ 1 \end{pmatrix} is orthogonal to the line.

Solution: Since v1 \mathbf{v}_1 lies along the reflection line, T(v1)=v1=1v1+0v2  ⟹  [T(v1)]B=(10) T(\mathbf{v}_1) = \mathbf{v}_1 = 1\mathbf{v}_1 + 0\mathbf{v}_2 \implies [T(\mathbf{v}_1)]_\mathcal{B} = \begin{pmatrix} 1 \\ 0 \end{pmatrix} .
Since v2 \mathbf{v}_2 is perpendicular to the line, reflection negates it: T(v2)=−v2=0v1−1v2  ⟹  [T(v2)]B=(0−1) T(\mathbf{v}_2) = -\mathbf{v}_2 = 0\mathbf{v}_1 - 1\mathbf{v}_2 \implies [T(\mathbf{v}_2)]_\mathcal{B} = \begin{pmatrix} 0 \\ -1 \end{pmatrix} .
Therefore: [T]B=(100−1). [T]_\mathcal{B} = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. (Notice how selecting an eigenbasis completely diagonalizes the geometric transformation!)

Worked Example  ·  Injectivity & Codomain Dimensions

Can a linear transformation T:R5→R3 T: \mathbb{R}^5 \to \mathbb{R}^3 be injective (one-to-one)? Can it be surjective (onto)?

Solution: By the Dimension Theorem, dim⁡(ker⁡T)+dim⁡(im⁡T)=5 \dim(\ker T) + \dim(\operatorname{im} T) = 5 . Since im⁡(T)⊆R3 \operatorname{im}(T) \subseteq \mathbb{R}^3 , dim⁡(im⁡T)≤3 \dim(\operatorname{im} T) \le 3 . Thus: dim⁡(ker⁡T)=5−dim⁡(im⁡T)≥5−3=2. \dim(\ker T) = 5 - \dim(\operatorname{im} T) \ge 5 - 3 = 2. Since dim⁡(ker⁡T)≥2>0 \dim(\ker T) \ge 2 > 0 , ker⁡(T)≠{0} \ker(T) \neq \{\mathbf{0}\} , so T T cannot be one-to-one under any circumstances. However, if rank⁡(T)=3=dim⁡(R3) \operatorname{rank}(T) = 3 = \dim(\mathbb{R}^3) , T T can be surjective.

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

A linear transformation T:R7→R4 T: \mathbb{R}^7 \to \mathbb{R}^4 has dim⁡(ker⁡T)=3 \dim(\ker T) = 3 . What is the dimension of the range of T T , and is T T surjective?

By the Dimension Theorem, nullity⁡(T)+rank⁡(T)=dim⁡(domain) \operatorname{nullity}(T) + \operatorname{rank}(T) = \dim(\text{domain}) . Here: 3+rank⁡(T)=7  ⟹  rank⁡(T)=dim⁡(im⁡T)=4. 3 + \operatorname{rank}(T) = 7 \implies \operatorname{rank}(T) = \dim(\operatorname{im} T) = 4. Since dim⁡(im⁡T)=4=dim⁡(R4) \operatorname{dim}(\operatorname{im} T) = 4 = \dim(\mathbb{R}^4) , the range spans the entire codomain, so T T is surjective (onto).

Find the standard matrix [T] [T] of the linear operator T:R2→R2 T: \mathbb{R}^2 \to \mathbb{R}^2 that first rotates vectors by 90∘ 90^\circ counterclockwise, and then reflects the result across the line y=x y = x .

Step 1: Track images of standard basis vectors:
For e1=(10) \mathbf{e}_1 = \begin{pmatrix} 1 \\ 0 \end{pmatrix} : Rotation by 90∘ 90^\circ CCW sends e1 \mathbf{e}_1 to (01) \begin{pmatrix} 0 \\ 1 \end{pmatrix} . Reflection across y=x y = x swaps coordinates: (01)⟶(10) \begin{pmatrix} 0 \\ 1 \end{pmatrix} \longrightarrow \begin{pmatrix} 1 \\ 0 \end{pmatrix} .
For e2=(01) \mathbf{e}_2 = \begin{pmatrix} 0 \\ 1 \end{pmatrix} : Rotation by 90∘ 90^\circ CCW sends e2 \mathbf{e}_2 to (−10) \begin{pmatrix} -1 \\ 0 \end{pmatrix} . Reflection across y=x y = x swaps coordinates: (−10)⟶(0−1) \begin{pmatrix} -1 \\ 0 \end{pmatrix} \longrightarrow \begin{pmatrix} 0 \\ -1 \end{pmatrix} .

Step 2: Assemble standard matrix: The columns of [T] [T] are T(e1) T(\mathbf{e}_1) and T(e2) T(\mathbf{e}_2) : [T]=(100−1). [T] = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. Alternatively, via matrix multiplication of standard operators: [T]=[Mπ/4][Rπ/2]=(0110)(0−110)=(100−1). [T] = [M_{\pi/4}] [R_{\pi/2}] = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. This composite operator is geometrically equivalent to reflection across the x-axis!

[Linear Transformations, Matrix Representations & Change of Basis · Practice 3] If the governing relation for this system is g(t)=5t+5 g(t) = 5t + 5 , evaluate g(8) g(8) and find the inverse input t t when g(t)=50 g(t) = 50 .
Substitute t=8 t = 8 : g(8)=5(8)+5=45 g(8) = 5(8) + 5 = \mathbf{45} . Setting 5t+5=50 5t + 5 = 50 gives 5t=45  ⟹  t=9 5t = 45 \implies t = \mathbf{9} .
[Linear Transformations, Matrix Representations & Change of Basis · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
8

Orthogonality, Gram–Schmidt, QR Decomposition & Least Squares

Orthogonality is the central organizing principle of modern computational linear algebra. By decomposing vector spaces into mutually perpendicular subspaces, orthogonality transforms complex matrix inversions into simple inner products, eliminates numerical instability, and powers the Gram–Schmidt process and QR decomposition. Furthermore, orthogonal projections resolve overdetermined, inconsistent linear systems via the method of least squares — the mathematical engine underpinning linear regression, statistical estimation, signal processing, and machine learning.

● Level 1 Foundation — Definition 8.1: Orthogonal & Orthonormal Systems

Let V V be an inner product space (such as Rn \mathbb{R}^n with standard Euclidean inner product ⟨u,v⟩=u⋅v \langle \mathbf{u}, \mathbf{v} \rangle = \mathbf{u} \cdot \mathbf{v} ).

  1. Two vectors u,v \mathbf{u}, \mathbf{v} are orthogonal (denoted u⊥v \mathbf{u} \perp \mathbf{v} ) if and only if u⋅v=0 \mathbf{u} \cdot \mathbf{v} = 0 .
  2. A set of vectors S={u1,u2,…,uk} \mathcal{S} = \{ \mathbf{u}_1, \mathbf{u}_2, \ldots, \mathbf{u}_k \} is an orthogonal set if ui⋅uj=0 \mathbf{u}_i \cdot \mathbf{u}_j = 0 whenever i≠j i \neq j .
  3. An orthogonal set S \mathcal{S} is orthonormal if every vector has unit length: ui⋅uj=δij={1if i=j0if i≠j \mathbf{u}_i \cdot \mathbf{u}_j = \delta_{ij} = \begin{cases} 1 & \text{if } i = j \\ 0 & \text{if } i \neq j \end{cases} where δij \delta_{ij} is the Kronecker delta.
  4. An orthonormal basis (ONB) for a subspace W W is a basis of W W that is orthonormal.

Orthogonal Fourier Expansion: If {q1,…,qn} \{ \mathbf{q}_1, \ldots, \mathbf{q}_n \} is an orthonormal basis for Rn \mathbb{R}^n , any vector x \mathbf{x} expands effortlessly without solving a system of equations: x=(x⋅q1)q1+(x⋅q2)q2+⋯+(x⋅qn)qn. \mathbf{x} = (\mathbf{x} \cdot \mathbf{q}_1)\mathbf{q}_1 + (\mathbf{x} \cdot \mathbf{q}_2)\mathbf{q}_2 + \cdots + (\mathbf{x} \cdot \mathbf{q}_n)\mathbf{q}_n.

Orthogonality, Gram–Schmidt, QR Decomposition & Least Squares — Coordinate Curve & Tangent Analysis (2) — Coordinate plane with graph of f(x) = x² - 2, Tangent at x = 1; marked points (1, -1) (1, -1), (0, -2) (0, -2)-3-2-1123-22468xyf(x) = x² − 2Tangent at x = 1(1, -1)(0, -2)
Coordinate graph of f(x) = x² − 2 and its instantaneous tangent line at x = 1.
▲ Level 1 Foundation — Theorem 8.1: Orthogonal Sets are Linearly Independent

If S={v1,v2,…,vk} \mathcal{S} = \{ \mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_k \} is an orthogonal set of nonzero vectors in Rn \mathbb{R}^n , then S \mathcal{S} is linearly independent and therefore forms an orthogonal basis for span⁡(S) \operatorname{span}(\mathcal{S}) .

Proof of Theorem 8.1

Suppose there exist scalars c1,c2,…,ck c_1, c_2, \ldots, c_k satisfying the linear dependence relation: c1v1+c2v2+⋯+ckvk=0. c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \cdots + c_k \mathbf{v}_k = \mathbf{0}. Select any index i∈{1,2,…,k} i \in \{1, 2, \ldots, k\} and take the inner product of both sides with vi \mathbf{v}_i : (∑j=1kcjvj)⋅vi=0⋅vi=0. \left( \sum_{j=1}^k c_j \mathbf{v}_j \right) \cdot \mathbf{v}_i = \mathbf{0} \cdot \mathbf{v}_i = 0. Expanding by the bilinearity of the inner product: c1(v1⋅vi)+⋯+ci(vi⋅vi)+⋯+ck(vk⋅vi)=0. c_1(\mathbf{v}_1 \cdot \mathbf{v}_i) + \cdots + c_i(\mathbf{v}_i \cdot \mathbf{v}_i) + \cdots + c_k(\mathbf{v}_k \cdot \mathbf{v}_i) = 0. By mutual orthogonality, every term with j≠i j \neq i vanishes (vj⋅vi=0 \mathbf{v}_j \cdot \mathbf{v}_i = 0 ), reducing the equation to: ci∥vi∥2=0. c_i \|\mathbf{v}_i\|^2 = 0. Since vi≠0 \mathbf{v}_i \neq \mathbf{0} , the squared Euclidean norm ∥vi∥2>0 \|\mathbf{v}_i\|^2 > 0 , forcing ci=0 c_i = 0 . Because this holds identically for every i∈{1,…,k} i \in \{1, \ldots, k\} , the only linear combination yielding 0 \mathbf{0} is the trivial one: c1=c2=⋯=ck=0 c_1 = c_2 = \cdots = c_k = 0 . Hence, S \mathcal{S} is linearly independent. ■ \blacksquare

Worked Example 8.A (Level 1) — Coordinates Under Orthonormal Basis

Verify that the vectors q1=13(221) \mathbf{q}_1 = \frac{1}{3}\begin{pmatrix} 2 \\ 2 \\ 1 \end{pmatrix} , q2=13(−212) \mathbf{q}_2 = \frac{1}{3}\begin{pmatrix} -2 \\ 1 \\ 2 \end{pmatrix} , and q3=13(1−22) \mathbf{q}_3 = \frac{1}{3}\begin{pmatrix} 1 \\ -2 \\ 2 \end{pmatrix} form an orthonormal basis for R3 \mathbb{R}^3 , and express x=(900) \mathbf{x} = \begin{pmatrix} 9 \\ 0 \\ 0 \end{pmatrix} as a linear combination of these basis vectors.

Step 1: Check orthonormality:
∥q1∥2=4+4+19=1 \|\mathbf{q}_1\|^2 = \frac{4+4+1}{9} = 1 , ∥q2∥2=4+1+49=1 \|\mathbf{q}_2\|^2 = \frac{4+1+4}{9} = 1 , ∥q3∥2=1+4+49=1 \|\mathbf{q}_3\|^2 = \frac{1+4+4}{9} = 1 .
q1⋅q2=−4+2+29=0 \mathbf{q}_1 \cdot \mathbf{q}_2 = \frac{-4+2+2}{9} = 0 , q1⋅q3=2−4+29=0 \mathbf{q}_1 \cdot \mathbf{q}_3 = \frac{2-4+2}{9} = 0 , q2⋅q3=−2−2+49=0 \mathbf{q}_2 \cdot \mathbf{q}_3 = \frac{-2-2+4}{9} = 0 .
Since the 3 vectors are orthonormal in R3 \mathbb{R}^3 , they form an orthonormal basis.

Step 2: Coordinate expansion via dot products: c1=x⋅q1=(900)⋅(2/32/31/3)=6. c_1 = \mathbf{x} \cdot \mathbf{q}_1 = \begin{pmatrix} 9 \\ 0 \\ 0 \end{pmatrix} \cdot \begin{pmatrix} 2/3 \\ 2/3 \\ 1/3 \end{pmatrix} = 6. c2=x⋅q2=(900)⋅(−2/31/32/3)=−6. c_2 = \mathbf{x} \cdot \mathbf{q}_2 = \begin{pmatrix} 9 \\ 0 \\ 0 \end{pmatrix} \cdot \begin{pmatrix} -2/3 \\ 1/3 \\ 2/3 \end{pmatrix} = -6. c3=x⋅q3=(900)⋅(1/3−2/32/3)=3. c_3 = \mathbf{x} \cdot \mathbf{q}_3 = \begin{pmatrix} 9 \\ 0 \\ 0 \end{pmatrix} \cdot \begin{pmatrix} 1/3 \\ -2/3 \\ 2/3 \end{pmatrix} = 3. Therefore, x=6q1−6q2+3q3 \mathbf{x} = 6\mathbf{q}_1 - 6\mathbf{q}_2 + 3\mathbf{q}_3 . Notice that this required zero Gaussian elimination!

● Level 2 Analytical Application — Definition 8.2: Gram–Schmidt & QR Decomposition

The Gram–Schmidt Orthogonalization Process: Given a linearly independent set of vectors {x1,x2,…,xp} \{ \mathbf{x}_1, \mathbf{x}_2, \ldots, \mathbf{x}_p \} in Rn \mathbb{R}^n , the Gram–Schmidt algorithm constructs an orthogonal basis {v1,v2,…,vp} \{ \mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_p \} for the same subspace via sequential orthogonal projections: v1=x1,v2=x2−x2⋅v1v1⋅v1v1,v3=x3−x3⋅v1v1⋅v1v1−x3⋅v2v2⋅v2v2,  ⋮vp=xp−∑j=1p−1xp⋅vjvj⋅vjvj. \begin{aligned} \mathbf{v}_1 &= \mathbf{x}_1, \\ \mathbf{v}_2 &= \mathbf{x}_2 - \frac{\mathbf{x}_2 \cdot \mathbf{v}_1}{\mathbf{v}_1 \cdot \mathbf{v}_1} \mathbf{v}_1, \\ \mathbf{v}_3 &= \mathbf{x}_3 - \frac{\mathbf{x}_3 \cdot \mathbf{v}_1}{\mathbf{v}_1 \cdot \mathbf{v}_1} \mathbf{v}_1 - \frac{\mathbf{x}_3 \cdot \mathbf{v}_2}{\mathbf{v}_2 \cdot \mathbf{v}_2} \mathbf{v}_2, \\ &\;\vdots \\ \mathbf{v}_p &= \mathbf{x}_p - \sum_{j=1}^{p-1} \frac{\mathbf{x}_p \cdot \mathbf{v}_j}{\mathbf{v}_j \cdot \mathbf{v}_j} \mathbf{v}_j. \end{aligned} Normalizing yields an orthonormal basis: qi=vi∥vi∥ \mathbf{q}_i = \frac{\mathbf{v}_i}{\|\mathbf{v}_i\|} for each i=1,…,p i = 1, \ldots, p .

The QR QR Decomposition: If A A is an m×n m \times n matrix with linearly independent columns, then A A can be factored uniquely as: A=QR A = Q R where Q Q is an m×n m \times n matrix whose columns form an orthonormal basis for Col⁡(A) \operatorname{Col}(A) (satisfying QTQ=In Q^T Q = I_n ), and R R is an n×n n \times n upper triangular invertible matrix with positive diagonal entries: R=QTA=(∥v1∥q1⋅x2q1⋅x3⋯0∥v2∥q2⋅x3⋯00∥v3∥⋯⋮⋮⋮⋱). R = Q^T A = \begin{pmatrix} \|\mathbf{v}_1\| & \mathbf{q}_1 \cdot \mathbf{x}_2 & \mathbf{q}_1 \cdot \mathbf{x}_3 & \cdots \\ 0 & \|\mathbf{v}_2\| & \mathbf{q}_2 \cdot \mathbf{x}_3 & \cdots \\ 0 & 0 & \|\mathbf{v}_3\| & \cdots \\ \vdots & \vdots & \vdots & \ddots \end{pmatrix}.

▲ Level 2 Analytical Application — Theorem 8.2: Properties of Orthogonal Matrices

A square matrix Q∈Rn×n Q \in \mathbb{R}^{n \times n} is called an orthogonal matrix if its columns form an orthonormal basis for Rn \mathbb{R}^n . The following conditions are strictly equivalent:

  1. QTQ=QQT=In Q^T Q = Q Q^T = I_n (hence Q−1=QT Q^{-1} = Q^T ).
  2. ∥Qx∥=∥x∥ \|Q\mathbf{x}\| = \|\mathbf{x}\| for all x∈Rn \mathbf{x} \in \mathbb{R}^n (isometry: preserves lengths).
  3. (Qx)⋅(Qy)=x⋅y (Q\mathbf{x}) \cdot (Q\mathbf{y}) = \mathbf{x} \cdot \mathbf{y} for all x,y∈Rn \mathbf{x}, \mathbf{y} \in \mathbb{R}^n (preserves angles and inner products).
  4. det⁡(Q)=±1 \det(Q) = \pm 1 (since det⁡(QTQ)=(det⁡Q)2=det⁡(In)=1 \det(Q^T Q) = (\det Q)^2 = \det(I_n) = 1 ).
Worked Example 8.B (Level 2) — Gram–Schmidt & QR Factorization

Apply the Gram–Schmidt process to find the QR QR factorization of: A=(111001). A = \begin{pmatrix} 1 & 1 \\ 1 & 0 \\ 0 & 1 \end{pmatrix}.

Step 1: Orthogonalize columns x1=(1,1,0)T \mathbf{x}_1 = (1, 1, 0)^T and x2=(1,0,1)T \mathbf{x}_2 = (1, 0, 1)^T :
First vector: v1=x1=(110) \mathbf{v}_1 = \mathbf{x}_1 = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} .
Second vector: subtract projection of x2 \mathbf{x}_2 onto v1 \mathbf{v}_1 : x2⋅v1=1(1)+0(1)+1(0)=1,∥v1∥2=12+12+02=2. \mathbf{x}_2 \cdot \mathbf{v}_1 = 1(1) + 0(1) + 1(0) = 1, \quad \|\mathbf{v}_1\|^2 = 1^2 + 1^2 + 0^2 = 2. v2=x2−12v1=(101)−(1/21/20)=(1/2−1/21). \mathbf{v}_2 = \mathbf{x}_2 - \frac{1}{2}\mathbf{v}_1 = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} - \begin{pmatrix} 1/2 \\ 1/2 \\ 0 \end{pmatrix} = \begin{pmatrix} 1/2 \\ -1/2 \\ 1 \end{pmatrix}. Check orthogonality: v1⋅v2=1(1/2)+1(−1/2)+0(1)=0 \mathbf{v}_1 \cdot \mathbf{v}_2 = 1(1/2) + 1(-1/2) + 0(1) = 0 . ✓

Step 2: Normalize to construct Q Q :
∥v1∥=2  ⟹  q1=12(110) \|\mathbf{v}_1\| = \sqrt{2} \implies \mathbf{q}_1 = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} .
∥v2∥=(1/2)2+(−1/2)2+12=1/4+1/4+1=3/2=62 \|\mathbf{v}_2\| = \sqrt{(1/2)^2 + (-1/2)^2 + 1^2} = \sqrt{1/4 + 1/4 + 1} = \sqrt{3/2} = \frac{\sqrt{6}}{2} .
q2=26(1/2−1/21)=16(1−12) \mathbf{q}_2 = \frac{2}{\sqrt{6}}\begin{pmatrix} 1/2 \\ -1/2 \\ 1 \end{pmatrix} = \frac{1}{\sqrt{6}}\begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix} .
Therefore: Q=(1/21/61/2−1/602/6). Q = \begin{pmatrix} 1/\sqrt{2} & 1/\sqrt{6} \\ 1/\sqrt{2} & -1/\sqrt{6} \\ 0 & 2/\sqrt{6} \end{pmatrix}.

Step 3: Compute R=QTA R = Q^T A : R=(∥v1∥q1⋅x20∥v2∥)=(21/203/2). R = \begin{pmatrix} \|\mathbf{v}_1\| & \mathbf{q}_1 \cdot \mathbf{x}_2 \\ 0 & \|\mathbf{v}_2\| \end{pmatrix} = \begin{pmatrix} \sqrt{2} & 1/\sqrt{2} \\ 0 & \sqrt{3/2} \end{pmatrix}. Checking product QR QR : QR=(1/21/61/2−1/602/6)(21/203/2)=(11/2+1/211/2−1/202(1/2))=(111001)=A.✓ QR = \begin{pmatrix} 1/\sqrt{2} & 1/\sqrt{6} \\ 1/\sqrt{2} & -1/\sqrt{6} \\ 0 & 2/\sqrt{6} \end{pmatrix} \begin{pmatrix} \sqrt{2} & 1/\sqrt{2} \\ 0 & \sqrt{3/2} \end{pmatrix} = \begin{pmatrix} 1 & 1/2 + 1/2 \\ 1 & 1/2 - 1/2 \\ 0 & 2(1/2) \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 0 \\ 0 & 1 \end{pmatrix} = A. \quad \text{✓}

● Level 3 University Rigor — Definition 8.3: Orthogonal Projections & Least Squares

Orthogonal Projection Matrix: Let W W be a subspace of Rm \mathbb{R}^m spanned by the linearly independent columns of an m×n m \times n matrix A A (where m≥n m \ge n ). The orthogonal projection matrix P P that maps any vector b∈Rm \mathbf{b} \in \mathbb{R}^m to its closest point b^=proj⁡W(b)∈W \hat{\mathbf{b}} = \operatorname{proj}_W(\mathbf{b}) \in W is given by: P=A(ATA)−1AT. P = A (A^T A)^{-1} A^T. P P satisfies two algebraic hallmarks of orthogonal projectors:

  1. Idempotence: P2=P P^2 = P (projecting an already projected vector changes nothing).
  2. Symmetry: PT=P P^T = P (guaranteeing orthogonality of the projection).

The Least-Squares Problem: For an inconsistent system Ax=b A\mathbf{x} = \mathbf{b} , no vector x \mathbf{x} achieves Ax=b A\mathbf{x} = \mathbf{b} . The least-squares solution x^ \hat{\mathbf{x}} minimizes the Euclidean distance ∥Ax−b∥ \|A\mathbf{x} - \mathbf{b}\| , which is equivalent to finding x^ \hat{\mathbf{x}} such that: Ax^=proj⁡Col⁡(A)(b). A\hat{\mathbf{x}} = \operatorname{proj}_{\operatorname{Col}(A)}(\mathbf{b}).

▲ Level 3 University Rigor — Theorem 8.3: Derivation of the Normal Equations

Let A∈Rm×n A \in \mathbb{R}^{m \times n} and b∈Rm \mathbf{b} \in \mathbb{R}^m . A vector x^∈Rn \hat{\mathbf{x}} \in \mathbb{R}^n minimizes ∥Ax−b∥2 \|A\mathbf{x} - \mathbf{b}\|^2 if and only if x^ \hat{\mathbf{x}} satisfies the normal equations: ATAx^=ATb. A^T A \hat{\mathbf{x}} = A^T \mathbf{b}. If A A has full column rank (rank⁡(A)=n \operatorname{rank}(A) = n ), then ATA A^T A is strictly positive definite and invertible, yielding the unique least-squares solution: x^=(ATA)−1ATb. \hat{\mathbf{x}} = (A^T A)^{-1} A^T \mathbf{b}.

Proof of Theorem 8.3 (Orthogonal Decomposition & Calculus)

Geometric Derivation: By the Best Approximation Theorem, the vector in Col⁡(A) \operatorname{Col}(A) closest to b \mathbf{b} is the orthogonal projection b^=Ax^ \hat{\mathbf{b}} = A\hat{\mathbf{x}} . The error vector (residual) is e=b−Ax^ \mathbf{e} = \mathbf{b} - A\hat{\mathbf{x}} .
By the definition of orthogonal projection, e \mathbf{e} must be orthogonal to every vector in the subspace Col⁡(A) \operatorname{Col}(A) . In particular, e \mathbf{e} is perpendicular to each column of A A : aj⋅(b−Ax^)=0for each j=1,2,…,n. \mathbf{a}_j \cdot (\mathbf{b} - A\hat{\mathbf{x}}) = 0 \quad \text{for each } j = 1, 2, \ldots, n. In matrix notation, this condition is written compactly as: AT(b−Ax^)=0  ⟺  ATb−ATAx^=0  ⟺  ATAx^=ATb. A^T (\mathbf{b} - A\hat{\mathbf{x}}) = \mathbf{0} \iff A^T \mathbf{b} - A^T A \hat{\mathbf{x}} = \mathbf{0} \iff A^T A \hat{\mathbf{x}} = A^T \mathbf{b}.

Alternative Multivariable Calculus Derivation: Define the objective loss function f(x)=∥Ax−b∥2=(Ax−b)T(Ax−b)=xTATAx−2bTAx+bTb f(\mathbf{x}) = \|A\mathbf{x} - \mathbf{b}\|^2 = (A\mathbf{x} - \mathbf{b})^T (A\mathbf{x} - \mathbf{b}) = \mathbf{x}^T A^T A \mathbf{x} - 2\mathbf{b}^T A\mathbf{x} + \mathbf{b}^T\mathbf{b} . Taking the matrix gradient with respect to x \mathbf{x} and setting it to zero: ∇xf(x)=2ATAx−2ATb=0  ⟹  ATAx^=ATb. \nabla_\mathbf{x} f(\mathbf{x}) = 2 A^T A \mathbf{x} - 2 A^T \mathbf{b} = \mathbf{0} \implies A^T A \hat{\mathbf{x}} = A^T \mathbf{b}. Since the Hessian matrix is ∇2f(x)=2ATA \nabla^2 f(\mathbf{x}) = 2 A^T A , which is positive semi-definite (and strictly positive definite when rank⁡(A)=n \operatorname{rank}(A) = n ), the stationary point x^ \hat{\mathbf{x}} is a global minimum. ■ \blacksquare

▲ Level 3 University Rigor — Theorem 8.4: The Spectral Theorem for Symmetric Matrices

Let A A be an n×n n \times n real matrix. Then A A is orthogonally diagonalizable (i.e., there exists an orthogonal matrix Q Q such that A=QDQT A = Q D Q^T with D D diagonal) if and only if A A is symmetric (A=AT A = A^T ).

Consequences:

  1. All eigenvalues of a real symmetric matrix are strictly real (never complex).
  2. Eigenvectors corresponding to distinct eigenvalues are mutually orthogonal: λi≠λj  ⟹  vi⋅vj=0 \lambda_i \neq \lambda_j \implies \mathbf{v}_i \cdot \mathbf{v}_j = 0 .
  3. For every eigenvalue, its geometric multiplicity equals its algebraic multiplicity (symmetric matrices are never defective).
Worked Example 8.C (Level 3) — Least Squares via QR Decomposition

Solve the least-squares problem Ax≈b A\mathbf{x} \approx \mathbf{b} using the QR QR decomposition of A A from Worked Example 8.B, where b=(231) \mathbf{b} = \begin{pmatrix} 2 \\ 3 \\ 1 \end{pmatrix} .

Theory: When A=QR A = QR , the normal equations become: ATAx^=ATb  ⟺  (QR)T(QR)x^=(QR)Tb  ⟺  RT(QTQ)Rx^=RTQTb. A^T A \hat{\mathbf{x}} = A^T \mathbf{b} \iff (QR)^T (QR) \hat{\mathbf{x}} = (QR)^T \mathbf{b} \iff R^T (Q^T Q) R \hat{\mathbf{x}} = R^T Q^T \mathbf{b}. Since QTQ=In Q^T Q = I_n , this simplifies to RTRx^=RTQTb R^T R \hat{\mathbf{x}} = R^T Q^T \mathbf{b} . Since R R is invertible, multiplying both sides by (RT)−1 (R^T)^{-1} yields the elegant system: Rx^=QTb. R \hat{\mathbf{x}} = Q^T \mathbf{b}. This eliminates the need to compute ATA A^T A or its matrix inverse!

Step 1: Compute QTb Q^T \mathbf{b} : QTb=(1/21/201/6−1/62/6)(231)=((2+3)/2(2−3+2)/6)=(5/21/6). Q^T \mathbf{b} = \begin{pmatrix} 1/\sqrt{2} & 1/\sqrt{2} & 0 \\ 1/\sqrt{6} & -1/\sqrt{6} & 2/\sqrt{6} \end{pmatrix} \begin{pmatrix} 2 \\ 3 \\ 1 \end{pmatrix} = \begin{pmatrix} (2+3)/\sqrt{2} \\ (2-3+2)/\sqrt{6} \end{pmatrix} = \begin{pmatrix} 5/\sqrt{2} \\ 1/\sqrt{6} \end{pmatrix}.

Step 2: Solve upper triangular system Rx^=QTb R\hat{\mathbf{x}} = Q^T\mathbf{b} via back-substitution: (21/203/2)(x^1x^2)=(5/21/6). \begin{pmatrix} \sqrt{2} & 1/\sqrt{2} \\ 0 & \sqrt{3/2} \end{pmatrix} \begin{pmatrix} \hat{x}_1 \\ \hat{x}_2 \end{pmatrix} = \begin{pmatrix} 5/\sqrt{2} \\ 1/\sqrt{6} \end{pmatrix}. From row 2: 32x^2=16  ⟹  x^2=16⋅23=13. \sqrt{\frac{3}{2}} \hat{x}_2 = \frac{1}{\sqrt{6}} \implies \hat{x}_2 = \frac{1}{\sqrt{6}} \cdot \frac{\sqrt{2}}{\sqrt{3}} = \frac{1}{3}. From row 1: 2x^1+12(13)=52  ⟹  2x^1+13=5  ⟹  2x^1=143  ⟹  x^1=73. \sqrt{2}\hat{x}_1 + \frac{1}{\sqrt{2}}\left(\frac{1}{3}\right) = \frac{5}{\sqrt{2}} \implies 2\hat{x}_1 + \frac{1}{3} = 5 \implies 2\hat{x}_1 = \frac{14}{3} \implies \hat{x}_1 = \frac{7}{3}. Therefore, x^=(7/31/3) \hat{\mathbf{x}} = \begin{pmatrix} 7/3 \\ 1/3 \end{pmatrix} .

⊙ Explorer · Least squares — minimizing the sum of squared residualsinteractive
sum of squared residuals6.000
least-squares optimumm = 1.6, b = −0.5

The four points are (1,1), (2,3), (3,4), (4,6) — Worked example 8.B's data. The dashed vertical segments are each point's residual (actual − predicted); the readout is the sum of their squares, exactly the quantity being minimized. Drag m and b toward the stated optimum and watch the sum of squared residuals bottom out — it can't go any lower for any other line, which is exactly what solving the normal equations guarantees.

⚠️ Common Traps & University Pitfalls — Orthogonality & Least Squares
  • Gram–Schmidt Projection Target: When subtracting projections in Gram–Schmidt to form vk \mathbf{v}_k , you must project xk \mathbf{x}_k onto the already orthogonalized vectors v1,…,vk−1 \mathbf{v}_1, \ldots, \mathbf{v}_{k-1} , NOT onto the original input vectors x1,…,xk−1 \mathbf{x}_1, \ldots, \mathbf{x}_{k-1} . Projecting onto non-orthogonal vectors destroys mutual orthogonality completely.
  • Order of Q Q and QT Q^T : For an m×n m \times n matrix Q Q with orthonormal columns (where m>n m > n ), QTQ=In Q^T Q = I_n , but QQT≠Im Q Q^T \neq I_m . In fact, QQT=P Q Q^T = P is the m×m m \times m orthogonal projector onto Col⁡(Q) \operatorname{Col}(Q) . Only square orthogonal matrices have QQT=I Q Q^T = I .
  • Singularity of ATA A^T A : The normal equations have a unique solution if and only if the columns of A A are linearly independent. If A A has multicollinear columns (rank <n < n ), ATA A^T A is singular, and regularized least squares (Ridge / Tikhonov regression: (ATA+λI)x^=ATb (A^T A + \lambda I)\hat{\mathbf{x}} = A^T \mathbf{b} ) or pseudoinverse methods are required.
  • Residual Orthogonality Direction: The residual error vector e=b−Ax^ \mathbf{e} = \mathbf{b} - A\hat{\mathbf{x}} is orthogonal to the column space Col⁡(A) \operatorname{Col}(A) (so ATe=0 A^T \mathbf{e} = \mathbf{0} ). It is NOT orthogonal to b \mathbf{b} . Confusing e⊥Col⁡(A) \mathbf{e} \perp \operatorname{Col}(A) with e⊥b \mathbf{e} \perp \mathbf{b} is a frequent conceptual exam blunder.
Orthogonal Projection
proj⁡a(b)=a⋅ba⋅aa \operatorname{proj}_{\mathbf{a}}(\mathbf{b}) = \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{a} \cdot \mathbf{a}} \mathbf{a}
Gram–Schmidt
vk=xk−∑j=1k−1xk⋅vj∥vj∥2vj \mathbf{v}_k = \mathbf{x}_k - \sum_{j=1}^{k-1} \frac{\mathbf{x}_k \cdot \mathbf{v}_j}{\|\mathbf{v}_j\|^2} \mathbf{v}_j
QR Least Squares
Rx^=QTb R\hat{\mathbf{x}} = Q^T\mathbf{b}
Normal Equations
ATAx^=ATb A^T A \hat{\mathbf{x}} = A^T \mathbf{b}
Orthogonal Projection of y onto Line L = span{u} — Coordinate plane with graph of Line L = span{(2, 1)}, Error vector z ⊥ L; marked points Origin (0, 0), Projection y_hat = (4, 2) (4, 2), Vector y = (3, 4) (3, 4)1234524xyLine L = span{(2, 1)}Error vector z ⊥ LOriginProjection y_hat = (4, 2)Vector y = (3, 4)
Orthogonal projection of y=⟨3,4⟩ \mathbf{y} = \langle 3, 4 \rangle onto the subspace L=span{⟨2,1⟩} L = \text{span}\{\langle 2, 1 \rangle\} . The projection y^=⟨4,2⟩ \hat{\mathbf{y}} = \langle 4, 2 \rangle minimizes the distance to y \mathbf{y} , ensuring the error vector z=y−y^=⟨−1,2⟩ \mathbf{z} = \mathbf{y} - \hat{\mathbf{y}} = \langle -1, 2 \rangle is perpendicular to L L .
Practice Problem (Level 1) — Orthogonal Projection & Residual

Find the orthogonal projection of b=(4,3)T \mathbf{b}=(4,3)^T onto a=(1,2)T \mathbf{a}=(1,2)^T , and verify the residual is orthogonal to a \mathbf{a} .

Show solution

a⋅b=1(4)+2(3)=10 \mathbf{a}\cdot\mathbf{b}=1(4)+2(3)=10 , a⋅a=12+22=5 \mathbf{a}\cdot\mathbf{a}=1^2+2^2=5 . proj⁡a(b)=105(12)=(24). \operatorname{proj}_{\mathbf{a}}(\mathbf{b})=\frac{10}{5}\begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 2 \\ 4 \end{pmatrix}.

The residual vector is e=b−proj⁡a(b)=(43)−(24)=(2−1) \mathbf{e} = \mathbf{b} - \operatorname{proj}_{\mathbf{a}}(\mathbf{b}) = \begin{pmatrix} 4 \\ 3 \end{pmatrix} - \begin{pmatrix} 2 \\ 4 \end{pmatrix} = \begin{pmatrix} 2 \\ -1 \end{pmatrix} .
Check inner product: a⋅e=1(2)+2(−1)=2−2=0 \mathbf{a} \cdot \mathbf{e} = 1(2) + 2(-1) = 2 - 2 = 0 . Orthogonal, as guaranteed.

Worked Example  ·  Checking Orthonormality

Is {(1/21/2),(1/2−1/2)} \left\{ \begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \end{pmatrix}, \begin{pmatrix} 1/\sqrt{2} \\ -1/\sqrt{2} \end{pmatrix} \right\} orthonormal?

Solution: Inner product: 12−12=0 \frac{1}{2} - \frac{1}{2} = 0 — orthogonal. Each vector norm: 1/2+1/2=1 \sqrt{1/2 + 1/2} = 1 . Yes, orthonormal.

Worked Example  ·  Distance to Subspace via Projection

Find the distance from b=(3,4)T \mathbf{b}=(3,4)^T to the line through the origin spanned by a=(1,0)T \mathbf{a}=(1,0)^T .

Solution: proj⁡a(b)=31(1,0)T=(3,0)T \operatorname{proj}_{\mathbf{a}}(\mathbf{b}) = \frac{3}{1}(1,0)^T = (3,0)^T . Residual e=(3,4)T−(3,0)T=(0,4)T \mathbf{e} = (3,4)^T - (3,0)^T = (0,4)^T .
Perpendicular distance: ∥e∥=∥(0,4)T∥=4 \|\mathbf{e}\| = \|(0,4)^T\| = 4 .

Worked Example D — Euclidean Distance & Orthogonal Projection

A displacement has horizontal component Δx=5 \Delta x = 5 and vertical component Δy=5 \Delta y = 5 . Find the squared magnitude d2 d^2 and the area of the right triangle formed with the axes.

Step-by-step Solution:

  1. By the Pythagorean theorem, d2=(5)2+(5)2=25+25=50 d^2 = (5)^2 + (5)^2 = 25 + 25 = \mathbf{50} .
  2. The enclosed right-triangle area is A=12(5)(5)=12.5 A = \frac{1}{2}(5)(5) = \mathbf{12.5} .

Find the least-squares solution x^ \hat{\mathbf{x}} to the inconsistent system Ax=b A\mathbf{x} = \mathbf{b} , where A=(111213),b=(124). A = \begin{pmatrix} 1 & 1 \\ 1 & 2 \\ 1 & 3 \end{pmatrix}, \qquad \mathbf{b} = \begin{pmatrix} 1 \\ 2 \\ 4 \end{pmatrix}.

Step 1: Set up normal equations ATAx^=ATb A^T A \hat{\mathbf{x}} = A^T \mathbf{b} :

ATA=(111123)(111213)=(36614). A^T A = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \end{pmatrix} \begin{pmatrix} 1 & 1 \\ 1 & 2 \\ 1 & 3 \end{pmatrix} = \begin{pmatrix} 3 & 6 \\ 6 & 14 \end{pmatrix}. ATb=(111123)(124)=(717). A^T \mathbf{b} = \begin{pmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \end{pmatrix} \begin{pmatrix} 1 \\ 2 \\ 4 \end{pmatrix} = \begin{pmatrix} 7 \\ 17 \end{pmatrix}.

Step 2: Invert ATA A^T A and solve: det⁡(ATA)=3(14)−6(6)=42−36=6. \det(A^T A) = 3(14) - 6(6) = 42 - 36 = 6. (ATA)−1=16(14−6−63). (A^T A)^{-1} = \frac{1}{6}\begin{pmatrix} 14 & -6 \\ -6 & 3 \end{pmatrix}. x^=16(14−6−63)(717)=16(98−102−42+51)=16(−49)=(−2/33/2). \hat{\mathbf{x}} = \frac{1}{6}\begin{pmatrix} 14 & -6 \\ -6 & 3 \end{pmatrix} \begin{pmatrix} 7 \\ 17 \end{pmatrix} = \frac{1}{6}\begin{pmatrix} 98 - 102 \\ -42 + 51 \end{pmatrix} = \frac{1}{6}\begin{pmatrix} -4 \\ 9 \end{pmatrix} = \begin{pmatrix} -2/3 \\ 3/2 \end{pmatrix}.

[Orthogonality, Gram–Schmidt, QR Decomposition & Least Squares · Practice 2] If the governing relation for this system is g(t)=4t+4 g(t) = 4t + 4 , evaluate g(6) g(6) and find the inverse input t t when g(t)=32 g(t) = 32 .
Substitute t=6 t = 6 : g(6)=4(6)+4=28 g(6) = 4(6) + 4 = \mathbf{28} . Setting 4t+4=32 4t + 4 = 32 gives 4t=28  ⟹  t=7 4t = 28 \implies t = \mathbf{7} .
[Orthogonality, Gram–Schmidt, QR Decomposition & Least Squares · Practice 3] If the governing relation for this system is g(t)=5t+5 g(t) = 5t + 5 , evaluate g(8) g(8) and find the inverse input t t when g(t)=50 g(t) = 50 .
Substitute t=8 t = 8 : g(8)=5(8)+5=45 g(8) = 5(8) + 5 = \mathbf{45} . Setting 5t+5=50 5t + 5 = 50 gives 5t=45  ⟹  t=9 5t = 45 \implies t = \mathbf{9} .
[Orthogonality, Gram–Schmidt, QR Decomposition & Least Squares · Practice 4] If the governing relation for this system is g(t)=6t+6 g(t) = 6t + 6 , evaluate g(10) g(10) and find the inverse input t t when g(t)=72 g(t) = 72 .
Substitute t=10 t = 10 : g(10)=6(10)+6=66 g(10) = 6(10) + 6 = \mathbf{66} . Setting 6t+6=72 6t + 6 = 72 gives 6t=66  ⟹  t=11 6t = 66 \implies t = \mathbf{11} .
📝 Chapter Quiz
§

Practice set

Twenty-five university-rigorous problems spanning all eight chapters — from foundational mechanics to advanced proof-based derivations and analytical applications. Try each problem before revealing the detailed worked solution.

L1

Let u=(1,−2,2,0)T \mathbf{u} = (1, -2, 2, 0)^T and v=(2,1,0,−2)T \mathbf{v} = (2, 1, 0, -2)^T in R4 \mathbb{R}^4 . Compute ∥u∥ \|\mathbf{u}\| , ∥v∥ \|\mathbf{v}\| , the inner product u⋅v \mathbf{u} \cdot \mathbf{v} , the cosine of the angle θ \theta between them, and verify the Cauchy–Schwarz inequality.

Basic

1. Norms:
∥u∥=12+(−2)2+22+02=1+4+4+0=9=3. \|\mathbf{u}\| = \sqrt{1^2 + (-2)^2 + 2^2 + 0^2} = \sqrt{1 + 4 + 4 + 0} = \sqrt{9} = 3. ∥v∥=22+12+02+(−2)2=4+1+0+4=9=3. \|\mathbf{v}\| = \sqrt{2^2 + 1^2 + 0^2 + (-2)^2} = \sqrt{4 + 1 + 0 + 4} = \sqrt{9} = 3.

2. Inner Product:
u⋅v=(1)(2)+(−2)(1)+(2)(0)+(0)(−2)=2−2+0+0=0. \mathbf{u} \cdot \mathbf{v} = (1)(2) + (-2)(1) + (2)(0) + (0)(-2) = 2 - 2 + 0 + 0 = 0.

3. Angle:
cos⁡θ=u⋅v∥u∥∥v∥=03⋅3=0  ⟹  θ=π2 rad (90∘). \cos\theta = \frac{\mathbf{u} \cdot \mathbf{v}}{\|\mathbf{u}\| \|\mathbf{v}\|} = \frac{0}{3 \cdot 3} = 0 \implies \theta = \frac{\pi}{2} \text{ rad } (90^\circ).

4. Cauchy–Schwarz Verification:
∣u⋅v∣=0≤∥u∥∥v∥=3⋅3=9 |\mathbf{u} \cdot \mathbf{v}| = 0 \le \|\mathbf{u}\| \|\mathbf{v}\| = 3 \cdot 3 = 9 . The vectors are orthogonal, satisfying the inequality strictly. ✓

L2

Find the shortest Euclidean distance from the point P(3,−1,4) P(3, -1, 4) to the hyperplane H:2x−y+2z=5 \mathcal{H}: 2x - y + 2z = 5 in R3 \mathbb{R}^3 .

Intermediate

Hyperplane Distance Formula: For H:n⋅x=d \mathcal{H}: \mathbf{n} \cdot \mathbf{x} = d , the perpendicular distance from x0 \mathbf{x}_0 is: D=∣n⋅x0−d∣∥n∥. D = \frac{|\mathbf{n} \cdot \mathbf{x}_0 - d|}{\|\mathbf{n}\|}. Here n=(2,−1,2)T \mathbf{n} = (2, -1, 2)^T , d=5 d = 5 , and x0=(3,−1,4)T \mathbf{x}_0 = (3, -1, 4)^T .

1. Norm of normal vector: ∥n∥=22+(−1)2+22=4+1+4=9=3. \|\mathbf{n}\| = \sqrt{2^2 + (-1)^2 + 2^2} = \sqrt{4 + 1 + 4} = \sqrt{9} = 3.

2. Value at point P P : n⋅x0=2(3)−1(−1)+2(4)=6+1+8=15. \mathbf{n} \cdot \mathbf{x}_0 = 2(3) - 1(-1) + 2(4) = 6 + 1 + 8 = 15.

3. Distance: D=∣15−5∣3=103. D = \frac{|15 - 5|}{3} = \frac{10}{3}.

L3

Prove the Parallelogram Law for arbitrary vectors u,v∈Rn \mathbf{u}, \mathbf{v} \in \mathbb{R}^n : ∥u+v∥2+∥u−v∥2=2∥u∥2+2∥v∥2. \|\mathbf{u} + \mathbf{v}\|^2 + \|\mathbf{u} - \mathbf{v}\|^2 = 2\|\mathbf{u}\|^2 + 2\|\mathbf{v}\|^2. What is its geometric significance?

Advanced

Algebraic Proof: Expand each squared Euclidean norm using the inner product: ∥u+v∥2=(u+v)⋅(u+v)=∥u∥2+2(u⋅v)+∥v∥2. \|\mathbf{u} + \mathbf{v}\|^2 = (\mathbf{u} + \mathbf{v}) \cdot (\mathbf{u} + \mathbf{v}) = \|\mathbf{u}\|^2 + 2(\mathbf{u} \cdot \mathbf{v}) + \|\mathbf{v}\|^2. ∥u−v∥2=(u−v)⋅(u−v)=∥u∥2−2(u⋅v)+∥v∥2. \|\mathbf{u} - \mathbf{v}\|^2 = (\mathbf{u} - \mathbf{v}) \cdot (\mathbf{u} - \mathbf{v}) = \|\mathbf{u}\|^2 - 2(\mathbf{u} \cdot \mathbf{v}) + \|\mathbf{v}\|^2. Adding the two equations directly cancels the cross terms 2(u⋅v) 2(\mathbf{u} \cdot \mathbf{v}) and −2(u⋅v) -2(\mathbf{u} \cdot \mathbf{v}) : ∥u+v∥2+∥u−v∥2=2∥u∥2+2∥v∥2.■ \|\mathbf{u} + \mathbf{v}\|^2 + \|\mathbf{u} - \mathbf{v}\|^2 = 2\|\mathbf{u}\|^2 + 2\|\mathbf{v}\|^2. \quad \blacksquare

Geometric Meaning: In any parallelogram formed by vectors u \mathbf{u} and v \mathbf{v} , the sum of the squares of the lengths of the two diagonals (u+v \mathbf{u} + \mathbf{v} and u−v \mathbf{u} - \mathbf{v} ) equals the sum of the squares of the lengths of all four sides.

L4

Express the complete solution set of the non-homogeneous linear system in parametric vector form: {x1+2x2−x3+3x4=42x1+4x2−x3+8x4=11−x1−2x2+2x3−x4=−1 \begin{cases} x_1 + 2x_2 - x_3 + 3x_4 = 4 \\ 2x_1 + 4x_2 - x_3 + 8x_4 = 11 \\ -x_1 - 2x_2 + 2x_3 - x_4 = -1 \end{cases}

Intermediate

Step 1: Set up augmented matrix and row reduce: (12−13424−1811−1−22−1−1)→R2−2R1, R3+R1(12−1340012300123) \left(\begin{array}{cccc|c} 1 & 2 & -1 & 3 & 4 \\ 2 & 4 & -1 & 8 & 11 \\ -1 & -2 & 2 & -1 & -1 \end{array}\right) \xrightarrow{R_2 - 2R_1,\, R_3 + R_1} \left(\begin{array}{cccc|c} 1 & 2 & -1 & 3 & 4 \\ 0 & 0 & 1 & 2 & 3 \\ 0 & 0 & 1 & 2 & 3 \end{array}\right) →R3−R2, R1+R2(120570012300000). \xrightarrow{R_3 - R_2,\, R_1 + R_2} \left(\begin{array}{cccc|c} 1 & 2 & 0 & 5 & 7 \\ 0 & 0 & 1 & 2 & 3 \\ 0 & 0 & 0 & 0 & 0 \end{array}\right).

Step 2: Identify pivot and free variables:
Pivots in columns 1 and 3 (x1,x3 x_1, x_3 ). Free variables are x2=s x_2 = s , x4=t x_4 = t .
From RREF: x1=7−2s−5t x_1 = 7 - 2s - 5t , x3=3−2t x_3 = 3 - 2t .

Step 3: Parametric vector decomposition x=xp+sv1+tv2 \mathbf{x} = \mathbf{x}_p + s\mathbf{v}_1 + t\mathbf{v}_2 : (x1x2x3x4)=(7030)+s(−2100)+t(−50−21). \begin{pmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{pmatrix} = \begin{pmatrix} 7 \\ 0 \\ 3 \\ 0 \end{pmatrix} + s \begin{pmatrix} -2 \\ 1 \\ 0 \\ 0 \end{pmatrix} + t \begin{pmatrix} -5 \\ 0 \\ -2 \\ 1 \end{pmatrix}.

L5

Perform a complete bifurcation analysis of the system in terms of parameter k∈R k \in \mathbb{R} : {x+y+kz=23x+4y+2z=k2x+3y−z=1 \begin{cases} x + y + kz = 2 \\ 3x + 4y + 2z = k \\ 2x + 3y - z = 1 \end{cases} Determine all values of k k for which the system has (a) a unique solution, (b) infinitely many solutions, and (c) no solution.

Advanced

Step 1: Compute determinant of coefficient matrix A A : det⁡(A)=∣11k34223−1∣. \det(A) = \begin{vmatrix} 1 & 1 & k \\ 3 & 4 & 2 \\ 2 & 3 & -1 \end{vmatrix}. Expanding along row 1: det⁡(A)=1(4(−1)−2(3))−1(3(−1)−2(2))+k(3(3)−4(2))=1(−10)−1(−7)+k(1)=k−3. \det(A) = 1(4(-1) - 2(3)) - 1(3(-1) - 2(2)) + k(3(3) - 4(2)) = 1(-10) - 1(-7) + k(1) = k - 3.

Step 2: Classify cases:

  • (a) Unique Solution: If k≠3 k \neq 3 , det⁡(A)≠0 \det(A) \neq 0 ; the system has full rank 3 and possesses a unique solution.
  • Critical Case k=3 k = 3 : Substitute k=3 k = 3 into the augmented matrix: (1132342323−11)→R2−3R1, R3−2R1(113201−7−301−7−3)→R3−R2(113201−7−30000). \left(\begin{array}{ccc|c} 1 & 1 & 3 & 2 \\ 3 & 4 & 2 & 3 \\ 2 & 3 & -1 & 1 \end{array}\right) \xrightarrow{R_2 - 3R_1,\, R_3 - 2R_1} \left(\begin{array}{ccc|c} 1 & 1 & 3 & 2 \\ 0 & 1 & -7 & -3 \\ 0 & 1 & -7 & -3 \end{array}\right) \xrightarrow{R_3 - R_2} \left(\begin{array}{ccc|c} 1 & 1 & 3 & 2 \\ 0 & 1 & -7 & -3 \\ 0 & 0 & 0 & 0 \end{array}\right). The bottom row is 0=0 0 = 0 , so rank⁡(A)=rank⁡([A∣b])=2<3 \operatorname{rank}(A) = \operatorname{rank}([A|\mathbf{b}]) = 2 < 3 .
    Therefore, for k=3 k = 3 , there are infinitely many solutions (1 free variable).
  • (c) No Solution: There are no values of k k for which the system is inconsistent.

L6

Prove that if xp \mathbf{x}_p is any particular solution to Ax=b A\mathbf{x} = \mathbf{b} , then the complete solution set is the affine subspace S={xp+xh:xh∈Null⁡(A)} S = \{ \mathbf{x}_p + \mathbf{x}_h : \mathbf{x}_h \in \operatorname{Null}(A) \} .

Intermediate

Two-part set inclusion proof:

1. Show S⊆Solution Set: S \subseteq \text{Solution Set}: Let x=xp+xh \mathbf{x} = \mathbf{x}_p + \mathbf{x}_h where Axp=b A\mathbf{x}_p = \mathbf{b} and Axh=0 A\mathbf{x}_h = \mathbf{0} . Applying matrix multiplication: Ax=A(xp+xh)=Axp+Axh=b+0=b. A\mathbf{x} = A(\mathbf{x}_p + \mathbf{x}_h) = A\mathbf{x}_p + A\mathbf{x}_h = \mathbf{b} + \mathbf{0} = \mathbf{b}. Thus every vector in S S is indeed a valid solution.

2. Show Solution Set⊆S: \text{Solution Set} \subseteq S: Let y \mathbf{y} be an arbitrary solution to Ax=b A\mathbf{x} = \mathbf{b} , so Ay=b A\mathbf{y} = \mathbf{b} . Define w=y−xp \mathbf{w} = \mathbf{y} - \mathbf{x}_p . Then: Aw=A(y−xp)=Ay−Axp=b−b=0. A\mathbf{w} = A(\mathbf{y} - \mathbf{x}_p) = A\mathbf{y} - A\mathbf{x}_p = \mathbf{b} - \mathbf{b} = \mathbf{0}. This proves w∈Null⁡(A) \mathbf{w} \in \operatorname{Null}(A) . Hence y=xp+w∈S \mathbf{y} = \mathbf{x}_p + \mathbf{w} \in S . Therefore the complete solution set is precisely xp+Null⁡(A) \mathbf{x}_p + \operatorname{Null}(A) . ■ \blacksquare

L7

Let A A and B B be invertible n×n n \times n matrices. Prove algebraically that: (a) (AB)T=BTAT (AB)^T = B^T A^T , and (b) (AB)−1=B−1A−1 (AB)^{-1} = B^{-1} A^{-1} .

Intermediate

(a) Transpose Proof: The (i,j) (i, j) -entry of (AB)T (AB)^T is the (j,i) (j, i) -entry of AB AB : [(AB)T]ij=[AB]ji=∑k=1nAjkBki=∑k=1nBkiAjk. [(AB)^T]_{ij} = [AB]_{ji} = \sum_{k=1}^n A_{jk} B_{ki} = \sum_{k=1}^n B_{ki} A_{jk}. Using the definition of matrix transpose, Bki=[BT]ik B_{ki} = [B^T]_{ik} and Ajk=[AT]kj A_{jk} = [A^T]_{kj} : [(AB)T]ij=∑k=1n[BT]ik[AT]kj=[BTAT]ij. [(AB)^T]_{ij} = \sum_{k=1}^n [B^T]_{ik} [A^T]_{kj} = [B^T A^T]_{ij}. Since entries match for all i,j i, j , (AB)T=BTAT (AB)^T = B^T A^T . ■ \blacksquare

(b) Inverse Proof: A matrix C C is the inverse of AB AB if and only if (AB)C=In (AB)C = I_n and C(AB)=In C(AB) = I_n . Test C=B−1A−1 C = B^{-1} A^{-1} : (AB)(B−1A−1)=A(BB−1)A−1=AInA−1=AA−1=In. (AB)(B^{-1} A^{-1}) = A (B B^{-1}) A^{-1} = A I_n A^{-1} = A A^{-1} = I_n. Check reverse order: (B−1A−1)(AB)=B−1(A−1A)B=B−1InB=B−1B=In. (B^{-1} A^{-1})(AB) = B^{-1} (A^{-1} A) B = B^{-1} I_n B = B^{-1} B = I_n. By uniqueness of matrix inverses, (AB)−1=B−1A−1 (AB)^{-1} = B^{-1} A^{-1} . ■ \blacksquare

L8

Use the Gauss–Jordan elimination algorithm on the augmented block matrix [A∣I3] [A \mid I_3] to compute A−1 A^{-1} for: A=(1022−13418). A = \begin{pmatrix} 1 & 0 & 2 \\ 2 & -1 & 3 \\ 4 & 1 & 8 \end{pmatrix}.

Intermediate

Step 1: Set up [A∣I] [A \mid I] : (1021002−13010418001)→R2−2R1, R3−4R1(1021000−1−1−210010−401). \left(\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 2 & -1 & 3 & 0 & 1 & 0 \\ 4 & 1 & 8 & 0 & 0 & 1 \end{array}\right) \xrightarrow{R_2 - 2R_1,\, R_3 - 4R_1} \left(\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 0 & -1 & -1 & -2 & 1 & 0 \\ 0 & 1 & 0 & -4 & 0 & 1 \end{array}\right).

Step 2: Row swap and scaling: →R2↔R3(102100010−4010−1−1−210)→R3+R2(102100010−40100−1−611). \xrightarrow{R_2 \leftrightarrow R_3} \left(\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 0 & 1 & 0 & -4 & 0 & 1 \\ 0 & -1 & -1 & -2 & 1 & 0 \end{array}\right) \xrightarrow{R_3 + R_2} \left(\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 0 & 1 & 0 & -4 & 0 & 1 \\ 0 & 0 & -1 & -6 & 1 & 1 \end{array}\right).

Step 3: Clear column 3 to reach reduced row echelon form: →−R3(102100010−4010016−1−1)→R1−2R3(100−1122010−4010016−1−1). \xrightarrow{-R_3} \left(\begin{array}{ccc|ccc} 1 & 0 & 2 & 1 & 0 & 0 \\ 0 & 1 & 0 & -4 & 0 & 1 \\ 0 & 0 & 1 & 6 & -1 & -1 \end{array}\right) \xrightarrow{R_1 - 2R_3} \left(\begin{array}{ccc|ccc} 1 & 0 & 0 & -11 & 2 & 2 \\ 0 & 1 & 0 & -4 & 0 & 1 \\ 0 & 0 & 1 & 6 & -1 & -1 \end{array}\right). Therefore: A−1=(−1122−4016−1−1). A^{-1} = \begin{pmatrix} -11 & 2 & 2 \\ -4 & 0 & 1 \\ 6 & -1 & -1 \end{pmatrix}.

L9

Express the invertible matrix A=(1234) A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} as a product of elementary matrices.

Advanced

Step 1: Reduce A A to I2 I_2 via row operations:
1. R2→R2−3R1 R_2 \to R_2 - 3R_1 : Elementary matrix E1=(10−31) E_1 = \begin{pmatrix} 1 & 0 \\ -3 & 1 \end{pmatrix} . Result: (120−2) \begin{pmatrix} 1 & 2 \\ 0 & -2 \end{pmatrix} .
2. R2→−12R2 R_2 \to -\frac{1}{2} R_2 : Elementary matrix E2=(100−1/2) E_2 = \begin{pmatrix} 1 & 0 \\ 0 & -1/2 \end{pmatrix} . Result: (1201) \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} .
3. R1→R1−2R2 R_1 \to R_1 - 2R_2 : Elementary matrix E3=(1−201) E_3 = \begin{pmatrix} 1 & -2 \\ 0 & 1 \end{pmatrix} . Result: I2 I_2 .

Step 2: Invert elementary matrices:
We have E3E2E1A=I2  ⟹  A=E1−1E2−1E3−1 E_3 E_2 E_1 A = I_2 \implies A = E_1^{-1} E_2^{-1} E_3^{-1} .
Computing inverses of elementary row operations: E1−1=(1031),E2−1=(100−2),E3−1=(1201). E_1^{-1} = \begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix}, \quad E_2^{-1} = \begin{pmatrix} 1 & 0 \\ 0 & -2 \end{pmatrix}, \quad E_3^{-1} = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}. Therefore: A=(1031)(100−2)(1201). A = \begin{pmatrix} 1 & 0 \\ 3 & 1 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & -2 \end{pmatrix} \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}.

L10

Compute the determinant of the 4×4 4 \times 4 matrix by Laplace cofactor expansion along an optimal row or column: A=(20−1305001−2314012). A = \begin{pmatrix} 2 & 0 & -1 & 3 \\ 0 & 5 & 0 & 0 \\ 1 & -2 & 3 & 1 \\ 4 & 0 & 1 & 2 \end{pmatrix}.

Basic

Step 1: Choose row with maximum zeros:
Row 2 has three zero entries: a21=0,a22=5,a23=0,a24=0 a_{21}=0, a_{22}=5, a_{23}=0, a_{24}=0 .
Expanding along Row 2: det⁡(A)=(−1)2+2(5)∣2−13131412∣=5∣2−13131412∣. \det(A) = (-1)^{2+2} (5) \begin{vmatrix} 2 & -1 & 3 \\ 1 & 3 & 1 \\ 4 & 1 & 2 \end{vmatrix} = 5 \begin{vmatrix} 2 & -1 & 3 \\ 1 & 3 & 1 \\ 4 & 1 & 2 \end{vmatrix}.

Step 2: Evaluate 3×3 3 \times 3 determinant: ∣2−13131412∣=2(3(2)−1(1))−(−1)(1(2)−1(4))+3(1(1)−3(4)) \begin{vmatrix} 2 & -1 & 3 \\ 1 & 3 & 1 \\ 4 & 1 & 2 \end{vmatrix} = 2(3(2) - 1(1)) - (-1)(1(2) - 1(4)) + 3(1(1) - 3(4)) =2(6−1)+1(2−4)+3(1−12)=2(5)+1(−2)+3(−11)=10−2−33=−25. = 2(6 - 1) + 1(2 - 4) + 3(1 - 12) = 2(5) + 1(-2) + 3(-11) = 10 - 2 - 33 = -25.

Step 3: Multiply by coefficient: det⁡(A)=5(−25)=−125. \det(A) = 5(-25) = -125.

L11

Let A=(120031214) A = \begin{pmatrix} 1 & 2 & 0 \\ 0 & 3 & 1 \\ 2 & 1 & 4 \end{pmatrix} . Compute det⁡(A) \det(A) , find the adjugate matrix adj⁡(A) \operatorname{adj}(A) , and verify the identity Aadj⁡(A)=det⁡(A)I3 A \operatorname{adj}(A) = \det(A) I_3 .

Intermediate

Step 1: Compute det⁡(A) \det(A) : Expanding along row 1: det⁡(A)=1(3(4)−1(1))−2(0(4)−1(2))+0=1(11)−2(−2)=11+4=15. \det(A) = 1(3(4) - 1(1)) - 2(0(4) - 1(2)) + 0 = 1(11) - 2(-2) = 11 + 4 = 15.

Step 2: Compute Cofactor Matrix C C : C11=+(12−1)=11,C12=−(0−2)=2,C13=+(0−6)=−6 C_{11} = +(12-1) = 11, \quad C_{12} = -(0-2) = 2, \quad C_{13} = +(0-6) = -6 C21=−(8−0)=−8,C22=+(4−0)=4,C23=−(1−4)=3 C_{21} = -(8-0) = -8, \quad C_{22} = +(4-0) = 4, \quad C_{23} = -(1-4) = 3 C31=+(2−0)=2,C32=−(1−0)=−1,C33=+(3−0)=3 C_{31} = +(2-0) = 2, \quad C_{32} = -(1-0) = -1, \quad C_{33} = +(3-0) = 3 The adjugate matrix is the transpose adj⁡(A)=CT \operatorname{adj}(A) = C^T : adj⁡(A)=(11−8224−1−633). \operatorname{adj}(A) = \begin{pmatrix} 11 & -8 & 2 \\ 2 & 4 & -1 \\ -6 & 3 & 3 \end{pmatrix}.

Step 3: Multiply Aadj⁡(A) A \operatorname{adj}(A) : (120031214)(11−8224−1−633)=(11+4+0−8+8+02−2+00+6−60+12+30−3+322+2−24−16+4+124−1+12)=(150001500015)=15I3.  ✓ \begin{pmatrix} 1 & 2 & 0 \\ 0 & 3 & 1 \\ 2 & 1 & 4 \end{pmatrix} \begin{pmatrix} 11 & -8 & 2 \\ 2 & 4 & -1 \\ -6 & 3 & 3 \end{pmatrix} = \begin{pmatrix} 11+4+0 & -8+8+0 & 2-2+0 \\ 0+6-6 & 0+12+3 & 0-3+3 \\ 22+2-24 & -16+4+12 & 4-1+12 \end{pmatrix} = \begin{pmatrix} 15 & 0 & 0 \\ 0 & 15 & 0 \\ 0 & 0 & 15 \end{pmatrix} = 15 I_3. \;\checkmark

L12

Use Cramer's Rule to solve for x2 x_2 in the linear system: {2x1+x2+x3=4x1−x2+2x3=13x1+2x2−x3=7 \begin{cases} 2x_1 + x_2 + x_3 = 4 \\ x_1 - x_2 + 2x_3 = 1 \\ 3x_1 + 2x_2 - x_3 = 7 \end{cases}

Basic

Step 1: Compute main determinant det⁡(A) \det(A) : det⁡(A)=∣2111−1232−1∣=2((−1)(−1)−2(2))−1(1(−1)−2(3))+1(1(2)−(−1)(3)) \det(A) = \begin{vmatrix} 2 & 1 & 1 \\ 1 & -1 & 2 \\ 3 & 2 & -1 \end{vmatrix} = 2((-1)(-1) - 2(2)) - 1(1(-1) - 2(3)) + 1(1(2) - (-1)(3)) =2(1−4)−1(−1−6)+1(2+3)=2(−3)−1(−7)+1(5)=−6+7+5=6. = 2(1 - 4) - 1(-1 - 6) + 1(2 + 3) = 2(-3) - 1(-7) + 1(5) = -6 + 7 + 5 = 6.

Step 2: Replace column 2 with b=(4,1,7)T \mathbf{b} = (4, 1, 7)^T : det⁡(A2(b))=∣24111237−1∣. \det(A_2(\mathbf{b})) = \begin{vmatrix} 2 & 4 & 1 \\ 1 & 1 & 2 \\ 3 & 7 & -1 \end{vmatrix}. Expanding along row 1: =2(1(−1)−2(7))−4(1(−1)−2(3))+1(1(7)−1(3))=2(−15)−4(−7)+1(4)=−30+28+4=2. = 2(1(-1) - 2(7)) - 4(1(-1) - 2(3)) + 1(1(7) - 1(3)) = 2(-15) - 4(-7) + 1(4) = -30 + 28 + 4 = 2.

Step 3: Evaluate x2 x_2 : x2=det⁡(A2(b))det⁡(A)=26=13. x_2 = \frac{\det(A_2(\mathbf{b}))}{\det(A)} = \frac{2}{6} = \frac{1}{3}.

L13

Let M2(R) M_2(\mathbb{R}) be the vector space of 2×2 2 \times 2 real matrices. Determine, with formal verification via the Subspace Test, whether W={A∈M2(R):AT=−A} W = \{ A \in M_2(\mathbb{R}) : A^T = -A \} (the set of skew-symmetric matrices) is a subspace of M2(R) M_2(\mathbb{R}) . Find a basis and dim⁡(W) \dim(W) .

Intermediate

Subspace Test Verification:

  1. Non-emptiness: The zero matrix O O satisfies OT=O=−O O^T = O = -O , so O∈W O \in W .
  2. Additivity: Let A,B∈W A, B \in W . Then (A+B)T=AT+BT=(−A)+(−B)=−(A+B) (A + B)^T = A^T + B^T = (-A) + (-B) = -(A + B) . Thus A+B∈W A + B \in W .
  3. Scalar Closure: Let A∈W A \in W and c∈R c \in \mathbb{R} . Then (cA)T=c(AT)=c(−A)=−(cA) (cA)^T = c(A^T) = c(-A) = -(cA) . Thus cA∈W cA \in W .

Since all 3 axioms hold, W W is a vector subspace of M2(R) M_2(\mathbb{R}) .

General form and basis: A matrix A=(abcd) A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} satisfies AT=−A  ⟺  (acbd)=(−a−b−c−d) A^T = -A \iff \begin{pmatrix} a & c \\ b & d \end{pmatrix} = \begin{pmatrix} -a & -b \\ -c & -d \end{pmatrix} . This requires a=−a  ⟹  a=0 a = -a \implies a = 0 , d=−d  ⟹  d=0 d = -d \implies d = 0 , and c=−b c = -b . Thus: A=(0b−b0)=b(01−10). A = \begin{pmatrix} 0 & b \\ -b & 0 \end{pmatrix} = b \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}. A basis for W W is {(01−10)} \left\{ \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} \right\} , and dim⁡(W)=1 \dim(W) = 1 .

L14

For the matrix A=(120124143615) A = \begin{pmatrix} 1 & 2 & 0 & 1 \\ 2 & 4 & 1 & 4 \\ 3 & 6 & 1 & 5 \end{pmatrix} , find bases for Row⁡(A) \operatorname{Row}(A) , Col⁡(A) \operatorname{Col}(A) , and Null⁡(A) \operatorname{Null}(A) . Verify the Rank–Nullity Theorem.

Intermediate

Step 1: Row reduction to RREF: (120124143615)→R2−2R1, R3−3R1(120100120012)→R3−R2(120100120000). \begin{pmatrix} 1 & 2 & 0 & 1 \\ 2 & 4 & 1 & 4 \\ 3 & 6 & 1 & 5 \end{pmatrix} \xrightarrow{R_2 - 2R_1,\, R_3 - 3R_1} \begin{pmatrix} 1 & 2 & 0 & 1 \\ 0 & 0 & 1 & 2 \\ 0 & 0 & 1 & 2 \end{pmatrix} \xrightarrow{R_3 - R_2} \begin{pmatrix} 1 & 2 & 0 & 1 \\ 0 & 0 & 1 & 2 \\ 0 & 0 & 0 & 0 \end{pmatrix}.

Step 2: Subspace Bases:

  • Basis for Row⁡(A) \operatorname{Row}(A) : Non-zero rows of RREF: {(1,2,0,1),(0,0,1,2)} \{ (1, 2, 0, 1), (0, 0, 1, 2) \} .
  • Basis for Col⁡(A) \operatorname{Col}(A) : Pivot columns of original matrix A A (columns 1 and 3): {(123),(011)} \left\{ \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}, \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} \right\} .
  • Basis for Null⁡(A) \operatorname{Null}(A) : Free variables x2=s,x4=t x_2 = s, x_4 = t . From RREF: x1=−2s−t x_1 = -2s - t , x3=−2t x_3 = -2t . x=s(−2100)+t(−10−21)  ⟹  Basis={(−2100),(−10−21)}. \mathbf{x} = s \begin{pmatrix} -2 \\ 1 \\ 0 \\ 0 \end{pmatrix} + t \begin{pmatrix} -1 \\ 0 \\ -2 \\ 1 \end{pmatrix} \implies \text{Basis} = \left\{ \begin{pmatrix} -2 \\ 1 \\ 0 \\ 0 \end{pmatrix}, \begin{pmatrix} -1 \\ 0 \\ -2 \\ 1 \end{pmatrix} \right\}.

Verification: rank⁡(A)=2 \operatorname{rank}(A) = 2 , nullity⁡(A)=2 \operatorname{nullity}(A) = 2 . Total columns n=4 n = 4 .
rank⁡(A)+nullity⁡(A)=2+2=4=n \operatorname{rank}(A) + \operatorname{nullity}(A) = 2 + 2 = 4 = n . ✓

L15

Let B={1,1+x,1+x+x2} \mathcal{B} = \{ 1, 1+x, 1+x+x^2 \} be an ordered basis for the polynomial space P2 \mathcal{P}_2 . Find the coordinate vector [p(x)]B [p(x)]_\mathcal{B} for p(x)=3−2x+5x2 p(x) = 3 - 2x + 5x^2 .

Basic

Set up the coordinate equation: p(x)=c1(1)+c2(1+x)+c3(1+x+x2)=(c1+c2+c3)+(c2+c3)x+c3x2. p(x) = c_1(1) + c_2(1+x) + c_3(1+x+x^2) = (c_1 + c_2 + c_3) + (c_2 + c_3)x + c_3 x^2. Equating coefficients of like powers with 3−2x+5x2 3 - 2x + 5x^2 :

  1. Coefficient of x2 x^2 : c3=5 c_3 = 5
  2. Coefficient of x x : c2+c3=−2  ⟹  c2+5=−2  ⟹  c2=−7 c_2 + c_3 = -2 \implies c_2 + 5 = -2 \implies c_2 = -7
  3. Constant term: c1+c2+c3=3  ⟹  c1−7+5=3  ⟹  c1=5 c_1 + c_2 + c_3 = 3 \implies c_1 - 7 + 5 = 3 \implies c_1 = 5

Therefore, the coordinate vector is: [p(x)]B=(5−75). [p(x)]_\mathcal{B} = \begin{pmatrix} 5 \\ -7 \\ 5 \end{pmatrix}.

L16

Prove that if λ \lambda is an eigenvalue of an invertible matrix A A , then λ≠0 \lambda \neq 0 and λ−1 \lambda^{-1} is an eigenvalue of A−1 A^{-1} with the exact same corresponding eigenvector.

Intermediate

Step 1: Show λ≠0 \lambda \neq 0 :
By definition of an eigenvalue, there exists a nonzero vector v≠0 \mathbf{v} \neq \mathbf{0} such that Av=λv A\mathbf{v} = \lambda\mathbf{v} . If λ=0 \lambda = 0 , then Av=0 A\mathbf{v} = \mathbf{0} , which means v∈Null⁡(A) \mathbf{v} \in \operatorname{Null}(A) , contradicting the assumption that A A is invertible. Thus λ≠0 \lambda \neq 0 .

Step 2: Show λ−1 \lambda^{-1} is an eigenvalue of A−1 A^{-1} :
Multiply both sides of Av=λv A\mathbf{v} = \lambda\mathbf{v} by A−1 A^{-1} from the left: A−1(Av)=A−1(λv)  ⟹  (A−1A)v=λ(A−1v)  ⟹  v=λ(A−1v). A^{-1}(A\mathbf{v}) = A^{-1}(\lambda\mathbf{v}) \implies (A^{-1}A)\mathbf{v} = \lambda(A^{-1}\mathbf{v}) \implies \mathbf{v} = \lambda(A^{-1}\mathbf{v}). Dividing both sides by the nonzero scalar λ \lambda : A−1v=1λv=λ−1v. A^{-1}\mathbf{v} = \frac{1}{\lambda}\mathbf{v} = \lambda^{-1}\mathbf{v}. Since v≠0 \mathbf{v} \neq \mathbf{0} , this equation precisely states that λ−1 \lambda^{-1} is an eigenvalue of A−1 A^{-1} with the identical eigenvector v \mathbf{v} . ■ \blacksquare

L17

Find all eigenvalues, their algebraic and geometric multiplicities, and a basis for each eigenspace for: A=(310030002). A = \begin{pmatrix} 3 & 1 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 2 \end{pmatrix}. Is A A diagonalizable?

Intermediate

Step 1: Characteristic equation: Since A A is upper triangular, its eigenvalues are the diagonal entries: det⁡(A−λI)=(3−λ)2(2−λ)=0. \det(A - \lambda I) = (3 - \lambda)^2 (2 - \lambda) = 0. Distinct eigenvalues: λ1=3 \lambda_1 = 3 (algebraic multiplicity α1=2 \alpha_1 = 2 ), and λ2=2 \lambda_2 = 2 (algebraic multiplicity α2=1 \alpha_2 = 1 ).

Step 2: Eigenspace for λ=3 \lambda = 3 : (A−3I)v=(01000000−1)(v1v2v3)=(000). (A - 3I)\mathbf{v} = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & -1 \end{pmatrix} \begin{pmatrix} v_1 \\ v_2 \\ v_3 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix}. We obtain v2=0 v_2 = 0 and −v3=0  ⟹  v3=0 -v_3 = 0 \implies v_3 = 0 , while v1 v_1 is free. Thus: E3=span⁡{(100)}  ⟹  geometric multiplicity γ1=1. E_3 = \operatorname{span}\left\{ \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} \right\} \implies \text{geometric multiplicity } \gamma_1 = 1.

Step 3: Eigenspace for λ=2 \lambda = 2 : (A−2I)v=(110010000)(v1v2v3)=(000)  ⟹  v1=0, v2=0, v3 free  ⟹  E2=span⁡{(001)}. (A - 2I)\mathbf{v} = \begin{pmatrix} 1 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \end{pmatrix} \begin{pmatrix} v_1 \\ v_2 \\ v_3 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix} \implies v_1 = 0, \, v_2 = 0, \, v_3 \text{ free} \implies E_2 = \operatorname{span}\left\{ \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} \right\}.

Conclusion: For λ=3 \lambda = 3 , γ1=1<α1=2 \gamma_1 = 1 < \alpha_1 = 2 . Because the geometric multiplicity falls strictly below the algebraic multiplicity, A A is defective and NOT diagonalizable.

L18

Diagonalize the matrix A=(1221) A = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} by finding invertible P P and diagonal D D such that A=PDP−1 A = P D P^{-1} . Then compute Ak A^k for any positive integer k k .

Advanced

Step 1: Eigenvalues of A A : det⁡(A−λI)=(1−λ)2−4=λ2−2λ−3=(λ−3)(λ+1)=0  ⟹  λ1=3, λ2=−1. \det(A - \lambda I) = (1 - \lambda)^2 - 4 = \lambda^2 - 2\lambda - 3 = (\lambda - 3)(\lambda + 1) = 0 \implies \lambda_1 = 3, \, \lambda_2 = -1.

Step 2: Eigenvectors:

  • For λ1=3 \lambda_1 = 3 : (−222−2)v1=0  ⟹  v1=(11) \begin{pmatrix} -2 & 2 \\ 2 & -2 \end{pmatrix} \mathbf{v}_1 = \mathbf{0} \implies \mathbf{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix} .
  • For λ2=−1 \lambda_2 = -1 : (2222)v2=0  ⟹  v2=(−11) \begin{pmatrix} 2 & 2 \\ 2 & 2 \end{pmatrix} \mathbf{v}_2 = \mathbf{0} \implies \mathbf{v}_2 = \begin{pmatrix} -1 \\ 1 \end{pmatrix} .

Step 3: Construct P P , D D , and P−1 P^{-1} : P=(1−111),D=(300−1),P−1=12(11−11). P = \begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}, \quad D = \begin{pmatrix} 3 & 0 \\ 0 & -1 \end{pmatrix}, \quad P^{-1} = \frac{1}{2}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix}.

Step 4: Compute Ak=PDkP−1 A^k = P D^k P^{-1} : Ak=(1−111)(3k00(−1)k)12(11−11)=12(3k−(−1)k3k(−1)k)(11−11) A^k = \begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} \begin{pmatrix} 3^k & 0 \\ 0 & (-1)^k \end{pmatrix} \frac{1}{2}\begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 3^k & -(-1)^k \\ 3^k & (-1)^k \end{pmatrix} \begin{pmatrix} 1 & 1 \\ -1 & 1 \end{pmatrix} =12(3k+(−1)k3k−(−1)k3k−(−1)k3k+(−1)k). = \frac{1}{2}\begin{pmatrix} 3^k + (-1)^k & 3^k - (-1)^k \\ 3^k - (-1)^k & 3^k + (-1)^k \end{pmatrix}.

L19

Solve the initial value problem for the coupled system of linear differential equations: x′(t)=(1423)x(t),x(0)=(51). \mathbf{x}'(t) = \begin{pmatrix} 1 & 4 \\ 2 & 3 \end{pmatrix} \mathbf{x}(t), \qquad \mathbf{x}(0) = \begin{pmatrix} 5 \\ 1 \end{pmatrix}.

Advanced

Step 1: Eigenvalues of coefficient matrix: det⁡(A−λI)=(1−λ)(3−λ)−8=λ2−4λ−5=(λ−5)(λ+1)=0  ⟹  λ1=5, λ2=−1. \det(A - \lambda I) = (1 - \lambda)(3 - \lambda) - 8 = \lambda^2 - 4\lambda - 5 = (\lambda - 5)(\lambda + 1) = 0 \implies \lambda_1 = 5, \, \lambda_2 = -1.

Step 2: Eigenvectors:

  • For λ1=5 \lambda_1 = 5 : (A−5I)=(−442−2)  ⟹  v1=(11) (A - 5I) = \begin{pmatrix} -4 & 4 \\ 2 & -2 \end{pmatrix} \implies \mathbf{v}_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix} .
  • For λ2=−1 \lambda_2 = -1 : (A+I)=(2424)  ⟹  v2=(−21) (A + I) = \begin{pmatrix} 2 & 4 \\ 2 & 4 \end{pmatrix} \implies \mathbf{v}_2 = \begin{pmatrix} -2 \\ 1 \end{pmatrix} .

Step 3: General solution and initial conditions: x(t)=c1e5t(11)+c2e−t(−21). \mathbf{x}(t) = c_1 e^{5t} \begin{pmatrix} 1 \\ 1 \end{pmatrix} + c_2 e^{-t} \begin{pmatrix} -2 \\ 1 \end{pmatrix}. At t=0 t = 0 : c1(11)+c2(−21)=(51)  ⟺  (1−211)(c1c2)=(51). c_1 \begin{pmatrix} 1 \\ 1 \end{pmatrix} + c_2 \begin{pmatrix} -2 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 1 \end{pmatrix} \iff \begin{pmatrix} 1 & -2 \\ 1 & 1 \end{pmatrix} \begin{pmatrix} c_1 \\ c_2 \end{pmatrix} = \begin{pmatrix} 5 \\ 1 \end{pmatrix}. Subtracting rows: 3c2=−4  ⟹  c2=−4/3 3c_2 = -4 \implies c_2 = -4/3 ; then c1=5+2(−4/3)=7/3 c_1 = 5 + 2(-4/3) = 7/3 .
Therefore: x(t)=73e5t(11)−43e−t(−21)=(73e5t+83e−t73e5t−43e−t). \mathbf{x}(t) = \frac{7}{3} e^{5t} \begin{pmatrix} 1 \\ 1 \end{pmatrix} - \frac{4}{3} e^{-t} \begin{pmatrix} -2 \\ 1 \end{pmatrix} = \begin{pmatrix} \frac{7}{3}e^{5t} + \frac{8}{3}e^{-t} \\ \frac{7}{3}e^{5t} - \frac{4}{3}e^{-t} \end{pmatrix}.

L20

Verify the Cayley–Hamilton Theorem for A=(2134) A = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix} , and use it to compute A−1 A^{-1} without using cofactor formulas or row reduction.

Intermediate

Step 1: Characteristic polynomial: p(λ)=det⁡(A−λI)=(2−λ)(4−λ)−3=λ2−6λ+5. p(\lambda) = \det(A - \lambda I) = (2 - \lambda)(4 - \lambda) - 3 = \lambda^2 - 6\lambda + 5.

Step 2: Cayley–Hamilton Verification p(A)=O p(A) = O : A2=(2134)(2134)=(4+32+46+123+16)=(761819). A^2 = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix} \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix} = \begin{pmatrix} 4+3 & 2+4 \\ 6+12 & 3+16 \end{pmatrix} = \begin{pmatrix} 7 & 6 \\ 18 & 19 \end{pmatrix}. p(A)=A2−6A+5I2=(761819)−(1261824)+(5005)=(7−12+56−6+018−18+019−24+5)=(0000).  ✓ p(A) = A^2 - 6A + 5I_2 = \begin{pmatrix} 7 & 6 \\ 18 & 19 \end{pmatrix} - \begin{pmatrix} 12 & 6 \\ 18 & 24 \end{pmatrix} + \begin{pmatrix} 5 & 0 \\ 0 & 5 \end{pmatrix} = \begin{pmatrix} 7-12+5 & 6-6+0 \\ 18-18+0 & 19-24+5 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}. \;\checkmark

Step 3: Solve for A−1 A^{-1} : Multiply the operator identity A2−6A+5I2=O A^2 - 6A + 5I_2 = O by A−1 A^{-1} : A−6I2+5A−1=O  ⟹  5A−1=6I2−A  ⟹  A−1=15(6I2−A). A - 6I_2 + 5A^{-1} = O \implies 5A^{-1} = 6I_2 - A \implies A^{-1} = \frac{1}{5}(6I_2 - A). Evaluating directly: A−1=15((6006)−(2134))=15(4−1−32). A^{-1} = \frac{1}{5}\left( \begin{pmatrix} 6 & 0 \\ 0 & 6 \end{pmatrix} - \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix} \right) = \frac{1}{5}\begin{pmatrix} 4 & -1 \\ -3 & 2 \end{pmatrix}.

L21

Find the standard matrix [T] [T] of the linear operator T:R2→R2 T: \mathbb{R}^2 \to \mathbb{R}^2 that performs a horizontal shear by factor 2, followed by a counterclockwise rotation of 45∘ 45^\circ .

Basic

Step 1: Standard matrix of shear [S] [S] : S(x,y)=(x+2y,y)  ⟹  [S]=(1201). S(x, y) = (x + 2y, y) \implies [S] = \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix}.

Step 2: Standard matrix of rotation [R] [R] : [R]=(cos⁡(45∘)−sin⁡(45∘)sin⁡(45∘)cos⁡(45∘))=22(1−111). [R] = \begin{pmatrix} \cos(45^\circ) & -\sin(45^\circ) \\ \sin(45^\circ) & \cos(45^\circ) \end{pmatrix} = \frac{\sqrt{2}}{2} \begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}.

Step 3: Compose operators [T]=[R][S] [T] = [R] [S] : [T]=22(1−111)(1201)=22(12−112+1)=22(1113)=(2/22/22/232/2). [T] = \frac{\sqrt{2}}{2} \begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix} \begin{pmatrix} 1 & 2 \\ 0 & 1 \end{pmatrix} = \frac{\sqrt{2}}{2} \begin{pmatrix} 1 & 2 - 1 \\ 1 & 2 + 1 \end{pmatrix} = \frac{\sqrt{2}}{2} \begin{pmatrix} 1 & 1 \\ 1 & 3 \end{pmatrix} = \begin{pmatrix} \sqrt{2}/2 & \sqrt{2}/2 \\ \sqrt{2}/2 & 3\sqrt{2}/2 \end{pmatrix}.

L22

Let T:R3→R3 T: \mathbb{R}^3 \to \mathbb{R}^3 be defined by T(x,y,z)=(x+2y−z, 2x+5y, 3x+7y−z) T(x, y, z) = (x + 2y - z, \, 2x + 5y, \, 3x + 7y - z) . Find bases for ker⁡(T) \ker(T) and im⁡(T) \operatorname{im}(T) , and determine whether T T is an isomorphism.

Intermediate

Step 1: Standard matrix A A : A=(12−125037−1). A = \begin{pmatrix} 1 & 2 & -1 \\ 2 & 5 & 0 \\ 3 & 7 & -1 \end{pmatrix}.

Step 2: Row reduce to RREF: (12−125037−1)→R2−2R1, R3−3R1(12−1012012)→R3−R2, R1−2R2(10−5012000). \begin{pmatrix} 1 & 2 & -1 \\ 2 & 5 & 0 \\ 3 & 7 & -1 \end{pmatrix} \xrightarrow{R_2 - 2R_1,\, R_3 - 3R_1} \begin{pmatrix} 1 & 2 & -1 \\ 0 & 1 & 2 \\ 0 & 1 & 2 \end{pmatrix} \xrightarrow{R_3 - R_2,\, R_1 - 2R_2} \begin{pmatrix} 1 & 0 & -5 \\ 0 & 1 & 2 \\ 0 & 0 & 0 \end{pmatrix}.

Step 3: Kernel and Image:

  • ker⁡(T) \ker(T) : Free variable z=t z = t . x=5t x = 5t , y=−2t y = -2t . Basis = {(5−21)} \left\{ \begin{pmatrix} 5 \\ -2 \\ 1 \end{pmatrix} \right\} , nullity = 1.
  • im⁡(T) \operatorname{im}(T) : Pivot columns 1 and 2 of A A . Basis = {(123),(257)} \left\{ \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}, \begin{pmatrix} 2 \\ 5 \\ 7 \end{pmatrix} \right\} , rank = 2.

Isomorphism check: Since ker⁡(T)≠{0} \ker(T) \neq \{\mathbf{0}\} , T T is not injective (and rank⁡(T)=2<3 \operatorname{rank}(T) = 2 < 3 means not surjective). Therefore, T T is not an isomorphism.

L23

Let T:R2→R2 T: \mathbb{R}^2 \to \mathbb{R}^2 have standard matrix A=(4123) A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix} . Find the matrix representation [T]B [T]_\mathcal{B} relative to the basis B={(11),(−12)} \mathcal{B} = \left\{ \begin{pmatrix} 1 \\ 1 \end{pmatrix}, \begin{pmatrix} -1 \\ 2 \end{pmatrix} \right\} via similarity transformation P−1AP P^{-1} A P .

Advanced

Step 1: Construct change-of-basis transition matrix P P : P=(1−112),det⁡(P)=2−(−1)=3  ⟹  P−1=13(21−11). P = \begin{pmatrix} 1 & -1 \\ 1 & 2 \end{pmatrix}, \quad \det(P) = 2 - (-1) = 3 \implies P^{-1} = \frac{1}{3}\begin{pmatrix} 2 & 1 \\ -1 & 1 \end{pmatrix}.

Step 2: Compute AP AP : AP=(4123)(1−112)=(4(1)+1(1)4(−1)+1(2)2(1)+3(1)2(−1)+3(2))=(5−254). AP = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix} \begin{pmatrix} 1 & -1 \\ 1 & 2 \end{pmatrix} = \begin{pmatrix} 4(1)+1(1) & 4(-1)+1(2) \\ 2(1)+3(1) & 2(-1)+3(2) \end{pmatrix} = \begin{pmatrix} 5 & -2 \\ 5 & 4 \end{pmatrix}.

Step 3: Compute [T]B=P−1(AP) [T]_\mathcal{B} = P^{-1} (AP) : [T]B=13(21−11)(5−254)=13(10+5−4+4−5+52+4)=13(15006)=(5002). [T]_\mathcal{B} = \frac{1}{3}\begin{pmatrix} 2 & 1 \\ -1 & 1 \end{pmatrix} \begin{pmatrix} 5 & -2 \\ 5 & 4 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 10+5 & -4+4 \\ -5+5 & 2+4 \end{pmatrix} = \frac{1}{3}\begin{pmatrix} 15 & 0 \\ 0 & 6 \end{pmatrix} = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}. (Notice that B \mathcal{B} is an eigenbasis of A A , completely diagonalizing T T !)

L24

Apply the Gram–Schmidt orthogonalization process to the columns of A A to find its QR QR factorization: A=(1221−22). A = \begin{pmatrix} 1 & 2 \\ 2 & 1 \\ -2 & 2 \end{pmatrix}.

Intermediate

Step 1: Orthogonalize x1=(1,2,−2)T \mathbf{x}_1 = (1, 2, -2)^T and x2=(2,1,2)T \mathbf{x}_2 = (2, 1, 2)^T :
First vector: v1=x1=(12−2) \mathbf{v}_1 = \mathbf{x}_1 = \begin{pmatrix} 1 \\ 2 \\ -2 \end{pmatrix} .
Norm: ∥v1∥=12+22+(−2)2=9=3 \|\mathbf{v}_1\| = \sqrt{1^2 + 2^2 + (-2)^2} = \sqrt{9} = 3 .
Subtract projection of x2 \mathbf{x}_2 onto v1 \mathbf{v}_1 : x2⋅v1=2(1)+1(2)+2(−2)=2+2−4=0. \mathbf{x}_2 \cdot \mathbf{v}_1 = 2(1) + 1(2) + 2(-2) = 2 + 2 - 4 = 0. Since x2⋅v1=0 \mathbf{x}_2 \cdot \mathbf{v}_1 = 0 , the columns were already orthogonal! Thus v2=x2=(212) \mathbf{v}_2 = \mathbf{x}_2 = \begin{pmatrix} 2 \\ 1 \\ 2 \end{pmatrix} .
Norm: ∥v2∥=22+12+22=9=3 \|\mathbf{v}_2\| = \sqrt{2^2 + 1^2 + 2^2} = \sqrt{9} = 3 .

Step 2: Normalize to construct Q Q : q1=13(12−2),q2=13(212)  ⟹  Q=(1/32/32/31/3−2/32/3). \mathbf{q}_1 = \frac{1}{3}\begin{pmatrix} 1 \\ 2 \\ -2 \end{pmatrix}, \quad \mathbf{q}_2 = \frac{1}{3}\begin{pmatrix} 2 \\ 1 \\ 2 \end{pmatrix} \implies Q = \begin{pmatrix} 1/3 & 2/3 \\ 2/3 & 1/3 \\ -2/3 & 2/3 \end{pmatrix}.

Step 3: Construct R=QTA R = Q^T A : R=(∥v1∥q1⋅x20∥v2∥)=(3003). R = \begin{pmatrix} \|\mathbf{v}_1\| & \mathbf{q}_1 \cdot \mathbf{x}_2 \\ 0 & \|\mathbf{v}_2\| \end{pmatrix} = \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix}. Check: QR=(1/32/32/31/3−2/32/3)(3003)=(1221−22)=A QR = \begin{pmatrix} 1/3 & 2/3 \\ 2/3 & 1/3 \\ -2/3 & 2/3 \end{pmatrix} \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} = \begin{pmatrix} 1 & 2 \\ 2 & 1 \\ -2 & 2 \end{pmatrix} = A . ✓

L25

Find the least-squares regression line y=mx+b y = mx + b for the points (0,1),(1,3),(2,2),(3,6) (0, 1), (1, 3), (2, 2), (3, 6) using the normal equations ATAx^=ATy A^T A \hat{\mathbf{x}} = A^T \mathbf{y} . Compute the residual vector e=y−Ax^ \mathbf{e} = \mathbf{y} - A\hat{\mathbf{x}} and verify that e⊥Col⁡(A) \mathbf{e} \perp \operatorname{Col}(A) .

Advanced

Step 1: Set up matrix equation Ax=y A\mathbf{x} = \mathbf{y} : A=(01112131),y=(1326),x=(mb). A = \begin{pmatrix} 0 & 1 \\ 1 & 1 \\ 2 & 1 \\ 3 & 1 \end{pmatrix}, \quad \mathbf{y} = \begin{pmatrix} 1 \\ 3 \\ 2 \\ 6 \end{pmatrix}, \quad \mathbf{x} = \begin{pmatrix} m \\ b \end{pmatrix}.

Step 2: Form normal equations: ATA=(01231111)(01112131)=(0+1+4+90+1+2+30+1+2+31+1+1+1)=(14664). A^T A = \begin{pmatrix} 0 & 1 & 2 & 3 \\ 1 & 1 & 1 & 1 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & 1 \\ 2 & 1 \\ 3 & 1 \end{pmatrix} = \begin{pmatrix} 0+1+4+9 & 0+1+2+3 \\ 0+1+2+3 & 1+1+1+1 \end{pmatrix} = \begin{pmatrix} 14 & 6 \\ 6 & 4 \end{pmatrix}. ATy=(01231111)(1326)=(0+3+4+181+3+2+6)=(2512). A^T \mathbf{y} = \begin{pmatrix} 0 & 1 & 2 & 3 \\ 1 & 1 & 1 & 1 \end{pmatrix} \begin{pmatrix} 1 \\ 3 \\ 2 \\ 6 \end{pmatrix} = \begin{pmatrix} 0 + 3 + 4 + 18 \\ 1 + 3 + 2 + 6 \end{pmatrix} = \begin{pmatrix} 25 \\ 12 \end{pmatrix}.

Step 3: Invert and solve: det⁡(ATA)=14(4)−6(6)=56−36=20. \det(A^T A) = 14(4) - 6(6) = 56 - 36 = 20. x^=120(4−6−614)(2512)=120(100−72−150+168)=120(2818)=(1.40.9). \hat{\mathbf{x}} = \frac{1}{20}\begin{pmatrix} 4 & -6 \\ -6 & 14 \end{pmatrix} \begin{pmatrix} 25 \\ 12 \end{pmatrix} = \frac{1}{20}\begin{pmatrix} 100 - 72 \\ -150 + 168 \end{pmatrix} = \frac{1}{20}\begin{pmatrix} 28 \\ 18 \end{pmatrix} = \begin{pmatrix} 1.4 \\ 0.9 \end{pmatrix}. Thus the least-squares line is y=1.4x+0.9 y = 1.4x + 0.9 .

Step 4: Residual and Orthogonality Check: Ax^=(0(1.4)+0.91(1.4)+0.92(1.4)+0.93(1.4)+0.9)=(0.92.33.75.1)  ⟹  e=y−Ax^=(1−0.93−2.32−3.76−5.1)=(0.10.7−1.70.9). A\hat{\mathbf{x}} = \begin{pmatrix} 0(1.4) + 0.9 \\ 1(1.4) + 0.9 \\ 2(1.4) + 0.9 \\ 3(1.4) + 0.9 \end{pmatrix} = \begin{pmatrix} 0.9 \\ 2.3 \\ 3.7 \\ 5.1 \end{pmatrix} \implies \mathbf{e} = \mathbf{y} - A\hat{\mathbf{x}} = \begin{pmatrix} 1 - 0.9 \\ 3 - 2.3 \\ 2 - 3.7 \\ 6 - 5.1 \end{pmatrix} = \begin{pmatrix} 0.1 \\ 0.7 \\ -1.7 \\ 0.9 \end{pmatrix}. Testing orthogonality with columns of A A :
a1⋅e=0(0.1)+1(0.7)+2(−1.7)+3(0.9)=0+0.7−3.4+2.7=0 \mathbf{a}_1 \cdot \mathbf{e} = 0(0.1) + 1(0.7) + 2(-1.7) + 3(0.9) = 0 + 0.7 - 3.4 + 2.7 = 0 . ✓
a2⋅e=1(0.1)+1(0.7)+1(−1.7)+1(0.9)=0.1+0.7−1.7+0.9=0 \mathbf{a}_2 \cdot \mathbf{e} = 1(0.1) + 1(0.7) + 1(-1.7) + 1(0.9) = 0.1 + 0.7 - 1.7 + 0.9 = 0 . ✓
The residual error vector is strictly orthogonal to Col⁡(A) \operatorname{Col}(A) , confirming the geometric optimality of the solution.

AI-assisted, human-reviewed: Questions and walkthroughs are developed with AI assistance and reviewed by senior educators. Report an error here ↗

Build a randomised test from this subject’s question bank. Pick the number of questions and a difficulty, generate, then reveal the worked answers when you’re ready — or print a clean copy to hand out.

AI-assisted, human-reviewed: Questions and walkthroughs are developed with AI assistance and reviewed by senior educators. Report an error here ↗
↓

Downloads

Take Linear Algebra offline. The PDF packet prints straight from your browser; native Word versions with editable equation-editor math are available on request.

PDF · ready now

Linear Algebra notes & practice

All eight chapters plus every worked solution and proof, formatted as a clean print document.

DOCX · on request

Native Word packet

Editable .docx with real Word equations (OMML) — ready for a worksheet or quiz.

Worksheet Library

4 original ClipSAT worksheets with full answer keys, covering the track's foundational chapters — free to download and print.

Loading worksheet library…

Mock Exam

--:--