Sets, Functions, and Maps
A set is a collection of objects, and a function is a rule that assigns to each element of one set exactly one element of another set. This is the minimal grammar behind vector spaces, operators, wavefunctions, time evolution, coordinate changes, and probability assignments.
The point is not to make quantum mechanics look set-theoretic. The point is to know what a statement such as actually commits you to: a domain, a codomain, and a rule.
Sets and Elements
Section titled “Sets and Elements”If is a set and is one of its elements, write
If every element of is also an element of , write and call a subset of . The empty set is written .
Common sets include
| Symbol | Meaning |
|---|---|
| natural numbers, with the starting convention stated when needed | |
| integers | |
| real numbers | |
| complex numbers | |
| Hilbert space |
Sets can be built from conditions. For example,
is the open interval .
Functions and Domains
Section titled “Functions and Domains”A function from to is written
The set is the domain, and is the codomain. For each , the function assigns a single element .
The codomain is part of the data. The two functions
and
have the same formula but different codomains. That difference affects whether the map is onto.
Images and Preimages
Section titled “Images and Preimages”If , the image of under is
If , the preimage of is
The notation for a preimage does not require to have an inverse function. It means all points in the domain that land in .
For example, if is , then
One-to-One, Onto, and Bijective
Section titled “One-to-One, Onto, and Bijective”A function is:
- injective if different inputs always give different outputs;
- surjective if every element of is hit by at least one input;
- bijective if it is both injective and surjective.
Equivalently, is injective when
and surjective when for every there exists at least one with
A bijection has a genuine inverse function
that reverses the assignment.
Composition and Identity Maps
Section titled “Composition and Identity Maps”If
then the composition is defined by
The order matters: means apply first and then .
Each set has an identity map
For a bijection , the inverse satisfies
Why Maps Matter in Physics
Section titled “Why Maps Matter in Physics”Quantum mechanics constantly uses maps:
| Map | What it does |
|---|---|
| assigns a complex amplitude to each position | |
| represents a linear operator in a simplified finite-dimensional setting | |
| evolves closed-system states in time | |
| evolves density operators unitarily | |
| sends a normalized state vector to its rank-one density operator |
Some maps are linear, some are nonlinear, some preserve inner products, and some are only defined on a suitable domain. Those extra properties are not automatic; they must be stated.
Worked Example
Section titled “Worked Example”Let
This map is surjective because every has at least one real square root. It is not injective because
while .
If instead the domain is restricted to ,
then is bijective and has inverse
The formula did not change; the domain did. This is why mathematical statements must keep track of domains.
Common Mistakes
Section titled “Common Mistakes”- Treating a formula as a complete function without specifying its domain and codomain.
- Confusing the preimage notation with an inverse function.
- Assuming a map is invertible because it is useful.
- Forgetting that composition order matters.
- Treating every physics map as linear.
- Ignoring domains when discussing differential operators or unbounded operators.
Cross-Links
Section titled “Cross-Links”- Mathematical Notation Used in This Volume
- Linear Maps
- Vector Spaces and Dual Spaces
- Inner Products
- Finite-Dimensional Hilbert Spaces
- Tensor Products
- Operators
References
Section titled “References”- P. R. Halmos, Naive Set Theory, Springer, 1974.
- S. Axler, Linear Algebra Done Right, 3rd ed., Springer, 2015.
- G. Strang, Linear Algebra and Its Applications, 4th ed., Brooks/Cole, 2006.
- B. C. Hall, Quantum Theory for Mathematicians, Springer, 2013.
Exercises
Section titled “Exercises”- Let be . Is injective? Is it surjective?
Solution
It is not injective because while . It is not surjective onto because no real input maps to a negative real number.
- For the same function , compute .
Solution
The preimage is
This is a preimage of a set, not an inverse function evaluated at .
- Let and . Which function is applied first in ?
Solution
The function is applied first: