Skip to content
GATEiit

GATE DA · Linear Algebra

Matrices: projection, orthogonal, idempotent and partition matrices and their properties

Special matrices for data science: idempotent and orthogonal projection matrices, orthogonal matrices and block (partitioned) matrices; GATE asks for their eigenvalues, rank, determinant and products.

Before you start

  • Eigenvalues and eigenvectors →

    Most properties here are stated through eigenvalues (0 and 1 for idempotent, modulus 1 for orthogonal).

  • Determinant, rank and projections →

    Rank equals trace for idempotent matrices, and block determinants reduce to smaller determinants.

  • Dot product and orthogonality

    Projections and orthogonal matrices are defined by perpendicular vectors and unit lengths.

This topic comes before: Dimensionality reduction: principal component analysis (PCA), LU decomposition and singular value decomposition (SVD), Multi-layer perceptron and feed-forward neural networks, Quadratic forms, Simple linear regression, multiple linear regression and ridge regression

Concept notes

1. Idempotent matrices

A square matrix A is idempotent if A2=A. Applying it twice does nothing new.

Key properties (all follow from A2=A):

  • Eigenvalues are 0 or 1. If Ax=λx then λx=A2x=λ2x, so λ2=λ.
  • An idempotent matrix is always diagonalisable, so rank⁡(A)=tr⁡(A) (the number of eigenvalues equal to 1). This is the most used fact in GATE.
  • I−A is also idempotent, and rank⁡(A)+rank⁡(I−A)=n.
  • det⁡A is 0 or 1. The only invertible idempotent matrix is I: multiply A2=A by A−1.
  • A(I−A)=0: the column space of I−A lies in the null space of A.
  • Ak=A for every k≥1, so (I+A)k=I+(2k−1)A.

Examples: I, 0, and . The last two are idempotent but not symmetric; they are oblique projections (they project along a direction that is not perpendicular).

2. Orthogonal projection matrices

An orthogonal projection matrix P is idempotent and symmetric: P2=P=PT. It sends b to the nearest point p=Pb in a subspace, and the error e=b−p is perpendicular to that subspace.

  • Onto a line through a: P=aaTaTa, so Pb=aTbaTa a. Rank 1.
  • Onto the column space of A (independent columns): P=A(ATA)−1AT. This is the matrix behind least squares: x^=(ATA)−1ATb and p=Ax^.
  • Orthonormal columns Q: P=QQT.
  • I−P projects onto the orthogonal complement.

Facts: eigenvalues 0 and 1; rank⁡P=tr⁡P= dimension of the subspace; det⁡P=0 unless P=I; ∥Pb∥≤∥b∥.

Idempotent Orthogonal projection
Condition A2=A P2=P=PT
Error direction any complement perpendicular
Eigenvalues 0, 1 0, 1
bap = Pbe = b − pline through a = C(A)
Projecting b onto the line through a: the error e is perpendicular to a

3. Orthogonal matrices

A square matrix Q is orthogonal if QTQ=QQT=I, that is Q−1=QT. Equivalently, its columns (and its rows) are orthonormal: unit length and mutually perpendicular.

Properties:

  • Preserves lengths and angles: ∥Qx∥=∥x∥ and (Qx)T(Qy)=xTy.
  • det⁡Q=±1 (from det⁡(QT)det⁡(Q)=1). +1 is a rotation, −1 includes a reflection.
  • Every eigenvalue has ∣λ∣=1; a real eigenvalue is +1 or −1.
  • Products, inverses and transposes of orthogonal matrices are orthogonal. Sums and scalar multiples (other than ±Q) are not.
  • Solving Qx=b needs no elimination: x=QTb.

Standard examples:

  • Rotation in the plane: , determinant 1.
  • Permutation matrices: rows of I reordered.
  • Householder reflection: H=I−2uuTuTu. It is symmetric and orthogonal, so H2=I. It reflects across the plane perpendicular to u, with eigenvalue −1 once and +1 (n−1 times), so det⁡H=−1 and tr⁡H=n−2.

Note the link: if P is an orthogonal projection, I−2P is a symmetric orthogonal matrix (a reflection).

4. Partitioned (block) matrices

A partitioned matrix splits a matrix into sub-matrices (blocks). Blocks multiply like entries, provided the inner sizes match (the column split of the first matches the row split of the second): Keep the order inside each product; blocks do not commute.

Determinants (with A, D square):

  • Block triangular: . The same holds for block diagonal and lower block triangular.
  • General case with A invertible: . The matrix D−CA−1B is the Schur complement of A.
  • Warning: in general.

Inverses:

  • Block diagonal: .
  • Block upper triangular: .

The eigenvalues of a block triangular matrix are those of A together with those of D, and its rank is at least rank⁡A+rank⁡D.

Column partitions also explain products: AB=∑k(column k of A)(row k of B), a sum of rank-one matrices.

Formulas to remember

Idempotent
A2=A  ⇒  λ∈{0,1}, rank⁡A=tr⁡A
Projection onto a line
P=aaTaTa,Pb=aTbaTa a
Projection onto a column spaceColumns of A independent; P2=P=PT
P=A(ATA)−1AT
Orthogonal matrix
QTQ=I,Q−1=QT,det⁡Q=±1
Householder reflection
H=I−2uuTuTu,H2=I
Block triangular determinant
Schur complementA invertible

Common mistakes

  • Assuming every idempotent matrix is symmetric: is idempotent but is an oblique, not orthogonal, projection.
  • Using aaT without dividing by aTa; the projection matrix must satisfy P2=P.
  • Writing the block determinant as det⁡Adet⁡D−det⁡Bdet⁡C; that is wrong in general. Use block triangular form or the Schur complement.
  • Thinking an orthogonal matrix has orthogonal but not unit columns; the columns must be orthonormal, otherwise QTQ is only diagonal.
  • Swapping the order inside block products: the (1,2) block of the product is AF+BH, not FA+HB.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Project a vector onto a line

numerical

Find the orthogonal projection of b=(3,0,3) onto the line through a=(1,2,2), the projection matrix P, and check that the error is perpendicular to a.

  1. Step 1: Compute $\mathbf{a}^T\mathbf{b}$ and $\mathbf{a}^T\mathbf{a}$.

    Try it on paper first.

Example 2: An idempotent matrix that is not a projection onto a perpendicular

numerical

Let . Show A is idempotent, find its rank and eigenvalues, and say whether it is an orthogonal projection.

  1. Step 1: Square $A$.

    Try it on paper first.

Example 3: Complete an orthogonal matrix

numerical

is orthogonal. Find the third row, and find Q−1.

  1. Step 1: Check the first two rows are orthonormal.

    Try it on paper first.

Example 4: Determinant of a block matrix with the Schur complement

numerical

Find det⁡M for with , , .

  1. Step 1: Which formula applies?

    Try it on paper first.

Previous year questions

5 official GATE DA questions on this topic, newest first.

Practise these 5 PYQs →

Topic test

10 questions: up to 4 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE DA syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.