Proof and Reasoning

Proving If and Only If Statements

How to prove a biconditional by handling both directions, when a chain of equivalences is safe, and how to treat lists of equivalent conditions.

Key takeaways

  • A biconditional needs both directions, and proving one of them tells you nothing automatic about the other.
  • "P if Q" means Q implies P, while "P only if Q" means P implies Q.
  • A single chain of equivalences is valid only when every step can be reversed under the stated conditions.
  • For several equivalent conditions, a cycle of implications saves work and still connects every pair.

To prove "P if and only if Q", prove two statements: if P then Q, and if Q then P. Each direction is its own proof, with its own assumption and its own goal, and they may use completely different methods.

The phrase, often shortened to "iff" and written P ⇔ Q, says that P and Q are true together or false together. It is one of the most useful kinds of theorem, because it lets you replace a hard question with an equivalent easier one.

Reading the two halves

The words are easy to mix up, so translate slowly.

Phrase Meaning
P if Q Q implies P
P only if Q P implies Q
P is sufficient for Q P implies Q
P is necessary for Q Q implies P
P exactly when Q each implies the other

Consider a hypothetical rule: "You may enter only if you have a ticket." Entering implies having a ticket. Having a ticket does not promise entry, since the doors may be closed. For a fuller treatment, see necessary and sufficient conditions.

Definitions are a special case. When a book says "an integer is even if it is divisible by 2", it means if and only if. In theorems, "if" means only one direction.

A model proof in two parts

Claim: for an integer n, n² is even if and only if n is even.

Direction one (n even implies n² even). Suppose n = 2k for some integer k. Then n² = 4k² = 2(2k²), which is even.

Direction two (n² even implies n even). Prove the contrapositive, the equivalent statement "if n is odd, then n² is odd". Suppose n = 2k + 1. Then n² = 4k² + 4k + 1 = 2(2k² + 2k) + 1, which is odd.

The two directions used different strategies. The first is a direct proof. The second would be awkward directly, since starting from n² = 2m gives no easy grip on n. Switching to the contrapositive fixes that.

Label the halves clearly. Many writers mark them (⇒) and (⇐), or begin with "First suppose ..." and "Conversely, suppose ...". A reader should never have to guess which way you are going.

The converse is a separate question

The converse of "P implies Q" is "Q implies P". The two can have different truth values.

"If an integer is divisible by 4, then it is even" is true. The converse, "if it is even, then it is divisible by 4", is false, as 6 shows. So the biconditional is false, and a single counterexample to one direction is enough to say so.

What does follow from "P implies Q" is the contrapositive, "not Q implies not P". Proving a statement and then its contrapositive proves the same thing twice. A common slip is to prove P ⇒ Q, then (not Q) ⇒ (not P), and believe both directions are done. The second direction needs either Q ⇒ P or its contrapositive, (not P) ⇒ (not Q). The family of related statements is sorted out in converse, inverse and contrapositive.

Chains of equivalences

Sometimes each step is itself an "if and only if", and one chain does both jobs.

2x + 3 = 11
⇔ 2x = 8        (subtract 3; reversible by adding 3)
⇔ x = 4         (divide by 2; reversible by multiplying by 2)

This is clean and complete. The danger is a step that works in one direction only. Solve √(x + 2) = x for real x:

√(x + 2) = x
⇒ x + 2 = x²           (squaring: not reversible in general)
⇔ (x − 2)(x + 1) = 0
⇔ x = 2 or x = −1

Only x = 2 satisfies the original equation, because √1 equals 1, not −1. The first arrow points one way. You can repair the chain by adding the missing condition: √(x + 2) = x if and only if x + 2 = x² and x ≥ 0. Now the equivalence is true, and −1 is excluded automatically.

Other steps to question include multiplying by an expression that might be zero, and applying a function that sends different inputs to the same output.

A chain that works for divisibility

A positive integer is divisible by 9 if and only if the sum of its decimal digits is divisible by 9. Write the number as N and the digit sum as S. If the digits are d₀, d₁, d₂ and so on from the right, then

