Skip to main content

Engineering Mathematics

Linear Algebra

Train determinants, rank, Ax=b cases, and eigen-NATs until shortcuts (trace, det, triangular form) fire automatically — then lock marks with GATE-style samples and flashcards.

~16 hrs High — NAT favourite 10 samples · 10 practice · 10 cards

GATE CSE linear algebra — matrices, determinants, rank, linear systems, eigenvalues/eigenvectors, diagonalisation, sample GATE questions, flashcards, and practice drills.

Learning outcomes

  • Compute determinants, inverses (when they exist), and ranks quickly
  • Solve Ax=b and classify unique / infinite / no solution via rank
  • Find eigenvalues/eigenvectors for 2×2 and simple 3×3 cases
  • Use trace, det, similarity, and diagonalisation as NAT shortcuts
  • Apply nullity and linear-independence checks under exam time
  • Solve GATE-style linear algebra MCQ/NAT items with a clear explanation trail

Matrix language & elementary operations

  • Know transpose Aᵀ, symmetric (Aᵀ=A), skew-symmetric (Aᵀ=−A), diagonal, and triangular forms.
  • Elementary row operations: swap, scale nonzero, add multiple of one row to another — they implement Gaussian elimination.
  • Row-equivalent matrices represent the same row space; rank is invariant under elementary ops.
  • Identity I and elementary matrices encode row ops; A invertible iff A is a product of elementary matrices.
  • Trace(A)=Σ a_ii; (AB)ᵀ=BᵀAᵀ; (AB)⁻¹=B⁻¹A⁻¹ when invertible.

Formulas to remember

  • trace(AB)=trace(BA)
  • (AB)ᵀ = Bᵀ Aᵀ
  • (AB)⁻¹ = B⁻¹ A⁻¹ (when A,B invertible)

Determinants

  • det is multilinear alternating in rows/columns; det=0 iff columns (or rows) are linearly dependent.
  • det(AB)=det(A)det(B); det(Aᵀ)=det(A); det(cA)=cⁿ det(A) for n×n; det(A⁻¹)=1/det(A).
  • Triangular or diagonal ⇒ det = product of diagonal entries. Swap two rows ⇒ sign change; scale a row by c ⇒ det×c.
  • 2×2: ad−bc. 3×3: Sarrus or cofactor expansion along a sparse row/column.
  • A invertible ⇔ det(A)≠0 ⇔ rank(A)=n ⇔ 0 is not an eigenvalue.

Formulas to remember

  • 2×2 [[a,b],[c,d]]: det = ad − bc
  • Inverse (2×2): (1/det) [[d,−b],[−c,a]]
  • A⁻¹ = (1/det A) adj(A)

Worked example

Problem. det([[2,1,0],[0,3,0],[0,0,4]])?

Solution. Upper triangular ⇒ product of diagonal = 2·3·4 = 24.

Rank, nullity & vector spaces (exam depth)

  • rank(A) = dimension of column space = dimension of row space = number of pivots after row reduction.
  • Rank–nullity: rank(A) + nullity(A) = n for A that is m×n (n = number of columns). Nullity = dim ker(A).
  • Columns linearly independent ⇔ rank = number of columns. Rows independent ⇔ rank = number of rows.
  • rank(AB) ≤ min(rank(A), rank(B)). rank(Aᵀ)=rank(A).
  • For square n×n: full rank ⇔ invertible ⇔ trivial nullspace only.

Formulas to remember

  • rank(A) + nullity(A) = n (A is m×n)
  • rank(A) = rank(Aᵀ)
Condition (n×n)Equivalent meaning
rank = nInvertible; unique solution to Ax=b for every b
rank < nSingular; nontrivial nullspace
det ≠ 0Same as rank = n
λ=0 is eigenvalueSame as singular

Worked example

Problem. A is 3×4 with rank 2. What is nullity(A)?

Solution. rank + nullity = 4 ⇒ nullity = 2.

Systems Ax = b

  • Form augmented matrix [A|b] and row-reduce to RREF/REF. Consistency: rank(A)=rank([A|b]).
  • Unique solution: consistent and rank = n (no free variables). For square A, equivalent to A invertible.
  • Infinite solutions: consistent and rank < n — free variables parametrize an affine line/plane.
  • No solution: rank(A) < rank([A|b]) — a pivot appears in the augmented column.
  • Homogeneous Ax=0 is always consistent (x=0). Nontrivial solutions ⇔ rank < n.
