HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Conditionals, Contrapositives and Quantifiers
  1. 1Conditional and biconditional statements
  2. 2Converse, inverse and contrapositive
  3. 3Quantifiers and their negations
  1. Mathematics
  2. /Conditionals, Contrapositives and Quantifiers
  3. /Converse, inverse and contrapositive

Course 36.2·Lesson 2 of 3

Converse, inverse and contrapositive

From p⇒qp \Rightarrow qp⇒q we form the converse q⇒pq \Rightarrow pq⇒p

Lesson 2 of 3Show all lessonsHide
Conditionals, Contrapositives and Quantifiers
  1. 1Conditional and biconditional statements
  2. 2Converse, inverse and contrapositive
  3. 3Quantifiers and their negations

Try the code and the simulations beside the lesson.

What you will be able to do

  • write the converse, the inverse and the contrapositive of a conditional;
  • decide which of them say the same thing;
  • use the contrapositive to read and check a statement.

Turning a statement around

Take the true statement "If a number is divisible by 666, then it is divisible by 333". There are three ways to rearrange it.

  • Converse: swap the parts. "If a number is divisible by 333, then it is divisible by 666." False: 999 is divisible by 333 but not by 666.
  • Inverse: negate both parts. "If a number is not divisible by 666, then it is not divisible by 333." False: 999 again.
  • Contrapositive: swap and negate. "If a number is not divisible by 333, then it is not divisible by 666." True.

In symbols, for p⇒qp \Rightarrow qp⇒q:

  • converse: q⇒pq \Rightarrow pq⇒p;
  • inverse: ∼p⇒∼q\sim p \Rightarrow \sim q∼p⇒∼q;
  • contrapositive: ∼q⇒∼p\sim q \Rightarrow \sim p∼q⇒∼p.

Which ones say the same thing?

Here is each row for ppp, qqq, as a list. Each row gives the statement, the converse, the inverse and the contrapositive.

  1. T, T: T, T, T, T.
  2. T, F: F, T, T, F.
  3. F, T: T, F, F, T.
  4. F, F: T, T, T, T.

The statement and the contrapositive agree in every row. The converse and the inverse agree in every row. So

  • p⇒q≡∼q⇒∼pp \Rightarrow q \equiv \sim q \Rightarrow \sim pp⇒q≡∼q⇒∼p;
  • q⇒p≡∼p⇒∼qq \Rightarrow p \equiv \sim p \Rightarrow \sim qq⇒p≡∼p⇒∼q.

The inverse is the contrapositive of the converse. That is why those two match.

A square with a statement at each corner. Top left: p implies q, the statement. Top right: q implies p, the converse. Bottom left: not p implies not q, the inverse. Bottom right: not q implies not p, the contrapositive. The top and bottom edges are labelled swap, the left and right edges negate both, and the two diagonals are drawn dashed and labelled equivalent, one joining the statement to the contrapositive and the other joining the converse to the inverse.

The picture puts the four statements at the corners of a square. Statements on the same diagonal are equivalent.

Seeing it with sets

Let PPP be the set of things for which ppp is true, and QQQ the set for which qqq is true. "p⇒qp \Rightarrow qp⇒q" says that PPP sits inside QQQ.

A large oval labelled Q with a smaller oval labelled P drawn completely inside it. A dot inside P is marked 'p and q both true'. A dot inside Q but outside P is marked 'q true, p false'. A dot outside Q is marked 'q false, so p false'.

Now look at a point outside QQQ. It cannot be in PPP, because all of PPP is inside QQQ. That is the contrapositive: not in QQQ implies not in PPP. A point inside QQQ but outside PPP shows why the converse can fail.

Why the contrapositive is useful

Sometimes the contrapositive is easier to check. Take "if n2n^2n2 is even, then nnn is even", for whole numbers nnn. Its contrapositive is "if nnn is odd, then n2n^2n2 is odd". Write n=2k+1n = 2k + 1n=2k+1. Then n2=4k2+4k+1n^2 = 4k^2 + 4k + 1n2=4k2+4k+1, which is odd. So the contrapositive is true, and so is the statement. The next course uses this as a method of proof.

