ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Structures
    GE-167
    Progress0 / 67 topics
    Topics
    1. Mathematical Reasoning: Propositional and Predicate Logic2. Propositional Logic: Logical Operators3. Translations Between Symbolic Expressions and Formal English Expression4. Logical Equivalences5. Predicate Logic: Quantifiers6. Nested Quantification7. Equivalences in Predicate Logic8. Translations Between Symbolic Forms and Formal English9. Rules of Inference: Proof Methods and Strategies10. Direct Proof11. Proof by Contraposition12. Proof by Induction13. Proof by Implication14. Existence Proof15. Uniqueness Proofs16. Trivial Proofs17. Vacuous Proofs18. Sets: Notations and Set Operations19. Venn Diagrams20. Countable and Uncountable Sets21. Relations: Equivalence Relations and Partitions22. Partial Orderings23. Recurrence Relations24. Functions: Injective, Surjective, Bijective25. Special Types of Functions26. Function Composition27. Inverse Functions28. Recursive Functions29. Compositions30. Number Theory: Sequences and Series31. Counting: Inclusion and Exclusion Principle32. Pigeonhole Principle33. Permutations and Combinations34. Integers and Divisibility: Division Theorem35. Modular Arithmetic36. LCM and GCD37. Euclidean and Extended Euclidean Method38. Finding Solutions to Congruence39. Primes: Fundamental Theorem of Arithmetic40. Characterizations of Primes41. Mersenne Primes42. Induction: Weak Induction43. Strong Induction44. Recursion and Recurrences: Formulation of Recurrences45. Closed Formulas46. Counting: Product Rule and Sum Rule47. Principle of Inclusion-Exclusion48. Binomial Coefficients49. Pascal's Identity and Pascal’s Triangle50. Binomial Theorem51. Relations: Reflexive, Symmetric, Transitive, and Antisymmetric52. Equivalence Relations and Equivalence Classes53. Partial Orders54. Graph Theory: Terminologies55. Elements of Graph Theory56. Planar Graphs57. Graph Coloring58. Euler Graph59. Hamiltonian Path60. Rooted Trees61. Graph Traversals62. Handshaking Lemma and Corollary63. Special Families of Graphs64. Graph Isomorphism65. Planarity in Graphs66. Eulerian and Hamiltonian Graphs67. Trees in Graph Theory
    GE-167›Proof by Contraposition
    Discrete StructuresTopic 11 of 67

    Proof by Contraposition

    5 minread
    832words
    Beginnerlevel

    A proof by contraposition is a method of proof that is logically equivalent to a direct proof but uses a different approach. In this method, you prove the contrapositive of a statement instead of proving the statement itself directly.

    Contrapositive:

    The contrapositive of an implication of the form P→QP \rightarrow QP→Q (i.e., "If PPP, then QQQ") is the statement ¬Q→¬P\neg Q \rightarrow \neg P¬Q→¬P (i.e., "If not QQQ, then not PPP").

    • Original statement: P→QP \rightarrow QP→Q ("If PPP, then QQQ")
    • Contrapositive: ¬Q→¬P\neg Q \rightarrow \neg P¬Q→¬P ("If not QQQ, then not PPP")

    It turns out that a statement and its contrapositive are logically equivalent. This means that if you prove the contrapositive, you have also proven the original statement.

    Steps in a Proof by Contraposition:

    1. Restate the statement: Start with the original statement, typically of the form "If PPP, then QQQ".
    2. Form the contrapositive: Write the contrapositive of the statement, which will be of the form "If not QQQ, then not PPP".
    3. Prove the contrapositive: Prove the contrapositive directly, i.e., prove that ¬Q\neg Q¬Q implies ¬P\neg P¬P.
    4. Conclude the original statement: Since the contrapositive is logically equivalent to the original statement, proving the contrapositive proves the original statement.

    Example of Proof by Contraposition:

    Let's prove the following statement by contraposition:

    Statement: If n2n^2n2 is even, then nnn is even.

    Step 1: Restate the original statement

    The original statement is:

    "If n2n^2n2 is even, then nnn is even."

    This is in the form of an implication: P→QP \rightarrow QP→Q, where:

    • PPP: n2n^2n2 is even.
    • QQQ: nnn is even.

    Step 2: Form the contrapositive

    The contrapositive of this statement is:

    "If nnn is not even (i.e., nnn is odd), then n2n^2n2 is not even (i.e., n2n^2n2 is odd)."

    This is equivalent to:

    "If nnn is odd, then n2n^2n2 is odd."

    Step 3: Prove the contrapositive

    Now, we prove the contrapositive: "If nnn is odd, then n2n^2n2 is odd."

    • If nnn is odd, then by definition, n=2k+1n = 2k + 1n=2k+1, where kkk is an integer.

    • Squaring both sides of n=2k+1n = 2k + 1n=2k+1, we get:

      n2=(2k+1)2n^2 = (2k + 1)^2n2=(2k+1)2

      Expanding this:

      n2=4k2+4k+1n^2 = 4k^2 + 4k + 1n2=4k2+4k+1

      Notice that 4k2+4k4k^2 + 4k4k2+4k is an even number, because it is divisible by 2. Therefore, n2n^2n2 is of the form 2m+12m + 12m+1, where mmm is an integer, which means n2n^2n2 is odd.

    Thus, we've shown that if nnn is odd, then n2n^2n2 is odd.

    Step 4: Conclude the original statement

    Since we have proven the contrapositive, which is logically equivalent to the original statement, we can conclude that the original statement is true: "If n2n^2n2 is even, then nnn is even."


    General Structure of Proof by Contraposition:

    1. State the original implication: P→QP \rightarrow QP→Q.
    2. Write the contrapositive: ¬Q→¬P\neg Q \rightarrow \neg P¬Q→¬P.
    3. Prove the contrapositive: Show that ¬Q\neg Q¬Q implies ¬P\neg P¬P.
    4. Conclude that the original implication P→QP \rightarrow QP→Q is true.

    Why Use Contraposition?

    • Simplicity: Sometimes proving the contrapositive is easier or more direct than proving the original statement.
    • Logical equivalence: Since a statement and its contrapositive are logically equivalent, proving one is as good as proving the other.

    If you need further help with specific examples or problems involving contraposition, feel free to ask!

    Previous topic 10
    Direct Proof
    Next topic 12
    Proof by Induction

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time5 min
      Word count832
      Code examples0
      DifficultyBeginner