rank(A) vs rank([A|b]) vs nConclusion
r(A)=r([A|b])=nUnique solution
r(A)=r([A|b])<nInfinite solutions
r(A)<r([A|b])No solution

Worked example

Problem. For what k does [[1,1],[2,k]] [[x],[y]] = [[3],[6]] have infinite solutions?

Solution. det = k−2. For non-unique need det=0 ⇒ k=2. Then row2 = 2·row1 and RHS 6=2·3 ⇒ consistent ⇒ infinite solutions.

Eigenvalues & eigenvectors

  • Ax = λx with x≠0. Characteristic equation det(A−λI)=0; characteristic polynomial is monic of degree n.
  • Sum of eigenvalues (with multiplicity) = trace(A); product = det(A).
  • Eigenvectors for distinct eigenvalues are linearly independent.
  • If Av=λv then Aᵏv=λᵏv and p(A)v=p(λ)v for any polynomial p. Also A⁻¹v = λ⁻¹v when λ≠0 and A invertible.
  • Real symmetric matrices: all eigenvalues real; eigenvectors for distinct λ can be chosen orthonormal.
  • Triangular/diagonal matrices: eigenvalues = diagonal entries — check this before expanding.

Formulas to remember

  • χ(λ) = det(A − λI) = 0
  • trace(A) = Σ λ_i , det(A) = Π λ_i
  • Av = λv ⇒ Aᵏv = λᵏv

Worked example

Problem. Eigenvalues of [[2,1],[0,3]]?

Solution. Upper triangular ⇒ eigenvalues on diagonal: 2 and 3. Trace 5, det 6 check out.

Characteristic polynomial for 2×2

  • For A=[[a,b],[c,d]], χ(λ)=λ² − (trace)λ + det = λ² − (a+d)λ + (ad−bc).
  • Cayley–Hamilton (exam statement): χ(A)=0 — every square matrix satisfies its own characteristic equation.
  • Use Cayley–Hamilton to express A² (or higher) as a linear combination of A and I — common NAT trick.
  • Sign care: expand (a−λ)(d−λ)−bc = λ² − (a+d)λ + (ad−bc); do not drop the minus on λ.

Formulas to remember

  • 2×2: χ(λ) = λ² − tr(A)λ + det(A)
  • Cayley–Hamilton: χ(A) = 0

Worked example

Problem. A=[[1,2],[0,3]]. Find A² using Cayley–Hamilton.

Solution. tr=4, det=3 ⇒ A² − 4A + 3I = 0 ⇒ A² = 4A − 3I = [[1,8],[0,9]].

Diagonalisation & similarity

  • A is diagonalizable if it has n linearly independent eigenvectors (e.g. n distinct eigenvalues ⇒ yes).
  • Then A = PDP⁻¹ with D=diag(λ_i) and columns of P = eigenvectors. Aᵏ = PDᵏP⁻¹.
  • Similar matrices B=P⁻¹AP share characteristic polynomial, eigenvalues, trace, and det — not necessarily the same eigenvectors.
  • Defective case: algebraic multiplicity > geometric multiplicity ⇒ not diagonalizable — usually a conceptual MCQ.
  • Orthogonal diagonalisation for real symmetric A: A=QDQT with Q orthogonal (QᵀQ=I).

Worked example

Problem. Is [[1,1],[0,1]] diagonalizable?

Solution. Only eigenvalue λ=1 (double). (A−I)=[[0,1],[0,0]] has rank 1 ⇒ nullity 1 ⇒ only one independent eigenvector ⇒ not diagonalizable.

Quick NAT checklist

  • Before expanding det: is the matrix triangular, diagonal, or block-triangular?
  • After finding λ’s: check sum=trace and product=det.
  • For Ax=b with parameter k: compute det (or rank cases) first, then consistency.
  • Powers of A: prefer diagonalisation or Cayley–Hamilton over brute multiply when n is small.
  • Nullity questions: always write rank + nullity = #columns.

