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.
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:
where is the minor (determinant with row and column 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
swap two rows
multiply by
multiply one row by
multiply by
add a multiple of one row to another
no change
two equal or proportional rows, or a zero row
triangular matrix
product of diagonal entries
, is
Geometric meaning: is the factor by which scales area (in 2D) or volume (in 3D). The rows of a matrix give a box of volume .
Useful closed forms: det(acbd)=ad−bc, and the Vandermonde determinant det111abca2b2c2=(b−a)(c−a)(c−b).
in general.
2. Rank
The rank of an matrix is the number of linearly independent columns. The same number counts:
the independent rows (row rank = column rank, so );
the pivots in any echelon form of ;
the order of the largest non-zero minor (square sub-determinant);
, the dimension of the column space.
So . A square matrix is invertible if and only if its rank is .
Rank rules:
.
Multiplying by an invertible matrix does not change rank.
.
.
A non-zero outer product has rank 1; a sum of rank-one matrices has rank at most .
Quick consequence: if is and is , then is with rank at most 3, so 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 ) is often faster.
3. Nullity and the rank–nullity theorem
The nullity of is , the number of free variables in . For an matrix,
Every matrix of rank has four fundamental subspaces:
Subspace
Lives in
Dimension
Column space
Row space
Null space
Left null space
The null space is perpendicular to the row space (each row dotted with a solution of 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 , the same theorem reads . So is one-to-one exactly when the kernel is , and a map from to can never be one-to-one (its kernel has dimension at least 2).
For a square matrix: nullity 0 is an eigenvalue. The nullity is the geometric multiplicity of the eigenvalue 0.
The four fundamental subspaces of an m by n matrix of rank r
4. Projections and least squares
The projection of onto the line through is
The error is perpendicular to , and is the distance from to the line.
Onto a subspace spanned by the independent columns of : the projection is , where solves the normal equations
They come from requiring to be perpendicular to every column: , so lies in the left null space.
Least squares: when has no solution, minimises . Fitting a line to points uses with rows . If is already in , then and is the exact solution.
Gram–Schmidt turns independent vectors into orthonormal ones by subtracting projections: with , take , and so on, then normalising. With orthonormal columns , projections are simply and the normal equations become .
The projection matrix has rank equal to .
Formulas to remember
Cofactor expansion
Product and scaling
Adjugate
Rank–nullity = number of columns
Rank of a product
Projection onto a line
Normal equations
Common mistakes
Writing ; for an matrix it is .
Using the number of rows in rank–nullity; nullity is (number of columns) minus rank.
Assuming ; there is no such rule.
Forgetting that a row swap flips the sign of the determinant when reducing to triangular form.
Solving directly when it is inconsistent; for least squares solve instead.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Determinants from properties
numerical
is a matrix with . Find and .
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 A=1232461343710.
Step 1: Look for a row relation, then reduce.
Try it on paper first.
Example 3: Least squares line by projection
numerical
Fit by least squares to the points , , .
Step 1: Set up $A$ and $\mathbf{b}$.
Try it on paper first.
Example 4: Why some products are always singular
conceptual
is and is . Can be invertible? Can ?
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.
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.