Advanced Physics‹›⌂ 0:00 studied

Module 22 · 9 min read · Free chapter

Matrices, eigenvalues and tensors: matrix algebra, special matrices, eigenvalue problems, diagonalisation, Cayley-Hamilton theorem, Cartesian tensors

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: arrows that keep their direction

Stretch a rubber sheet with a grid drawn on it. Most arrows on the sheet change both length and direction. But a few special directions only get longer or shorter without turning. Those directions are the eigenvectors of the stretching, and the stretch factors are the eigenvalues.

Eigenvalue problems turn up everywhere in physics. The allowed energies of an atom are eigenvalues of the Hamiltonian (Schrödinger equation). The natural frequencies of a bridge or a molecule come from the same mathematics, and so do the principal axes of a spinning body.

Matrix algebra and special matrices

An m × n matrix is a rectangular array A=[aij]A = [a_{ij}]. The product C=ABC = AB has cij=∑kaikbkjc_{ij} = \sum_k a_{ik}b_{kj} and in general AB≠BAAB \neq BA: the commutator [A,B]=AB−BA[A, B] = AB - BA is central to quantum mechanics.

Inverse. A−1=adj⁡Adet⁡AA^{-1} = \dfrac{\operatorname{adj}A}{\det A}, which exists only when det⁡A≠0\det A \neq 0 (non-singular). Also (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} and (AB)T=BTAT(AB)^T = B^TA^T.

Trace tr⁡A=∑iaii\operatorname{tr}A = \sum_i a_{ii}, with tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA).

Type Definition Eigenvalues Physics example
symmetric AT=AA^T = A real inertia tensor, stiffness matrix
orthogonal ATA=IA^TA = I modulus 1 (det = ±1) rotation matrices
Hermitian A†=AA^\dagger = A real observables: H, Pauli matrices
anti-Hermitian A†=−AA^\dagger = -A purely imaginary iH, generators of rotations
unitary U†U=IU^\dagger U = I modulus 1 {time evolution e−iHt/ℏe^{-iHt/\hbar}

Here A†=(A∗)TA^\dagger = (A^*)^T is the conjugate transpose.

Rotation matrix about the z-axis by angle θ:

Rz(θ)=(cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001)R_z(\theta) = \begin{pmatrix}\cos\theta & -\sin\theta & 0\\ \sin\theta & \cos\theta & 0\\ 0 & 0 & 1\end{pmatrix}

It is orthogonal with determinant +1. Its trace 1+2cos⁡θ1 + 2\cos\theta is the same in every basis, which gives a quick way to read the rotation angle.

Pauli matrices:

σx=(0110),σy=(0−ii0),σz=(100−1)\sigma_x = \begin{pmatrix}0 & 1\\ 1 & 0\end{pmatrix}, \quad \sigma_y = \begin{pmatrix}0 & -i\\ i & 0\end{pmatrix}, \quad \sigma_z = \begin{pmatrix}1 & 0\\ 0 & -1\end{pmatrix}

They are Hermitian, unitary and traceless, with σi2=I\sigma_i^2 = I and [σx,σy]=2iσz[\sigma_x, \sigma_y] = 2i\sigma_z (spin half).

Linear equations. Ax⃗=b⃗A\vec{x} = \vec{b} has a unique solution when det⁡A≠0\det A \neq 0. The rank (number of independent rows) decides consistency when A is singular.

Eigenvalues, eigenvectors and diagonalisation

A non-zero vector x⃗\vec{x} is an eigenvector of A with eigenvalue λ if Ax⃗=λx⃗A\vec{x} = \lambda\vec{x}. Then (A−λI)x⃗=0(A - \lambda I)\vec{x} = 0 has a non-zero solution only if

det⁡(A−λI)=0\det(A - \lambda I) = 0

the characteristic equation, a polynomial of degree n.

Useful checks:

  • ∑λi=tr⁡A\sum\lambda_i = \operatorname{tr}A and ∏λi=det⁡A\prod\lambda_i = \det A.
  • Eigenvalues of a triangular matrix are its diagonal entries.
  • Eigenvalues of AkA^k are λk\lambda^k, and of A−1A^{-1} are 1λ\dfrac{1}{\lambda}.

Worked example. A=(2112)A = \begin{pmatrix}2 & 1\\ 1 & 2\end{pmatrix}. Characteristic equation (2−λ)2−1=0(2 - \lambda)^2 - 1 = 0 gives λ = 1, 3 (sum 4 = trace, product 3 = det). For λ = 3: x⃗=12(1,1)\vec{x} = \dfrac{1}{\sqrt{2}}(1, 1); for λ = 1: x⃗=12(1,−1)\vec{x} = \dfrac{1}{\sqrt{2}}(1, -1). They are orthogonal, as expected for a symmetric matrix.

Theorem: Hermitian matrices have real eigenvalues and orthogonal eigenvectors.

Proof. Let Ax⃗=λx⃗A\vec{x} = \lambda\vec{x}. Then x⃗†Ax⃗=λ x⃗†x⃗\vec{x}^\dagger A\vec{x} = \lambda\,\vec{x}^\dagger\vec{x}. Taking the conjugate transpose and using A†=AA^\dagger = A gives x⃗†Ax⃗=λ∗x⃗†x⃗\vec{x}^\dagger A\vec{x} = \lambda^*\vec{x}^\dagger\vec{x}. Since x⃗†x⃗>0\vec{x}^\dagger\vec{x} > 0, λ=λ∗\lambda = \lambda^*, so λ is real.

For two eigenvectors with λ1≠λ2\lambda_1 \neq \lambda_2: x⃗2†Ax⃗1=λ1x⃗2†x⃗1\vec{x}_2^\dagger A\vec{x}_1 = \lambda_1\vec{x}_2^\dagger\vec{x}_1 and also =λ2x⃗2†x⃗1= \lambda_2\vec{x}_2^\dagger\vec{x}_1. So (λ1−λ2)x⃗2†x⃗1=0(\lambda_1 - \lambda_2)\vec{x}_2^\dagger\vec{x}_1 = 0, giving x⃗2†x⃗1=0\vec{x}_2^\dagger\vec{x}_1 = 0. This is why measured quantities in quantum mechanics are real and different eigenstates are orthogonal.

Diagonalisation. If A has n independent eigenvectors, put them as columns of P. Then

P−1AP=D=diag⁡(λ1,…,λn)P^{-1}AP = D = \operatorname{diag}(\lambda_1, \ldots, \lambda_n)

A real symmetric matrix is diagonalised by an orthogonal P (a rotation to principal axes), and a Hermitian matrix by a unitary U. Then Ak=PDkP−1A^k = PD^kP^{-1} and eA=PeDP−1e^{A} = Pe^{D}P^{-1}, used for the time-evolution operator.

Similar matrices (B=S−1ASB = S^{-1}AS) share eigenvalues, trace and determinant, because these do not depend on the basis.

Cayley-Hamilton theorem and applications

Cayley-Hamilton theorem. If the characteristic polynomial of A is p(λ)=det⁡(A−λI)p(\lambda) = \det(A - \lambda I), then p(A)=0p(A) = 0.

Worked example. For A=(1234)A = \begin{pmatrix}1 & 2\\ 3 & 4\end{pmatrix}: p(λ)=λ2−5λ−2p(\lambda) = \lambda^2 - 5\lambda - 2. So A2−5A−2I=0A^2 - 5A - 2I = 0. Multiplying by A−1A^{-1}: A−5I−2A−1=0A - 5I - 2A^{-1} = 0, giving

A−1=12(A−5I)=(−2132−12)A^{-1} = \frac{1}{2}(A - 5I) = \begin{pmatrix}-2 & 1\\ \frac{3}{2} & -\frac{1}{2}\end{pmatrix}

Higher powers follow too: A3=5A2+2AA^3 = 5A^2 + 2A, and so on.

Coupled oscillators. Two equal masses m joined to walls and to each other by springs of constant k obey Mx⃗¨=−Kx⃗M\ddot{\vec{x}} = -K\vec{x} with

K=(2k−k−k2k)K = \begin{pmatrix}2k & -k\\ -k & 2k\end{pmatrix}

Trying x⃗=a⃗ eiωt\vec{x} = \vec{a}\,e^{i\omega t} gives the eigenvalue problem det⁡(K−mω2I)=0\det(K - m\omega^2 I) = 0, so ω1=km\omega_1 = \sqrt{\frac{k}{m}} (masses in phase, eigenvector (1, 1)) and ω2=3km\omega_2 = \sqrt{\frac{3k}{m}} (out of phase, eigenvector (1, −1)). These normal modes are the eigenvectors; any motion is a mix of them. The same method gives vibration frequencies of CO₂ and of buildings in earthquakes.

Least squares and inversion. For an overdetermined system Gm⃗=d⃗G\vec{m} = \vec{d} (more data than unknowns), minimising ∥d⃗−Gm⃗∥2\lVert\vec{d} - G\vec{m}\rVert^2 gives the normal equations

m⃗=(GTG)−1GTd⃗\vec{m} = (G^TG)^{-1}G^T\vec{d}

When GTGG^TG is nearly singular, geophysicists use singular value decomposition G=UΣVTG = U\Sigma V^T. The ratio of largest to smallest singular value is the condition number; damped (Marquardt-Levenberg) inversion adds ϵ2I\epsilon^2 I to stabilise it (least-squares fitting).

Cartesian tensors

Some physical quantities link two vectors in a way that depends on direction. In a crystal, current density need not be parallel to the electric field: Ji=σijEjJ_i = \sigma_{ij}E_j (summation over repeated indices). The nine numbers σij\sigma_{ij} form a second-rank tensor.

Definition by transformation. Under a rotation of axes xi′=aijxjx'_i = a_{ij}x_j (with aa orthogonal):

  • scalar (rank 0): ϕ′=ϕ\phi' = \phi, 1 component;
  • vector (rank 1): Ai′=aijAjA'_i = a_{ij}A_j, 3 components;
  • rank 2: Tij′=aikajlTklT'_{ij} = a_{ik}a_{jl}T_{kl}, 9 components;
  • rank n: 3n3^n components, each index transforming like a vector.

Special tensors.

  • Kronecker delta δij\delta_{ij} (1 if i = j, else 0): an isotropic rank-2 tensor, the same in every frame.
  • Levi-Civita symbol ϵijk\epsilon_{ijk} (+1 for even permutations of 123, −1 for odd, 0 if any index repeats): (A⃗×B⃗)i=ϵijkAjBk(\vec{A}\times\vec{B})_i = \epsilon_{ijk}A_jB_k.
  • Identity: ϵijkϵilm=δjlδkm−δjmδkl\epsilon_{ijk}\epsilon_{ilm} = \delta_{jl}\delta_{km} - \delta_{jm}\delta_{kl}, which proves every "BAC minus CAB" vector identity in one line.

Operations. Adding tensors of the same rank; outer product (rank adds: AiBjA_iB_j is rank 2); contraction (setting two indices equal and summing lowers the rank by 2: TiiT_{ii} is a scalar, the trace).

Quotient rule. If TijBjT_{ij}B_j is a vector for every vector BjB_j, then TijT_{ij} is a tensor of rank 2.

Physical tensors:

Tensor Relation Where
{inertia IijI_{ij} inertia IijI_{ij}} Li=IijωjL_i = I_{ij}\omega_j
{stress σij\sigma_{ij} stress σij\sigma_{ij}} force per area on face j along i
{strain eije_{ij} strain eije_{ij}} 12(∂ui∂xj+∂uj∂xi)\dfrac{1}{2}\left(\dfrac{\partial u_i}{\partial x_j} + \dfrac{\partial u_j}{\partial x_i}\right)
conductivity, permittivity Ji=σijEjJ_i = \sigma_{ij}E_j, Di=εijEjD_i = \varepsilon_{ij}E_j anisotropic crystals
{elastic stiffness cijklc_{ijkl} (rank 4) elastic stiffness cijklc_{ijkl} (rank 4)} σij=cijklekl\sigma_{ij} = c_{ijkl}e_{kl}

Inertia tensor: Iij=∑m(r2δij−xixj)I_{ij} = \sum m\left(r^2\delta_{ij} - x_ix_j\right). It is symmetric, so it can be diagonalised; its eigenvectors are the principal axes, along which L⃗\vec{L} is parallel to ω⃗\vec{\omega} (moment of inertia). For an isotropic elastic solid, cijklc_{ijkl} reduces to two Lamé constants λ and μ, which set the P-wave and S-wave speeds used in seismology.

Mains lens: how UPSC asks this

Matrices appear in quantum mechanics (Pauli matrices, Hermitian operators), rigid-body questions (inertia tensor, IFoS) and coupled oscillators in the CSE and IFoS papers. Geo-Scientist Geophysics asks eigenvalues, tensors and least-squares inversion directly (B1 and A4).

Expect:

  • Find eigenvalues and eigenvectors of a 2 × 2 or 3 × 3 matrix and diagonalise it (10 marks).
  • Prove that a Hermitian matrix has real eigenvalues and orthogonal eigenvectors.
  • Verify the Cayley-Hamilton theorem and find A−1A^{-1}.
  • Show that δij\delta_{ij} is an isotropic tensor, or that ϵijk\epsilon_{ijk} gives the cross product.
  • Find normal modes of two coupled pendulums.

Model answer plan: "Find the eigenvalues and normalised eigenvectors of (2112)\begin{pmatrix}2 & 1\\ 1 & 2\end{pmatrix} and diagonalise it." (10 marks).

  1. Characteristic equation and roots 1, 3; check with trace and determinant.
  2. Eigenvectors 12(1,−1)\dfrac{1}{\sqrt{2}}(1, -1) and 12(1,1)\dfrac{1}{\sqrt{2}}(1, 1), orthogonal.
  3. Form orthogonal P from them; show PTAP=diag⁡(1,3)P^TAP = \operatorname{diag}(1, 3).
  4. Remark: a 45° rotation to principal axes, as for coupled oscillators.

Quick revision

  • Hermitian: real eigenvalues, orthogonal eigenvectors; unitary: eigenvalues of modulus 1.
  • det⁡(A−λI)=0\det(A - \lambda I) = 0; sum λ = trace, product λ = det; P−1AP=DP^{-1}AP = D.
  • Cayley-Hamilton: p(A)=0p(A) = 0, gives A−1A^{-1} and powers.
  • Normal modes = eigenvectors; two coupled masses: km\sqrt{\frac{k}{m}}, 3km\sqrt{\frac{3k}{m}}.
  • Least squares (GTG)−1GTd⃗(G^TG)^{-1}G^T\vec{d}; SVD and damping for ill-conditioned inversion.
  • Rank-n tensor: 3n3^n components; δij\delta_{ij}, ϵijk\epsilon_{ijk}; inertia, stress, strain, cijklc_{ijkl}.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Find the eigenvalues and normalised eigenvectors of the matrix A = [[2, 1], [1, 2]] and diagonalise it.

    Show answer points
    • Characteristic equation (2 − λ)² − 1 = 0
    • λ = 1, 3; sum 4 = trace, product 3 = det
    • λ = 3: (1, 1)/√2; λ = 1: (1, −1)/√2, orthogonal
    • P with eigenvector columns is orthogonal; PᵀAP = diag(1, 3)
    • Geometrically a 45° rotation to principal axes
  2. Prove that the eigenvalues of a Hermitian matrix are real and that eigenvectors belonging to different eigenvalues are orthogonal. Why is this important in quantum mechanics?

    Show answer points
    • Ax = λx gives x†Ax = λ x†x
    • Conjugate transpose with A† = A gives x†Ax = λ* x†x, so λ = λ*
    • For λ1 ≠ λ2: (λ1 − λ2) x2†x1 = 0, so x2†x1 = 0
    • Observables are Hermitian: measured values real
    • Distinct eigenstates orthogonal: basis for expansion of any state
  3. State the Cayley-Hamilton theorem. Verify it for A = [[1, 2], [3, 4]] and use it to find A⁻¹.

    Show answer points
    • Every square matrix satisfies its characteristic equation
    • p(λ) = λ² − 5λ − 2
    • A² = [[7, 10], [15, 22]]; A² − 5A − 2I = 0 verified
    • Multiply by A⁻¹: A⁻¹ = (A − 5I)/2
    • A⁻¹ = [[−2, 1], [3/2, −1/2]]
  4. Two equal masses m are connected to fixed walls and to each other by three identical springs of constant k. Set up the equations of motion in matrix form and find the normal mode frequencies and mode shapes.

    Show answer points
    • m ẍ1 = −2k x1 + k x2, m ẍ2 = k x1 − 2k x2
    • Matrix form M ẍ = −K x, K = [[2k, −k], [−k, 2k]]
    • Trial x = a e^(iωt) gives det(K − mω²I) = 0
    • ω1 = √(k/m), mode (1, 1) in phase; ω2 = √(3k/m), mode (1, −1) out of phase
    • General motion is a superposition; energy exchange (beats) when one mass is displaced
  5. Define a Cartesian tensor of rank two by its transformation law. Show that the Kronecker delta is an isotropic tensor and express the cross product using the Levi-Civita symbol. Give two physical examples of second-rank tensors.

    Show answer points
    • T′ij = aik ajl Tkl under rotation x′i = aij xj
    • δ′ij = aik ajl δkl = aik ajk = δij by orthogonality: same in every frame
    • (A × B)i = εijk Aj Bk
    • εijk εilm = δjl δkm − δjm δkl
    • Examples: inertia tensor Lᵢ = Iᵢⱼωⱼ, stress tensor, conductivity Jᵢ = σᵢⱼEⱼ

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Mathematical physics

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU PHE-04 Mathematical Methods in Physics I: matrices and determinants
  2. MIT OpenCourseWare 18.06 Linear Algebra (Gilbert Strang)