PYQ Vault

HSC Maths · Mathematical Logic

Truth Tables of Compound Statements

Finding the truth value of a statement pattern from given values, working back to the values of p and q, and building the full truth table.

Why this matters

34 questions. Two were set in board papers, both in 2024: the truth value of a pattern when p, q are true and r, s are false, and the full truth table of a two-letter pattern. The textbook adds tables with two and three letters, and finding the truth values of p and q from given compound values.

Concept 1 of 3: Truth value of a pattern from given values

When the truth values of p, q, r and s are given, a statement pattern is just a sum to work out. Put T or F in place of each letter and work from the innermost bracket outwards, one connective at a time.

Definition

  • Write the given values first, and the value of each negation: if p is T, then ∼p\sim p is F.
  • Work inside the brackets first, one connective at a time.
  • Write every step on its own line: substitution, each bracket, the final value.
  • End with a sentence: 'Hence the truth value of the given statement pattern is T (or F).'

Worked example

If p is true, q is false and r is true, find the truth value of (p∨q)→(∼r∧q)(p \lor q) \to (\sim r \land q).
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2024 · Q. 3Easy

Example 1 · Mathematical Logic · Truth Tables of Compound Statements

If the statements pp, qq are true statements and rr, ss are false statements, then determine the truth value of the statement pattern : (q∧r)∨(∼p∧s)(q \wedge r) \vee (\sim p \wedge s)

Using p where the pattern has not p

Write the value of each negation before you start. If p is T, then ∼p\sim p is F, and it is ∼p\sim p that goes into the bracket.

Working left to right instead of inside out

Finish each bracket before the connective outside it. ∼(p→q)\sim (p \to q) means: find p→qp \to q first, then negate it.

Concept 2 of 3: Finding the truth values of p and q

Some given values leave only one row of the truth table. 'p and q is true' can happen in one way only, and so can 'p or q is false' and 'if p then q is false'. Start from the condition that pins down the row, then check the other one.

Definition

  • p∧qp \land q is T only when p and q are both T.
  • p∨qp \lor q is F only when p and q are both F.
  • p→qp \to q is F only when p is T and q is F.
  • p↔qp \leftrightarrow q is T when p and q match, and F when they differ.
  • If the first condition leaves several rows, test each one against the second condition and list every row that works.

Worked example

Find the truth values of p and q if p↔qp \leftrightarrow q is T and p∨qp \lor q is F.
Practise this conceptself-check · 3 quick reps

The same idea in a textbook question:

Balbharati textbook · Misc Q.8 (ii)Hard

Example 2 · Mathematical Logic · Truth Tables of Compound Statements

Determine the truth values of pp and qq in the following cases:
(p∨q)(p \vee q) is T and (p∨q)→q(p \vee q) \to q is F

Stopping at one row when more rows work

If the conditions allow two or three rows, the answer is all of them. Test each of the four rows against both conditions.

Concept 3 of 3: Building a truth table

A truth table tries every possible combination of truth values of the letters. With two letters there are four combinations, with three there are eight. Build the pattern one piece at a time, a column for each piece, and the last column is the pattern itself.

Definition

  • With n letters the table has 2n2^n rows: 4 rows for p, q and 8 rows for p, q, r.
  • Fill the first letter's column with half T then half F; the next column in blocks half as long; the last letter alternates T, F, T, F.
  • Add a column for each part of the pattern, working from the inside out, and end with the whole pattern.
  • A table that lists all possible truth values of a pattern for every combination of its prime components (p, q, r) is its truth table.

Number of rows

rows=2n,n=number of simple statements\text{rows} = 2^n, \quad n = \text{number of simple statements}

Worked example

Construct the truth table for (p∨∼q)→q(p \lor \sim q) \to q.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2024 · Q. 3Moderate

Example 3 · Mathematical Logic · Truth Tables of Compound Statements

Construct the truth table for the statement pattern: [(p→q)∧q]→p\left\lbrack (p \rightarrow q) \land q \right\rbrack \rightarrow p.

Four rows for three letters

Three letters need eight rows. A table with too few rows misses combinations, and the conclusion drawn from it can be wrong.

Jumping to the last column

Show a column for every part of the pattern. The intermediate columns are where the marks for working are given.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (1)

  • Building a truth table

    Number of rows

    rows=2n,n=number of simple statements\text{rows} = 2^n, \quad n = \text{number of simple statements}

Watch out for (5)

Test yourself on Mathematical Logic

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.