## Learning Objectives

After completing this section, you should be able to:

- Use De Morgan’s Laws to negate conjunctions and disjunctions.
- Construct the negation of a conditional statement.
- Use truth tables to evaluate De Morgan’s Laws.

The contributions to logic made by Augustus De Morgan and George Boole during the 19th century acted as a bridge to the development of computers, which may be the greatest invention of the 20th century. **Boolean** logic is the basis for computer science and digital electronics, and without it the technological revolution of the late 20th and early 21st centuries—including the creation of computer chips, microprocessors, and the Internet—would not have been possible. Every modern computer language uses Boolean logic statements, which are translated into commands understood by the underlying electronic circuits enabling computers to operate. But how did this logic get its name?

## People in Mathematics

### George Boole

George Boole was born in Lincolnshire, England in 1815. He was the son of a cobbler who provided him some initial education, but Boole was mostly self-taught. He began teaching at 16 years of age, and opened his own school at the age of 20. In 1849, at the age of 34, he was appointed Professor of Mathematics at Queens College in Cork, Ireland. In 1853, he published the paper, *An Investigation of the Laws of Thought, on Which Are Founded the Mathematical Theories of Logic and Probabilities*, which is the treatise that the field of Boolean algebra and digital circuitry was built on.

Reference: Posamentier, Alfred and Spreitzer Christian, “Chapter 35 George Boole: English (1815-1864)” pp. 279-283, *Math Makers: The Lives and Works of 50 Famous Mathematicians*, Prometheus Books, 2019.

## Negation of Conjunctions and Disjunctions

In Chapter 1, Example 1.37 used a Venn diagram to prove De Morgan’s Law for set complement over union. Because the complement of a set is analogous to negation and union is analogous to an *or* statement, there are equivalent versions of De Morgan’s Laws for logic.

## FORMULA

De Morgan’s Law for negation of a conjunction: $~\left(p\wedge q\right)\text{}\equiv \text{}~p\vee ~q$

De Morgan’s Law for the negation of a disjunction: $~\left(p\vee q\right)\text{}\equiv \text{}~p\wedge ~q$

Negation of a conditional: $~\left(p\to q\right)\text{}\equiv \text{}p\wedge ~q$

Writing conditional as a disjunction: $p\to q\text{}\equiv \text{}~p\vee q$

## Checkpoint

*Recall that the symbol for logical equivalence is:* $\equiv .$

De Morgan’s Laws allow us to write the negation of conjunctions and disjunctions without using the phrase, “It is not the case that …” to indicate the parentheses. Avoiding this phrase often results in a written or verbal statement that is clearer or easier to understand.

## Example 2.26

### Applying De Morgan’s Law for Negation of Conjunctions and Disjunctions

Write the negation of each statement in words without using the phrase, “It is not the case that.”

- Kristin is a biomedical engineer and Thomas is a chemical engineer.
- A person had cake or they had ice cream.

### Solution

- Kristin is a biomedical engineer and Thomas is a chemical engineer has the form “$p\wedge q$,” where $p$ is the statement, “Kristin is a biomedical engineer,” and $q$ is the statement, “Thomas is a chemical engineer.” By De Morgan’s Law, the negation of a conjunction, $~(p\wedge q)$, is logically equivalent to $~p\text{}\vee ~q.$ $~p$ is “Kristen is not a biomedical engineer,” and $~q$ is “Thomas is not a chemical engineer.” By De Morgan’s Law, the solution has the form “$~p\text{}\vee ~q$,” so the answer is: “Kristin is not a biomedical engineer or Tom is not a chemical engineer.”
- A person had cake or they had ice cream has the form “$p\vee q,$” where $p$ is the statement, “A person had cake,” and $q$ is the statement, “A person had ice cream.” By De Morgan’s Law for the negations of a disjunction, $~(p\vee q)\text{}\equiv \text{}~p\text{}\wedge ~q.$ The solution is the statement: “A person did not have cake and they did not have ice cream.”

## Your Turn 2.26

## Negation of a Conditional Statement

The negation of any statement has the opposite truth values of the original statement. The **negation of a conditional**, $~(p\to q)$, is the conjunction of $p$ and not $q$, $p\text{}\wedge ~q.$ Consider the truth table below for the negation of the conditional.