Negating compound statements: a summary

  • ∼(p∧q)≡∼p∨∼q\sim(p \wedge q) \equiv \sim p \vee \sim q∼(p∧q)≡∼p∨∼q;
  • ∼(p∨q)≡∼p∧∼q\sim(p \vee q) \equiv \sim p \wedge \sim q∼(p∨q)≡∼p∧∼q;
  • ∼(p⇒q)≡p∧∼q\sim(p \Rightarrow q) \equiv p \wedge \sim q∼(p⇒q)≡p∧∼q;
  • ∼(p⇔q)≡p⇔∼q\sim(p \Leftrightarrow q) \equiv p \Leftrightarrow \sim q∼(p⇔q)≡p⇔∼q.

Do not confuse the negation with the contrapositive. The contrapositive says the same as the statement. The negation says the opposite.

Practise with new numbers

Try it in Python

The program builds the four related statements as functions and checks which pairs agree on all four rows.

Read it first. Then run it. Which two pairs does it report as equivalent?

1. Add the negation lambda p, q: p and not q to the list. Does it agree with any of the four?

2. Check the claim of the lesson that the inverse is the contrapositive of the converse.

Common mistakes

  • Taking the converse as true because the statement is true. "Divisible by 666 implies divisible by 333" is true, but its converse is false.
  • Mixing up the inverse and the contrapositive. The contrapositive swaps and negates. The inverse only negates.
  • Calling the contrapositive the negation. The contrapositive is equivalent to the statement, the negation is its opposite.
  • Forgetting to negate correctly inside. The contrapositive of "if x>2x > 2x>2 then y≤5y \le 5y≤5" is "if y>5y > 5y>5 then x≤2x \le 2x≤2".

Remember these

  • Converse q⇒pq \Rightarrow pq⇒p, inverse ∼p⇒∼q\sim p \Rightarrow \sim q∼p⇒∼q, contrapositive ∼q⇒∼p\sim q \Rightarrow \sim p∼q⇒∼p.
  • Statement ≡\equiv≡ contrapositive; converse ≡\equiv≡ inverse.
  • A statement and its converse together make the biconditional.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Write the contrapositive of "If it is a holiday, then the library is closed".
  1. The statement "if x=5x = 5x=5 then x2=25x^2 = 25x2=25" is true for real xxx. Is its converse true?
  1. Which of the four related statements is equivalent to the inverse?
  1. Write the contrapositive of ∼p⇒q\sim p \Rightarrow q∼p⇒q and simplify it.
  1. A statement is false. What can you say about its contrapositive, and about its converse?

References

  • NCERT, Mathematics Textbook for Class XI (edition before 2023), Chapter 14, section 14.5.
  • OpenStax, Contemporary Mathematics, Chapter 2, section on the conditional and its related statements.

Enroll free in Conditionals, Contrapositives and Quantifiers

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

Take the statement "if a quadrilateral is a square, then its diagonals are equal in length"…Hard · High School (11–12) · by StemPy Lab
Over the integers from -5 to 5, take the statement "if x² = 9, then x = 3"…Hard · High School (11–12) · by StemPy Lab
You are told only that the statement "if p then q" is false…Advanced · High School (11–12) · by StemPy Lab
Next: lesson 3Quantifiers and their negations
← Conditionals, Contrapositives and Quantifiers
← Conditional and biconditional statementsQuantifiers and their negations →

Discussion (0)

Log in to join the discussion.

Loading…

, the inverse
∼p⇒∼q\sim p \Rightarrow \sim q∼p⇒∼q
and the contrapositive
∼q⇒∼p\sim q \Rightarrow \sim p∼q⇒∼p
. A statement and its contrapositive are equivalent, and so are the converse and the inverse, but a statement and its converse need not be. The contrapositive is the tool behind many proofs.
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Four related conditionalsPython Lab · by StemPy Lab