Docsity

Linear_Algebra_Core_Study_Guide, Cheat Sheet of Mathematics

Toggle sidebar
bg1
Page 1 of 8
MATH EMATI CS • UNDE RG RADUAT E CO RE REVI EW
Linear Algebra:
Core Theorems, Methods & Worked Examples
Gaussian Elimination, Vector Spaces, Rank-Nullity, Determinants, Eigenvalues & Diagonalization,
Orthogonality, Least Squares & SVD
SUBJ ECT ARE A
Mathematics / Applied Linear
Algebra
COUR SE EQU IVALE NT
MATH 240 / Linear Algebra
DOCU MENT T YPE
Comprehensive Study Guide + 8
Solved Problems
Table of Contents
1. Linear Systems & Row Reduction (REF / RREF)
2. Matrix Operations, Inverses & Invertible Matrix
Theorem
3. Vector Spaces, Subspaces, Span & Independence
4. Basis, Dimension & The Four Fundamental
Subspaces
5. Linear Transformations & Matrix Representations
6. Determinants & Geometric Volume
7. Eigenvalues, Eigenvectors & Diagonalization
8. Orthogonality, Gram-Schmidt & Least Squares
9. Symmetric Matrices, Spectral Theorem & SVD
10. Worked Exam Problems & Step-by-Step Solutions
1. Systems of Linear Equations & Row Reduction
A system of m linear equations in n unknowns is written compactly in matrix form as Ax = b , where A ∈ ℝm×n
is the coefficient matrix, x ∈ ℝn is the unknown vector, and b ∈ ℝm is the right-hand side. Solving the system
applies three elementary row operations to the augmented matrix [A | b] , which preserve the exact solution
set:
Row Swap (Ri ↔ Rj): Interchange two rows.
Row Scaling (c·Ri → Ri, c ≠ 0): Multiply a row by a nonzero scalar.
Row Replacement (Ri + c·Rj → Ri): Add a multiple of one row to another.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Linear_Algebra_Core_Study_Guide and more Cheat Sheet Mathematics in PDF only on Docsity!

MATHEMATICS • UNDERGRADUATE CORE REVIEW

Linear Algebra:

Core Theorems, Methods & Worked Examples

Gaussian Elimination, Vector Spaces, Rank-Nullity, Determinants, Eigenvalues & Diagonalization,

Orthogonality, Least Squares & SVD

SUBJECT AREA Mathematics / Applied Linear Algebra

COURSE EQUIVALENT MATH 240 / Linear Algebra

DOCUMENT TYPE Comprehensive Study Guide + 8 Solved Problems

Table of Contents

  1. Linear Systems & Row Reduction (REF / RREF)
  2. Matrix Operations, Inverses & Invertible Matrix Theorem
  3. Vector Spaces, Subspaces, Span & Independence
  4. Basis, Dimension & The Four Fundamental Subspaces 5. Linear Transformations & Matrix Representations 6. Determinants & Geometric Volume 7. Eigenvalues, Eigenvectors & Diagonalization 8. Orthogonality, Gram-Schmidt & Least Squares 9. Symmetric Matrices, Spectral Theorem & SVD
  5. Worked Exam Problems & Step-by-Step Solutions

1. Systems of Linear Equations & Row Reduction

A system of m linear equations in n unknowns is written compactly in matrix form as Ax = b , where A ∈ ℝm×n

is the coefficient matrix, x ∈ ℝn^ is the unknown vector, and b ∈ ℝm^ is the right-hand side. Solving the system

applies three elementary row operations to the augmented matrix [A | b] , which preserve the exact solution

set:

Row Swap (Ri ↔ Rj): Interchange two rows.

Row Scaling (c·Ri → Ri, c ≠ 0): Multiply a row by a nonzero scalar.

Row Replacement (Ri + c·Rj → Ri): Add a multiple of one row to another.

REF vs. RREF

Property Row Echelon Form (REF) Reduced Row Echelon Form (RREF)

Zero rows All zero rows sit at the bottom All zero rows sit at the bottom

Leading entries (pivots)

Each pivot is strictly to the right of the pivot above

Each pivot is strictly to the right of the pivot above

Pivot values & columns

Entries below pivots are 0; pivots can be any nonzero value

Every pivot equals 1 and is the only nonzero entry in its column

Uniqueness Not unique Strictly unique for any given matrix A

Existence & Uniqueness Diagnostic from RREF of [A | b]

- No Solution (Inconsistent): A pivot appears in the augmented column b (a row of the form [0 0 ...

0 | c] with c ≠ 0 ).

- Unique Solution: Consistent, and every variable column has a pivot (no free variables; rank(A) = n ). - Infinitely Many Solutions: Consistent, with at least one non-pivot column (free variables; rank(A) < n ). 2. Matrix Algebra & The Invertible Matrix Theorem

