π Key idea of this section
AND is strict: BOTH parts must be true. AND shrinks a truth set to the overlap. OR is generous: AT LEAST ONE part must be true β both is fine! OR glues truth sets together. Negating swaps them: Β¬(p β§ q) = Β¬p β¨ Β¬q, and Β¬(p β¨ q) = Β¬p β§ Β¬q.
Glue two statements with AND or OR and the truth of the combo follows iron rules. Logicians write p β§ q for "p AND q" and p β¨ q for "p OR q". The whole machine in one table:
p q p β§ q p β¨ q ββββββ ββββββ ββββββββ βββββββ true true true true true false false true false true false true false false false false
AND is only happy in the first row; OR is happy everywhere except the last. Warning about OR: in math, "p or q" means p, or q, or BOTH. So "2 is even OR 2 is prime" is TRUE β both halves true, and that's allowed.
Now watch what AND and OR do to open sentences β this is where it gets useful. Since an open sentence has a truth set, combining two of them combines their truth sets:
AND = the OVERLAP: only the x's that make BOTH true OR = the UNION: every x that makes at least one true
Worked example 1 β an AND of two inequalities. Find the truth set of "2x + 3 β€ 15 AND x β 1 > 2".
Solve each half separately, every step with its reason:
2x + 3 β€ 15 x β 1 > 2 2x β€ 12 subtract 3 x > 3 add 1 x β€ 6 divide by 2
AND means the overlap β the x's that satisfy BOTH: x β€ 6 and x > 3. On a number line, the first ray covers everything left of 6 (including 6), the second covers everything right of 3 (excluding 3). Where they overlap:
Truth set: 3 < x β€ 6 CHECK the boundary x = 6: 2(6) + 3 = 15 β€ 15 β and 6 β 1 = 5 > 2 β β in! CHECK x = 3: 3 β 1 = 2, and 2 > 2 is FALSE β out, as it should be.
Worked example 2 β an OR that can't be one chain. Find the truth set of "x + 4 < 2 OR 3x β₯ 21".
x + 4 < 2 3x β₯ 21 x < β2 subtract 4 x β₯ 7 divide by 3
OR means the union β anything in EITHER piece counts:
Truth set: x < β2 OR x β₯ 7. (Two separate rays β no single chain can write this.)
Absolute value is AND and OR in disguise. Remember: |x| is the distance from x to 0, and distance is never negative.
|x| β€ 4 means "distance to 0 is at most 4" β β4 β€ x β€ 4 (an AND: x β₯ β4 AND x β€ 4 β near 0) |x| > 4 means "distance to 0 is more than 4" β x > 4 OR x < β4 (an OR: two far-away rays)
Memory hook: "less than" clusters close (AND, one piece); "greater than" splits far (OR, two pieces).
Worked example 3 β unlock an absolute value, AND style. Solve |x β 3| β€ 5.
β5 β€ x β 3 β€ 5 "distance" reading: x β 3 sits between β5 and 5 β5 + 3 β€ x β€ 5 + 3 add 3 to ALL THREE parts β keeps both inequalities true β2 β€ x β€ 8 simplify
Truth set: β2 β€ x β€ 8. CHECK x = β2: |β2 β 3| = |β5| = 5 β€ 5 β. CHECK x = 9: |9 β 3| = 6 > 5 β out β.
Worked example 4 β unlock an absolute value, OR style. Solve |x + 1| > 4.
x + 1 > 4 OR x + 1 < β4 greater-than splits into two far rays x > 3 OR x < β5 subtract 1 from both sides of each piece
Truth set: x > 3 OR x < β5. CHECK x = 4: |4 + 1| = 5 > 4 β in. CHECK x = β6: |β6 + 1| = |β5| = 5 > 4 β in. CHECK x = 0: |0 + 1| = 1, not > 4 β out β. CHECK the boundary x = β5: |β4| = 4, NOT > 4 β correctly excluded β.
And now the gem β De Morgan's laws, for flipping a statement with AND or OR inside:
Β¬(p β§ q) = Β¬p β¨ Β¬q Β¬(p β¨ q) = Β¬p β§ Β¬q
The NOT slips inside, and AND/OR SWAP. Why the swap? Think about failing each test: to fail an AND test you only blow ONE part ("you can't have cake AND ice cream" means no cake OR no ice cream β you're missing at least one, maybe just one). To fail an OR test you must blow BOTH ("not open Saturday OR Sunday" means closed Saturday AND closed Sunday). The law works for three parts too: Β¬(p β§ q β§ r) = Β¬p β¨ Β¬q β¨ Β¬r.
Worked example 5 β De Morgan with comparisons. Rewrite NOT (x > 2 AND x β€ 9) without the leading NOT.
Β¬(x > 2 AND x β€ 9) = Β¬(x > 2) OR Β¬(x β€ 9) De Morgan: NOT slips in, AND β OR = x β€ 2 OR x > 9 flip each comparison β boundaries switch teams (Lesson 2)
Sanity check: the original AND was true only on 2 < x β€ 9; the flip should cover everything OUTSIDE that β and x β€ 2 OR x > 9 is exactly everything outside β. (Look back at Lesson 2's coming attraction: this is why the flip of the chain 2 < x β€ 9 is x β€ 2 OR x > 9. A chain is an AND, and De Morgan flips it into an OR.)
Worked example 6 β the other direction. Rewrite NOT (x < β1 OR x β₯ 6).
Β¬(x < β1 OR x β₯ 6) = Β¬(x < β1) AND Β¬(x β₯ 6) De Morgan: NOT slips in, OR β AND = x β₯ β1 AND x < 6 flip each comparison = β1 β€ x < 6 AND = overlap, written as one chain
One last powerhouse for this section. A system of two equations is just an AND of two open sentences with two variables β and "solve the system" means find the overlap of the two truth sets: the pairs (x, y) that make BOTH true.
Worked example 7 β a system is an AND, by elimination. Solve: x + y = 12 AND x β y = 4.
x + y = 12 x β y = 4
2x = 16 add the two equations β equal plus equal stays equal;
the +y and βy cancel, which is the whole point
x = 8 divide both sides by 2
8 + y = 12 substitute x = 8 into the first equation β the value must work THERE too
y = 4 subtract 8 from both sides
CHECK BOTH β AND demands both! First: 8 + 4 = 12 β. Second: 8 β 4 = 4 β. Truth set: the single pair (8, 4).
Worked example 8 β a system by substitution. Solve: 2x + 3y = 24 AND x = y + 2.
The second equation hands you x ready-made β so plug it into the first:
2(y + 2) + 3y = 24 substitute x = y + 2 into 2x + 3y = 24 β replacing x with
an equal expression keeps the truth set unchanged
2y + 4 + 3y = 24 distribute the 2: 2Β·y + 2Β·2
5y + 4 = 24 combine like terms: 2y + 3y = 5y
5y = 20 subtract 4 from both sides
y = 4 divide both sides by 5
x = 4 + 2 = 6 substitute y = 4 back into x = y + 2
CHECK BOTH: 2(6) + 3(4) = 12 + 12 = 24 β. 6 = 4 + 2 β. Truth set: the single pair (6, 4).
(If you ever graph these: each equation's truth set is a line, and the AND-overlap is exactly where the lines cross.)
βοΈ Your Turn!
- (a)Find the truth set: 3x β 2 β€ 13 AND x > 2.
- (b)Rewrite |x| β₯ 2 without absolute value.
- (c)Rewrite NOT (x β₯ 4 AND x < 12) without the leading NOT.
- (d)Solve |x + 2| β€ 3.
π Show the answers
Answers: (a) 3x β€ 15 β x β€ 5; overlap with x > 2 gives 2 < x β€ 5. (b) x β₯ 2 OR x β€ β2 (greater-than splits into two far rays). (c) De Morgan: x < 4 OR x β₯ 12 β the flip covers everything outside the original chain β. (d) β3 β€ x + 2 β€ 3 β subtract 2 from all three parts β β5 β€ x β€ 1. CHECK x = β5: |β5 + 2| = |β3| = 3 β€ 3 β. CHECK x = 2: |2 + 2| = 4 > 3 β out β.