$p$ | $q$ | $p\to q$ | $~(p\to q)$ |
---|---|---|---|

T | T | T | F |

T | F | F | T |

F | T | T | F |

F | F | T | F |

The only time the negation of the conditional statement is true is when $p$ is true, and $q$ is false. This means that $~\left(p\to q\right)$ is logically equivalent to $p\wedge ~q,$ as the following truth table demonstrates.

$p$ | $q$ | $p\to q$ | $~\left(p\to q\right)$ | $~q$ | $p\wedge ~q$ | $~\left(p\to q\right)\leftrightarrow \left(p\wedge ~q\right)$ |
---|---|---|---|---|---|---|

T | T | T | F | F | F | T |

T | F | F | T | T | T | T |

F | T | T | F | F | F | T |

F | F | T | F | T | F | T |

## Example 2.27

### Constructing the Negation of a Conditional Statement

Write the negation of each conditional statement.

- If Adele won a Grammy, then she is a singer.
- If Henrik Lundqvist played professional hockey, then he did not win the Stanley Cup.

### Solution

- The negation of the conditional statement, $p\to q,$ is the statement, $p\wedge ~q.$ The hypothesis of the conditional statement is $p$: “Adele won a Grammy,” and conclusion of the conditional statement is $q$: “Adele is a singer.” The negation of the conclusion, $~q$, is the statement: “She is not a singer.” Therefore, the answer is $p\text{}\wedge ~q:$ “Adele won a Grammy, and she is not a singer.”
- The hypothesis is $p$: “Henrik Lundqvist played professional hockey,” and the conclusion of the conditional statement is $q$: “He did not win the Stanley Cup.” The negation of $q$ is the statement: “He won the Stanley Cup.” The negation of the conditional statement is equal to $p\text{}\wedge ~q:$ “Henrick Lundqvist played professional hockey, and he won the Stanley Cup.”

## Your Turn 2.27

## Example 2.28

### Constructing the Negation of a Conditional Statement with Quantifiers

Write the negation of each conditional statement.

- If all cats purr, then my partner’s cat purrs.
- If a penguin is a bird, then some birds do not fly.

### Solution

- The negation of the conditional statement $p\to q$ is the statement $p\wedge ~q.$ The hypothesis of the conditional statement is $p$: “All cats purr,” and the conclusion of the conditional statement is $q$: “My partner’s cat purrs.” The negation of the conclusion, $~q$, is the statement: “My partner’s cat does not purr.” Therefore, the answer is $p\text{}\wedge ~q:$ “All cats purr, but my partner’s cat does not purr.”
- The hypothesis is $p$: “A penguin is a bird,” and the conclusion of the conditional statement is $q$: “Some birds do not fly.” The negation of $q$ is the statement: “All birds fly.” Therefore, the negation of the conditional statement is equal to $p\text{}\wedge ~q:$ “A penguin is a bird, and all birds fly.”

## Your Turn 2.28

Many of the properties that hold true for number systems and sets also hold true for logical statements. The following table summarizes some of the most useful properties for analyzing and constructing logical arguments. These properties can be verified using a truth table.

Property | Conjunction (AND) | Disjunction (OR) |
---|---|---|

Commutative |
$p\wedge q\equiv q\wedge p$ | $p\vee q\equiv q\vee p$ |

Associative |
$\left(p\wedge q\right)\wedge r\equiv p\wedge \left(q\wedge r\right)$ | $\left(p\vee q\right)\vee r\equiv p\vee \left(q\vee r\right)$ |

Distributive |
$p\wedge \left(q\wedge r\right)\equiv \left(p\wedge q\right)\vee \left(p\wedge r\right)$ | $p\vee \left(q\wedge r\right)\equiv \left(p\vee q\right)\wedge \left(p\vee r\right)$ |

De Morgan’s |
$~\left(p\wedge q\right)\text{}\equiv \text{}~p\vee ~q$ | $~\left(p\vee q\right)\text{}\equiv \text{}~p\wedge ~q$ |

Conditional |
$~\left(p\to q\right)\text{}\equiv \text{}p\wedge ~q$ | $p\to q\text{}\equiv \text{}~p\vee q$ |

