Necessary and Sufficient Conditions Made Clear
Tell necessary from sufficient with plain tests, translate "only if" correctly and avoid the reversals that spoil many arguments.
Key takeaways
- "P is sufficient for Q" and "Q is necessary for P" both mean the same thing as "if P then Q".
- The phrase "P only if Q" states that Q is necessary for P, so it does not promise that Q brings P about.
- A condition that is both necessary and sufficient is equivalent to the statement and needs two proofs, one in each direction.
- To show that a condition fails to be sufficient or necessary, produce a single counterexample of the right kind.
A condition P is sufficient for Q if P being true guarantees that Q is true. A condition P is necessary for Q if Q cannot be true without P. Sufficient means "this is enough", and necessary means "you cannot do without this".
Being divisible by 4 is sufficient for a whole number to be even, but it is not necessary, since 6 is even too. Being even is necessary for divisibility by 4, but it is not sufficient. Much confusion in mathematics and in daily argument comes from swapping these two.
One arrow, two descriptions
Write "if P then Q" as P → Q. This single arrow can be read from either end.
Reading from the tail: P is sufficient for Q. Once you know P, you are entitled to Q.
Reading from the head: Q is necessary for P. If Q is false, P must be false as well, because P would have forced Q to be true.
So "being a square is sufficient for being a rectangle" and "being a rectangle is necessary for being a square" say exactly the same thing. They differ only in which property you are focusing on.
A picture helps. Draw the set of all squares inside the set of all rectangles. Being in the small set is sufficient for being in the large one. Being in the large set is necessary for being in the small one. Venn diagrams make this visible at a glance.
Translating everyday phrasing
English offers many ways to state the same arrow, and some of them put the clauses in a surprising order.
| Sentence | Arrow | What is sufficient |
|---|---|---|
| If P, then Q | P → Q | P, for Q |
| Q if P | P → Q | P, for Q |
| P only if Q | P → Q | P, for Q |
| Q whenever P | P → Q | P, for Q |
| P unless Q | not Q → P | not Q, for P |
| P if and only if Q | P → Q and Q → P | each, for the other |
The hardest row for most readers is "only if". Take "a number is divisible by 10 only if it ends in an even digit". This is true: every multiple of 10 ends in 0, which is even. It does not say that an even last digit gets you divisibility by 10, as 12 shows.
For "unless", rephrase with "if not". "The quadratic has no real roots unless b² − 4c ≥ 0" means that if b² − 4c is not at least 0, there are no real roots. Translating English into symbols covers more of these.
The four possibilities
For any condition you propose, there are exactly four ways it can relate to the property you care about. Take the property "the whole number n is even".
Check the third cell. Every even number avoids being an odd prime, so the condition is necessary. But 9 also is not a prime, and 9 is odd, so the condition is not sufficient.
For the fourth, 102 and 101 are both greater than 100 with different parity, so it is not sufficient. And 2 is even without being greater than 100, so it is not necessary.
Testing a claimed condition
You can interrogate any condition with two questions.
- Can I find something that satisfies the condition but lacks the property? If so, the condition is not sufficient.
- Can I find something with the property that fails the condition? If so, the condition is not necessary.
If you cannot find either kind of example, that is a reason to attempt proofs, not a proof in itself. Hunting for counterexamples explains where to look.
Try it on the claim "a quadrilateral with equal diagonals is a rectangle". Is equal diagonals necessary for a rectangle? Yes, every rectangle has them. Is it sufficient? No: an isosceles trapezoid has equal diagonals. Add the condition that the diagonals bisect each other, and the pair together is both necessary and sufficient.
A worked classification
Take the property "x² > 4" for a real number x, and sort several conditions.
| Condition | Sufficient? | Necessary? | Deciding example |
|---|---|---|---|
| x > 2 | yes | no | x = −3 has x² = 9 |
| x ≠ 0 | no | yes | x = 1 has x² = 1 |
| x < −2 or x > 2 | yes | yes | the two statements match |
| x > 1 | no | no | x = 1.5 fails, x = −3 shows it is not needed |
In the first row, every number above 2 has a square above 4, but negative numbers far from 0 qualify too. In the second, a square bigger than 4 certainly requires a nonzero x, yet being nonzero achieves very little.
Notice the pattern in strength. A sufficient condition is usually more demanding than the property, picking out only some of the cases. A necessary condition is usually more lenient, letting in some cases that do not belong.
Where calculus depends on the difference
Several of the most misused theorems are one-way statements.
For an infinite series to converge, its terms must approach 0. That condition is necessary. It is not sufficient: in the series 1 + 1/2 + 1/3 + 1/4 + ... the terms shrink to 0 while the total grows beyond every bound, as Oresme's argument shows.
If a function is differentiable at a point, then it is continuous there. Differentiability is sufficient for continuity. The reverse fails for |x| at 0, which is continuous and has a corner.
If a differentiable function on an open interval has a maximum or minimum at c, then f′(c) = 0. A zero derivative is necessary for such an extremum. It is not sufficient, since f(x) = x³ has derivative 0 at x = 0 and keeps increasing through it. This is why a calculus solution has to test each critical point after finding it.
Necessary conditions in solving equations
When you manipulate an equation, each step usually shows that if x solves the old equation, then x solves the new one. That produces necessary conditions, a list of candidates.
solve: √(x + 2) = x
square both sides: x + 2 = x²
rearrange: x² − x − 2 = 0
factor: (x − 2)(x + 1) = 0
candidates: x = 2 or x = −1
check x = 2: √4 = 2 true
check x = −1: √1 = 1, not −1 false
solution: x = 2 only Squaring is a one-way step, since a = b implies a² = b², while a² = b² allows a = −b. The check at the end restores sufficiency. If every step is reversible, the candidates are automatically solutions.
Conditions that are exactly right
The most satisfying theorems give a condition that is both necessary and sufficient, usually announced by "if and only if", often shortened to "iff".
- A whole number is divisible by 3 if and only if the sum of its decimal digits is divisible by 3.
- Three positive lengths form a triangle with positive area if and only if each is less than the sum of the other two.
- The equation x² + bx + c = 0, with b and c real, has two different real roots if and only if b² − 4c > 0.
Such a theorem lets you replace a hard question with an easy test. Is 2,718 divisible by 3? The digits add to 18, so yes. Is there a triangle with sides 2, 3 and 6? No, since 6 is not less than 5.
Proving one requires both arrows, often with quite different arguments, as shown in proving if and only if statements. Definitions work the same way, although they are often phrased with a plain "if".
Combining conditions
Sometimes several necessary conditions together become sufficient. For a whole number to be divisible by 6, it is necessary to be divisible by 2 and necessary to be divisible by 3. Together they are sufficient. By contrast, divisibility by 2 and by 4 together do not guarantee divisibility by 8, because 12 satisfies both.
Conditions can also be sharpened from either side. Mathematicians who cannot find an exact criterion try to weaken a sufficient condition, so that it covers more cases, and strengthen a necessary one, so that it excludes more. Where the two meet, the problem is solved.
Rules in daily life
The same logic runs through ordinary requirements. Suppose a hypothetical club says that members may vote only if they have paid their dues. Payment is necessary for voting. A paid member who joined yesterday might still be barred by some other rule, so payment alone is not promised to be enough.
If the club instead says that any member who has paid may vote, payment has become sufficient for members. The two sentences sound alike in casual speech, and people often hear one when the other was said. Reading a contract, an entry requirement or a warranty, ask which direction the sentence actually commits to.
Causal talk needs similar care. Saying that oxygen is necessary for an ordinary wood fire does not mean that oxygen is enough to start one.
Reversals to watch for
The commonest error is to treat P → Q as if it gave Q → P, the converse. "All squares are rectangles" gives no license for "all rectangles are squares". The contrapositive, "if not Q then not P", is always equivalent to the original. Converse, inverse and contrapositive are laid out side by side in their own article.
When you read a theorem, pause to ask which way the arrow points and what you actually have in hand. If you hold the hypothesis, you may use the conclusion. If you hold only the conclusion, you need a different theorem.