The sum of two rationals r1=q1p1, r2=q2p2 on a number line, with the computation q1q2p1q2+p2q1 running straight from hypothesis to conclusion — that is a direct proof.
r1+r2=q1q2p1q2+p2q1
43+6−5=−121
Examples & Exercises
Prove by a direct proof that the sum of two rational numbers is rational, and verify each step on this scene's default numbers r1=43, r2=−65, confirming the sum is −121 step by step.
Take the hypothesis: since r1,r2 are rational, there exist integers p1,q1,p2,q2 with q1=0, q2=0 such that r1=q1p1 and r2=q2p2. A direct proof feeds this assumption straight into a computation.
Use a common denominator: r1+r2=q1q2p1q2+q1q2p2q1=q1q2p1q2+p2q1. The numerator p1q2+p2q1 is a sum of products of integers, hence an integer; the denominator q1q2 is a product of nonzero integers, hence a nonzero integer. So r1+r2 is a ratio of integers — rational. That completes the direct proof. On the scene's numbers: 4⋅63⋅6+(−5)⋅4=2418−20=24−2=−121≈−0.083333.
43+6−5=24−2=−121
Prove by a direct proof that the product of two rational numbers is rational. Then prove that the square of a rational number is rational, and verify on the scene's numbers r1=43, r2=−65 that the product is −85.
Assume r1=q1p1, r2=q2p2 (integers, q1,q2=0). Multiplying gives r1r2=q1q2p1p2. The numerator p1p2 is an integer and the denominator q1q2 is a nonzero integer, so the product is rational. On the scene's numbers: 4⋅63⋅(−5)=24−15=−85=−0.625 (dividing numerator and denominator by 3).
The square is a special case of the product: if r=qp with q=0, then r2=q2p2, and p2 is an integer while q2 is a positive integer (hence =0), so r2 is rational. Example: r12=(43)2=169. Both claims are proved by a single computation running straight from hypothesis to conclusion — the typical shape of a direct proof.
Prove by a direct proof that if an integer n is odd then n2 is odd: write n=2k+1 and expand to show (2k+1)2=4k2+4k+1=2(2k2+2k)+1.
n=2k+1⇒n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1
This problem is about an algebraic proof for odd n — the preset is a valid scene combination, r1=r2=21.Show proof
Assume n is odd. By the definition of odd, there is an integer k with n=2k+1. Now compute: n2=(2k+1)2=4k2+4k+1.
Group the even part: 4k2+4k+1=2(2k2+2k)+1. Since 2k2+2k is an integer, n2 is "twice an integer, plus one" — odd. One expansion carried us from hypothesis to conclusion, so this is a direct proof. (Note: this lemma is exactly what the next scene, contrapositive, consumes — the proof of "n2 even ⇒n even" reduces to its contrapositive "n odd ⇒n2 odd", whose proof is precisely this direct proof.)