Skip to content

Disproof by counterexample

A counterexample is one permitted case for which a claimed general statement is false. It disproves any claim that says something holds for every member of a set.

For example, the statement

Every prime number is odd.

is false because 22 is prime and 22 is not odd. The single value 22 settles the question. There is no need to list any other primes.

You should be able to:

  • substitute numbers into algebraic expressions
  • use the meanings of integer, even, odd, prime and factor
  • distinguish an equation from an identity
  • read inequalities and set restrictions accurately

Review proof and reasoning if you need practice with implications, definitions or algebraic proofs. This lesson develops counterexamples to A level standard.

Why one example can disprove, but cannot prove

Section titled “Why one example can disprove, but cannot prove”

Consider a universal statement of the form

For every xS,P(x) is true.\text{For every }x\in S,\quad P(x)\text{ is true}.

To disprove it, find one cSc\in S for which P(c)P(c) is false. In symbols,

cSand¬P(c).c\in S\quad\text{and}\quad \neg P(c).

The two conditions matter equally:

  1. cc must belong to the stated domain SS.
  2. The claimed conclusion must fail at cc.

By contrast, checking several cases where P(x)P(x) is true leaves all untested cases unresolved. The values 22, 44, 66 and 88 support the statement that every even positive integer is composite, but 22 actually refutes it. A finite collection of successful trials is not a proof of an infinite claim.

For a question asking you to disprove a statement by counterexample:

  1. Identify the domain and every condition.
  2. Choose the simplest value likely to expose the weakness.
  3. Substitute it into both sides of the claim, or check the relevant properties.
  4. State explicitly why the results contradict the claim.

A polished answer often fits into two lines:

Take x=c.Then [hypothesis holds], but [conclusion fails].\text{Take }x=c.\quad \text{Then [hypothesis holds], but [conclusion fails].}

Therefore x=cx=c is a counterexample, so the statement is false.

Disprove the statement:

For every integer nn, if n2n^2 is divisible by 44, then nn is divisible by 44.

We need an integer whose square is divisible by 44, but which is not itself divisible by 44. Try the smallest even integer that is not a multiple of 44:

n=2.n=2.

Then

n2=22=4,n^2=2^2=4,

which is divisible by 44, but 22 is not divisible by 44. Therefore n=2n=2 is a counterexample and the statement is false.

Notice that n=3n=3 would not work. Although 33 is not divisible by 44, its square is not divisible by 44 either, so it does not satisfy the hypothesis.

Disprove: for every integer nn, if n2n^2 is divisible by 99, then nn is divisible by 99.

Answer

Take n=3n=3. Then n2=9n^2=9 is divisible by 99, but 33 is not divisible by 99. Thus n=3n=3 is a counterexample, so the statement is false.

Random guessing is rarely necessary. The wording of a false statement often suggests useful test cases.

Feature of the claimValues worth testing
Powers or products00, 11, 1-1
Inequalitynegative numbers, 00, equal values
Fractionsvalues making a denominator negative or zero
Square roots or absolute valuesnegative inputs, or values on either side of 00
Integers and factorssmall primes, small composites, boundary cases
A diagram or geometric claimsymmetric cases, extreme shapes, degenerate cases if allowed

These are prompts, not guarantees. Every chosen value must still satisfy the stated conditions.

Worked example 2: negative numbers reverse intuition

Section titled “Worked example 2: negative numbers reverse intuition”

Disprove:

For all real numbers aa and bb, if a2>b2a^2>b^2, then a>ba>b.

Squaring loses information about sign, so choose aa negative and bb positive. Let

a=3,b=2.a=-3,\qquad b=2.

Then

a2=9>4=b2,a^2=9>4=b^2,

so the hypothesis holds. However,

a=3<2=b,a=-3<2=b,

so the conclusion fails. Hence (a,b)=(3,2)(a,b)=(-3,2) is a counterexample.

The correct conclusion from a2>b2a^2>b^2 is a>b|a|>|b|, not necessarily a>ba>b.

Worked example 3: an alleged algebraic identity

Section titled “Worked example 3: an alleged algebraic identity”

Disprove the claim

x2+9=x+3\sqrt{x^2+9}=x+3

for all x0x\geq 0.

Choose x=1x=1. Both expressions are defined, but

12+9=10\sqrt{1^2+9}=\sqrt{10}

while

1+3=4.1+3=4.

Since 104\sqrt{10}\ne4, the equality fails. Therefore x=1x=1 is a counterexample.

The tempting but invalid step is

a+b=a+b.\sqrt{a+b}=\sqrt a+\sqrt b.

Square roots do not distribute over addition. Compare this with valid rules for products, where the required domain conditions must also be respected.

Give a counterexample to each statement.

  1. For every real xx, x2xx^2\geq x.
  2. For all positive real aa and bb, a+b2ab\dfrac{a+b}{2}\leq\sqrt{ab}.
  3. For every real xx, x+2=x+2|x+2|=|x|+2.
Answers
  1. Take x=12x=\frac12. Then x2=14<12=xx^2=\frac14<\frac12=x.
  2. Take a=1a=1 and b=4b=4. Then (a+b)/2=5/2>2=ab(a+b)/2=5/2>2=\sqrt{ab}.
  3. Take x=1x=-1. Then x+2=1|x+2|=1, while x+2=3|x|+2=3.