Exam tips

  • Scan for triangular/diagonal form before expanding any determinant.
  • Use trace and det as sanity checks on eigenvalue NATs.
  • For 2×2 eigenproblems, write χ(λ)=λ²−(tr)λ+det — avoid expanding sign errors.
  • Rank–nullity: nullity = n − rank; free variables in Ax=0 equal nullity.
  • Similar matrices share eigenvalues — if a stem gives P⁻¹AP, read eigenvalues off the similar matrix when easier.
  • Cayley–Hamilton often turns A² or A³ questions into arithmetic with I and A.
Exam pattern · 10 questions

GATE sample questions & answers

10 GATE-style MCQs for Linear Algebra with full explanations. Attempt each question before revealing the answer.

Q1 Determinant scaling

If A is a 3×3 matrix with det(A)=5, then det(2A) equals:

  • A) 10
  • B) 30
  • C) 40
  • D) 8
Show answer & explanation

Answer: C

det(cA)=cⁿ det(A) ⇒ 2³·5 = 8·5 = 40.

Q2 Rank by row dependence

Rank of [[1,2,3],[2,4,6],[1,1,1]] is:

  • A) 1
  • B) 2
  • C) 3
  • D) 0
Show answer & explanation

Answer: B

Row2=2·Row1; Row3 is independent of Row1 ⇒ two independent rows ⇒ rank 2.

Q3 Rank–nullity theorem

For A m×n, rank(A)=r. Nullity(A) equals:

  • A) m − r
  • B) n − r
  • C) r
  • D) m + n − r
Show answer & explanation

Answer: B

Rank–nullity: rank + nullity = n (# columns).

Q4 Triangular eigenvalues

Eigenvalues of [[4,1],[0,2]] are:

  • A) 4 and 1
  • B) 4 and 2
  • C) 1 and 2
  • D) 0 and 2
Show answer & explanation

Answer: B

Upper triangular ⇒ diagonal entries 4, 2 are eigenvalues. Trace 6, det 8 check.

Q5 Unique solvability

The system Ax=b has a unique solution for every b iff:

  • A) A is singular
  • B) det(A)=0
  • C) A is invertible
  • D) nullity(A)>0
Show answer & explanation

Answer: C

Unique solution ∀b ⇔ A square invertible (full rank).

Q6 Powers of eigenvalues

If eigenvalues of A are 1 and 3, then eigenvalues of A² are:

  • A) 1 and 3
  • B) 1 and 9
  • C) 2 and 6
  • D) 0 and 3
Show answer & explanation

Answer: B

If Av=λv then A²v=λ²v ⇒ eigenvalues square: 1 and 9.

Q7 2×2 characteristic polynomial

trace(A)=5 and det(A)=6 for a 2×2 matrix. Characteristic polynomial is:

  • A) λ² − 5λ + 6
  • B) λ² + 5λ + 6
  • C) λ² − 6λ + 5
  • D) λ² − 5λ − 6
Show answer & explanation

Answer: A

χ(λ)=λ² − (tr)λ + det = λ² − 5λ + 6.

Q8 Defective Jordan block

Which matrix is NOT diagonalizable?

  • A) [[2,0],[0,3]]
  • B) [[1,1],[0,1]]
  • C) [[4,0],[0,4]]
  • D) [[1,0],[0,1]]
Show answer & explanation

Answer: B

[[1,1],[0,1]] has repeated eigenvalue 1 but geometric multiplicity 1 (only one independent eigenvector), so it is defective / not diagonalizable. The others have a full eigenbasis.

Q9 Similarity invariants

If A and B are similar, which is always TRUE?

  • A) A = B
  • B) det(A)=det(B) and they have the same eigenvalues
  • C) A and B have the same eigenvectors
  • D) A − B = 0
Show answer & explanation

Answer: B

Similar matrices share characteristic polynomial ⇒ same eigenvalues, det, trace. Eigenvectors generally differ.

Q10 2×2 determinant

For A=[[1,2],[3,4]], det(A) equals:

  • A) −2
  • B) 2
  • C) 10
  • D) −10
Show answer & explanation

Answer: A

ad−bc = 1·4 − 2·3 = 4−6 = −2.

Topic drill · 10 questions

10 practice questions — Linear Algebra

Extra page-specific practice beyond the GATE samples. Attempt all 10, then reveal answers to check your reasoning.

P1

det([[3,0,0],[1,2,0],[4,5,6]]) equals:

  • A) 11
  • B) 36
  • C) 0
  • D) 18
Show answer & explanation

Answer: B) 36

Lower/upper triangular form with diagonal 3,2,6 ⇒ product 36.

