Skip to content
GATEiit

GATE EC · Engineering Mathematics

Matrix algebra

Matrix operations and their rules, special matrices (symmetric, skew-symmetric, orthogonal, Hermitian, unitary, idempotent, nilpotent, involutory), determinants and their properties, adjoint and inverse.

Before you start

  • Solving simultaneous linear equations

    Inverses and determinants grow out of solving Ax=b by elimination.

  • Complex numbers and conjugates

    Hermitian and unitary matrices use the conjugate transpose Aθ=A‾T.

This topic comes before: Eigen values and eigen vectors, Fundamentals of error correction, Hamming codes, CRC, Linear 2-port network parameters, Methods of solution using variation of parameters, Rank, Reciprocity, Solution of linear equations - existence and uniqueness, State variable model and solution of state equation of LTI systems, Vector operations, Vector space, basis, linear dependence and independence, Vectors in plane and space

Concept notes

1. Matrix operations and their rules

Product. AB is defined only when the number of columns of A equals the number of rows of B. If A is m×n and B is n×p, then AB is m×p with cij=∑k=1naikbkj Computing it directly takes m⋅n⋅p scalar multiplications.

Rules that hold:

  • (AB)C=A(BC) and A(B+C)=AB+AC.
  • (AB)T=BTAT and (AB)−1=B−1A−1 (order reverses).
  • tr⁡(A+B)=tr⁡A+tr⁡B and tr⁡(AB)=tr⁡(BA), even when AB≠BA.

Rules that fail in general:

  • AB≠BA (matrix product is not commutative), so (A+B)2=A2+AB+BA+B2, not A2+2AB+B2.
  • AB=0 does not imply A=0 or B=0.
  • AB=AC does not imply B=C unless A is invertible.

Symmetric plus skew-symmetric. Every square matrix splits uniquely as

A diagonal matrix commutes with any matrix of the same size only when it is a scalar matrix kI. Powers of a diagonal matrix are found entrywise: Dk=diag⁡(d1k,…,dnk).

A (3 × 4)row i×B (4 × 2)column j=C = AB (3 × 2)entry cij cij  = (row i of A) · (column j of B)= ai1 b1j  + ai2 b2j  + ai3 b3j  + ai4 b4j Inner sizes (4 and 4) must match;outer sizes give the result: 3 × 2.Multiplications: 3 × 4 × 2 = 24
Entry (i, j) of the product AB is the dot product of row i of A with column j of B. The inner sizes must match.

2. Special matrices

Here Aθ=A‾T is the conjugate transpose.

Matrix Definition Key facts
Symmetric AT=A real eigenvalues (real A)
Skew-symmetric AT=−A diagonal entries 0; det⁡A=0 if order is odd
Orthogonal ATA=I A−1=AT; det⁡A=±1; columns orthonormal
Hermitian Aθ=A diagonal entries real
Skew-Hermitian Aθ=−A diagonal entries zero or purely imaginary
Unitary AθA=I ∣det⁡A∣=1
Idempotent A2=A det⁡A is 0 or 1; I−A is also idempotent
Nilpotent Ak=0 for some k det⁡A=0, tr⁡A=0, I+A invertible
Involutory A2=I A−1=A; det⁡A=±1

Useful consequences:

  • A real symmetric matrix is also Hermitian; a real orthogonal matrix is also unitary.
  • The rotation matrix is orthogonal with determinant 1.
  • A strictly upper triangular n×n matrix N is nilpotent with Nn=0, so (I+N)−1=I−N+N2−⋯+(−1)n−1Nn−1 (a finite series).
  • If A is idempotent, (I+A)−1=I−12A, since (I+A)(I−12A)=I+12A−12A2=I.
  • For any matrix B, both BTB and BBT are symmetric.

3. Determinants and their properties

For a 2×2 matrix, . For larger matrices, expand along any row or column using cofactors Cij=(−1)i+jMij, where the minor Mij is the determinant left after deleting row i and column j. Pick the row or column with the most zeros.

