Vector Spaces, Linear Maps, Eigenvalues and the Minimal Polynomial

Linear Algebra is Section 2 of the GATE Mathematics paper and one of its most reliable sources of marks, because nearly every question reduces to a handful of invariants: dimension, rank and nullity, trace and determinant, the characteristic and minimal polynomials. This chapter covers the first half of the section — finite-dimensional vector spaces over ℝ or ℂ, linear transformations and their matrices, the rank–nullity theorem, systems of linear equations, eigenvalues and eigenvectors, diagonalisation, the minimal polynomial and the Cayley–Hamilton theorem. The second chapter takes inner products, the special classes of matrices, unitary diagonalisation, the Jordan form and quadratic forms. Throughout, the habit to build is to answer with an invariant rather than a computation: the rank of an idempotent matrix is its trace, a matrix is diagonalisable exactly when its minimal polynomial has no repeated root, and a high power of a matrix is a linear polynomial in it once Cayley–Hamilton is applied.
Overview

1. Subspaces, bases and dimension

1 min read · 2 parts

A basis of a vector space V is a linearly independent spanning set, and every basis of a finite-dimensional V has the same number of elements, its dimension. Any independent set extends to a basis and any spanning set contains one. For subspaces U, W of V: U ∩ W and U + W are subspaces, dim(U + W) = dim U + dim W − dim(U ∩ W), and U ∪ W is a subspace only if one of them contains the other.

Dimensions the paper keeps asking
SpaceDimension
n × n real matricesn²
symmetric n × n matricesn(n + 1)/2
skew-symmetric n × n matricesn(n − 1)/2
n × n matrices of trace 0n² − 1
n × n upper triangular matricesn(n + 1)/2
real polynomials of degree ≤ nn + 1
ℂⁿ as a vector space over ℝ2n
n × n complex Hermitian matrices, over ℝn²
⚠️ The field changes the dimension
ℂ is one-dimensional over ℂ and two-dimensional over ℝ, with basis {1, i}. The Hermitian matrices are not a complex vector space at all (iH is skew-Hermitian), but over ℝ they form a space of dimension n²: n real diagonal entries plus 2 real parameters for each of the n(n − 1)/2 entries above the diagonal. Always ask over which field the question is set.

A basis of a vector space V is a linearly independent spanning set, and every basis of a finite-dimensional V has the same number of elements, its dimension. Any independent set extends to…

2. Linear transformations, matrices and rank–nullity

1 min read · 3 parts

A linear T: V → W between finite-dimensional spaces, once bases are fixed, is a matrix, and a change of bases in V = W replaces the matrix A by P⁻¹AP, a similar matrix with the same rank, trace, determinant, characteristic and minimal polynomials. The rank–nullity theorem says dim V = rank T + nullity T, where rank T = dim T(V) and nullity T = dim ker T. Row rank equals column rank, and rank(AB) ≤ min(rank A, rank B).

  • For T: V → V with V finite-dimensional, injective ⇔ surjective ⇔ invertible, straight from rank–nullity. On an infinite-dimensional space this fails: the shift (x₁, x₂, …) ↦ (0, x₁, x₂, …) is injective and not onto.
  • Differentiation D on the polynomials of degree ≤ n has kernel the constants, so nullity 1 and rank n; D² has nullity 2 and rank n − 1. D is nilpotent: Dⁿ⁺¹ = 0.
  • If T² = 0 then T(V) ⊆ ker T, so rank T ≤ nullity T and rank T ≤ (dim V)/2.

Linear systems. Ax = b with A of size m × n is consistent exactly when rank A = rank [A | b]; it then has a unique solution if this common rank is n, and otherwise a family of solutions of dimension n − rank A, namely one particular solution plus the null space of A.

Solving Ax = b (A is m × n)
Compare rank A and rank [A | b]
  • Unequal: inconsistent
  • Equal: consistent
    • Common rank n: unique solution
    • Less than n: family of dimension n − rank A

A linear T: V → W between finite-dimensional spaces, once bases are fixed, is a matrix, and a change of bases in V = W replaces the matrix A by P⁻¹AP, a similar matrix with the same rank…

3. Eigenvalues, eigenvectors and diagonalisation

1 min read · 1 part

λ is an eigenvalue of A when A − λI is singular, i.e. a root of the characteristic polynomial pA(x) = det(xI − A). The sum of the eigenvalues (with algebraic multiplicity) is the trace and their product is the determinant. The algebraic multiplicity of λ is its multiplicity as a root of pA; its geometric multiplicity is dim ker(A − λI), and 1 ≤ geometric ≤ algebraic.

  • A is diagonalisable (A = PDP⁻¹) ⇔ it has n independent eigenvectors ⇔ geometric = algebraic multiplicity for every eigenvalue. n distinct eigenvalues are sufficient, not necessary (I is diagonal with one eigenvalue).
  • If Av = λv then p(A)v = p(λ)v for any polynomial p, and A⁻¹v = λ⁻¹v when A is invertible; so the eigenvalues of A² + I are λ² + 1.
  • A rank-one matrix uvᵀ has eigenvalues vᵀu and 0 (with multiplicity n − 1); the all-ones n × n matrix has eigenvalues n and 0. So aI + bJ has eigenvalues a + nb and a (n − 1 times).
