foundation19 min studyLesson 10 in Mathematics

Proof and counterexample: knowing what evidence establishes

Distinguish examples from proof, build a direct argument, and refute universal claims precisely.

On this page

What you’ll understand

  • Translate universal and existential claims into evidence requirements.
  • Construct a direct proof using definitions.
  • Use a valid counterexample and distinguish mathematical certainty from empirical confidence.

A graph, a simulation, and a successful calculation can reveal patterns. A proof explains why a claim follows for every case covered by its assumptions. A counterexample identifies one permitted case that defeats a universal claim. Learning the distinction keeps powerful visual intuition from turning into unwarranted certainty. It also helps you read later physics and engineering material: some conclusions are mathematical theorems, while others depend on experiments, approximations, or unverified modeling assumptions.

Match evidence to the claim's quantifier

A universal statement says that every allowed object satisfies a condition. An existential statement says that at least one does. To establish existence, constructing one valid example is sufficient. To refute a universal statement, constructing one valid counterexample is sufficient. The example must satisfy the original assumptions; a negative number cannot refute a statement restricted to positive numbers, even if it breaks the proposed conclusion.

Many favorable examples do not normally prove a universal statement over an infinite domain. Testing the first thousand integers leaves all later integers untested. Finite exhaustive checking can be a proof when the domain is genuinely finite and every case is rigorously covered, but a floating-point sample or a plotted interval is rarely exhaustive in that sense. State exactly which domain your evidence covers.

¬(∀x∈S, P(x)) ⟺ ∃x∈S:¬P(x)\neg(\forall x\in S,\ P(x))\ \Longleftrightarrow\ \exists x\in S:\neg P(x)
A universal claim is false precisely when an allowed counterexample exists. P(x) is a condition with a definite truth value for each x in S.↔ Scroll wide equations horizontally.

A direct proof starts from definitions

To prove that the square of an odd integer is odd, begin with the definition: an odd integer can be written as 2k+12k+1 for an integer kk. Expand its square and factor out a two from all but the last term. The resulting form is again twice an integer plus one. The proof covers every odd integer because kk was arbitrary, not because one particular square looked correct.

Notice the work done by a small assumption: the expression inside the final parentheses must be an integer. If the original input were a general real number, “odd” would not have the same definition. A good proof names its arbitrary object, uses only licensed operations, and finishes by reconnecting the derived expression to the desired definition. Clear prose matters as much as symbolic manipulation.

n=2k+1, k∈Z⇒n2=4k2+4k+1=2(2k2+2k)+1n=2k+1,\ k\in\mathbb{Z}\quad\Rightarrow\quad n^2=4k^2+4k+1=2(2k^2+2k)+1
Because 2k² + 2k is an integer, the final expression has the defining form of an odd integer. The argument covers positive and negative odd integers.↔ Scroll wide equations horizontally.

Inspect assumptions and converse claims

An implication says that if its premise holds, its conclusion must hold. It does not automatically establish the converse. For example, being divisible by four implies being even, but being even does not imply divisibility by four: six is a counterexample. Reversing an arrow requires its own argument. Likewise, a proof under idealized assumptions does not establish that a real instrument or production service satisfies those assumptions.

Use computation as a partner in reasoning. It can suggest a conjecture, reveal an overlooked edge case, or verify arithmetic inside a proof. It cannot by itself turn finitely sampled evidence into an unrestricted theorem. In advanced study you will encounter controlled approximation errors and probabilistic guarantees. Those are meaningful conclusions when their conditions are explicit; they should not be silently promoted to exact or unconditional claims.

Separate a check from a proof

Check the odd-square claim at n = 7, and explain what extra reasoning makes the claim valid for every odd integer.

  1. Write 7 = 2 × 3 + 1, so this input satisfies the definition of an odd integer. The integer parameter is k = 3.

  2. Compute 7² = 49, then express 49 = 2 × 24 + 1. The output is odd. This verifies the claim for the selected input only.

  3. Return to arbitrary integer k: the expansion gives n² = 2(2k² + 2k) + 1. Since the parenthesized quantity is always an integer, the same definition establishes oddness for every permitted input.

The result

The numerical check illustrates the argument; the arbitrary-integer derivation supplies the proof.

Explore the model

Interactive lab

Interactive lab · function

Find a counterexample in a precise model

The lab displays y=ax2y=ax^2 with controls for coefficient a and position x. Consider the claim “the displayed output is always positive.” Set x = 0 to find a counterexample, even when a is positive. The graph helps locate a case; the exact identity a 02=0a\,0^2=0 establishes the refutation.

Find a counterexample in a precise modelThis lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Current readings: y at chosen x: 0.608; Tangent slope · 2ax: 1.35; Signed area · ax³/3: 0.182. All parameters are adjustable with the labeled controls below.−2.4−1.201.22.4−9−4.504.59xy(x, ax²)
y = ax²TangentSigned integral
y at chosen x
0.608
Tangent slope · 2ax
1.35
Signed area · ax³/3
0.182
t = 0 s

This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forOne permitted counterexample refutes a universal claim; many plotted successes do not prove one.

Check your understanding

What is sufficient to refute “every prime number is odd”?

Try it yourself

Someone claims that x² > x for every positive real x. Find a counterexample strictly between zero and one, and explain why an example at x = −1 would not address the claim.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Try x = 1/2 and compare its square with itself.

Compare with the solution

For x=1/2x=1/2, the square is 1/41/4, which is smaller than 1/21/2. This permitted positive input refutes the universal claim. The input −1 lies outside the stated domain, so its behavior is irrelevant to that claim. In fact the strict inequality also fails at x = 1, where equality holds.

Take it with you

  • Quantifiers determine whether one example, a counterexample, or a general argument is needed.
  • A proof links declared assumptions to a conclusion through definitions and valid steps.
  • Visual and computational evidence should be reported at the scope it actually supports.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.