N − S = d₁·9 + d₂·99 + d₃·999 + ...

Every term on the right is a multiple of 9, so N and S differ by a multiple of 9. When two integers differ by a multiple of 9, one is divisible by 9 exactly when the other is. Both directions follow at once, from one fact that is symmetric between N and S.

For 5,832 the digit sum is 18, which is divisible by 9, and indeed 5,832 = 9 · 648. The same argument works with 3 in place of 9. When you can prove that two quantities leave equal remainders, you usually get the biconditional for free.

Three equivalent statements about an integer n
n² is even If n were odd, n² would be odd, so n is even n is even Write n = 2k, so n² = 4k² n² is divisible by 4 A multiple of 4 is automatically a multiple of 2 1 2 3 n is even Write n = 2k, so n² = 4k² 1 n² is divisible by 4 A multiple of 4 is automatically a multiple of 2 2 n² is even If n were odd, n² would be odd, so n is even 3

Lists of equivalent conditions

Theorems often say "the following are equivalent". With three conditions A, B and C, you could prove six implications. It is enough to prove three in a loop: A ⇒ B, B ⇒ C and C ⇒ A. Then from any condition you can travel around the loop to any other.

For an integer n, take A: n is even; B: n² is divisible by 4; C: n² is even. A ⇒ B because n = 2k gives n² = 4k². B ⇒ C is immediate. C ⇒ A is the contrapositive argument from earlier.

You may arrange the arrows however is convenient, provided the resulting diagram lets you get from every condition to every other. Proving A ⇔ B and B ⇔ C also works. Proving only A ⇒ B and A ⇒ C does not, since nothing leads back to A.

A famous example from linear algebra lists many conditions equivalent to a square matrix being invertible, including having a nonzero determinant and having linearly independent columns.

Combining conditions and comparing sets

Claim: an integer n is divisible by 6 if and only if it is divisible by both 2 and 3.

(⇒) If n = 6m, then n = 2(3m) = 3(2m).

(⇐) Suppose n = 2a and 3 divides n. Since 3 is prime and divides the product 2a but not 2, it divides a. Writing a = 3b gives n = 6b.

The pattern does not extend blindly. "Divisible by 24 if and only if divisible by 4 and 6" fails at 12, which is divisible by 4 and 6 but not 24. The second direction used the fact that 2 and 3 share no common factor.

Set equality has the same two-part shape. To show that sets S and T are equal, show that every element of S is in T and every element of T is in S. This is called double inclusion, and it is a biconditional about membership.

Why biconditionals are so valuable

A one-way theorem gives you a test that can answer only some of the time. If a series converges, its terms tend to zero. So terms that do not tend to zero prove divergence, but terms that do tend to zero leave the question open, as the harmonic series shows.

A biconditional always answers. A quadratic ax² + bx + c with real coefficients and a ≠ 0 has two distinct real roots if and only if b² − 4ac > 0. Compute that quantity and you know, whichever way it comes out. For x² + x + 1 it equals −3, so there are no real roots, and for x² − 5x + 6 it equals 1, so there are two.

Such results are called characterizations. They give a second description of a property, often one that is far easier to check than the original. They can also serve as alternative definitions: one author may define a concept by the first condition and prove the second, while another does the reverse, and both build the same theory.

When you meet a one-way theorem, it is worth asking whether the converse holds. Either answer teaches you something: a proof upgrades the theorem, and a counterexample shows which extra assumption would be needed.

A checklist before you finish

  1. Have you identified which statement is P and which is Q?
  2. Does each direction start by assuming one side and end at the other?
  3. If you used a chain, can every arrow be reversed? Test suspicious steps with zero and negative numbers.
  4. Did a hypothesis such as "n is an integer" or "x ≥ 0" apply to both directions?
  5. If one direction seems far harder, have you tried its contrapositive or contradiction?

It is normal for one half to take a single line and the other a page. That imbalance is often where the real content of a theorem lies, so give the harder direction the space it needs and say plainly when you move to it.

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 41 articles in Proof and Reasoning →

Latest news on this topic