Linear Algebra Foundations and Applications
Linear Algebra Foundations and Applications
Pravin Chandra
USICT, GGSIPU
November 3, 2025
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 1 / 135
Outline
1 Matrices, Systems, and Vector Spaces
2 Solutions, Cramer’s Rule, and Gauss–Jordan
3 Eigenvalue Problems and Diagonalization
4 Advanced Concepts and Decompositions
5 Questions for Students
6 A few things that I missed in first writing
Cholesky Decomposition (A = LL> )
Skew-Symmetric Matrices
Geometric Interpretation of Matrices
MoorePenrose Pseudoinverse and Least Squares
Numerical Stability and Condition Numbers
Orthogonal Matrices
Eigenvalue Characterization of Special Matrices
References
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 2 / 135
Fundamentals: Matrices and Determinants I
1.1. Matrix Definitions and Operations
Definition and Notation: An m × n matrix A = [aij ]. Entries aij can be complex numbers.
Matrix Operations (Examples): Addition, Scalar Multiplication, and Matrix Multiplication.
Assertion: Matrix Multiplication is Generally Non-Commutative (AB 6= BA)
0 1 0 0
Proof: Let A = and B = .
0 0 1 0
0 1 0 0 1 0
AB = =
0 0 1 0 0 0
0 0 0 1 0 0
BA = =
1 0 0 0 0 1
Since AB 6= BA, the assertion is proved.
1.2. Conjugation and Transposition
Transpose (A> ): (A> )ij = aji .
Complex Conjugate (Ā): (Ā)ij = āij .
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 3 / 135
Fundamentals: Matrices and Determinants II
Hermitian Conjugate (A∗ ): A∗ = (Ā)> . (A∗ )ij = āji .
1+i 2 ∗ 1−i 3
A= =⇒ A =
3 4−i 2 4+i
Special Matrices:
Symmetric: A> = A.
Hermitian Matrix: A∗ = A.
Assertion: (AB)> = B> A>
Proof: Let C = AB and D = B> A> . X
(C)ij = aik bkj
k
X
(C> )ij = (C)ji = ajk bki
k
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 5 / 135
Fundamentals: Matrices and Determinants IV
a b a c
Proof: For 2 × 2, det = ad − bc. det = ad − cb. They are equal. For n > 2, the
c d b d
proof is by induction on n, noting that the cofactors of A> are the cofactors of A’s corresponding
transpose submatrices.
Assertion: A is invertible if and only if det(A) 6= 0
Proof (⇒): If A is invertible, AA−1 = I. By the multiplicative property of the determinant
(det(AB) = det(A) det(B)):
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 6 / 135
Fundamentals: Matrices and Determinants V
Adjoint Matrix (adj(A)): The transpose of the matrix of cofactors, adj(A) = [Cij ]> .
1
A−1 = adj(A)
det(A)
This is the standard cofactor expansion definition for det(A) along row i.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 7 / 135
Fundamentals: Matrices and Determinants VI
This is the Laplace Expansion Theorem (or cofactor property): the sum of the entries of row i
multiplied by the cofactors of a different row j is the determinant of a matrix with two identical rows
(row j replaced by row i), which must be zero.
Since the product matrix is det(A) on the diagonal and 0 elsewhere, A · adj(A) = det(A)I. Division
by det(A) (when non-zero) yields the formula for A−1 .
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 8 / 135
Example: Calculating the Inverse of a 3x3 Matrix I
1
Method 1: Adjoint Formula (A−1 = det(A)
adj(A))
1 2 3
Problem: Find the inverse of the matrix A = 0 1 4.
5 6 0
Step 1: Calculate the Determinant of A Using cofactor expansion along the first column (fewer non-zero
terms):
1 4 2 3 2 3
det(A) = 1 · det − 0 · det + 5 · det
6 0 6 0 1 4
det(A) = 1 · (1 · 0 − 4 · 6) − 0 + 5 · (2 · 4 − 3 · 1)
det(A) = 1 · (−24) + 5 · (8 − 3) = −24 + 5 · 5 = −24 + 25 = 1
Since det(A) = 1 6= 0, the inverse exists.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 9 / 135
Example: Calculating the Inverse of a 3x3 Matrix II
1
Method 1: Adjoint Formula (A−1 = det(A)
adj(A))
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 10 / 135
Example: Calculating the Inverse of a 3x3 Matrix III
1
Method 1: Adjoint Formula (A−1 = det(A)
adj(A))
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 11 / 135
Example: Calculating the Inverse of a 3x3 Matrix I
Method 2: Gauss-Jordan Elimination ([A|I] → [I|A−1 ])
1 2 3
Problem: Find the inverse of the matrix A = 0 1 4.
5 6 0
Step 1: Form the Augmented Matrix [A|I]
1 2 3 1 0 0
0 1 4 0 1 0
5 6 0 0 0 1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 12 / 135
Example: Calculating the Inverse of a 3x3 Matrix II
Method 2: Gauss-Jordan Elimination ([A|I] → [I|A−1 ])
Step 3: Identify A−1 The right-hand side of the augmented matrix is A−1 :
−24 18 5
A−1 = 20 −15 −4
−5 4 1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 14 / 135
Gauss Elimination, Rank, and Independence I
1.1. Gauss Elimination and Row Equivalence
Gauss Elimination: A systematic procedure using Elementary Row Operations (EROs) on the
augmented matrix [A|b].
Elementary Row Operations (EROs): These operations do not change the solution set of the
linear system, establishing that the resulting matrix is row equivalent to the original.
1 Interchange two rows (Ri ↔ Rj ).
2 Multiply a row by a non-zero scalar (cRi → Ri ).
3 Replace a row by the sum of itself and a multiple of another row (Ri + cRj → Ri ).
Row Echelon Form (REF): Defined by the position of the pivot (leading non-zero entry) in each
row.
Reduced Row Echelon Form (RREF): The unique Echelon form for every matrix; every pivot is
1 and the only non − zero entry in its column.
1.2. Linear Independence and Rank Properties
Linear Independence: Vectors {v1 , . . . , vn } are linearly independent if the equation
c1 v1 + · · · + cn vn = 0 has only the trivial solution (ci = 0).
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 15 / 135
Gauss Elimination, Rank, and Independence II
Maximum Rank: For an m × n matrix A, the maximum possible rank is min(m, n). If
rank(A) = min(m, n), the matrix is said to have full rank.
Basis Existence (Established): Every vector space (or subspace) has a basis. The basis vectors
are linearly independent and span the space.
Rank of a Matrix (rank(A)): The number of pivot positions (non-zero rows) in REF.
Theorem (Established): Row Rank = Column Rank = rank(A)
1 Proof Sketch: Row operations preserve the row space; dim(Row(A)) = r . Column dependence
relations are maintained; the r pivot columns form a basis for Col(A).
1.3. Example 1: Finding REF, Rank, and Basis
1 3 4
Problem: A = −2 −6 −8. Find rank(A) and bases.
3 5 7
Gauss Elimination to REF:
R2 ←R2 +2R1 1 3 4 1 3 4
R3 ←R3 −3R1 R2 ↔R3
A −− −−−−−→ 0 0 0 −− −−→ R = 0 −4 −5
0 −4 −5 0 0 0
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 16 / 135
Gauss Elimination, Rank, and Independence III
Rank and Nullity: rank(A) = 2. Number of free variables (x3 ) is 1. Thus, nullity(A) = 1.
Row Space Basis (Row(A)): Non-zero rows of REF.
> >
1
0
Basis(Row(A)) = 3 , −4
4 −5
Column Space Basis (Col(A)): Pivot columns (C1, C2) of the original matrix A.
1 3
Basis(Col(A)) = −2 , −6
3 5
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 17 / 135
Gauss Elimination, Rank, and Independence IV
−1/4
Null Space Basis (Null(A)): Solving Rx = 0 yields the general solution x = t −5/4.
1
−1
Basis(Null(A)) = −5 (scaled)
4
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 18 / 135
Gauss Elimination, Rank, and Independence V
1 0 2 1
Problem: Find the rank and the null space basis for B = 0 1 3 0. B is 3 × 4.
1 1 5 1
Gauss Elimination to RREF:
1 0 2 1 1 0 2 1
R ←R −R1 R ←R −R2
B −−3−−−3−−→ 0 1 3 0 −−3−−−3−−→ R0 = 0 1 3 0
0 1 3 0 0 0 0 0
R0 is in RREF.
Rank and Nullity: rank(B) = 2 (Pivots in C1, C2). n = 4.
nullity(B) = n − r = 4 − 2 = 2
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 19 / 135
Gauss Elimination, Rank, and Independence VI
x2 + 3x3 = 0 =⇒ x2 = −3t1
x1 + 2x3 + x4 = 0 =⇒ x1 = −2t1 − t2
x1 −2 −1
x2 −3 0
x= x3 = t1 1 + t2 0
x4 0 1
−2 −1
−3 , 0
Basis(Null(B)) =
1
0
0 1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 20 / 135
Vector Space (V): Comprehensive Theory and Applications I
1.1. Vector Space Definition and Axioms
Definition: A Vector Space (V) over a field F (usually R or C) is a non-empty set of objects
(vectors) closed under vector addition and scalar multiplication, satisfying the following 10 axioms.
Axioms (Detailed):
1 Closure under Addition: u + v ∈ V (Internal operation).
2 Commutativity of Addition: u + v = v + u.
3 Associativity of Addition: (u + v) + w = u + (v + w).
4 Zero Vector: There exists a unique 0 ∈ V such that u + 0 = u.
5 Negative Vector (Additive Inverse): For each u, there is a unique −u such that u + (−u) = 0.
6 Closure under Scalar Multiplication: cu ∈ V for all c ∈ F (External operation).
7 Distributivity I: c(u + v) = cu + cv.
8 Distributivity II: (c + d)u = cu + du.
9 Associativity of Scalar Multiplication: c(du) = (cd)u.
10 Multiplicative Identity: 1u = u.
1.2. Example Proof: Pn is a Vector Space
Assertion: The set of polynomials Pn (degree ≤ n) is a vector space over R.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 21 / 135
Vector Space (V): Comprehensive Theory and Applications II
Proof Sketch (Closure):
1 Closure under Addition: deg(p + q) ≤ max(deg(p), deg(q)) ≤ n. The sum remains in Pn .
2 Closure under Scalar Multiplication: deg(cp) = deg(p) ≤ n. The scalar multiple remains in Pn .
3 The remaining 8 axioms are satisfied because polynomial addition and scalar multiplication are
performed component-wise on the real coefficients, inheriting the field properties. The zero
polynomial is the additive identity.
1.3. Subspaces and Linear Span
Subspaces (W): A subset W of V that is itself a vector space.
Subspace Test (Established): A non-empty subset W is a subspace if it satisfies the
three closure properties: 1) contains the zero vector (or W is non-empty), 2)
closed under addition, and 3) closed under scalar multiplication.
Linear Span (span(S)): The set of all possible linear combinations of the vectors in
S = {v1 , . . . , vk }.
Assertion (Established): The span of any finite set of vectors is always a subspace of V.
Key Subspaces Related to A:
Null(A) (Kernel): Solution space to Ax = 0. (Subspace of Rn ).
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 22 / 135
Vector Space (V): Comprehensive Theory and Applications III
Col(A) (Range): Span of the columns of A. (Subspace of Rm ).
Row(A): Span of the rows of A. (Subspace of Rn ).
1.4. Example: Checking for a Subspace
x1
Problem: Is W = : x2 = 2x1 ⊂ R2 a subspace?
x2
Subspace Test Check:
1 Zero Vector: 0 = 2(0), so 0 ∈W. (Satisfied)
x1 y1 x1 + y1
2 Closed under Addition: u = ,v= . u+v = . (Satisfied)
2x1 2y 2(x1 + y1 )
1
cx1
3 Closed under Scalar Multiplication: cu = . (Satisfied)
2(cx1 )
Conclusion: W is a subspace of R2 .
1.5. Basis, Dimension, and Unique Representation
Basis: A set of vectors that is both linearly independent and spans V. It is a
maximal linearly independent set and a minimal spanning set.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 23 / 135
Vector Space (V): Comprehensive Theory and Applications IV
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 24 / 135
Vector Space (V): Comprehensive Theory and Applications V
Example (Dimension of P2 ): The standard basis B = {1, x, x 2 } is linearly independent and spans
P2 . dim(P2 ) = 3.
Example (Coordinates): Let p(x) = 5 − 2x + 4x 2 in P2 .
The coordinates of p(x) relative to the standard basis B = {1, x, x 2 } are:
5
[p(x)]B = −2
4
Geometric Interpretation: The coordinate vector [v]B maps the vector v from the abstract vector
space V to a unique coordinate vector in Rn , allowing the use of matrix tools.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 25 / 135
Solutions to Linear Systems: Existence and Uniqueness I
Ranks, Consistency Theorem, and Solution Types
rank(A) = rank([A|b])
1 Proof:
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 26 / 135
Solutions to Linear Systems: Existence and Uniqueness II
Ranks, Consistency Theorem, and Solution Types
(⇒) If consistent, then ranks are equal. If Ax = b is consistent, b is a linear combination of A’s
columns. Therefore, the column space of A and the column space of [A|b] are identical
(Col(A) = Col([A|b])). Since the rank is the dimension of the column space, their ranks must be equal:
rank(A) = rank([A|b]). b introduces no new pivot column in the REF.
(⇐) If ranks are equal, then consistent. Assume rank(A) = rank([A|b]) = r . When the augmented
matrix [A|b] is reduced to its Row Echelon Form (REF), the equality of ranks guarantees that the last
column (the b column) does not contain a pivot. The only way the system Ax = b can be inconsistent is
if the REF contains a row representing the contradiction 0 = c where c 6= 0, i.e., a row of the form
[0 . . . 0|c]. This row would introduce a pivot in the last column, making rank([A|b]) = r + 1, which
contradicts the initial assumption rank(A) = rank([A|b]). Thus, the system must be consistent.
1.2. Uniqueness of Solutions
Unique Solution: The system is consistent AND:
This implies that every column in A is a pivot column, leading to no free variables in the
solution set. The Null Space of A is trivial (Null(A) = {0}).
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 27 / 135
Solutions to Linear Systems: Existence and Uniqueness III
Ranks, Consistency Theorem, and Solution Types
rank(A) < n
The number of free variables is n − rank(A) (the Nullity), which defines the dimension of the
non-trivial Null Space. Any vector in the Null Space can be added to a particular solution to form
an infinite number of solutions.
No Solution (Inconsistent): rank(A) < rank([A|b]).
1.3. Summary for Square Matrices A (m = n)
det(A) 6= 0 ⇐⇒ rank(A) = n ⇐⇒ Ax = b has a Unique solution.
det(A) = 0 ⇐⇒ rank(A) < n ⇐⇒ No solution or Infinitely many solutions.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 28 / 135
II. Gaussian Elimination (Forward Elimination) I
Method for Solving Ax = b and Identifying Solution Set
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 29 / 135
II. Gaussian Elimination (Forward Elimination) II
Method for Solving Ax = b and Identifying Solution Set
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 30 / 135
II. Gaussian Elimination (Forward Elimination) III
Method for Solving Ax = b and Identifying Solution Set
0
Solution: x = −1/2.
1
2.3. Complete Worked Example: Infinite Solutions
Problem: Solve x1 + 2x2 − 3x3 = 1, 2x1 + 4x2 − 6x3 = 2.
1 2 −3 1 R2 ←R2 −2R1 1 2 −3 1
[A|b] = −−−−−−−→
2 4 −6 2 0 0 0 0
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 31 / 135
II. Gaussian Elimination (Forward Elimination) IV
Method for Solving Ax = b and Identifying Solution Set
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 32 / 135
Cramer’s Rule: Theory and Detailed Example I
Determinant-Based Solution for Non-Singular Systems
det(Ai )
xi = for i = 1, 2, . . . , n
det(A)
where Ai is the matrix formed by replacing the i-th column of A with the constant vector b.
3.2. Proof of Cramer’s Rule (Complete Derivation)
Since det(A) 6= 0, the unique solution is x = A−1 b. We use the Adjoint Formula for the inverse:
1 1
A−1 = adj(A) =⇒ x = adj(A)b
det(A) det(A)
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 33 / 135
Cramer’s Rule: Theory and Detailed Example II
Determinant-Based Solution for Non-Singular Systems
By the definition of the adjoint matrix, (adj(A))ij = Cji (the cofactor of aji ):
n
1 X
(x)i = bj Cji
det(A)
j=1
Now, consider det(Ai ). Expanding det(Ai ) along the i-th column (which is b), we get
P n 0 0
j=1 (Ai )ji Cji . Since (Ai )ji = bj and the cofactors Cji are identical to Cji (because cofactors do not
involve the column being expanded), we have:
n
X
det(Ai ) = bj Cji
j=1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 34 / 135
Cramer’s Rule: Theory and Detailed Example III
Determinant-Based Solution for Non-Singular Systems
det(Ai )
xi =
det(A)
Steps:
1 Calculate det(A): det(A) = (2)(3) − (1)(−1) = 6 − (−1) = 7.
7 1
2 Calculate det(A1 ): A1 = =⇒ det(A1 ) = (7)(3) − (1)(0) = 21.
0 3
2 7
3 Calculate det(A2 ): A2 = =⇒ det(A2 ) = (2)(0) − (7)(−1) = 7.
−1 0
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 35 / 135
Cramer’s Rule: Theory and Detailed Example IV
Determinant-Based Solution for Non-Singular Systems
Solution:
det(A1 ) 21 det(A2 ) 7
x1 = = = 3, x2 = = =1
det(A) 7 det(A) 7
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 36 / 135
Gauss–Jordan Elimination for Matrix Inverse I
Finding A−1 via Reduced Row Echelon Form (RREF)
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 37 / 135
Gauss–Jordan Elimination for Matrix Inverse II
Finding A−1 via Reduced Row Echelon Form (RREF)
4 Consequently, the right-hand side is EI = A−1 I = A−1 , proving that the final augmented form is
[I|A−1 ].
4.2. Complete Worked Example:
Gauss–Jordan
(3x3)
1 0 3
Problem: Find A−1 for A = 2 1 7.
−3 2 0
Step 1: Form [A|I]
1 0 3 1 0 0
2 1 7 0 1 0
−3 2 0 0 0 1
Step 2-3: Forward Pass (Gaussian Elimination to REF)
R2 ← R2 − 2R1 , R3 ← R3 + 3R1
R3 ← R3 − 2R2
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 38 / 135
Gauss–Jordan Elimination for Matrix Inverse III
Finding A−1 via Reduced Row Echelon Form (RREF)
1 0 3 1 0 0
0 1 1 −2 1 0
0 0 7 7 −2 1
Step 4: Normalize and Backward Pass (RREF)
R3 ← 17 R3 (Normalizing the last pivot to 1)
1 0 3 1 0 0
0 1 1 −2 1 0
0 0 1 1 −2/7 1/7
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 39 / 135
Gauss–Jordan Elimination for Matrix Inverse IV
Finding A−1 via Reduced Row Echelon Form (RREF)
1 0 0 −2 6/7 −3/7
0 1 0 −3 9/7 −1/7
0 0 1 1 −2/7 1/7
Conclusion: The RREF of A is I, and the inverse is:
−2 6/7 −3/7
A−1 = −3 9/7 −1/7
1 −2/7 1/7
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 40 / 135
Gauss–Jordan Elimination for Solving Ax = b I
Solving Linear Systems and Characterizing All Solution Types via RREF
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 41 / 135
Gauss–Jordan Elimination for Solving Ax = b II
Solving Linear Systems and Characterizing All Solution Types via RREF
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 42 / 135
Gauss–Jordan Elimination for Solving Ax = b III
Solving Linear Systems and Characterizing All Solution Types via RREF
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 43 / 135
Gauss–Jordan Elimination for Solving Ax = b IV
Solving Linear Systems and Characterizing All Solution Types via RREF
The parametric vector form is derived by separating constants and parameter multiples:
k1 −d1
x = k2 + t −d2 (Infinitely many solutions)
0 1
3 No Solution (Inconsistent)
Conditions: The number of pivot columns in A is strictly less than the number of pivot columns in
[A|b]. rank(A) < rank([A|b]).
Interpretation: The system is inconsistent because the final row operations yield a mathematical
contradiction.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 44 / 135
Gauss–Jordan Elimination for Solving Ax = b V
Solving Linear Systems and Characterizing All Solution Types via RREF
RREF Form: The RREF contains a zero row in A with a non − zero entry in the constant column b.
Example (3 × 3):
1 0 ∗ ∗
0 1 ∗ ∗ where c 6= 0
0 0 0 c
The last row explicitly translates to 0x1 + 0x2 + 0x3 = c. Since c 6= 0, this is the statement 0 = c,
which is impossible, meaning the system has no solution.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 45 / 135
LU Decomposition and System Solving (A = LU) I
Detailed Factorization, PLU Generalization, and Fast System Resolution
Derivation Principle: A = LU is realized by recognizing that the product of the inverses of the
elementary row matrices Ek used in elimination (where Ek · · · E1 A = U) forms the lower triangular
matrix L.
2. The General PLU Factorization (Handling Pivoting/Row Exchanges)
Necessity of Permutation: When a pivot element uii is zero, A = LU fails, and a row swap
(pivoting) is necessary for elimination to continue.
PLU Form: The most general and robust factorization, which exists for any non-singular matrix
A, is:
PA = LU
P is a Permutation Matrix (formed by rearranging the rows of I). It records the necessary row
exchanges to bring non-zero pivots into the diagonal position, ensuring all leading principal minors
of PA are non-singular.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 47 / 135
LU Decomposition and System Solving (A = LU) III
Detailed Factorization, PLU Generalization, and Fast System Resolution
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 48 / 135
LU Decomposition and System Solving (A = LU) IV
Detailed Factorization, PLU Generalization, and Fast System Resolution
1 Elimination (Finding U): Apply R2 ← R2 − 2R1 . The multiplier m21 = 2 is stored for L.
2 1 R2 −2R1 2 1
A= −−−−−→ U =
4 7 0 5
2 Construct L: Place the multiplier m21 = 2 in position (2, 1) of the unit lower triangular matrix.
1 0
L=
2 1
3 Verification:
1 0 2 1 (1)(2) + (0)(0) (1)(1) + (0)(5) 2 1
LU = = = =A
2 1 0 5 (2)(2) + (1)(0) (2)(1) + (1)(5) 4 7
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 49 / 135
Cholesky Decomposition (A = LL> ) I
Symmetric Positive Definite Matrices and Recursive Algorithms
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 51 / 135
Cholesky Decomposition (A = LL> ) III
Symmetric Positive Definite Matrices and Recursive Algorithms
This step requires taking the square root, which confirms the numerical requirement for SPD. The
sum term represents the contribution from the previously calculated entries in the j-th row of L.
2 Calculate Off-Diagonal Entries (lij for i > j):
j−1
!
1 X
lij = aij − lik ljk
ljj
k=1
This step expresses the off-diagonal entries as a difference between the matrix entry aij and the dot
product of the j-th column and i-th row of the already calculated part of L, normalized by the
diagonal entry ljj .
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 52 / 135
Cholesky Decomposition (A = LL> ) IV
Symmetric Positive Definite Matrices and Recursive Algorithms
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 53 / 135
The Matrix Eigenvalue Problem: Fundamentals (Expanded) I
Determining Eigenvalues, Eigenvectors, Eigenspaces, and Related Theorems
Eλ = Null(A − λI)
Since it is a Null Space, it is a subspace of Rn . The basis vectors for Eλ are the linearly
independent eigenvectors.
Algebraic Multiplicity (AM): The number of times λ appears as a root of the characteristic
polynomial p(λ). It dictates the maximum number of independent eigenvectors associated with λ.
Geometric Multiplicity (GM): The dimension of the Eigenspace Eλ , which is the number of
linearly independent eigenvectors associated with λ. It is calculated using the Rank-Nullity
Theorem:
GM(λ) = dim(Null(A − λI)) = n − rank(A − λI)
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 56 / 135
The Matrix Eigenvalue Problem: Fundamentals (Expanded) IV
Determining Eigenvalues, Eigenvectors, Eigenspaces, and Related Theorems
p(A) = 0
Triangular Matrices: The eigenvalues of a triangular matrix (upper or lower) are simply the
entries on its main diagonal.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 57 / 135
Example: Full Eigenvalue and Eigenvector Calculation I
Detailed Step-by-Step Procedure for a 2 × 2 Matrix
2 1
Problem: Find the eigenvalues and a basis for the eigenspaces of A = .
1 2
Step 1: Determine Eigenvalues using the Characteristic Equation
Form the matrix (A − λI) and set its determinant to zero:
2−λ 1
det(A − λI) = det
1 2−λ
(λ2 − 4λ + 4) − 1 = 0 =⇒ λ2 − 4λ + 3 = 0
−x1 + x2 = 0 and x1 − x2 = 0
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 59 / 135
Example: Full Eigenvalue and Eigenvector Calculation III
Detailed Step-by-Step Procedure for a 2 × 2 Matrix
x1 + x2 = 0
= −x2 . Letx2 =
This reduces to x1 s (free variable). Then x1 = −s. The general form of the
−s −1
eigenvector is x = =s .
s 1
−1
Eigenspace E1 basis: x2 = . (GM(λ2 ) = 1).
1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 60 / 135
Diagonalization and Eigenbases I
Conditions for Diagonalizability and The Diagonalization Process
1. Diagonalization Principle
Goal: To find a factorization A = PDP−1 such that D is a diagonal matrix containing the
eigenvalues of A.
The Relationship: Multiplying by P−1 on the left gives the similarity transformation:
D = P−1 AP
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 61 / 135
Diagonalization and Eigenbases II
Conditions for Diagonalizability and The Diagonalization Process
Theorem 2 (Multiplicity Test): A is diagonalizable if and only if GM(λ) = AM(λ) for every
eigenvalue λ of A.
Theorem 3 (Distinct Eigenvalues): If an n × n matrix A has n distinct eigenvalues, then A is
automatically diagonalizable (since the eigenvectors are guaranteed to be linearly independent).
3. Special Matrix Properties
Symmetric Matrix (A = A> ):
1 All eigenvalues are real. (No complex eigenvalues).
2 Eigenvectors corresponding to distinct eigenvalues are orthogonal.
3 The matrix is always diagonalizable.
Orthogonal Matrix (Q> = Q−1 ):
1 Eigenvalues always have a magnitude of one: |λ| = 1.
2 The matrix preserves the length of a vector (kQxk = kxk) and the angle between two vectors.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 62 / 135
Diagonalization and Eigenbases III
Conditions for Diagonalizability and The Diagonalization Process
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 63 / 135
Quadratic Forms and Principal Axes (Comprehensive) I
Analyzing Second-Degree Polynomials via Orthogonal Diagonalization
Q(x) = x> Ax
where A is a Symmetric Matrix (A = A> ). The diagonal entries of A are the coefficients of the
squared terms (aii ), and the off-diagonal entries are half the coefficients of the mixed terms
(aij = aji = 12 · coefficient of xi xj ).
Example Construction (n = 2): For Q(x) = 5x12 + 3x22 + 4x1 x2 :
5 2 1
A= (Note: a12 = a21 = (4) = 2)
2 3 2
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 64 / 135
Quadratic Forms and Principal Axes (Comprehensive) II
Analyzing Second-Degree Polynomials via Orthogonal Diagonalization
D = P> AP
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 65 / 135
Quadratic Forms and Principal Axes (Comprehensive) III
Analyzing Second-Degree Polynomials via Orthogonal Diagonalization
Principal Axes: The new coordinate axes (y1 , y2 , . . . , yn ) are called the Principal Axes. These
axes are aligned with the eigenvectors (columns of P) of the matrix A. This transformation P
corresponds to a pure rotation or reflection of the coordinate system, rotating the axes to align
with the shape’s natural symmetry.
3. Classification of Quadratic Forms (Definiteness)
The nature of the quadratic form (and the surface it defines, e.g., a conic section or quadric surface) is
entirely determined by the signs of the eigenvalues (λi ) of the associated symmetric matrix A.
Alternative Test (Leading Principal Minors): For a test that avoids finding eigenvalues (often
complex), one can use the sign pattern of the Leading Principal Minors (determinants of the
top-left square submatrices Ak ):
1 Positive Definite: det(Ak ) > 0 for all k = 1, . . . , n.
2 Negative Definite: The signs of det(Ak ) alternate, starting with negative: det(A1 ) < 0,
det(A2 ) > 0, det(A3 ) < 0, and so on.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 66 / 135
Quadratic Forms and Principal Axes (Comprehensive) IV
Analyzing Second-Degree Polynomials via Orthogonal Diagonalization
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 67 / 135
Gram-Schmidt Process (Expanded and Detailed Example) I
Constructing Orthonormal Bases and the Projection Formula
v1 = a1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 68 / 135
Gram-Schmidt Process (Expanded and Detailed Example) II
Constructing Orthonormal Bases and the Projection Formula
2 Orthogonalization (General Step): For each subsequent vector ak , subtract its projection onto
the subspace spanned by the previously found orthogonal vectors {v1 , . . . , vk−1 }:
k−1
X
vk = ak − projvj (ak )
j=1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 69 / 135
Gram-Schmidt Process (Expanded and Detailed Example) III
Constructing Orthonormal Bases and the Projection Formula
3. Worked Example (n = 2)
1 2
Problem: Orthonormalize the basis vectors a1 = 1 and a2 = 1.
0 1
1 Step 1: Orthogonal Vector v1
1
v1 = a1 = 1
0
2 Step 2: Orthogonal Vector v2 Calculate the projection of a2 onto v1 :
a2 · v1
projv1 (a2 ) = v1
||v1 ||2
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 70 / 135
Gram-Schmidt Process (Expanded and Detailed Example) IV
Constructing Orthonormal Bases and the Projection Formula
1 3/2
3 3 1 = 3/2.
Projection: projv1 (a2 ) = v
2 1
= 2
0 0
Subtract the projection from a2 :
2 3/2 1/2
v2 = a2 − projv1 (a2 ) = 1 − 3/2 = −1/2
1 0 1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 71 / 135
Gram-Schmidt Process (Expanded and Detailed Example) V
Constructing Orthonormal Bases and the Projection Formula
For q2 :
||v2 ||2 = (1/2)2 + (−1/2)2 + 12 = 1/4 + 1/4 + 1 = 6/4 = 3/2
√ √
1/2 1
p 3 v2 2 1
||v2 || = 3/2 = √ =⇒ q2 = =√ −1/2 = √ −1
2 ||v2 || 3 6
1 2
Final Orthonormal Basis: {q1 , q2 }
4. QR Factorization Connection
The Gram-Schmidt process leads directly to the QR Factorization: A = QR.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 72 / 135
Gram-Schmidt Process (Expanded and Detailed Example) VI
Constructing Orthonormal Bases and the Projection Formula
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 73 / 135
QR Factorization (A = QR) I
Decomposition via Orthonormal Columns and Applications
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 74 / 135
QR Factorization (A = QR) II
Decomposition via Orthonormal Columns and Applications
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 75 / 135
QR Factorization (A = QR) III
Decomposition via Orthonormal Columns and Applications
Since Q> Q = I, this simplifies to R> Rx = R> Q> b. Since R is full rank, R> is invertible, allowing
us to simplify further:
Rx = Q> b
This final system is solved quickly and stably using Back Substitution, making QR the preferred
numerical method for least-squares.
2. Eigenvalue Computation (The QR Algorithm): Repeatedly applying the QR factorization
iteratively, Ak = Qk Rk and setting Ak+1 = Rk Qk , causes the sequence of matrices Ak to
converge to a triangular (or block-triangular) form, from which the eigenvalues can be read
directly from the diagonal. This is one of the most stable and widely used methods for finding all
eigenvalues of a general matrix.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 76 / 135
Cayley Hamilton Theorem (Statement and Explicit Applications) I
Matrix Polynomials and The Power to Invert and Simplify
1. Formal Statement
Statement: Every square matrix A satisfies its own characteristic equation. This means that if
we substitute the matrix A for the scalar variable λ in the characteristic polynomial p(λ), the result
is the zero matrix.
Characteristic Polynomial: For an n × n matrix A, the characteristic polynomial p(λ) is:
Theoretical Significance: The theorem establishes a fundamental link between the algebraic
properties (eigenvalues) and the matrix structure, showing that the matrix is implicitly ”defined” by
its own eigenvalues.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 77 / 135
Cayley Hamilton Theorem (Statement and Explicit Applications)
II
Matrix Polynomials and The Power to Invert and Simplify
Completeness Note: This method gives A−1 as a linear combination of integer powers of A
(from A0 = I up to An−1 ).
3. Application 2: Computing High Powers of A (Ak )
The Cayley-Hamilton equation allows us to express the highest power, An , as a linear combination
of lower powers (I, A, . . . , An−1 ).
By multiplying this relationship by A, we can express An+1 in terms of powers up to An , and then
substitute the expression for An to reduce the expression back down to powers of An−1 or less.
This means any power Ak (for k ≥ n) can be efficiently computed as a matrix polynomial of
degree at most n − 1:
Ak = dn−1 An−1 + · · · + d1 A + d0 I
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 79 / 135
Singular Value Decomposition (SVD) (Comprehensive) I
The Most General Factorization for Any Matrix and Its Geometric Meaning
A = UΣV>
U (m × m): The Left Singular Vectors. An Orthogonal Matrix (U> U = I). Its columns form
an orthonormal basis for the Column Space and Null Space of A> .
V (n × n): The Right Singular Vectors. An Orthogonal Matrix (V> V = I). Its columns form
an orthonormal basis for the Row Space and Null Space of A.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 80 / 135
Singular Value Decomposition (SVD) (Comprehensive) II
The Most General Factorization for Any Matrix and Its Geometric Meaning
Σ (m × n): A generalized diagonal matrix. Its non-zero diagonal entries are the Singular Values
(σi ), arranged in non-increasing order:
σ1 0
σ2
Σ=
. ..
0 σr
0 0
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 81 / 135
Singular Value Decomposition (SVD) (Comprehensive) III
The Most General Factorization for Any Matrix and Its Geometric Meaning
Connecting Bases:
1 The columns of V (Right Singular Vectors) are the Eigenvectors of A> A.
2 The columns of U (Left Singular Vectors) are the Eigenvectors of AA> .
3. The Four Fundamental Subspaces
SVD provides canonical orthonormal bases for all four fundamental subspaces associated with A. Let r
be the number of non-zero singular values.
4. Key Applications
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 82 / 135
Singular Value Decomposition (SVD) (Comprehensive) IV
The Most General Factorization for Any Matrix and Its Geometric Meaning
1 Rank and Structure: The Rank of A is exactly r , the number of non-zero singular values
(σi > 0).
2 Pseudo − inverse (A† ): SVD allows the construction of the Moore-Penrose Pseudoinverse, which
generalizes the matrix inverse to non-square or singular matrices:
A† = VΣ† U>
where Σ† is formed by taking the reciprocal of the non-zero singular values (σi → 1/σi ) and
transposing. This is crucial for solving general Least Squares problems (Ax ≈ b).
3 Low − Rank Approximation: The Eckart − Young Theorem states that the best rank-k
approximation (Ak ) to A is achieved by retaining only the first k terms in the outer product
expansion of A. This is the foundation for Data Compression (e.g., image and data processing):
r
X k
X
A= σi ui vi> =⇒ Ak = σi ui vi> (k < r )
i=1 i=1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 83 / 135
Calculating the Singular Value Decomposition (A = UΣV> ) I
Two Primary Methods for SVD Construction
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 86 / 135
Calculating the Singular Value Decomposition (A = UΣV> ) IV
Two Primary Methods for SVD Construction
√
For σ1 = 2:
1 1 1 1 1 1 1 2 1
u1 = Av1 = √ √ = =
σ1 2 0 0 2 1 2 0 0
For u2 (Orthogonal complement / Null Space of A> ): We need a unit vector orthogonal to u1 .
0
u2 =
1
1 0
U=
0 1
Final Check:
√ √
> 1 0 2 0 1 1 1 2 0 1 1 1 1 1
UΣV = √ = √ = =A
0 1 0 0 2 1 −1 0 0 2 1 −1 0 0
Principle: The numerical computation of SVD (as used in software like MATLAB or NumPy)
typically uses a stable, iterative process, most famously an adaptation of the QR Algorithm or
variations of the Jacobi Method.
Initial Reduction: First, the matrix A is usually reduced to a bidiagonal matrix B using
Householder reflections: A = U0 BV0> .
Iteration: The QR algorithm is then applied to B> B (or implicitly to B) to find its
eigenvalues/singular values. This iterative process converges to the final diagonal matrix Σ.
Advantage: While complex for manual work, this method is significantly
more numerically stable and faster for large matrices than the explicit eigenvalue method
(Method 1), which involves calculating A> A and its entire eigen-decomposition.
Note: A detailed worked example of the full iterative QR algorithm is beyond the scope of a
presentation slide and is generally reserved for specialized numerical analysis courses.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 88 / 135
Student Exercises (1-9): Rank, Systems, and Subspaces I
1 2 1
Q1. Rank and Nullity Find the rank and nullity of A = 2 4 2. Solution Q1:
0 1 1
1 2 1 1 2 1
R2 ←R2 −2R1 R2 ↔R3
A −− −−−−−→ 0 0 0 −− −−→ 0 1 1. Rank = 2 (2 pivots). Nullity = 3 − 2 = 1.
0 1 1 0 0 0
—
1 2 3
Q2. System Consistency Is Ax = b consistent for A = and b = ? Solution Q2:
2 4 5
1 2 | 3 R2 ←R2 −2R1 1 2 | 3
Augmented matrix: −−−−−−−→ . The last row 0 = −1 is a
2 4 | 5 0 0 | −1
contradiction. The system is inconsistent.
—
1 2
Q3. Invertibility Determine if B = is invertible. Solution Q3: Invertible if det(B) 6= 0.
3 4
det(B) = (1)(4) − (2)(3) = 4 − 6 = −2. Since det(B) 6= 0, B is invertible.
—
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 89 / 135
Student Exercises (1-9): Rank, Systems, and Subspaces II
1 0 1
Q4. Basis for Column Space Find a basis for Col(C) where C = 2 1 3. Solution Q4:
3 1 4
1 0 1
RREF
C −−−→ 0 1 1. Pivots are in columns 1 and 2. Basis for Col(C) are the pivot columns of C:
0 0 0
1 0
2 , 1 .
3 1
—
1 0
Q5. Linear Independence Are v1 = and v2 = linearly independent? Solution Q5: Yes.
0 1
1 0
The determinant of the matrix is 1, which is non-zero. They are linearly independent.
0 1
—
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 90 / 135
Student Exercises (1-9): Rank, Systems, and Subspaces III
a
Q6. Subspace Check Is the set of all vectors in R2 of the form a subspace of R2 ? Solution Q6:
0
0 a b a+b
Yes. 1. Zero vector is included (a = 0). 2. Closed under addition: + = . 3.
0 0 0 0
a ca
Closed under scalar multiplication: c = . It is a subspace.
0 0
—
2 1
Q7. Determinant Calculation Calculate det . Solution Q7:
4 3
det = (2)(3) − (1)(4) = 6 − 4 = 2.
—
1 2 4 0
Q8. Matrix Multiplication Compute . Solution Q8:
0 3 1 1
(1)(4) + (2)(1) (1)(0) + (2)(1) 6 2
= .
(0)(4) + (3)(1) (0)(0) + (3)(1) 3 3
—
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 91 / 135
Student Exercises (1-9): Rank, Systems, and Subspaces IV
1 2
Q9. Transpose Property If A = , find det(A> ). Solution Q9: det(A> ) = det(A).
3 4
det(A) = 1(4) − 2(3) = −2. det(A> ) = −2.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 92 / 135
Student Exercises (10-18): Eigenvalues and Diagonalization I
2 0
Q10. Characteristic Polynomial Find the characteristic polynomial p(λ) for A = . Solution
0 5
2−λ 0
Q10: p(λ) = det(A − λI) = det = (2 − λ)(5 − λ) = λ2 − 7λ + 10.
0 5−λ
—
4 7
Q11. Eigenvalues (Triangular Matrix) Find the eigenvalues of B = . Solution Q11: For a
0 3
triangular matrix, eigenvalues are the diagonal entries. λ1 = 4, λ2 = 3.
—
1 3 1
Q12. Eigenvector Check Is x = an eigenvector of C = ? If so, what is the eigenvalue?
1 1 3
3 1 1 4 1
Solution Q12: Cx = = =4 . Yes, x is an eigenvector with eigenvalue λ = 4.
1 3 1 4 1
—
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 93 / 135
Student Exercises (10-18): Eigenvalues and Diagonalization II
5 0
Q13. Eigenspace Basis Given λ = 5 is an eigenvalue of D = , find a basis for the eigenspace
0 5
0 0
E5 . Solution Q13: (D − 5I)x = 0 =⇒ x = 0. Both x1 and x2 are free.
0 0
1 0 1 0
x = x1 + x2 . Basis for E5 : , .
0 1 0 1
—
1 1
Q14. Diagonalizability Check Is E = diagonalizable? Solution Q14: Eigenvalues are λ1 = 1
0 1
0 1
(AM=2). Eigenspace E1 : x = 0 =⇒ x2 = 0. x1 is free. GM(λ1 )=1. Since GM(λ) < AM(λ),
0 0
E is not diagonalizable.
—
Q15. Trace and Eigenvalues If F has eigenvalues λ1 = 1, λ2 = 3, λ3 = 5, what is tr(F)? Solution
Q15: The Trace is the sum of the eigenvalues. tr(F) = 1 + 3 + 5 = 9.
—
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 94 / 135
Student Exercises (10-18): Eigenvalues and Diagonalization III
Q16. Determinant and Eigenvalues If G has eigenvalues λ1 = 2, λ2 = −1, what is det(G)? Solution
Q16: The Determinant is the product of the eigenvalues. det(G) = (2)(−1) = −2.
—
Q17. Similarity Transformation If H is similar to K, what is the relationship between their
characteristic polynomials? Solution Q17: Similar matrices share the same characteristic polynomial
and therefore the same eigenvalues.
—
Q18. Power of a Diagonalizable Matrix If A = PDP−1 , compute A3 . Solution Q18:
A3 = (PDP−1 )(PDP−1 )(PDP−1 ) = PD(P−1 P)D(P−1 P)DP−1 = PD3 P−1 .
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 95 / 135
Student Exercises (19-25): Orthonormal Bases, SVD, and Forms I
1 1
Q19. Gram-Schmidt (Orthogonal Step) For a1 = and a2 = , find the orthogonal vector
0 1
1 a2 ·v1 2
v2 . Solution Q19: v1 = a1 = . v2 = a2 − ||v 1 ||
2 v1 . a2 · v1 = 1. ||v1 || = 1.
0
1 1 1 0
v2 = −1 = .
1 0 1
—
cos θ − sin θ
Q20. Orthogonal Matrix If Q = , compute Q> Q. Solution Q20:
sin θ cos θ
cos2 θ + sin2 θ
> cos θ sin θ cos θ − sin θ − cos θ sin θ + sin θ cos θ
Q Q= = =
− sin θ cos θ sin θ cos θ − sin θ cos θ + cos θ sin θ sin2 θ + cos2 θ
1 0
= I.
0 1
—
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 96 / 135
Student Exercises (19-25): Orthonormal Bases, SVD, and Forms II
2 2
Q21. Quadratic Form Classification the quadratic form Q(x1 , x2 ) = x1 + 4x2 . Solution
Classify
1 0
Q21: The associated matrix is A = . Eigenvalues are λ1 = 1, λ2 = 4. Since both are strictly
0 4
positive, the form is Positive Definite.
—
Q22. Quadratic Form Matrix Write the symmetric matrix A for Q(x1 , x2 ) = 2x12 + 6x1 x2 + 5x22 .
Solution Q22:Diagonal entries are 2 and 5. Off-diagonal entries are half of the cross-term coefficient
2 3
(6/2=3). A = .
3 5
—
Q23. SVD: Singular Value Source The singular values of A are σi . What are the eigenvalues of
A> A? Solution Q23: The eigenvalues of A> A are the squares of the singular values: λi = σi2 .
—
Q24. SVD and Rank If A has singular values {5, 3, 0.1, 0, 0}, what is the rank of A? Solution Q24:
The rank is the number of non − zero singular values. Rank = 3.
—
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 97 / 135
Student Exercises (19-25): Orthonormal Bases, SVD, and Forms
III
Q25. Cayley-Hamilton (Application) Given p(λ) = λ2 − 3λ + 2 for A, write the equation to solve for
A−1 . Solution Q25: p(A) = A2 − 3A + 2I = 0. 2I = −A2 + 3A = A(−A + 3I). Multiplying by A−1 :
A−1 (2I) = −A + 3I. A−1 = 12 (3I − A).
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 98 / 135
Unsolved Practice Exercises (1-25) I
1 3
Q1. Compute the Null Space basis for A = .
2 6
1 0
Q2. For A = , find A−1 .
0 2
1 0 2
Q3. What is the dimension of the subspace spanned by v1 = 0 , v2 = 1 , v3 = 2?
0 0 0
>
Q4. If A is 3 × 5 with rank(A) = 3, what is the dimensionof the Left
Null Space (Null(A ))?
0 1 0
Q5. Calculate the determinant of the permutation matrix 0 0 1.
1 0 0
1 0
Q6. Find the least − squares solution to 1 x = 1.
1 2
1 3
Q7. Find the eigenvalues of B = .
0 4
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 99 / 135
Unsolved Practice Exercises (1-25) II
0 1
Q8. For C = , find the eigenvector corresponding to λ = 4.
0
4
5 0 0
Q9. Is the matrix D = 0 5 1 diagonalizable?
0 0 5
−1 2 0
Q10. If A = PDP with D = , compute A2 .
0 −1
Q11. The matrix E has tr(E) = 5 and det(E) = 6. Find
its eigenvalues.
1 0
Q12. Apply the Gram − Schmidt process to a1 = and a2 = to find q2 .
0 2
Q13. Write the symmetric matrix A for Q(x1 , x2 ) = 7x12 − 10x1 x2 + x22 .
2 2
Q14. form Q(x1 , x2 ) = −x1 − 2x2 .
Classify thequadratic
1 0
Q15. Given A = , find the Singular Values.
0 0
Q16. If A is a 4 × 4 matrix and rank(A) = 3, how many zero singular
values does A have?
3 −4
Q17. What is the inverse of the orthogonal matrix P = 51 ?
4 3
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 100 / 135
Unsolved Practice Exercises (1-25) III
Q18. If A is invertible, what is the relationship between the eigenvalues of A and A−1 ?
Q19. Use the Cayley-Hamilton theorem to simplify A3 if the characteristic polynomial is
p(λ) = λ2 − 2λ + 1.
1 1 1
Q20. Find the Nullity of F = 1 1 1.
1 1 1
1 2
Q21. Find a non-zero vector x in the column space of G = .
1 2
1 0
Q22. State the dimension of the Row Space of H = 0 1.
0 0
Q23. If A is a 2 × 2 matrix with det(A) = 5 and det(B) = 2, compute det(2AB> ).
Q24. Given the SVD A = UΣV> , what is the dimension of the Null Space of A if Σ has 2 non-zero
singular values, U is 3 × 3, and V is 3 × 3?
1 1
Q25. Find the orthogonal projection of b = onto the line spanned by a = .
0 1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 101 / 135
Cholesky Decomposition: Statement and Existence I
A = LL>
with L lower-triangular with positive diagonal entries if and only if A is positive definite (i.e. x > Ax > 0
for all x 6= 0).
Proof:
⇒ Suppose A = LL> with L lower triangular and diag(L) > 0. For any x 6= 0,
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 102 / 135
Cholesky Decomposition: Statement and Existence II
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 103 / 135
Cholesky Decomposition: Statement and Existence III
We must show the radicand is positive. That radicand equals the Schur complement of
the (j − 1) × (j − 1) leading principal submatrix of A, which is positive because leading
principal minors of an SPD matrix are positive. Thus ljj > 0. Then for i > j,
j−1
1 X
lij = aij − lik ljk .
ljj
k=1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 104 / 135
Cholesky–Banachiewicz Algorithm and Worked Example I
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 105 / 135
Cholesky–Banachiewicz Algorithm and Worked Example II
12 −16
l21 = = 6, l31 = = −8.
2 2
p √
l22 = 37 − 62 = 1 = 1.
−43 − (−8)(6) −43 + 48
l32 = = = 5.
1 1
p √ √
l33 = 98 − (−8)2 − 52 = 98 − 64 − 25 = 9 = 3.
So
2 0 0
L= 6 1 0 , LL> = A.
−8 5 3
Complexity Note: Cholesky requires about n3 /3 flops (roughly half of generic LU).
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 106 / 135
Skew-Symmetric Matrices: Definitions and Properties I
A> = −A.
Property 3 Eigenvalues: For real skew-symmetric A, nonzero eigenvalues are purely imaginary and
come in conjugate pairs.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 107 / 135
Skew-Symmetric Matrices: Definitions and Properties II
Proof: Let Ax = λx with x 6= 0 (allow complex λ, x). Then
x ∗ Ax = λx ∗ x,
x ∗ Ax = λx ∗ x,
and
(x ∗ Ax)∗ = x ∗ A∗ x = x ∗ (−A)x = −x ∗ Ax.
Hence x ∗ Ax is purely imaginary (equal to negative of its conjugate). Since x ∗ x > 0, λ must be purely
imaginary. Real entries guarantee conjugate pairs.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 108 / 135
Skew-Symmetric Matrices: Definitions and Properties III
so e A is orthogonal.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 109 / 135
Matrices as Linear Maps Examples in R2 I
A matrix A ∈ R2×2 represents a linear map x 7→ Ax. We analyze via action on unit circle, eigenvectors,
SVD.
Examples:
cos θ − sin θ
Rotation: R(θ) = . Preserves inner products and lengths.
sin θ cos θ
α 0
Scaling: D(α, β) = . Scales axes; eigenvectors are coordinate axes.
0 β
1 k
Shear: H(k) = . Preserves area (det=1) but not lengths/angles.
0 1
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 110 / 135
Matrices as Linear Maps Examples in R2 II
Unit circle → ellipse via SVD: If A = UΣV > , then for x on unit circle x = Vy with ky k = 1, we have
Ax = UΣy ,
so the image is the ellipse {Σy : ky k = 1} whose semi-axes lengths are singular values σi and axes
directions are columns of U.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 111 / 135
SVD and MoorePenrose Pseudoinverse I
SVD Recap: For any m × n matrix A, there exist orthogonal U ∈ Rm×m and V ∈ Rn×n and diagonal
Σ ∈ Rm×n with nonnegative entries (singular values) such that
A = UΣV > .
MoorePenrose pseudoinverse: Define Σ† by replacing each nonzero σi by 1/σi and transposing the
matrix shape. Then
A† = V Σ† U > .
AA† A = A,
A† AA† = A† ,
(AA† )> = AA† ,
(A† A)> = A† A.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 112 / 135
SVD and MoorePenrose Pseudoinverse II
xLS = A† b.
Proof sketch: With SVD A = UΣV > and let y = V > x, c = U > b. Minimizing
kAx − bk2 = kΣy − ck2 decouples per singular component; set yi = ci /σi for σi 6= 0 and yi = 0 when
σi = 0 to obtain minimal norm solution. Then x = Vy = A† b.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 113 / 135
Worked Example: Pseudoinverse and Least Squares I
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 114 / 135
Worked Example: Pseudoinverse and Least Squares II
Concretely,
√
√1
3 ···
√13 · · ·
Σ = 0 , U= 3 ,
0 √1 ···
3
Thus
0
1 1+2
xLS = A† b = (1 1 1) 1 = = 1.
3 3
2
Check residual: AxLS = (1, 1, 1)> · 1 = (1, 1, 1)> and √
residual
kAxLS − bk = k(1, 1, 1) − (0, 1, 2)k = k(1, 0, −1)k = 2 minimal among all x.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 115 / 135
Condition Number, Sensitivity, and Practical Advice I
Definition (2-norm) For invertible A,
σmax (A)
κ2 (A) = kAk2 kA−1 k2 = .
σmin (A)
Why avoid normal equations for least squares: Normal equations solve (A> A)x = A> b. Condition
number squares:
κ2 (A> A) = κ2 (A)2 .
Thus forming A> A worsens conditioning prefer QR or SVD-based solvers.
Practical recommendations:
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 116 / 135
Condition Number, Sensitivity, and Practical Advice II
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 117 / 135
Orthogonal Matrices: Definition and Equivalent Characterizations I
Hence Q −1 = Q > .
Equivalent characterizations:
Columns of Q form an orthonormal basis of Rn .
Rows of Q form an orthonormal basis of Rn .
kQxk2 = kxk2 for all x ∈ Rn (norm-preserving).
(Qx, Qy ) = (x, y ) for all x, y preserves inner products and angles.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 118 / 135
Orthogonal Matrices: Definition and Equivalent Characterizations II
Proof of equivalence:
(Q > Q = I ) ⇐⇒ columns are orthonormal.
If columns {qi } satisfy qi> qj = δij , then for any x,
Conversely, if kQxk = kxk for all x, then (Q > Q − I ) is zero because x > (Q > Q − I )x = 0 for all x.
Hence Q > Q = I .
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 119 / 135
Fundamental Properties and Proofs I
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 120 / 135
Fundamental Properties and Proofs II
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 121 / 135
Geometric Interpretation and Examples I
Geometric interpretation: Orthogonal matrices represent rigid motions rotations and reflections that
preserve:
Euclidean length,
Inner product (angles),
Orientation (if det Q = +1).
Example 1 Rotation in R2 :
cos θ − sin θ
R(θ) = .
sin θ cos θ
Check: R(θ)> R(θ) = I , det R(θ) = +1. Action: Rotates every vector by θ counterclockwise.
Example 2 Reflection in R2 :
1 0
M= .
0 −1
Then M > M = I , det M = −1, reflection across the x-axis.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 122 / 135
Geometric Interpretation and Examples II
where [û]× is the skew-symmetric cross-product matrix. This form links orthogonal matrices to
skew-symmetric generators (via matrix exponentials Q = e [û]× θ ).
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 123 / 135
Orthogonal Matrices in Computation (QR and Stability) I
Householder transformation:
vv >
Q =I −2 , v 6= 0.
v >v
Proof of orthogonality:
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 124 / 135
Orthogonal Matrices in Computation (QR and Stability) II
Example (QR via Householder): To zero out subdiagonal entries of A, apply successive Qi :
Summary: Orthogonal matrices ⇒ preserve geometry and stability crucial in modern numerical linear
algebra.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 125 / 135
Overview: Eigenvalues and Special Matrices
Ax = λx, x 6= 0.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 126 / 135
Symmetric Matrices (A = AT )
Theorem (Spectral Theorem for Real Symmetric Matrices): If A = AT , then:
1 All eigenvalues of A are real.
2 Eigenvectors corresponding to distinct eigenvalues are orthogonal.
3 A can be diagonalized by an orthogonal matrix:
A = QΛQ T , QT Q = I .
Proof (Eigenvalues are real): Let A = AT and Ax = λx. Then
x T Ax = x T (λx) = λ(x T x),
and also
x T Ax = (Ax)T x = (λx)T x = λ(x T x).
Thus λ = λ̄, so λ ∈ R.
Example:
2 1
A= , |A − λI | = (2 − λ)2 − 1 = 0
1 2
⇒ λ1 = 3, λ2 = 1, x1 = (1, 1)T , x2 = (1, −1)T .
The normalized eigenvectors form an orthonormal basis.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 127 / 135
Skew-Symmetric Matrices (AT = −A)
x T Ax = λ, (x T Ax)T = x T AT x = −x T Ax = −λ.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 128 / 135
Orthogonal Matrices (Q T Q = I )
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 129 / 135
Hermitian Matrices (A∗ = A)
Theorem (Spectral Theorem): If A = A∗ , then:
1 All eigenvalues are real.
2 Eigenvectors corresponding to distinct eigenvalues are orthogonal.
3 A is unitarily diagonalizable:
A = UΛU ∗ , U ∗U = I .
Proof: Let Ax = λx. Then
x ∗ Ax = x ∗ (λx) = λx ∗ x,
and since A∗ = A,
(x ∗ Ax)∗ = x ∗ A∗ x = x ∗ Ax = λ̄x ∗ x.
Thus λ = λ̄, implying λ ∈ R.
Example:
2 i
A= ⇒ |A − λI | = (2 − λ)2 − 1 = 0 ⇒ λ = 1, 3.
−i 2
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 130 / 135
Skew-Hermitian Matrices (A∗ = −A)
x ∗ Ax = λx ∗ x, (x ∗ Ax)∗ = x ∗ A∗ x = −x ∗ Ax = −λx ∗ x.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 131 / 135
Unitary Matrices (U ∗ U = I )
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 132 / 135
Positive (Semi)Definite Matrices
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 133 / 135
Summary: Eigenvalue Characteristics of Special Matrices
Observation: All these classes are subsets of normal matrices (A∗ A = AA∗ ), which are exactly those
that are unitarily diagonalizable.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 134 / 135
References and Further Reading
Gene H. Golub and Charles F. Van Loan, Matrix Computations chapters on Cholesky, SVD, and
stability.
Gilbert Strang, Linear Algebra and Its Applications geometric perspective and applications.
Erwin Kreyszig, Advanced Engineering Mathematics introductory chapters for engineering
students.
Lloyd N. Trefethen and David Bau III, Numerical Linear Algebra numerical stability, condition
numbers.
Pravin Chandra (USICT, GGSIPU) UNIT III: Linear Algebra (Foundations and Applications) November 3, 2025 135 / 135