Algebra, Geometry and Trigonometry at a Glance
Duality, One of Mathematics' Most Powerful Recurring Ideas
Explore duality through solids, logic, optimization and frequencies, and learn how a mirror version of a problem can solve the original.
Key takeaways
- A duality exchanges roles in a consistent way, so that true statements on one side correspond to true statements on the other.
- The Platonic solids, projective geometry and Boolean logic each give a duality you can check by hand.
- In linear programming, the dual problem supplies a certificate that a proposed solution cannot be beaten.
- Fourier analysis and linear algebra show dualities that swap descriptions, such as time and frequency or vectors and measurements.
Duality is a systematic pairing in which objects, and often whole statements, have mirror versions with certain roles swapped. Points trade places with lines, "and" trades places with "or", maximizing trades places with minimizing. Facts about one side translate into facts about the other.
There is no single definition covering every use of the word. What the examples share is that the swap, done twice, usually brings you back where you started, and that it often makes a hard question easier or proves two theorems for the price of one.
A first example: solids inside solids
Take a cube. Put a dot at the center of each of its six faces, and join dots whose faces share an edge. You have built an octahedron. Do the same to the octahedron and a smaller cube appears.
| Solid | Vertices | Edges | Faces |
|---|---|---|---|
| Tetrahedron | 4 | 6 | 4 |
| Cube | 8 | 12 | 6 |
| Octahedron | 6 | 12 | 8 |
| Dodecahedron | 20 | 30 | 12 |
| Icosahedron | 12 | 30 | 20 |
Vertices and faces swap, and edges stay put. The dodecahedron and icosahedron form another pair, and the tetrahedron is its own partner. Euler's formula V − E + F = 2 is unchanged by swapping V with F, which fits the pattern. Dual pairs also share the same symmetries: any rotation that preserves the cube preserves the octahedron built inside it.
The same face-to-point construction works for networks drawn in the plane without crossings, a topic related to planar graphs.
Points and lines
In the ordinary plane, two points determine a line, but two lines meet in a point only if they are not parallel. Projective geometry adds "points at infinity" where parallel lines meet. Then the two statements become perfect mirror images:
Any two distinct points lie on exactly one line.
Any two distinct lines meet in exactly one point. The axioms of the projective plane keep their form when you exchange "point" with "line" and "lies on" with "passes through". So every theorem has a dual theorem that needs no separate proof. Pascal's theorem, about six points on a conic, has as its dual Brianchon's theorem, about six lines tangent to a conic. The projective plane shows several models of this space.
The swap in coordinates
You can see why the swap works. Describe a point of the projective plane by three numbers (x, y, z), not all zero, and a line by three numbers (a, b, c), not all zero, where multiples count as the same. The point lies on the line when
ax + by + cz = 0 The condition treats the two triples identically. So the calculation that finds the line through two points is the very calculation that finds the point on two lines. For the points (1, 0, 1) and (0, 1, 1), the line is (−1, −1, 1), which in ordinary coordinates is x + y = 1. Read the same triples as two lines, x + 1 = 0 and y + 1 = 0, and the answer (−1, −1, 1) is their meeting point, (−1, −1).
And, or, not
Logic has a duality you may already use. De Morgan's laws say
not (A and B) = (not A) or (not B)
not (A or B) = (not A) and (not B) In Boolean algebra, if you take any valid identity built from and, or, not, true and false, and exchange "and" with "or" and "true" with "false", you get another valid identity. Since A and (B or C) equals (A and B) or (A and C), it follows at once that A or (B and C) equals (A or B) and (A or C). The second rule has no counterpart in ordinary arithmetic, which makes the free proof pleasant.
Quantifiers behave similarly. "Not every swan is white" means "some swan is not white".
Optimization and certificates
Here duality does practical work. Suppose you want to maximize profit 3x + 2y subject to
x + y ≤ 4
x ≤ 2
x ≥ 0, y ≥ 0 The point x = 2, y = 2 is allowed and earns 10. Could anything earn more? Multiply the first limit by u and the second by v, both nonnegative, and add. If u + v ≥ 3 and u ≥ 2, then
3x + 2y ≤ (u + v)x + u·y = u(x + y) + v·x ≤ 4u + 2v So every such pair (u, v) gives a ceiling on profit. Finding the lowest ceiling is the dual problem: minimize 4u + 2v subject to u + v ≥ 3, u ≥ 2 and v ≥ 0. Choose u = 2 and v = 1. The ceiling is 10, exactly what you earned. You have proved your plan is best.
For linear programs with a finite optimum, a basic theorem says that the two best values always agree. The dual variables also have a meaning: they price each resource, saying how much one more unit would be worth over some range. See linear programming for the setting.
Flows and bottlenecks
The same pattern appears in networks. Picture pipes carrying water from a source to a destination, each with a maximum rate. You want the largest total flow. The dual question asks for the cheapest "cut": a set of pipes whose removal disconnects the two ends, with the smallest total capacity.
Every flow must cross every cut, so no flow can exceed any cut's capacity. The max-flow min-cut theorem says the largest flow equals the smallest cut. If you find a flow of 12 units per minute and a cut of capacity 12, you can stop searching. Each answer certifies the other.
Vectors and the things that measure them
For a vector space V over the real numbers, consider all linear functions from V to the real numbers. They can be added and scaled, so they form a vector space too, called the dual space. If vectors are shopping baskets listing quantities, a dual vector is a price list that assigns each basket a total cost.
When V has finite dimension n, the dual also has dimension n. Matching them requires a choice, such as a coordinate system or an inner product. Going twice is better: V matches the dual of its dual in a way that needs no choice at all. Each vector acts on price lists by asking each one for its price. In infinite dimensions the story becomes subtler, and the double dual can be strictly bigger.
Time and frequency
Fourier analysis gives two descriptions of one signal: its values over time, and the strengths of its frequencies. The swap exchanges properties in a useful way.
- Convolution, a kind of running weighted average, becomes simple multiplication.
- A very short pulse needs a broad spread of frequencies, and a very pure tone must last a long time.
- A shift in time becomes a change of phase in frequency.
The second item is the mathematical root of the uncertainty principle in quantum physics. Pontryagin's duality theory generalizes the whole scheme to a large class of commutative groups.
Why duality pays off
When you meet a duality, you can ask your question on whichever side is friendlier. A statement about "all" on one side may become a statement about "there exists" on the other, as with the profit ceiling: instead of checking every plan, you exhibit one good pair of prices.
It also guides discovery. If you prove something on one side and translate it, you may find a statement nobody had thought to ask about. And when a structure is its own dual, like the tetrahedron or the axioms of the projective plane, that self-matching is a strong hint about which theorems should come in pairs.
Dualities also reverse order in many theories. In Galois theory, larger number systems correspond to smaller symmetry groups. In category theory, reversing all arrows in a definition produces its partner, so products have coproducts and each general theorem has a mirror.
How to look for a dual
When you meet a new problem, a few questions can uncover its mirror. What are the two kinds of thing here, and what relation connects them, such as lies on, contains or is bounded by? What happens if you exchange the two kinds? If you are searching for the largest of something, what would give an upper limit, and what is the smallest such limit?
Try it on a small case. In a timetable, courses and students are linked by enrollment. Statements about courses that share students have partners about students who share courses. The swap is automatic, since one table of 0s and 1s describes both, read by rows or by columns. In linear algebra that reading is the transpose of a matrix, and the theorem that row rank equals column rank is a quiet duality result.
A caution
Not every resemblance is a duality. A genuine one comes with a precise recipe for the swap and a theorem saying what is preserved. Check the hypotheses too. Strong duality in optimization can fail for problems that are not linear or convex, leaving a gap between the best plan and the best ceiling.