Properties (for n×n matrices):

  • det⁡AT=det⁡A, so every row rule also holds for columns.
  • Swapping two rows changes the sign.
  • Multiplying one row by k multiplies the determinant by k; hence det⁡(kA)=kndet⁡A.
  • Adding a multiple of one row to another leaves the determinant unchanged (the basis of elimination).
  • Two equal or proportional rows, or a zero row, give det⁡=0.
  • det⁡(AB)=det⁡A⋅det⁡B, so det⁡(Am)=(det⁡A)m and det⁡(A−1)=1/det⁡A.
  • For a triangular or diagonal matrix, det⁡ = product of the diagonal entries.
  • For a block triangular matrix, (P, R square).
  • det⁡(A+B)≠det⁡A+det⁡B in general.

Singular means det⁡A=0: then A has no inverse, its rows are linearly dependent, and Ax=0 has non-zero solutions.

Fast method for numericals: use row operations to reach triangular form, keeping track of swaps (each flips the sign) and scalings, then multiply the diagonal.

4. Adjoint and inverse

The adjoint (adjugate) adj⁡A is the transpose of the cofactor matrix. It satisfies A (adj⁡A)=(adj⁡A) A=(det⁡A) I so for a non-singular matrix A−1=adj⁡Adet⁡A

For 2×2: swap the diagonal, negate the off-diagonal, divide by the determinant:

Properties for an n×n matrix:

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

Gauss-Jordan method. Row-reduce [A∣I] to [I∣A−1]. This is faster than cofactors for 3×3 and larger.

Shortcuts: the inverse of a diagonal matrix inverts each diagonal entry; the inverse of an upper (lower) triangular matrix is upper (lower) triangular with reciprocal diagonal entries; the inverse of an orthogonal matrix is its transpose. A quick check for any computed inverse is AA−1=I on one row and one column.

Formulas to remember

Matrix product
cij=∑kaikbkj,(m×n)(n×p)=m×p
Transpose and inverse of a product
(AB)T=BTAT,(AB)−1=B−1A−1
Scaling a determinant
det⁡(kA)=kndet⁡A
Product of determinants
det⁡(AB)=det⁡A det⁡B
Inverse
A−1=adj⁡Adet⁡A
Determinant of the adjoint
det⁡(adj⁡A)=(det⁡A)n−1
Adjoint of the adjoint
adj⁡(adj⁡A)=(det⁡A)n−2A
Trace of a product
tr⁡(AB)=tr⁡(BA)

Common mistakes

  • Writing det(kA) = k det A; for an n by n matrix the factor is k to the power n.
  • Keeping the order when transposing or inverting a product; (AB) transpose is B transpose times A transpose, and the same reversal holds for inverses.
  • Expanding (A + B) squared as A² + 2AB + B²; this needs AB = BA.
  • Using det(adj A) = (det A)^n instead of (det A)^(n − 1).
  • Forgetting to transpose the cofactor matrix when forming the adjoint.
  • Assuming AB = 0 forces A = 0 or B = 0; two non-zero singular matrices can multiply to zero.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Determinants of related matrices

numerical

A 3×3 matrix A has det⁡A=4. Find det⁡(2A), det⁡(adj⁡A), det⁡(A−1) and det⁡(adj⁡(adj⁡A)).

  1. Step 1: Scaling a 3 × 3 matrix by 2 scales each of its 3 rows.

    Try it on paper first.

Example 2: Inverse of a triangular matrix

numerical

Find the inverse of .

  1. Step 1: Is A invertible? What shape will the inverse have?

    Try it on paper first.

Example 3: Splitting a matrix into symmetric and skew-symmetric parts

numerical

Write as P+Q with P symmetric and Q skew-symmetric.

  1. Step 1: Compute P = (A + Aᵀ)/2.

    Try it on paper first.

Example 4: Inverse through a nilpotent matrix

conceptual

Let . Find (I+N)−1 without cofactors.

  1. Step 1: Compute the powers of N.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 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 EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.