⚠️ The shear [[1, 1], [0, 1]]
Its only eigenvalue is 1, with algebraic multiplicity 2, but A − I = [[0, 1], [0, 0]] has rank 1, so the geometric multiplicity is 1: one independent eigenvector, (1, 0), and A is not diagonalisable over ℝ or ℂ, although it is invertible. Invertibility and diagonalisability are independent properties; [[0, 0], [0, 1]] is diagonal and singular.

λ is an eigenvalue of A when A − λI is singular, i.e. a root of the characteristic polynomial pA(x) = det(xI − A). The sum of the eigenvalues (with algebraic multiplicity) is the trace and…

4. The minimal polynomial and the Cayley–Hamilton theorem

1 min read · 3 parts

Cayley–Hamilton: every square matrix satisfies its characteristic polynomial, pA(A) = 0. The minimal polynomial mA is the monic polynomial of least degree with mA(A) = 0; it divides every polynomial that kills A, in particular pA, and it has exactly the same roots as pA (each eigenvalue appears, possibly with smaller multiplicity).

What the minimal polynomial tells you
FactConsequence
mA has distinct roots (splits into distinct linear factors)A is diagonalisable, and conversely
A² = A (idempotent)mA divides x(x − 1): diagonalisable with eigenvalues 0, 1, and rank A = trace A
A³ = AmA divides x(x − 1)(x + 1): diagonalisable, eigenvalues in {0, 1, −1}
Ak = 0 for some k (nilpotent)every eigenvalue is 0 and Aⁿ = 0; a non-zero nilpotent is never diagonalisable
the largest power of (x − λ) in mAthe size of the largest Jordan block for λ
🧠 Powers and inverses from Cayley–Hamilton
For a 2 × 2 matrix, pA(x) = x² − (tr A)x + det A. With A = [[1, 2], [3, 4]], tr A = 5 and det A = −2, so A² = 5A + 2I. Then A³ = 5A² + 2A = 27A + 10I and A⁴ = 27A² + 10A = 145A + 54I, with no matrix multiplication at all. Dividing A² − 5A − 2I = 0 by A gives A⁻¹ = (A − 5I)/2.

Cayley–Hamilton: every square matrix satisfies its characteristic polynomial, pA(A) = 0. The minimal polynomial mA is the monic polynomial of least degree with mA(A) = 0; it divides every…

Key takeaways

  • dim(U + W) = dim U + dim W − dim(U ∩ W); the union of two subspaces is a subspace only when one contains the other.
  • rank T + nullity T = dim V; on a finite-dimensional space injective, surjective and invertible coincide.
  • Ax = b is consistent iff rank A = rank [A | b], and the solution set has dimension n − rank A.
  • Trace = sum and determinant = product of eigenvalues; diagonalisable iff geometric equals algebraic multiplicity for each eigenvalue.
  • The minimal polynomial divides the characteristic polynomial, shares its roots, and has distinct roots exactly when A is diagonalisable.

Practice questions (24)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. The dimension of the real vector space of all 4 × 4 real skew-symmetric matrices is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 6

    A skew-symmetric matrix has zero diagonal and is fixed by its entries above the diagonal, of which there are n(n − 1)/2 = 4 × 3/2 = 6. The symmetric matrices would give n(n + 1)/2 = 10, and 6 + 10 = 16 = n², as it must.
  2. Let V be the space of real polynomials of degree at most 4 and T: V → V the map T(p) = p″ (the second derivative). The rank of T is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 3

    dim V = 5 (basis 1, x, x², x³, x⁴). ker T is the polynomials of degree ≤ 1, of dimension 2, so by rank–nullity rank T = 5 − 2 = 3; indeed the image is spanned by 2, 6x, 12x². Answering 4 treats T as a single derivative.
  3. U and W are subspaces of ℝ⁷ with dim U = 4 and dim W = 5. The smallest possible value of dim(U ∩ W) is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    dim(U ∩ W) = dim U + dim W − dim(U + W) ≥ 4 + 5 − 7 = 2, because U + W sits inside ℝ⁷. The bound is attained by U = span(e₁, …, e₄), W = span(e₃, …, e₇), whose intersection is span(e₃, e₄).