Other answers are possible. In each case, the values must be in the stated domain and the numerical comparison must be shown.

A statement of the form

PQP\Longrightarrow Q

is false only when PP is true and QQ is false. This is the logical pattern behind many exam questions.

PPQQIs this a counterexample to PQP\Rightarrow Q?
truetrueno
truefalseyes
falsetrueno
falsefalseno

If the hypothesis PP is false, the case cannot refute what the implication promises, because the promise applies only when PP holds.

Worked example 4: confusing a statement with its converse

Section titled “Worked example 4: confusing a statement with its converse”

The true statement

6n3n6\mid n\Longrightarrow 3\mid n

says that if nn is divisible by 66, then it is divisible by 33.

Its converse is

3n6n.3\mid n\Longrightarrow 6\mid n.

To disprove the converse, choose a multiple of 33 that is not a multiple of 66. Take n=9n=9. Then 393\mid9, but 696\nmid9. Thus 99 is a counterexample to the converse.

This does not affect the truth of the original implication. An implication and its converse are separate statements.

Counterexamples involving several variables

Section titled “Counterexamples involving several variables”

When a statement quantifies over several variables, one valid tuple is enough. Keep the numbers small and make every restriction visible.

Worked example 5: division of inequalities

Section titled “Worked example 5: division of inequalities”

Disprove:

For all real numbers aa, bb and cc with c0c\ne0, if a<ba<b, then a/c<b/ca/c<b/c.

The conclusion fails when division is by a negative number. Choose

a=1,b=2,c=1.a=1,\qquad b=2,\qquad c=-1.

The hypothesis 1<21<2 holds and c0c\ne0. However,

ac=1andbc=2,\frac ac=-1 \quad\text{and}\quad \frac bc=-2,

so

ac>bc.\frac ac>\frac bc.

Therefore (a,b,c)=(1,2,1)(a,b,c)=(1,2,-1) is a counterexample. The claim would become true if the extra condition c>0c>0 were imposed.

Disprove:

The sum of two prime numbers is always composite.

Take the primes 22 and 33. Their sum is

2+3=5,2+3=5,

which is prime, not composite. Therefore the pair (2,3)(2,3) is a counterexample.

Choosing two odd primes would not reveal the problem: their sum is an even integer greater than 22, so it is composite. The exceptional prime 22 is the key boundary case.

Suppose the claim is

For every positive real number xx, x+1/x2x+1/x\geq2.

The choice x=1x=-1 gives x+1/x=2x+1/x=-2, but it is not a counterexample because 1-1 is not positive. The choice x=0x=0 is even less suitable: it lies outside the domain and makes 1/x1/x undefined.

In fact, the claim is true. For x>0x>0,

(x1)20(x-1)^2\geq0

implies

x22x+10.x^2-2x+1\geq0.

Dividing by the positive number xx gives

x+1x2.x+\frac1x\geq2.

Failure to find a counterexample does not prove a statement, but it may suggest that a proof is needed instead.

A counterexample answers the question “Is the statement always true?” It can also reveal how to improve the statement.

Consider

x2>y2x>y.x^2>y^2\Longrightarrow x>y.

The counterexample x=3x=-3, y=2y=2 shows that signs cause the failure. Possible true replacements include

x2>y2x>yx^2>y^2\Longrightarrow |x|>|y|

and, with extra hypotheses,

x0, y0, x2>y2x>y.x\geq0,\ y\geq0,\ x^2>y^2\Longrightarrow x>y.

Finding the precise missing condition is a powerful way to understand the underlying mathematics, although an exam question asking only for a counterexample does not require a repaired theorem.

For each statement, either give a counterexample or explain briefly why the suggested value is invalid.

  1. Every integer of the form n2+n+41n^2+n+41 is prime.
  2. If x<yx<y, then x2<y2x^2<y^2. Use x=2x=-2, y=1y=1.
  3. If an integer nn is odd, then n2n^2 is odd. A student proposes n=2n=2 as a counterexample.
  4. For all non-zero real xx, x+1/x2x+1/x\geq2.
  5. The product of two irrational numbers is irrational.
Answers
  1. Take n=41n=41. Then n2+n+41=412+41+41=41(41+2)=41×43,n^2+n+41=41^2+41+41=41(41+2)=41\times43, which is composite.
  2. It is valid: 2<1-2<1, but (2)2=4>1=12(-2)^2=4>1=1^2. Thus (x,y)=(2,1)(x,y)=(-2,1) is a counterexample.
  3. The value is invalid because 22 is not odd, so it does not satisfy the hypothesis. The statement is true and can be proved by writing n=2k+1n=2k+1.
  4. Take x=1x=-1. It is non-zero, but x+1x=2<2.x+\frac1x=-2<2.
  5. Take 2\sqrt2 and 2\sqrt2. Both are irrational, but their product is 22, which is rational.

Before finishing a counterexample answer, ask:

  • Does my example satisfy every condition in the question?
  • Have I evaluated or checked the relevant property correctly?
  • Does the claimed conclusion genuinely fail?
  • Have I stated that this makes the original universal statement false?

One clean counterexample is stronger than a long list. Extra examples add opportunities for arithmetic errors without adding logical force.

Counterexamples disprove universal claims. To establish that a statement is true, study proof by deduction and exhaustion and proof by contradiction. For presenting the reasoning clearly under exam conditions, continue to communicating mathematical reasoning.