LINEAR ALGEBRA/Student Engineering Notebook
Page 12·notes
ORTHOGONALITY, QR FACTORIZATION & SPECTRAL THEOREM—~26 MIN READ

Partitioned (Block) Matrices and Idempotent Matrices

GATE 2027 DA core: partition matrix and idempotent matrix properties. Orthogonal and projection matrices and quadratic forms are taught in the QR and spectral-theorem lessons and linked here.

“Treat big matrices as grids of smaller ones, and meet the matrices that do the same thing twice.”

1.Partitioned matrices

Draw horizontal and vertical lines through a matrix and each piece becomes a block. A 4×4 matrix can be seen as a 2×2 grid of 2×2 blocks, written M = [A B; C D].

The useful fact is that block matrices multiply exactly like ordinary 2×2 matrices, provided each block product is defined: the top-left block of MN is AE + BG, and so on. Because matrix multiplication does not commute, keep every product in its original order.

Block structure shows up all over data science. Splitting a design matrix into feature groups, writing a covariance matrix as [Σ11 Σ12; Σ21 Σ22] for conditional distributions, and building block-diagonal models for independent sub-problems all rely on it.

2.Determinants and inverses of block matrices

If the lower-left block is zero, the matrix is block upper-triangular, and its determinant is the product of the diagonal blocks' determinants: det[A B; 0 D] = det(A)·det(D). The same holds for block lower-triangular and block diagonal matrices.

For a general [A B; C D] with A invertible, eliminate C using block row operations. What remains in the bottom-right is the Schur complement S = D − C A⁻¹ B, giving det[A B; C D] = det(A)·det(S).

A block diagonal matrix inverts block by block: [A 0; 0 D]⁻¹ = [A⁻¹ 0; 0 D⁻¹].

WORKED NUMERICAL · STUDENT DERIVATION✎ Key Takeaway: Before expanding a big determinant, look for a zero block. It can turn a 4×4 into two 2×2s.

3. Worked example: a 4×4 determinant in two lines

Problem Statement:
Find det(M) for M = [[2,1,5,7],[1,1,3,2],[0,0,3,0],[0,0,4,2]].
Step 1: Spot the blocks

Partition into 2×2 blocks. The lower-left block is all zeros, so M is block upper-triangular.

↳ Result: A = [[2,1],[1,1]], D = [[3,0],[4,2]]
Step 2: Determinants of the diagonal blocks

det(A) = 2·1 − 1·1 and det(D) = 3·2 − 0·4.

↳ Result: det(A) = 1, det(D) = 6
Step 3: Multiply

The off-diagonal block B does not affect the answer.

det(M) = det(A)·det(D)
↳ Result: 6
Final Answer:det(M) = 6.

4.Idempotent matrices

A square matrix P is idempotent if P² = P. Applying it twice does nothing more than applying it once, which is exactly what a projection does: once a vector has been projected, projecting again leaves it where it is.

If Pv = λv, then λv = Pv = P²v = λ²v, so λ² = λ and every eigenvalue is 0 or 1. Idempotent matrices are always diagonalizable, so their rank (the number of eigenvalue-1 directions) equals their trace.

I − P is idempotent too, and P(I − P) = 0. Together they split every vector into a part in the range of P and a part in the null space of P.

An idempotent P is an orthogonal projection exactly when it is symmetric. A non-symmetric idempotent such as [[1,1],[0,0]] still projects onto a line, but along a slanted direction rather than straight down. Orthogonal projection matrices like A(AᵀA)⁻¹Aᵀ are covered in [inner product spaces, Gram-Schmidt and QR](/notes/linear-algebra/inner-product-spaces-gram-schmidt-and-qr-decomposition), and quadratic forms in [symmetric matrices and the spectral theorem](/notes/linear-algebra/symmetric-matrices-spectral-theorem-and-positive-definiteness).

STUDENT PRACTICE · CONCEPT DRILL

Practice

Problem 1 · FOUNDATION

M = [A B; 0 D] where A is 3×3 with det(A) = 2 and D is 2×2 with det(D) = −4. What is det(M)?

Problem 2 · GATE-LEVEL

P is a 5×5 idempotent matrix with trace(P) = 3. What is rank(P)?

Problem 3 · TRICKY

Which statement about P = [[1,1],[0,0]] is true?

Problem 4 · FOUNDATION

If P is idempotent, which of these must also be idempotent?

RAPID REVIEW · NOTEBOOK SUMMARY

One-minute revision

core principle:

“Blocks multiply like numbers (in order). Idempotent: P² = P, eigenvalues 0/1, rank = trace.”

must-remember principles:
  • •det[A B; 0 D] = det A · det D
  • •det[A B; C D] = det A · det(D − CA⁻¹B)
  • •(I − P)² = I − P
  • •Orthogonal projection ⇔ P² = P and Pᵀ = P
critical exam pitfalls:
  • •Blocks don't commute
  • •det of a block matrix is not ad − bc of block determinants
  • •Idempotent need not be symmetric
SOURCE TRANSPARENCY & CITATIONS

Primary Academic References & Exam Sources

Every concept in Notes From a B.Tech Brain is synthesized from authoritative academic texts, seminal peer-reviewed research, verified exam archives, and renowned university lectures.

Primary Academic Texts
Introduction to Linear Algebraby · Block multiplication and elimination by blocks; projections and least squares.
ACADEMIC STANDARD
Official Examination Archives
GATE 2027 DA syllabus↗IIT Madras · Linear Algebra: projection, orthogonal, idempotent and partition matrices and their properties.
GATE CS OFFICIAL
Curated University Lecture Series
MIT 18.06 Linear Algebra (OpenCourseWare)↗MIT OpenCourseWare, Gilbert Strang · Lectures on projections and least squares (projection matrices, P² = P).
LECTURE SERIES