How Mathematics Works

Why Mathematicians Love to Generalize

Find out what generalization buys, from the law of cosines to sums of powers, how to do it well and the traps that make general claims fail.

Key takeaways

  • Generalizing widens a statement so that familiar facts become special cases of a single stronger one.
  • A good generalization reveals which hypotheses a result really depends on and which were accidents of the original setting.
  • Extending a definition, such as powers to negative exponents, is guided by which laws you want to keep.
  • A natural-looking generalization can be false or can lose useful properties, so it needs its own proof.

Mathematicians generalize because a general result does many jobs at once, and because it often shows why the special case was true in the first place. To generalize is to take a statement and widen the range of things it covers, by dropping a condition, adding a variable or moving to a broader kind of object.

The urge can look like a taste for making simple things complicated. Done well, it has the opposite effect. Details that never mattered fall away, and what remains is the part doing the work.

From one triangle to all triangles

The Pythagorean theorem says that in a right triangle with legs a and b and hypotenuse c, a² + b² = c². The condition "right triangle" limits it. What happens for other angles?

The law of cosines answers for every triangle, where C is the angle opposite side c:

c² = a² + b² − 2ab cos C

If C = 90°:   cos C = 0,    so c² = a² + b²        (Pythagoras)
If C = 60°:   cos C = 1/2,  so c² = a² + b² − ab

Example: a = 3, b = 4
   C = 90°:   c² = 9 + 16      = 25,  c = 5
   C = 60°:   c² = 9 + 16 − 12 = 13,  c = √13 ≈ 3.61

The old theorem has not been replaced. It is now a special case, and you can see exactly what the right angle was doing: it made the extra term vanish. The sign of that term also tells you whether c² is larger or smaller than a² + b², depending on whether C is obtuse or acute.

One argument instead of many

The angles of a triangle in the plane add to 180°. A quadrilateral's add to 360°. Rather than proving a new fact for every shape, you can show that a simple polygon with n sides (one that does not cross itself) can be cut into n − 2 triangles along diagonals. Its interior angles therefore total (n − 2) × 180°.

For a hexagon this gives 4 × 180° = 720°. For a polygon with 100 sides it gives 98 × 180° = 17640°, without drawing anything.

This is the plainest benefit: effort is spent once. A computer scientist writing one sorting routine that works on any list with a way of comparing items is doing something very similar.

Seeing what the proof really uses

When you try to push a proof into a wider setting, each step has to justify itself again. Steps that survive reveal the true ingredients.

Take the proof that the sum of two even integers is even: 2a + 2b = 2(a + b). Nothing in it depends on the number 2. Replace 2 by any integer d and the same line shows that the sum of two multiples of d is a multiple of d. The original fact was never about evenness in particular. It was about the distributive law.

Abstract algebra is built on this observation. By proving results from a short list of properties, one covers number systems, polynomials, matrices and symmetries together. The same move at its most basic level is described in how abstraction works.

Extending a definition without breaking it

Sometimes what gets generalized is a definition. At first, 2³ means 2 × 2 × 2, which makes no sense for an exponent of 0 or −1. The way forward is to ask which law we want to keep, here 2^(m+n) = 2^m × 2^n.

2^0:      2^0 × 2^3 = 2^3          so 2^0 = 1
2^(−1):   2^(−1) × 2^1 = 2^0 = 1   so 2^(−1) = 1/2
2^(1/2):  2^(1/2) × 2^(1/2) = 2    so 2^(1/2) = √2  (taking the positive root)

The new values are chosen, but not arbitrarily. They are forced by the demand that the old law continue to hold.

The factorial offers a deeper case. For positive whole numbers, n! = 1 × 2 × ... × n. Euler's gamma function, written Γ, extends it so that Γ(n) = (n − 1)!, and it is also defined for most other real and complex numbers. It gives Γ(3/2) = √π/2, so one can sensibly say that "one half factorial" has that value. Many functions match the factorial on whole numbers, though, and extra conditions are needed to single this one out.

Widening the Pythagorean idea
Inner product spaces Perpendicular vectors obey the rule in abstract settings Any triangle Law of cosines adds a term for the angle Right triangle a² + b² = c² The 3-4-5 triangle One example: 9 + 16 = 25 Inner product spaces Perpendicular vectors obey the rule in abstract settings Any triangle Law of cosines adds a term for the angle Right triangle a² + b² = c² The 3-4-5 triangle One example: 9 + 16 = 25

Higher layers are more general, and each contains the ones below as cases.

Distance in as many dimensions as you like

Generalization can also carry an idea past what you can picture. In the plane, the distance from the origin to the point (3, 4) is √(3² + 4²) = 5, straight from Pythagoras. In space, applying the theorem twice gives the distance to (x, y, z) as √(x² + y² + z²).

point (2, 3, 6):   √(4 + 9 + 36) = √49 = 7

The pattern invites a definition for a list of any length: the distance from the origin to (x₁, x₂, ..., xₙ) is √(x₁² + x₂² + ... + xₙ²). Nobody can visualize ten dimensions, but the formula behaves well, and statements such as the triangle inequality (a detour is never shorter than the direct route) remain true.

This is far from idle. A record with ten measurements, say of a house or a patient, can be treated as a point in ten-dimensional space, and "how similar are these two records?" becomes a question about distance, once the measurements are put on comparable scales. High dimensions also behave in ways that low-dimensional intuition misses. In an n-dimensional cube of side 1, the longest diagonal has length √n, which grows without limit even though every edge stays length 1. A cube in 100 dimensions has a diagonal of length 10.

Sometimes the general case is easier

You might expect a broader statement to be harder to prove. Often it is, but not always. Mathematical induction is a good illustration. To prove that 1 + 1/2 + 1/4 + ... up to 1/2¹⁰ stays below 2, you could add the fractions. It is more illuminating to prove that for every whole number n ≥ 0,

1 + 1/2 + 1/4 + ... + 1/2ⁿ  =  2 − 1/2ⁿ

The general formula holds for n = 0, since 1 = 2 − 1. If it holds for n, adding 1/2^(n+1) to both sides gives 2 − 1/2^(n+1), which is the formula for n + 1. The specific claim about n = 10 now drops out. A stronger statement gave the induction more to hold on to.

The mathematician George Pólya, who wrote widely on problem solving, called this the inventor's paradox: a more ambitious plan may have a better chance of success.

When generalizing goes wrong

A natural extension is only a guess until proved. The equation a² + b² = c² has many solutions in positive whole numbers. Replace the squares with cubes or any higher power n, and Fermat's Last Theorem, proved by Andrew Wiles in the 1990s, says there are no solutions at all.

Euler conjectured a further pattern: that at least n numbers that are nth powers are needed to add up to another nth power, for n greater than 2. It failed. In 1966 L. J. Lander and T. R. Parkin published a counterexample for fifth powers using only four terms:

27⁵ + 84⁵ + 110⁵ + 133⁵ = 144⁵

Generalizing can also cost properties. Moving from real to complex numbers gains solutions to equations but loses a compatible ordering. Moving on to quaternions loses the rule ab = ba. The wider setting is not automatically the better one.

Several directions from one starting point

There is seldom just one way to generalize. Start with the fact that 1 + 2 + ... + n = n(n + 1)/2.

You might change what is added and ask for the sum of squares, which turns out to be n(n + 1)(2n + 1)/6. For n = 4 that gives 4 × 5 × 9 / 6 = 30, matching 1 + 4 + 9 + 16.

You might change the spacing and sum any arithmetic sequence, one with a constant step. The total is the number of terms times the average of the first and last: 5 + 8 + 11 + 14 equals 4 × (5 + 14)/2 = 38.

Or you might read the original sum as counting pairs, since n(n + 1)/2 is the number of ways to choose 2 objects from n + 1. That points toward counting choices of 3, 4 or k objects. Each direction leads somewhere different, and part of mathematical taste is guessing which will be fertile.

How to generalize on purpose

Try these moves on any result you understand:

  1. Replace a specific number with a letter, and see whether the proof still runs.
  2. Delete a hypothesis, then look for a counterexample or a repaired proof.
  3. Raise the dimension, from line to plane to space.
  4. Ask what properties of the objects the argument used, and name every other object that has them.
  5. Test the new statement on small and extreme cases before trusting it.

Suppose you try these on the statement "the product of two consecutive whole numbers is even". Replace two by three and ask again: a product of three consecutive positive integers is divisible by 2 and by 3, hence by 6. For four, the product is divisible by 24, as 1 × 2 × 3 × 4 = 24 and 4 × 5 × 6 × 7 = 840 = 24 × 35 illustrate. The natural conjecture is that any k consecutive positive integers have a product divisible by k!. Two examples cannot establish it, but it is true, and a neat reason is that the product divided by k! counts the ways of choosing k objects from a larger collection, so it must be a whole number.

The last step protects you from false hopes, and hunting for counterexamples is a skill of its own. A good generalization should also repay the effort. If the only new examples it covers are contrived, it may be wider without being wiser. The best ones make you feel that you finally understand the case you started with, one of the marks of beautiful mathematics.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 32 articles in How Mathematics Works →

Latest news on this topic