Module 1: Mathematical physics · Lesson 1.1 · about 50 min
Linear vector spaces and Dirac notation
Vector spaces beyond arrows: bases and dimension, inner products and Cauchy-Schwarz, Gram-Schmidt, kets and bras, outer products, projectors and completeness, change of basis, Hermitian and unitary operators, function spaces and tensor products, the way GATE and CSIR NET test them.
Module 1 · about 50 minutes. By the end you will be able to decide whether a set is a vector space, count its dimension, use inner products and Gram-Schmidt in spaces of arrows, complex vectors and functions, and calculate fluently in Dirac notation: bras and kets, outer products, projectors, completeness and change of basis. This is the language of all of quantum mechanics. If 2 × 2 matrices and eigenvalues feel rusty, first skim the IIT JAM lesson on matrices and eigenvalues and vector algebra.
1. What makes a vector space
A vector space over the numbers (real or complex ) is a set where you can add any two members and multiply any member by a number, and the result stays in the set, with the familiar rules: addition is commutative and associative, there is a zero vector, every vector has a negative, and scalars distribute (, ).
That is all. Nothing says a vector must be an arrow. Spaces you will meet in GATE:
- and : columns of numbers (spin states live in ).
- Polynomials of degree at most : adding two keeps the degree at most .
- Square-integrable functions on an interval or on the whole line: the home of wavefunctions.
- matrices; Hermitian matrices (a real vector space, not a complex one).
The subspace test. A subset of a known vector space is itself a vector space exactly when it contains the zero vector and is closed under addition and scaling. That is the quickest way to answer “which of these sets is a vector space?”:
- Traceless matrices: yes, because the trace is linear.
- The plane : no, it misses the origin.
- Polynomials of degree exactly 3: no, .
- Matrices with determinant zero: no, .
2. Bases, dimension and components
Vectors are linearly independent if forces every . A basis is an independent set that spans the space; every basis has the same number of vectors, the dimension. Once a basis is chosen, each vector is a list of numbers, its components.
For numerical vectors, independence is a determinant (or rank) question. For functions, look for hidden relations first: makes dependent, and is dependent too. The Wronskian determinant settles harder cases.
Counting dimensions is a favourite NAT question. Count free real (or complex) parameters:
| Space | Dimension |
|---|---|
| polynomials of degree at most | |
| real symmetric matrices | |
| real antisymmetric matrices | |
| complex Hermitian matrices (over ) | |
| traceless Hermitian matrices (over ) |
The last row gives 3 for (the Pauli matrices) and 8 for (the Gell-Mann matrices).
3. Inner products: length and angle
An inner product assigns a number to each pair of vectors with three properties:
Physics puts the complex conjugate on the left slot: . The standard examples are
The norm is . Two inequalities hold in every inner-product space:
Cauchy-Schwarz becomes an equality only when one vector is a multiple of the other. In quantum mechanics it is the engine behind the uncertainty principle.
- ⟨u|v⟩
- the overlap of two vectors: how much of v points along u (a complex number in general)
- ‖v‖
- the length of v; for a wavefunction, ‖ψ‖² = 1 means total probability 1
- ⟨u|v⟩ = 0
- u and v are orthogonal: completely independent directions
- |⟨u|v⟩|²
- for normalised states, the probability that a system in state v is found in state u
- Physical meaning
- The inner product is what turns a list of amplitudes into measurable probabilities. Conjugating the left slot is what makes ⟨v|v⟩ a real, positive length for complex vectors.
Worked example. For and : . Orthogonal. Without the conjugate you would get , and would come out as for a non-zero vector, which is nonsense. Conjugation is not optional.
Not every formula is an inner product. on is one exactly when the symmetric matrix is positive definite: fails (it gives for ), while (trace 3, determinant 1, both eigenvalues positive) works.
4. Gram-Schmidt: building an orthonormal basis
Any basis can be straightened into an orthonormal one. Take the vectors one at a time and remove from each its components along the ones already made:
and finally divide each by its norm. Move the sliders: the part of along is the projection, and what is left, , is at right angles.
By Pythagoras, , a quick check on any calculation.
Worked example (functions). On with , orthogonalise . First . Next (odd), so . Then and , so . Up to normalisation these are the Legendre polynomials : Gram-Schmidt on powers of , with different weights and intervals, produces every classical orthogonal polynomial (Hermite with weight on the whole line, Laguerre with on ).
A trap with subspaces. To project onto a plane spanned by two vectors that are not orthogonal, you cannot add the two separate projections. Orthogonalise first, or (in ) subtract the projection on the normal. For the plane spanned by and , the normal is , and has squared projection onto the plane, not .
5. Dirac notation
Dirac’s notation separates a vector from the numbers that describe it, so the same symbols work in every basis and every space.
- A ket is a vector (a column).
- A bra is the linear map that sends to the number (a row: the conjugate transpose of ).
- The bra of is : the ket-to-bra map is antilinear.
Put a ket in front of a bra and you get an operator, the outer product:
For and , .
Orthonormal bases, completeness and projectors. If and the set is complete, every vector expands as with . Since that holds for every :
This resolution of the identity is the most useful line in the subject: insert it anywhere. For example , and an operator’s matrix is , so that .
Each is a projector: , , eigenvalues 0 and 1. Sums of projectors onto orthogonal states are projectors; differences are not (). The operator is a reflection: Hermitian, unitary, squares to , and has determinant .
Change of basis. The same operator has different matrices in different bases. With , swaps and , so in the basis its matrix is . The eigenvalues (), trace and determinant do not change; only the eigenbasis makes the matrix diagonal. If links the bases, .
Worked example (expectation value). and .
- Norm: , already normalised.
- .
- : the eigenvalues weighted by .
6. Operators: adjoint, Hermitian, unitary
The adjoint is defined by ; in an orthonormal basis its matrix is the conjugate transpose. The rules and settle most “is it Hermitian?” questions:
- , and are Hermitian when are.
- itself is anti-Hermitian, which is why carries an .
Hermitian operators () have real eigenvalues and orthogonal eigenvectors for different eigenvalues, and in finite dimensions their eigenvectors form an orthonormal basis (the spectral theorem): . Unitary operators () preserve every inner product, map orthonormal bases to orthonormal bases, and have eigenvalues of modulus 1. Having is not enough to be unitary: is a counter-example. The next lesson, Hermitian and unitary matrices, diagonalisation, works these out in detail.
Commuting operators share eigenvectors. If and , then is also an eigenvector of with eigenvalue . Without degeneracy that forces . With degeneracy, can be anything inside each eigenspace: the matrices commuting with form a space of dimension .
“A bra is just the transpose of the ket.” It is the conjugate transpose, and the map from kets to bras is antilinear: the bra of is . Forget the conjugate and inner products stop being positive ( would have “length” zero), probabilities can come out complex, and would not be Hermitian. When a calculation in gives a complex norm, look for a missing conjugate first.
7. Infinite dimensions and tensor products
Function spaces. On the functions are orthonormal and complete: expanding in them is the Fourier series (see the JAM lesson on Fourier series). Components are inner products, , and Parseval’s theorem is Pythagoras with infinitely many axes. For , , so .
The space of square-integrable functions is a Hilbert space: an inner-product space in which every Cauchy sequence converges. Two warnings for GATE:
- The plane wave and the delta function are not in : their norms are infinite. They are generalised eigenvectors of and , normalised to delta functions, , with completeness .
- Unbounded operators like have no normalisable eigenvectors at all: their spectrum is continuous.
Tensor products. Two systems with spaces of dimensions and combine into a space of dimension (not ), with basis . A state is a product state exactly when the matrix has rank 1; for two qubits, when . So (determinant ) is entangled. You can build and inspect such states in fibub’s quantum circuit simulator, and check any matrix calculation with the matrix calculator.
- A vector space needs only addition and scaling; subspace test: contains 0, closed under both. Arrows, , polynomials, functions and matrices are all vector spaces.
- Dimension = number of basis vectors. Symmetric , antisymmetric , Hermitian (real), traceless Hermitian .
- Inner product: conjugate on the left, or . Cauchy-Schwarz is an equality only for parallel vectors.
- Gram-Schmidt subtracts projections one at a time; on it gives the Legendre polynomials. Never add projections onto non-orthogonal vectors.
- Bra of is ; ; ; projectors have eigenvalues 0 and 1.
- Matrices change with the basis (); eigenvalues, trace and determinant do not. Commuting operators share eigenvectors.
- Plane waves and delta functions lie outside ; tensor-product dimensions multiply.
Practise: exam questions on this lesson
They climb from warm-up to top-rank level. Check each answer, then read the full solution. More on the linear vector spaces practice page, and every topic on the GATE Physics practice page.
Next: lesson 1.2, Hermitian and unitary matrices and diagonalisation. Back to the GATE Physics course home.
Check yourself
Sources
- P. A. M. Dirac, The Principles of Quantum Mechanics, 4th ed. (1958), chapters 1 and 2
- R. Shankar, Principles of Quantum Mechanics, 2nd ed. (1994), chapter 1
- G. B. Arfken, H. J. Weber and F. E. Harris, Mathematical Methods for Physicists, 7th ed. (2013), chapters 5 and 6
- S. Axler, Linear Algebra Done Right, 3rd ed. (2015), chapters 2, 6 and 7
- GATE Physics (PH) syllabus, Mathematical Physics section, published by the organising institute each year
Your ticks stay in this browser. Save them as a file on the course home.
Updated 2026-11-22. Not affiliated with the IITs, IISc or the GATE organising institute. The general aptitude part of GATE is not covered here. Check the official GATE website for the current pattern. All questions are original.