Skip to content
GATEiit

GATE DA · Linear Algebra

Determinant, rank and nullity; projections

Determinant properties, rank, nullity and the rank–nullity theorem, the four fundamental subspaces, projections and least squares; GATE asks for determinants via properties, ranks, null space dimensions and projections.

Before you start

This topic comes before: Eigenvalues and eigenvectors, Matrices: projection, orthogonal, idempotent and partition matrices and their properties, Quadratic forms, Systems of linear equations and their solutions; Gaussian elimination, Vector spaces and subspaces; linear dependence and independence of vectors

Concept notes

1. Determinant and its properties

The determinant of a square matrix is a number that is zero exactly when the matrix is singular. Compute it by cofactor expansion along any row or column: det⁡A=∑jaijCij,Cij=(−1)i+jMij, where Mij is the minor (determinant with row i and column j deleted). Expand along the row or column with the most zeros. For large matrices, reduce to triangular form first: the determinant is then the product of the pivots (with a sign change for each swap).

Operation or fact Effect on det⁡
swap two rows multiply by −1
multiply one row by c multiply by c
add a multiple of one row to another no change
two equal or proportional rows, or a zero row det⁡=0
triangular matrix product of diagonal entries
det⁡(AB) det⁡Adet⁡B
det⁡(AT) det⁡A
det⁡(cA), A is n×n cndet⁡A
det⁡(A−1) 1/det⁡A
det⁡(adj⁡A) (det⁡A)n−1

Geometric meaning: ∣det⁡A∣ is the factor by which A scales area (in 2D) or volume (in 3D). The rows of a 3×3 matrix give a box of volume ∣det⁡A∣.

Useful closed forms: , and the Vandermonde determinant .

det⁡(A+B)≠det⁡A+det⁡B in general.

2. Rank

The rank of an m×n matrix A is the number of linearly independent columns. The same number counts:

  • the independent rows (row rank = column rank, so rank⁡A=rank⁡AT);
  • the pivots in any echelon form of A;
  • the order of the largest non-zero minor (square sub-determinant);
  • dim⁡C(A), the dimension of the column space.

So rank⁡A≤min⁡(m,n). A square n×n matrix is invertible if and only if its rank is n.

Rank rules:

  • rank⁡(AB)≤min⁡(rank⁡A,rank⁡B).
  • Multiplying by an invertible matrix does not change rank.
  • rank⁡(ATA)=rank⁡(AAT)=rank⁡A.
  • rank⁡(A+B)≤rank⁡A+rank⁡B.
  • A non-zero outer product uvT has rank 1; a sum of k rank-one matrices has rank at most k.

Quick consequence: if A is 4×3 and B is 3×4, then AB is 4×4 with rank at most 3, so det⁡(AB)=0 always.

To find rank in an exam, row reduce and count non-zero rows; spotting that one row is a combination of others (such as R3=R1+R2) is often faster.

3. Nullity and the rank–nullity theorem

The nullity of A is dim⁡N(A), the number of free variables in Ax=0. For an m×n matrix, rank⁡A+nullity⁡A=n(number of columns).

Every m×n matrix of rank r has four fundamental subspaces:

Subspace Lives in Dimension
Column space C(A) Rm r
Row space C(AT) Rn r
Null space N(A) Rn n−r
Left null space N(AT) Rm m−r

The null space is perpendicular to the row space (each row dotted with a solution of Ax=0 gives 0), and the left null space is perpendicular to the column space. That perpendicularity is what makes least squares work.

For a linear map T:V→W, the same theorem reads dim⁡(range)+dim⁡(kernel)=dim⁡V. So T is one-to-one exactly when the kernel is {0}, and a map from R5 to R3 can never be one-to-one (its kernel has dimension at least 2).

For a square matrix: nullity >0   ⟺   det⁡A=0   ⟺   0 is an eigenvalue. The nullity is the geometric multiplicity of the eigenvalue 0.

inside R^n (n = number of columns)inside R^m (m = number of rows)Row space C(A^T)dimension rNull space N(A)dimension n − rColumn space C(A)dimension rLeft null space N(A^T)dimension m − rA xA x = 0Each pair of boxes on one side is mutually perpendicular
The four fundamental subspaces of an m by n matrix of rank r

4. Projections and least squares

The projection of b onto the line through a is p=aTbaTa a,∥p∥=∣aTb∣∥a∥. The error e=b−p is perpendicular to a, and ∥e∥ is the distance from b to the line.

Onto a subspace spanned by the independent columns of A: the projection is p=Ax^, where x^ solves the normal equations ATA x^=ATb. They come from requiring e=b−Ax^ to be perpendicular to every column: ATe=0, so e lies in the left null space.

Least squares: when Ax=b has no solution, x^ minimises ∥Ax−b∥2. Fitting a line y=c+dt to points (ti,yi) uses A with rows (1,ti). If b is already in C(A), then e=0 and x^ is the exact solution.

Gram–Schmidt turns independent vectors into orthonormal ones by subtracting projections: with q1=a1/∥a1∥, take w2=a2−(q1Ta2)q1, and so on, then normalising. With orthonormal columns Q, projections are simply p=QQTb and the normal equations become x^=QTb.

The projection matrix P=A(ATA)−1AT has rank equal to rank⁡A.

Formulas to remember

Cofactor expansion
det⁡A=∑jaij(−1)i+jMij
Product and scaling
det⁡(AB)=det⁡Adet⁡B,det⁡(cA)=cndet⁡A
Adjugate
A−1=adj⁡Adet⁡A,det⁡(adj⁡A)=(det⁡A)n−1
Rank–nullityn = number of columns
rank⁡A+nullity⁡A=n
Rank of a product
rank⁡(AB)≤min⁡(rank⁡A,rank⁡B)
Projection onto a line
p=aTbaTa a
Normal equations
ATA x^=ATb,p=Ax^

Common mistakes

  • Writing det⁡(cA)=cdet⁡A; for an n×n matrix it is cndet⁡A.
  • Using the number of rows in rank–nullity; nullity is (number of columns) minus rank.
  • Assuming det⁡(A+B)=det⁡A+det⁡B; there is no such rule.
  • Forgetting that a row swap flips the sign of the determinant when reducing to triangular form.
  • Solving Ax=b directly when it is inconsistent; for least squares solve ATAx^=ATb instead.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Determinants from properties

numerical

A is a 3×3 matrix with det⁡A=4. Find det⁡(2A−1AT) and det⁡(adj⁡A).

  1. Step 1: Split the product into determinants.

    Try it on paper first.

Example 2: Rank, nullity and a null space basis

numerical

Find the rank, nullity and a basis of the null space of .

  1. Step 1: Look for a row relation, then reduce.

    Try it on paper first.

Example 3: Least squares line by projection

numerical

Fit y=c+dt by least squares to the points (0,1), (1,2), (2,4).

  1. Step 1: Set up $A$ and $\mathbf{b}$.

    Try it on paper first.

Example 4: Why some products are always singular

conceptual

A is 4×3 and B is 3×4. Can AB be invertible? Can BA?

  1. Step 1: Bound the rank of $AB$.

    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.