## Example 2.29

### Negating a Conditional Statement with a Conjunction or Disjunction

Write the negation of each conditional statement applying De Morgan’s Law.

- If mom needs to buy chips, then Mike had friends over and Bob was hungry.
- If Juan had pizza or Chris had wings, then dad watched the game.

### Solution

- The conditional has the form “If $p$ then $q$ or $r$,” where $p$ is “Mom needs to buy chips,” $q$ is “Mike had friends over,” and $r$ is “Bob was hungry.” The negation of $p\to (q\wedge r)$ is $p\wedge ~(q\wedge r).$ Applying De Morgan’s Law to the statement $~(q\wedge r)$ the result is $~q\text{}\vee ~r$, so our conditional statement becomes $p\wedge (~q\vee ~r).$ By the distributive property for conjunction over disjunction, this statement is equivalent to $\left(p\wedge ~q\right)\vee \left(p\wedge ~r\right).$ Translating the statement $\left(p\wedge ~q\right)\vee \left(p\wedge ~r\right)$ into words, the solution is: “Mom needs to buy chips and Mike did not have friends over, or Mom needs to buy chips and Bob was not hungry.”
- The conditional has the form “If $p$ or $q$, then $r$,” where $p$ is “Juan had pizza,” $q$ is “Chris had wings,” and $r$ is “Dad watched the game.” The negation of $\left(p\vee q\right)\to r$ is $\left(p\vee q\right)\wedge ~r.$ By the distributive property for disjunction over conjuction, the statement is equivalent to $\left(p\text{}\vee ~r\right)\wedge \left(q\text{}\vee ~r\right).$ Translating the statement $\left(p\text{}\vee ~r\right)\wedge \left(q\text{}\vee ~r\right)$ into words, the solution is: “Juan had pizza or dad did not watch the game, and Chris had wings or dad did not watch the game.”

## Your Turn 2.29

## Evaluating De Morgan’s Laws with Truth Tables

In Chapter 1, you learned that you could prove the validity of De Morgan’s Laws using Venn diagrams. Truth tables can also be used to prove that two statements are logically equivalent. If two statements are logically equivalent, you can use the form of the statement that is clearer or more persuasive when constructing a logical argument.

The next example will prove the validity of one of De Morgan’s Laws using a truth table. The same procedure can be applied to any two logical statement that you believe are equivalent. If the last column of the truth table is a tautology, then the two statements are logically equivalent.

## Example 2.30

### Verifying De Morgan’s Law for Negation of a Conjunction

Construct a truth table to verify De Morgan’s Law for the negation of a conjunction, $~\left(p\wedge q\right)\text{}\equiv \text{}~p\vee ~q$, is valid.

### Solution

**Step 1:** To verify any logical equivalence, you must first replace the logical equivalence symbol, $\equiv $, with the biconditional symbol, $\leftrightarrow $. The statement $~\left(p\wedge q\right)\text{}\equiv \text{}~p\text{}\vee ~q$ becomes $~\left(p\wedge q\right)\text{}\leftrightarrow \text{}~p\text{}\vee ~q.$

**Step 2:** Next, you create a truth table for the statement. Because we have two basic statements, $p$, and $q$, the truth table will have four rows to account for all the possible outcomes. The columns will be $p$, $q$, $~p$, $~q$, $p\wedge q,$$~(p\wedge q),$$~p\text{}\vee ~q,$ and the biconditional statement is $~\left(p\wedge q\right)\text{}\leftrightarrow \text{}~p\text{}\vee ~q.$

$p$ | $q$ | $p\wedge q$ | $~\left(p\wedge q\right)$ | $~p$ | $~q$ | $~p\vee ~q$ | $~\left(p\wedge q\right)\leftrightarrow \left(~p\vee ~q\right)$ |
---|---|---|---|---|---|---|---|

T | T | T | F | F | F | F | T |

T | F | F | T | F | T | T | T |

F | T | F | T | T | F | T | T |

F | F | F | T | T | T | T | T |

**Step 3:** Finally, verify that the statement is valid by confirming it is a tautology. In this instance, the last column is all true. Therefore, the statement is valid and De Morgan’s Law for the negation of a conjunction is verified.