NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Mathematical Logic: Connectives and Truth Tables | NIMCET

Learn statements, logical connectives, truth tables, converse, inverse and contrapositive, tautologies and contradictions, and the key logical equivalences for NIMCET.

5 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: A statement is a sentence that is either true or false, not both. Statements are joined by connectives: negation (∼p), conjunction (p ∧ q), disjunction (p ∨ q), conditional (p → q) and biconditional (p ↔ q). The conditional p→qp \to q is false only when p is true and q is false, and it is equivalent to its contrapositive ∼q→∼p\sim q \to \sim p.

The revised NIMCET syllabus lists mathematical logic alongside set theory, as noted in the NIMCET revised syllabus update.

Statements

SentenceStatement?
"7 is a prime number."Yes (true)
"2 + 2 = 5."Yes (false)
"Close the door."No, it is a command
"x + 2 = 5"No, its truth depends on x

Connectives

ConnectiveSymbolRead asTrue when
Negation∼p\sim pnot pp is false
Conjunctionp∧qp \wedge qp and qboth are true
Disjunctionp∨qp \vee qp or qat least one is true
Conditionalp→qp \to qif p then qexcept when p is true and q is false
Biconditionalp↔qp \leftrightarrow qp if and only if qboth have the same truth value

The basic truth table

pq∼pp ∧ qp ∨ qp → qp ↔ q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

With nn simple statements, a truth table has 2n2^n rows.

Converse, inverse and contrapositive

For the conditional p→qp \to q:

NameFormEquivalent to p → q?
Converseq→pq \to pNo
Inverse∼p→∼q\sim p \to \sim qNo
Contrapositive∼q→∼p\sim q \to \sim pYes

The converse and the inverse are equivalent to each other.

Tautology and contradiction

  • A tautology is always true, for example p∨∼pp \vee \sim p.
  • A contradiction is always false, for example p∧∼pp \wedge \sim p.
  • A statement that is neither is a contingency.

Key equivalences

LawEquivalence
Double negation∼(∼p)≡p\sim(\sim p) \equiv p
De Morgan∼(p∧q)≡∼p∨∼q\sim(p \wedge q) \equiv \sim p \vee \sim q
De Morgan∼(p∨q)≡∼p∧∼q\sim(p \vee q) \equiv \sim p \wedge \sim q
Conditionalp→q≡∼p∨qp \to q \equiv \sim p \vee q
Negation of conditional∼(p→q)≡p∧∼q\sim(p \to q) \equiv p \wedge \sim q
Biconditionalp↔q≡(p→q)∧(q→p)p \leftrightarrow q \equiv (p \to q) \wedge (q \to p)
Distributivep∧(q∨r)≡(p∧q)∨(p∧r)p \wedge (q \vee r) \equiv (p \wedge q) \vee (p \wedge r)

These match the laws of the algebra of sets: ∧ behaves like ∩, ∨ like ∪, and ∼ like complement.

Quantifiers

StatementNegation
For all x, P(x)There exists x such that not P(x)
There exists x such that P(x)For all x, not P(x)

Example: the negation of "Every student passed" is "Some student did not pass".

Worked examples

Example 1: negating a conditional

Negate "If it rains, then the match is cancelled."

Using ∼(p→q)≡p∧∼q\sim(p \to q) \equiv p \wedge \sim q: "It rains and the match is not cancelled."

Example 2: identify a tautology

Is (p∧q)→p(p \wedge q) \to p a tautology?

pqp ∧ q(p ∧ q) → p
TTTT
TFFT
FTFT
FFFT

All rows are T, so it is a tautology.

Example 3: contrapositive

Write the contrapositive of "If a number is divisible by 4, then it is even."

"If a number is not even, then it is not divisible by 4."

Example 4: simplify

Simplify ∼(∼p∨q)\sim(\sim p \vee q).

By De Morgan, p∧∼qp \wedge \sim q.

Summary table

IdeaKey point
p → q falseOnly when p is T and q is F
ContrapositiveEquivalent to the original conditional
p → q≡∼p∨q\equiv \sim p \vee q
Negation of p → qp∧∼qp \wedge \sim q
Truth table rows2n2^n

Exam tips

  • Memorise the single false row of p→qp \to q; most logic questions depend on it.
  • To test for a tautology quickly, look for a row that makes the statement false.
  • When negating "and" or "or", switch the connective and negate both parts.
  • "For all" becomes "there exists" under negation, and vice versa.

See all topics in the NIMCET Set Theory chapter.

Common mistakes

  • Treating the converse as equivalent to the original conditional.
  • Negating p→qp \to q as ∼p→∼q\sim p \to \sim q; that is the inverse.
  • Forgetting that "or" in logic is inclusive: p∨qp \vee q is true when both are true.
  • Treating open sentences like "x + 2 = 5" as statements.

Frequently Asked Questions

When is p → q false?

Only when p is true and q is false.

What is the contrapositive of p → q?

It is ∼q → ∼p, and it always has the same truth value as p → q.

What is the negation of p → q?

The negation is p ∧ ∼q.

What is a tautology?

A tautology is a compound statement that is true for every combination of truth values, such as p ∨ ∼p.

How many rows does a truth table with three statements have?

It has 2³ = 8 rows.

Concept Check

MEDIUM

Find the nn-th derivative of f(x)=x2e2xf(x) = x^2 e^{2x}.

Suggested for you