Skip to content
GATEiit

GATE CSE · Engineering Mathematics

Matrices and determinants

Matrix types and algebra, determinants and how row operations change them, the adjugate and inverse, and rank. GATE asks for determinant values, properties of special matrices, inverse entries and rank.

Before you start

  • Vectors and linear combinations

    Rank and determinants are about whether rows or columns are linear combinations of each other.

This topic comes before: Eigenvalues and eigenvectors, Graphs, LU decomposition, Systems of linear equations

Concept notes

1. Matrix algebra and special matrices

For A of size m×n and B of size n×p, the product AB is m×p with (AB)ij=∑kaikbkj.

  • Multiplication is associative and distributive but not commutative: in general AB≠BA.
  • AB=0 does not force A=0 or B=0.
  • (AB)T=BTAT and (AB)−1=B−1A−1 (order reverses).
  • Trace (sum of the diagonal): tr⁡(A+B)=tr⁡A+tr⁡B and tr⁡(AB)=tr⁡(BA).
Type Definition Useful fact
Symmetric AT=A n(n+1)/2 free entries
Skew-symmetric AT=−A diagonal is zero; det⁡A=0 if n is odd
Orthogonal ATA=I A−1=AT, det⁡A=±1
Idempotent A2=A det⁡A∈{0,1}; only invertible one is I
Nilpotent Ak=0 for some k det⁡A=0, trace 0
Involutory A2=I A−1=A, det⁡A=±1
Triangular zeros below (or above) the diagonal det⁡A = product of the diagonal

Every square matrix splits uniquely as symmetric + skew-symmetric: A=A+AT2+A−AT2.

ATA and AAT are always symmetric. The product of two symmetric matrices is symmetric only when they commute.

2. Determinants and their properties

For larger matrices use cofactor expansion along any row or column: det⁡A=∑jaijCij, where Cij=(−1)i+jMij and the minor Mij is the determinant with row i and column j deleted. Expand along the row or column with the most zeros.

Effect of row (or column) operations:

Operation Effect on det⁡
swap two rows multiply by −1
multiply one row by k multiply by k
add a multiple of one row to another no change

So the fastest method for a 3×3 or larger matrix is: reduce to triangular form using row additions, track swaps and scalings, then multiply the diagonal.

Rules:

  • det⁡(AT)=det⁡A and det⁡(AB)=det⁡A⋅det⁡B (so det⁡(AB)=det⁡(BA)).
  • det⁡(kA)=kndet⁡A for an n×n matrix, not kdet⁡A.
  • det⁡(A−1)=1/det⁡A; det⁡(Am)=(det⁡A)m.
  • det⁡A=0 if two rows are equal or proportional, or a row is zero.
  • det⁡(A+B)≠det⁡A+det⁡B in general.
  • det⁡A equals the product of the eigenvalues of A.

Geometric meaning: ∣det⁡A∣ is the area (volume in 3D) of the parallelogram spanned by the columns. det⁡A=0 means the columns are linearly dependent and the shape is flat.

Vandermonde: .

u = (3, 1)v = (1, 2)u + vA = [u v] = [3 1; 1 2]det A = 3·2 − 1·1 = 5= area of the parallelogram
The determinant of a 2 by 2 matrix is the signed area of the parallelogram spanned by its columns.

3. Adjugate and inverse

The adjugate adj⁡A is the transpose of the cofactor matrix: (adj⁡A)ij=Cji. It satisfies A adj⁡A=adj⁡A  A=(det⁡A) I. So when det⁡A≠0:

A single entry of the inverse needs only one cofactor: (A−1)ij=Cjidet⁡A. Note the swapped indices.

A is invertible (non-singular) if and only if any one of these holds: det⁡A≠0; rank A=n; the columns are linearly independent; Ax=0 has only x=0; 0 is not an eigenvalue.

Adjugate identities for an n×n matrix:

Quantity Value
det⁡(adj⁡A) (det⁡A)n−1
adj⁡(adj⁡A) (det⁡A)n−2A
adj⁡(kA) kn−1adj⁡A
adj⁡(AB) adj⁡B adj⁡A
adj⁡(AT) (adj⁡A)T

For hand computation of a 3×3 inverse, Gauss-Jordan elimination on [A∣I] is often quicker and less error-prone than nine cofactors.

4. Rank of a matrix

The rank of A is the largest number of linearly independent rows. It always equals the largest number of linearly independent columns, so rank⁡A=rank⁡AT≤min⁡(m,n).

Equivalent definitions:

  • the number of non-zero rows in a row echelon form of A;
  • the size of the largest square submatrix with a non-zero determinant (largest non-vanishing minor).

To compute: row-reduce. Row operations never change the rank.

Rules:

  • rank⁡(AB)≤min⁡(rank⁡A,rank⁡B).
  • rank⁡(A+B)≤rank⁡A+rank⁡B.
  • Multiplying by an invertible matrix does not change rank.
  • rank⁡(ATA)=rank⁡A for real A.
  • A non-zero outer product uvT has rank 1. Every rank 1 matrix has this form, and all its rows are multiples of one row.
  • Rank-nullity: for A with n columns, rank⁡A+nullity⁡A=n, where the nullity is the dimension of the solution space of Ax=0.

For an n×n matrix:

  • if rank is n, then rank of adj⁡A is n;
  • if rank is n−1, it is 1;
  • if rank is below n−1, it is 0 (adj⁡A=0).

A quick check for rank deficiency: look for a zero row after reduction, or a row that is a sum or multiple of others, such as row 3 = row 1 + row 2.

Formulas to remember

2 by 2 inverse
Inverse via adjugate
A−1=adj⁡Adet⁡A
Scaling a determinantA is n×n
det⁡(kA)=kndet⁡A
Product rule
det⁡(AB)=det⁡A det⁡B
Determinant of the adjugate
det⁡(adj⁡A)=(det⁡A)n−1
Transpose and inverse of a product
(AB)T=BTAT,(AB)−1=B−1A−1
Rank-nullityn = number of columns
rank⁡A+nullity⁡A=n
Vandermonde determinant
∏1≤i<j≤n(xj−xi)

Common mistakes

  • Writing det⁡(kA)=kdet⁡A; for an n×n matrix it is kndet⁡A.
  • Using det⁡(adj⁡A)=(det⁡A)n; the exponent is n−1.
  • Forgetting the sign change when swapping rows during row reduction.
  • Reading the (i,j) entry of A−1 from Cij instead of Cji.
  • Reversing the order wrongly: (AB)−1=B−1A−1 and (AB)T=BTAT.
  • Assuming det⁡(A+B)=det⁡A+det⁡B.

Worked examples

Try each step yourself, then reveal the working.

Example 1: A 3 by 3 determinant by row reduction

numerical

Find .

  1. Step 1: Clear the first column below the pivot 2. Does the determinant change?

    Try it on paper first.

Example 2: Determinant rules without the matrix

numerical

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

  1. Step 1: Combine the scaling and inverse rules.

    Try it on paper first.

Example 3: Rank by row reduction

numerical

Find the rank of .

  1. Step 1: Clear the first column.

    Try it on paper first.

Example 4: When does a Vandermonde determinant vanish?

conceptual

For which x is ?

  1. Step 1: Recognise the structure.

    Try it on paper first.

Previous year questions

16 official GATE CSE questions on this topic, newest first.

Practise these 16 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 CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.