Matrix multiplication (AB)ij = ∑k Aik Bkj requires inner dimensions to match ( m×p times p×n yields m×n ). In

general, AB ≠ BA (non-commutative), and (AB)T^ = BTAT^. If A and B are invertible n×n matrices, then (AB)-

= B-1A-^.

The Invertible Matrix Theorem (For Square n×n Matrix A)

The following statements are logically equivalent (either all true or all false):

1. A is invertible (there exists A-1^ such that AA-1^ = A-1A = In ).

2. RREF(A) = In ( A has n pivot positions; rank(A) = n ).

3. Ax = 0 has only the trivial solution x = 0 ( nullity(A) = 0 ).

4. Ax = b has a unique solution for every b ∈ ℝn^.

5. The columns of A are linearly independent and span ℝn^ (form a basis of ℝn^ ).

6. det(A) ≠ 0 , and 0 is not an eigenvalue of A.

3. Vector Spaces, Subspaces & Linear Independence

A subspace W ⊆ ℝn^ is a subset closed under the vector space operations. To verify W is a subspace, check

three axioms:

1. Zero vector: 0 ∈ W (non-empty).

2. Closure under addition: If u, v ∈ W , then u + v ∈ W.

Row Operation / Property Effect on det(A)

Swap two rows ( Ri ↔ Rj ) Multiplies determinant by -

Scale one row by c ( cRi → Ri ) (^) Multiplies determinant by c (note: det(cA) = cn^ det(A) )

Row replacement ( Ri + cRj → Ri ) Unchanged ( det stays identical)

Products, Transposes, Inverses det(AB) = det(A)det(B) ; det(AT) = det(A) ; det(A-1) = 1/det(A)

Triangular Matrix Product of the main diagonal entries: ∏ aii

7. Eigenvalues, Eigenvectors & Diagonalization

For a square n×n matrix A , a nonzero vector v ≠ 0 is an eigenvector with eigenvalue λ if:

A v = λ v ⟺ (A - λI) v = 0

Non-trivial solutions exist iff A - λI is singular, yielding the characteristic polynomial :

p(λ) = det(A - λI) = 0

For each eigenvalue λ , its eigenspace is Eλ = Nul(A - λI). Notice that trace(A) = ∑ λi and det(A) = ∏ λi

(counting algebraic multiplicity).

Diagonalization: A = P D P-

A matrix A ∈ ℝn×n^ is diagonalizable iff it has n linearly independent eigenvectors (equivalently, for every

eigenvalue, geometric multiplicity dim(Eλ) equals algebraic multiplicity). Setting P = [v 1 ... vn] and D =

diag(λ 1 , ..., λn) gives A = PDP-1^ , making matrix powers trivial: Ak^ = P Dk^ P-^.

Key Distinction: Distinct Eigenvalues vs. Repeated Eigenvalues

Eigenvectors corresponding to distinct eigenvalues are always linearly independent—so any n×n matrix

with n distinct eigenvalues is automatically diagonalizable. A matrix with repeated eigenvalues may fail to

be diagonalizable (e.g., shear matrix [[1,1],[0,1]] has λ=1 of algebraic multiplicity 2, geometric

multiplicity 1).

8. Orthogonality, Gram-Schmidt & Least Squares

Two vectors are orthogonal if u · v = uTv = 0. A set {q 1 , ..., qk} is orthonormal if qiTqj = 0 for i ≠ j

and ‖qi‖ = 1. An n×n matrix Q with orthonormal columns satisfies QTQ = I and Q-1^ = QT^ , preserving

lengths ( ‖Qx‖ = ‖x‖ ) and angles.

W = Col(A)

b

b̂ = proj_W(b) = Ax̂

e = b - Ax̂ ⊥ Col(A)

Figure 1: Least-squares solution x̂ minimizes ‖b - Ax‖ by making the residual vector e = b - Ax̂ orthogonal to Col(A).

Gram-Schmidt Orthonormalization

Given linearly independent vectors {v 1 , v 2 , ..., vk} , iteratively subtract projections onto previously built

orthogonal vectors:

u 1 = v 1 , uj = vj - ∑i=1..j-1 ( (vj · ui) / (ui · ui) ) ui, qj = uj / ‖uj‖

Least-Squares & Normal Equations

When Ax = b is inconsistent (overdetermined), the least-squares solution x̂ minimizes ‖b - Ax‖². Requiring

b - Ax̂ ∈ Col(A)⊥^ = Nul(AT) yields the Normal Equations :

ATA x̂ = ATb ⇒ x̂ = (ATA)-1ATb (when columns of A are independent)

9. Symmetric Matrices, Spectral Theorem & SVD

Spectral Theorem: Every real symmetric matrix ( A = AT^ ) has only real eigenvalues , eigenvectors from

distinct eigenspaces are automatically orthogonal , and A is always orthogonally diagonalizable : A = Q D