P2

A is 4×6 with rank 3. dim(ker A) is:

  • A) 1
  • B) 2
  • C) 3
  • D) 4
Show answer & explanation

Answer: C) 3

nullity = 6 − 3 = 3.

P3

Inverse of [[2,1],[5,3]] is:

  • A) [[3,−1],[−5,2]]
  • B) [[3,1],[−5,2]]
  • C) [[3,1],[5,2]]
  • D) [[1,−1],[−5,2]]
Show answer & explanation

Answer: A) [[3,−1],[−5,2]]

det=6−5=1; inverse (1/det)[[3,−1],[−5,2]] = [[3,−1],[−5,2]].

P4

Eigenvalues of [[0,−2],[2,0]] are:

  • A) 2, −2
  • B) 2i, −2i
  • C) 0, 0
  • D) 1, −1
Show answer & explanation

Answer: B) 2i, −2i

χ(λ)=λ²+4=0 ⇒ λ=±2i. Trace 0, det 4 = product of ±2i.

P5

For what k is [[1,2],[2,k]] singular?

  • A) 2
  • B) 4
  • C) 1
  • D) 0
Show answer & explanation

Answer: B) 4

det=k−4=0 ⇒ k=4.

P6

If A has eigenvalues 2,2,3 then det(A) and trace(A) are:

  • A) det=7, tr=12
  • B) det=12, tr=7
  • C) det=6, tr=7
  • D) det=12, tr=5
Show answer & explanation

Answer: B) det=12, tr=7

Product 2·2·3=12; sum 2+2+3=7.

P7

Number of solutions of Ax=0 for invertible n×n A is:

  • A) 0
  • B) 1
  • C) Infinite
  • D) n
Show answer & explanation

Answer: B) 1

Only the trivial solution x=0 — one solution vector.

P8

A=[[1,1],[0,1]]. A² equals:

  • A) [[1,2],[0,1]]
  • B) [[1,1],[0,1]]
  • C) [[0,1],[0,0]]
  • D) I
Show answer & explanation

Answer: A) [[1,2],[0,1]]

Direct multiply: [[1,1],[0,1]][[1,1],[0,1]]=[[1,2],[0,1]].

P9

If P⁻¹AP = diag(2,5), then det(A) equals:

  • A) 7
  • B) 10
  • C) 3
  • D) 25
Show answer & explanation

Answer: B) 10

A similar to D ⇒ same det ⇒ 2·5=10.

P10

Rows of A are linearly dependent iff:

  • A) det(A)≠0
  • B) rank(A) < number of rows (for the row set under consideration)
  • C) A is diagonal
  • D) All eigenvalues positive
Show answer & explanation

Answer: B) rank(A) < number of rows (for the row set under consideration)

Dependence among rows means row-rank is strictly less than the number of those rows; for square A this is det=0.

Topic FAQs

Do I need SVD or Jordan form for GATE CSE?

No. Stick to rank, determinants, linear systems, eigenvalues/eigenvectors, similarity, and basic diagonalisation / Cayley–Hamilton.

Are complex eigenvalues in syllabus?

They can appear for real matrices (e.g. rotation-like blocks). Solve the characteristic polynomial honestly; do not assume all eigenvalues are real.

What is the fastest invertibility test in an MCQ?

det≠0, or rank=n, or 0 not an eigenvalue — pick whichever is cheapest from the given data.

How is geometric multiplicity related to diagonalisation?

Geometric multiplicity of λ = dim eigenspace = nullity(A−λI). A is diagonalizable iff for every λ, geometric multiplicity equals algebraic multiplicity.

Quick revision · 10 cards

10 flashcards — Linear Algebra

Hover a card to reveal the answer with a 3D flip. On touch devices, tap the card or use Show answer.

Q1 State the rank–nullity theorem for an m×n matrix A.
Q2 List equivalent conditions for an n×n matrix A to be invertible.
Q3 How do you read eigenvalues of a triangular matrix?
Q4 Write the 2×2 characteristic polynomial in terms of trace and det.
Q5 What do sum and product of eigenvalues equal?
Q6 When does Ax=b have infinite solutions?
Q7 State Cayley–Hamilton for GATE use.
Q8 When is A diagonalizable?
Q9 What is preserved under similarity A ↦ P⁻¹AP?
Q10 If Av=λv, what is Aᵏv?