Show the other 21 questions
  1. Let V be a finite-dimensional vector space and T: V → V linear. Which statements are always true?

    1. T is injective if and only if T is surjective
    2. if T² = 0 then rank T ≤ (dim V)/2
    3. rank T² = rank T
    4. rank T + nullity T = dim V
    Show answer

    Answer: A — T is injective if and only if T is surjective; B — if T² = 0 then rank T ≤ (dim V)/2; D — rank T + nullity T = dim V

    (1) and (4) are rank–nullity: nullity 0 ⇔ rank = dim V.
    (2) T² = 0 gives T(V) ⊆ ker T, so rank ≤ nullity = dim V − rank.
    (3) is false: T = [[0, 1], [0, 0]] has rank 1 and T² = 0 has rank 0.
  2. The system x + y + z = 1, x + 2y + 3z = 2, x + 3y + 5z = k in real unknowns

    1. is consistent only for k = 3, and then has infinitely many solutions
    2. is consistent for every k and has a unique solution
    3. is consistent only for k = 3, and then has a unique solution
    4. is inconsistent for every k
    Show answer

    Answer: A — is consistent only for k = 3, and then has infinitely many solutions

    R₂ − R₁ = (0, 1, 2 | 1) and R₃ − R₂ = (0, 1, 2 | k − 2). These agree only if k − 2 = 1, i.e. k = 3; otherwise rank A = 2 < rank [A | b] = 3. For k = 3, rank A = 2 < 3 unknowns, so the solutions form a one-parameter family. The determinant of A is 0, which rules out uniqueness for every k.
  3. For A = [[2, 1, 1], [1, 2, 1], [1, 1, 2]], the sum of the eigenvalues of A⁻¹ is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2.25

    A = I + J with J the all-ones matrix, whose eigenvalues are 3, 0, 0; so A has eigenvalues 4, 1, 1 (check: trace 6, determinant 4). A⁻¹ has eigenvalues 1/4, 1, 1, summing to 2.25. The reciprocal of the trace, 1/6, is the tempting wrong answer.
  4. For A = [[1, 1], [0, 1]], which statements are true?

    1. A is not diagonalisable over ℂ
    2. the minimal polynomial of A is (x − 1)²
    3. the geometric multiplicity of the eigenvalue 1 is 2
    4. A is invertible
    Show answer

    Answer: A — A is not diagonalisable over ℂ; B — the minimal polynomial of A is (x − 1)²; D — A is invertible

    A − I = [[0, 1], [0, 0]] ≠ 0 but (A − I)² = 0, so mA = (x − 1)², which has a repeated root:
    (1) and
    (2) true. ker(A − I) = span{(1, 0)} has dimension 1, so
    (3) is false. det A = 1 ≠ 0, so
    (4) is true.
  5. A real 3 × 3 matrix A has eigenvalues 1, 2 and 3. The eigenvalues of A² + I are

    1. 2, 5, 10
    2. 2, 3, 4
    3. 1, 4, 9
    4. 3, 6, 11
    Show answer

    Answer: A — 2, 5, 10

    If Av = λv then (A² + I)v = (λ² + 1)v, so the eigenvalues are 1 + 1, 4 + 1, 9 + 1 = 2, 5, 10. Since A has three distinct eigenvalues these are all of them. Adding 1 to λ instead of λ² gives 2, 3, 4.
  6. Let A = [[1, 2], [3, 4]]. By the Cayley–Hamilton theorem A⁴ = αA + βI for real numbers α, β. The value of α is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 145

    tr A = 5, det A = −2, so A² = 5A + 2I. Then A³ = 5A² + 2A = 5(5A + 2I) + 2A = 27A + 10I and A⁴ = 27A² + 10A = 27(5A + 2I) + 10A = 145A + 54I. Check the (1, 1) entry: A⁴ has 199 = 145 + 54.
  7. Let A be an n × n complex matrix. Which statements are true?

    1. A is diagonalisable if and only if its minimal polynomial has no repeated root
    2. the minimal and characteristic polynomials of A have the same roots
    3. if A³ = A then A is diagonalisable
    4. if A² = 0 and A ≠ 0 then A is diagonalisable
    Show answer

    Answer: A — A is diagonalisable if and only if its minimal polynomial has no repeated root; B — the minimal and characteristic polynomials of A have the same roots; C — if A³ = A then A is diagonalisable

    (1) is the standard criterion over ℂ.
    (2) mA divides pA, and every eigenvalue λ is a root of mA because mA(A)v = mA(λ)v = 0 for an eigenvector v.
    (3) mA divides x³ − x = x(x − 1)(x + 1), which has distinct roots.
    (4) mA = x², a repeated root; e.g. [[0, 1], [0, 0]].
  8. Let u = (1, 2, 3)ᵀ, v = (1, 1, 1)ᵀ and A = uvᵀ. The trace of A³ is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 216

    A = uvᵀ has rank 1 and A² = u(vᵀu)vᵀ = (vᵀu)A with vᵀu = 6. So A³ = 36A, and trace A³ = 36 × trace A = 36 × 6 = 216; equivalently the eigenvalues of A³ are 6³, 0, 0.
  9. A 5 × 5 real matrix P satisfies P² = P and trace P = 3. The rank of P is

    1. 3
    2. 2
    3. 5
    4. not determined by the data
    Show answer

    Answer: A — 3

    mP divides x(x − 1), so P is diagonalisable with eigenvalues 0 and 1. Its rank is the number of eigenvalues equal to 1, which is the trace: 3. An idempotent is the projection onto its image along its kernel.
  10. The number of linearly independent eigenvectors of [[2, 1, 0], [0, 2, 0], [0, 0, 3]] is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    Eigenvalue 2 has algebraic multiplicity 2, but A − 2I = [[0, 1, 0], [0, 0, 0], [0, 0, 1]] has rank 2, so its kernel is one-dimensional. Eigenvalue 3 contributes one more. Total 2, so the matrix is not diagonalisable.
  11. The dimension of the real vector space of all 3 × 3 real symmetric matrices is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 6

    A symmetric matrix is fixed by its diagonal (3) and upper triangle (3): 6 = n(n + 1)/2. Answering 9 counts all entries; 3 counts only the skew-symmetric dimension n(n − 1)/2.
  12. A linear map T: ℝ⁵ → ℝ³ has rank 3. The dimension of its null space is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    Rank–nullity uses the DOMAIN dimension: nullity = 5 − 3 = 2. Using the codomain (3 − 3 = 0) is the classic slip.
  13. The product of the eigenvalues of A = [[2, 1], [1, 3]] is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 5

    The product of eigenvalues equals det A = 6 − 1 = 5. Here the trace happens to be 5 as well, so the safe habit is to use the right invariant: the product is the determinant, the sum is the trace; squaring the trace (25) is the usual slip.
  14. The sum of the eigenvalues of A = [[1, 2], [3, 4]] is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 5

    The sum of eigenvalues is the trace, 1 + 4 = 5. Answering −2 gives the determinant (4 − 6), which is their product.
  15. The eigenvalues of an upper-triangular matrix are

    1. the row sums
    2. all zero
    3. the entries of its first row
    4. its diagonal entries
    Show answer

    Answer: D — its diagonal entries

    det(A − λI) of a triangular matrix is the product of (aᵢᵢ − λ), so the eigenvalues are the diagonal entries. Row sums are eigenvalues only in special cases (when all rows sum to the same number).
  16. The dimension of span{(1, 2, 3), (2, 4, 6), (1, 0, 1)} in ℝ³ is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    (2, 4, 6) = 2(1, 2, 3), so only two of the vectors are independent: dimension 2. Answering 3 just counts the vectors.
  17. The degree of the minimal polynomial of A = [[2, 1, 0], [0, 2, 0], [0, 0, 3]] is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 3

    (A − 2I)(A − 3I) ≠ 0 because of the Jordan block for 2, while (A − 2I)²(A − 3I) = 0, so the minimal polynomial is (x − 2)²(x − 3) of degree 3. Answering 2 assumes A is diagonalisable.
  18. Let J be the 4 × 4 matrix with every entry 1. The value of det(I + J) is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 5

    J has rank 1 with eigenvalues 4, 0, 0, 0, so I + J has eigenvalues 5, 1, 1, 1 and determinant 5. Answering 2⁴ = 16 treats the diagonal 2s as if the matrix were diagonal.
  19. The dimension of the space of real polynomials p of degree at most 4 with p(1) = 0 and p(2) = 0 is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 3

    The two conditions are independent linear functionals on the 5-dimensional space, so the dimension is 5 − 2 = 3 (p = (x − 1)(x − 2)q with deg q ≤ 2). Answering 2 subtracts from 4, the degree, instead of from 5, the dimension.
  20. For A = [[1, 1], [1, 0]], the trace of A³ is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 4

    tr A³ = λ₁³ + λ₂³ with λ = (1 ± √5)/2; equivalently A³ = [[3, 2], [2, 1]], trace 4 (a Lucas number). Cubing the trace (1³ = 1) is wrong because tr(A³) ≠ (tr A)³.
  21. If A and B are similar n × n matrices (B = P⁻¹AP), which of the following must they share?

    1. The determinant
    2. The eigenvectors
    3. The rank
    4. The characteristic polynomial
    Show answer

    Answer: A — The determinant; C — The rank; D — The characteristic polynomial

    Similarity is a change of basis, so basis-independent quantities (characteristic polynomial, hence trace and determinant, and rank) agree. Eigenvectors are coordinates and change with the basis: if Av = λv then B(P⁻¹v) = λP⁻¹v.