QT^ where QTQ = I.

Positive Definiteness: A symmetric matrix A is positive definite ( xTAx > 0 for all x ≠ 0 ) iff all its

eigenvalues satisfy λi > 0 (equivalently, all leading principal minors are positive).

Singular Value Decomposition (SVD): Every m×n matrix A (even rectangular or singular) factors as A = U

Σ VT^ , where U ∈ ℝm×m^ and V ∈ ℝn×n^ are orthogonal, and Σ ∈ ℝm×n^ contains non-negative singular values

σ 1 ≥ σ 2 ≥ ... ≥ 0 (which are √λi of ATA ).

Problem 4 — Eigenvalues, Eigenvectors & Diagonalization

Diagonalize A = [[4, 1], [2, 3]] as PDP-1^ and compute A^5 (in factored form).

Solution:

  1. Characteristic polynomial: det(A - λI) = (4-λ)(3-λ) - 2 = λ² - 7λ + 10 = (λ - 5)(λ - 2) = 0 ⇒ λ 1 =

5, λ 2 = 2.

  1. For λ 1 = 5 : (A - 5I) = [[-1, 1], [2, -2]] ⇒ eigenvector v 1 = (1, 1)T^.
  2. For λ 2 = 2 : (A - 2I) = [[2, 1], [2, 1]] ⇒ eigenvector v 2 = (1, -2)T^.
  3. Set P = [[1, 1], [1, -2]] , D = [[5, 0], [0, 2]] , P-1^ = (-1/3)[[-2, -1], [-1, 1]] = [[2/3, 1/3],

[1/3, -1/3]].

  1. Then A^5 = P [[5^5 , 0], [0, 2^5 ]] P-1^ = P [[3125, 0], [0, 32]] P-^.

Problem 5 — Gram-Schmidt Orthonormalization

Apply Gram-Schmidt to v 1 = (1, 1, 0)T^ , v 2 = (1, 0, 1)T^ to produce an orthonormal basis {q 1 , q 2 }.

Solution:

  • u 1 = v 1 = (1, 1, 0)T^ , ‖u 1 ‖ = √2 ⇒ q 1 = (1/√2, 1/√2, 0)T^.
  • u 2 = v 2 - ((v 2 ·u 1 )/(u 1 ·u 1 )) u 1 = (1, 0, 1)T^ - (1/2)(1, 1, 0)T^ = (1/2, -1/2, 1)T^.
  • Normalize: ‖u 2 ‖ = √(1/4 + 1/4 + 1) = √(3/2) ⇒ q 2 = (1/√6, -1/√6, 2/√6)T^. Check: q 1 ·q 2 = 0 ✓.

Problem 6 — Least-Squares Line Fit via Normal Equations

Find the best-fit line y = c 0 + c 1 t through points (0, 1), (1, 3), (2, 4).

Solution: Design matrix A = [[1, 0], [1, 1], [1, 2]] , b = (1, 3, 4)T^.

Compute ATA = [[3, 3], [3, 5]] and ATb = (8, 11)T^.

Solve [[3, 3], [3, 5]] [c 0 , c 1 ]T^ = [8, 11]T^ : subtracting row 1 from row 2 gives 2c 1 = 3 ⇒ c 1 = 1.5 ,

then 3c 0 + 4.5 = 8 ⇒ c 0 = 7/.

Best-fit line: y = 7/6 + (3/2)t.

Problem 7 — Linear Transformation Standard Matrix

Let T: ℝ² → ℝ² rotate vectors counterclockwise by 90° and then reflect across the line y = x. Find its

standard matrix A.

Solution: Track the standard basis vectors e 1 = (1, 0)T^ and e 2 = (0, 1)T^ :

  • e 1 = (1, 0)T^ → rotate 90° CCW to (0, 1)T^ → reflect across y=x to (1, 0)T^.
  • e 2 = (0, 1)T^ → rotate 90° CCW to (-1, 0)T^ → reflect across y=x to (0, -1)T^.

Matrix: A = [[1, 0], [0, -1]] (which is a reflection across the x-axis!).

Problem 8 — Orthogonal Diagonalization of a Symmetric Matrix

Orthogonally diagonalize A = [[2, 2], [2, 2]] as Q D QT^.

Solution:

  • Characteristic polynomial: (2-λ)² - 4 = λ² - 4λ = λ(λ - 4) = 0 ⇒ λ 1 = 4, λ 2 = 0.
  • For λ 1 = 4 : [-2, 2; 2, -2]v = 0 ⇒ unit eigenvector q 1 = (1/√2, 1/√2)T^.
  • For λ 2 = 0 : [2, 2; 2, 2]v = 0 ⇒ unit eigenvector q 2 = (-1/√2, 1/√2)T^.

Result: Q = (1/√2)[[1, -1], [1, 1]] , D = [[4, 0], [0, 0]].