Euler Hall — free maths guides

De Morgan: push the negation inside and swap the connective

Apply De Morgan's laws to a negated conjunction or disjunction. The idea in plain words, a worked example, and a check with the answers shown — part of the free Quantitative Reasoning guides.

Two laws, one move

De Morgan's laws say how a negation passes through a compound:

¬(p∧q)≡¬p∨¬q\neg(p \wedge q) \equiv \neg p \vee \neg q ¬(p∨q)≡¬p∧¬q\neg(p \vee q) \equiv \neg p \wedge \neg q

Two things change at once: the connective SWAPS, and each part is negated. Forgetting the swap is the commonest error in this part of the course.

Reading the first law in English: "not both" means "at least one fails". Reading the second: "neither" means "both fail". If you can say the sentence in words, you can check the formula.

|pp |qq |¬(p∧q)\neg(p \wedge q) |¬p∨¬q\neg p \vee \neg q | |---|---|---|---| | T | T | F | F | | T | F | T | T | | F | T | T | T | | F | F | T | T |

The columns agree on all four rows, which is what makes the law a law.

Why the connective must swap

A conjunction fails as soon as ONE part fails. So to say "the conjunction fails" you must allow either part to be the failure — which is an "or".

A disjunction fails only when BOTH parts fail. So to say "the disjunction fails" you must require both — which is an "and".

That is the whole argument, and it is why the swap is not cosmetic. Keeping the connective gives a formula that is far stronger or far weaker than the negation:

  • -¬p∧¬q\neg p \wedge \neg q claims both fail, where¬(p∧q)\neg(p \wedge q) needs only one;
  • - they differ on TF and FT, the rows where exactly one part fails.

The negations come along because "not (p and q)" says something aboutpp's truth and aboutqq's truth separately, and each statement has to be denied individually.

Worked example: a nested compound

Negate¬(p∨¬q)\neg(p \vee \neg q) and simplify.

Step one — apply the law to the outer negation. The inner connective is∨\vee, so it becomes∧\wedge:¬¬p∧¬¬q\neg\neg p \wedge \neg\neg q.

Step two — cancel the double negations.¬¬p\neg\neg p ispp and¬¬q\neg\neg q isqq, so the answer isp∧qp \wedge q.

Step three — check by meaning. "It is not the case that pp or notqq)" fails only when pp or notqq" holds. That disjunction holds unless bothpp fails andqq holds — so its negation requirespp to hold andqq to hold. That isp∧qp \wedge q.

Step four — check by column. The original is F on TT and T elsewhere; its negation is T on TT and F elsewhere, which is the column ofp∧qp \wedge q. The two agree, so the algebra was right.

By the end you can
  • Apply De Morgan's laws to a negated conjunction or disjunction
  • Explain why the connective must swap
  • Simplify a double negation produced by the law
Check yourself
  1. 1. Negatep∧qp \wedge q with the negation pushed inside.
  2. 2. Negatep∨qp \vee q.
  3. 3. Simplify¬(¬p∨¬q)\neg(\neg p \vee \neg q).
Answers
  1. 1.¬p∨¬q\neg p \vee \neg q.
  2. 2.¬p∧¬q\neg p \wedge \neg q.
  3. 3.¬¬p∧¬¬q=p∧q\neg\neg p \wedge \neg\neg q = p \wedge q.
Work out where to start — free, no accountAnswer six real questions — free, no account