foundation22 min studyLesson 103 in Mathematics

Direct proof and contraposition

Convert definitions into a chain of justified implications and choose a contrapositive when the negated conclusion is useful.

On this page

What you’ll understand

  • Organize a direct argument from hypotheses to conclusion.
  • Use parity and divisibility definitions with explicit integer witnesses.
  • Recognize that contraposition preserves a claim while reversing it does not.

A direct proof begins where the theorem gives you permission to begin: assume its hypothesis for an arbitrary object, then justify enough steps to reach the conclusion. A contrapositive proof begins with the negation of the conclusion and reaches the negation of the hypothesis. Neither method is inherently more rigorous. The useful choice depends on which starting information exposes definitions or algebra that you can actually use.

Unpack the hypothesis before calculating

Suppose an integer is even. This means there exists an integer k with n equal to twice k. Writing that witness turns a descriptive word into a form that algebra can use. If two integers are even, introduce separate witnesses for them; using the same letter can accidentally impose equality between unrelated inputs. To show that the sum is even, factor out two and explicitly note that the remaining expression is an integer, supplying the witness required by the conclusion.

A proof must establish the requested property, rather than stop at an attractive formula. For divisibility, the conclusion requires an integer multiplier. A real multiplier would be useless because any nonzero real divisor divides every real number in that looser sense. State closure facts when they carry the argument: sums and products of integers are integers. With practice those justifications become short, but they remain the reason that algebraic expressions answer a number-theoretic question.

a=2r,b=2s⟹a+b=2(r+s),r,s∈Za=2r,\quad b=2s\quad\Longrightarrow\quad a+b=2(r+s),\qquad r,s\in\mathbb Z
The integer r + s is the witness showing that the sum of two even integers is even.↔ Scroll wide equations horizontally.

Follow the direction of implication

Exploration often starts at the desired conclusion and works backward. This can reveal the calculation you need, but a finished direct proof must show that the hypothesis actually implies every required step. Reversing an irreversible operation is dangerous. Squaring an equation may create additional solutions, and dividing by a variable may discard a case. Label such transformations as necessary conditions during exploration, then either justify their reversal or verify resulting candidates in the original problem.

A useful drafting technique is to write the hypothesis on one side of the page and the definition of the goal on the other. Ask what missing bridge would connect them. To prove a number odd, seek a representation twice an integer plus one. To prove set inclusion, take an arbitrary element of the first set and establish membership in the second. The proof method supplies a route, while the relevant definitions specify exactly what arrival at the goal looks like.

Use the contrapositive when a negation has structure

The implication P implies Q is equivalent to “not Q implies not P.” Over the integers, proving that an even square has an even base is easier through its contrapositive: an odd base has an odd square. Write an odd integer as twice an integer plus one, expand the square, and exhibit the result in the same form. This uses the exhaustive even-or-odd classification of integers; the negation of evenness becomes an explicit odd representation.

Contrast this with the inverse “not P implies not Q,” which is equivalent to the converse rather than the original implication. A common mistake is to prove that an even base has an even square when asked to prove that an even square has an even base. Both happen to be true, but one does not establish the other by logic alone. Before a contrapositive proof, name P and Q and write their precise negations, including the domain.

n=2k+1⟹n2=2(2k2+2k)+1(k∈Z)n=2k+1\quad\Longrightarrow\quad n^2=2(2k^2+2k)+1\qquad(k\in\mathbb Z)
An odd integer has an odd square. Contraposition therefore establishes that an integer with an even square is even.↔ Scroll wide equations horizontally.

Prove a divisibility implication directly

Show that if integers a and b are divisible by 3, then 2a − b is divisible by 3.

  1. Take arbitrary integers a and b satisfying the hypothesis. By the definition of divisibility choose integers r and s with a = 3r and b = 3s; keep their witnesses independent.

  2. Substitute these representations: 2a − b = 2(3r) − 3s = 3(2r − s). Every equality is an ordinary distributive-law calculation, with no division or excluded cases.

  3. Since 2r − s is an integer, this last representation provides the exact integer multiplier demanded by divisibility by three. The argument applies to all initial a and b satisfying the hypothesis.

The result

The number 2a − b is divisible by 3, with integer quotient 2r − s.

Explore the model

Interactive lab

Interactive lab · function

Direct algebra behind a visual sign claim

Keep a positive in y=ax2y=ax^2 and move x to either side of zero. Explain the nonnegative output directly from the sign of a and the square. Next set a negative to see why the hypothesis mattered. This continuous quadratic illustration does not test integer parity or replace the proof.

Direct algebra behind a visual sign claimThis 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 forUse a picture to identify the needed hypothesis, then use definitions to justify the claim.

Check your understanding

To prove “if n² is even then n is even” by contraposition, what should be proved?

Try it yourself

Prove directly that the product of two odd integers is odd.

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

Give me a hint

Use different integer witnesses: write a = 2r + 1 and b = 2s + 1.

Compare with the solution

Let a and b be arbitrary odd integers. Choose integers r and s with a = 2r + 1 and b = 2s + 1. Multiplication gives ab = 4rs + 2r + 2s + 1 = 2(2rs + r + s) + 1. The expression in parentheses is an integer by closure, so this is the defining representation of an odd integer. No assumption that a and b are positive is needed.

Take it with you

  • A direct proof translates hypotheses into usable definitions.
  • Finish by checking that the final expression satisfies the goal’s definition.
  • Contraposition negates and reverses an implication; the converse needs its own proof.

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.