The Role of Examples and Counterexamples in Mathematics
How examples and counterexamples drive mathematical understanding, with a catalog of famous counterexamples and strategies for constructing your own.
Why Examples Are the Lifeblood of Mathematics
When Paul Halmos was asked for advice on learning mathematics, he said:
"A good stock of examples, as large as possible, is indispensable for a thorough understanding of any concept."
Examples are how we test definitions, verify theorems, build intuition, and discover new results. Counterexamples are how we understand the limits of our theorems and the necessity of our hypotheses.
This post explores the role of both in mathematical thinking.
Examples: What They Do
1. Making Definitions Concrete
Definitions in mathematics are abstract. Examples make them real.
When you first encounter the definition of a group — a set with an operation satisfying closure, associativity, identity, and inverses — it can feel arbitrary. But the moment you see examples, the definition comes alive:
- : the integers under addition. The identity is , the inverse of is .
- : the symmetric group on three elements, consisting of all permutations of .
- : integers modulo under addition.
- The trivial group : the simplest example.
Each example highlights a different aspect of the definition. shows that groups can be infinite and abelian. shows that groups can be finite and non-abelian. The trivial group shows the definition is not vacuous.
2. Testing Conjectures
Before trying to prove a statement, test it on examples. This can either:
- Build confidence that the statement is true, motivating a proof attempt.
- Reveal a counterexample, saving you from trying to prove something false.
Example. "Every continuous function on a closed interval is bounded." Test this on on — bounded. Test on — bounded. The conjecture looks plausible. (It is in fact true, as a consequence of the extreme value theorem.)
Now try: "Every continuous function on an open interval is bounded." Test on — unbounded. Counterexample found. The closed interval hypothesis is necessary.
3. Guiding Proof Strategy
Often, working through an example reveals the structure of a general proof.
If you need to prove that every finite integral domain is a field, start by examining . In this specific case, you can verify that every nonzero element has a multiplicative inverse by listing them:
(Here all arithmetic is modulo 5.) The key observation is that the map is injective for (because the ring has no zero divisors), and an injective map from a finite set to itself is surjective. This specific observation generalizes directly to the proof for any finite integral domain.
Counterexamples: Why They Matter
A counterexample is an example showing that a statement is false. In mathematics, a single counterexample is enough to destroy a conjecture, no matter how plausible it seems.
Principle. A theorem with hypotheses needs counterexamples — one for each hypothesis — to show that no hypothesis can be dropped.
Famous Counterexamples
Here is a collection of counterexamples that every mathematics student should know:
Analysis
Claim (false): Every continuous function is differentiable.
Counterexample: The Weierstrass function where , is a positive odd integer, and . This function is continuous everywhere and differentiable nowhere. Karl Weierstrass presented it in 1872, shocking the mathematical community.
Claim (false): If pointwise and each is continuous, then is continuous.
Counterexample: Let on . Each is continuous, and for and . The limit function is discontinuous at . This is why we need uniform convergence to preserve continuity.
Claim (false): If converges, then rapidly.
Counterexample: The harmonic-like series diverges even though . Convergence of to zero is necessary but not sufficient for convergence of the series.
Algebra
Claim (false): Every group in which every element has order 2 is abelian.
Wait — this one is actually true. If for all , then , so . This illustrates that sometimes the conjecture is correct, and the "counterexample hunt" instead reveals a proof.
Claim (false): Every commutative ring with unity is an integral domain.
Counterexample: is a commutative ring with unity, but , so it has zero divisors and is not an integral domain.
Topology
Claim (false): Every connected space is path-connected.
Counterexample: The topologist's sine curve, defined as the closure of in . This space is connected but not path-connected — you cannot draw a continuous path from a point on the -axis to a point on the oscillating curve.
Claim (false): A subset of is compact if and only if it is bounded.
Counterexample: is bounded but not compact (consider the open cover ). Compactness in requires both closed and bounded (Heine-Borel).
Linear Algebra
Claim (false): If , then or .
Counterexample: , . Then but neither nor is the zero matrix.
How to Construct Counterexamples
Finding counterexamples is a skill. Here are strategies:
Strategy 1: Start Small
Try the smallest or simplest objects first. For groups, try , , . For topological spaces, try , , . For matrices, try matrices.
Strategy 2: Look at the Hypotheses
If a theorem requires hypothesis , look for an object that satisfies all hypotheses except and check whether the conclusion fails.
Strategy 3: Use Pathological Examples
Mathematics has a rich tradition of "pathological" objects designed to break naive assumptions:
- The Cantor set (uncountable, measure zero, nowhere dense, compact, totally disconnected)
- The Dirichlet function (discontinuous everywhere)
- The long line (connected, locally Euclidean, not second-countable)
- The Hawaiian earring (path-connected, not semi-locally simply connected)
Keeping a mental catalog of these objects is extremely useful.
Strategy 4: Modify Known Examples
If you know one counterexample, you can often modify it to create others. The Weierstrass function can be adapted to create functions with various combinations of continuity, differentiability, and integrability properties.
Building Your Own Example Library
Every serious mathematics student should maintain a personal catalog of examples and counterexamples, organized by subject.
A useful format is:
| Concept | Example | Counterexample |
|---|---|---|
| Continuous function | Dirichlet function | |
| Compact set | ||
| Normal subgroup | in | |
| Connected space |
Add to this catalog as you learn new concepts. Over time, it becomes one of your most valuable study resources.
The Art of the Minimal Example
A minimal example is the simplest object that exhibits a particular property. Finding minimal examples is an art:
- The smallest non-abelian group is (order 6).
- The smallest field that is not for any prime is (the field with 4 elements).
- The simplest example of a normal extension that is not Galois (in characteristic ) is a purely inseparable extension.
Minimal examples are valuable because they strip away all irrelevant complexity, leaving only the essential structure.
When Examples Lead to Theorems
Sometimes, the careful study of examples leads to the discovery of new theorems.
Euler studied examples of polyhedra and noticed that for every convex polyhedron (vertices minus edges plus faces). This observation, born from examples, led to one of the most important results in topology: the Euler characteristic.
Gauss studied examples of primes and conjectured the prime number theorem based on numerical evidence, long before a proof was found.
In both cases, extensive computation and example-gathering preceded the general result.
Summary
- Examples make abstract definitions concrete and testable.
- Counterexamples reveal the necessity of hypotheses and the limits of theorems.
- Building a personal library of examples is one of the most effective study strategies in mathematics.
- Learning to construct counterexamples is a skill that improves with practice.
The mathematician who has the richest collection of examples has the deepest understanding.
References
- Lynn Arthur Steen and J. Arthur Seebach Jr., Counterexamples in Topology, Dover, 1995.
- Bernard Gelbaum and John Olmsted, Counterexamples in Analysis, Dover, 2003.
- Joseph Romano and Andrew Siegel, Counterexamples in Probability and Statistics, Chapman and Hall, 1986.
- Paul Halmos, I Want to Be a Mathematician, Springer, 1985.
- John B. Conway, A Course in Functional Analysis, Springer, 1990.
- Michael Artin, Algebra, Pearson, 2010.