← Logic for the TMUA

TMUA Worked Examples

What you'll get from this section. The whole course put to work. Below are three TMUA-style questions with full solutions, each leaning on a different part of what you've built.

A few habits that make logic questions safer under exam pressure:

  • Translate every option back to basics\Rightarrow, necessary, sufficient — before judging it.
  • Watch the direction. The converse and the inverse love to pose as the contrapositive.
  • The negation of "if PP then QQ" is "PP and not QQ" — not another if–then.
  • Check the edge cases, including vacuous ones, before committing.

Example 1 — Necessary and sufficient

Let nn be a positive integer. Which of the following is both necessary and sufficient for nn to be divisible by 1212?

  • A. nn is divisible by 66
  • B. nn is divisible by 2424
  • C. nn is divisible by 33 and by 44
  • D. nn is divisible by 22 and by 33
  • E. nn is divisible by 44

Solution. We need a condition CC for which both directions hold: divisible by 12C12 \Rightarrow C (necessary) and CC \Rightarrow divisible by 1212 (sufficient).

Test the options. Divisibility by 66, by 44, or by "22 and 33" (which is just divisibility by 66) is necessary — every multiple of 1212 has these — but not sufficient: n=6n = 6 is divisible by 66, by 22 and by 33, yet not by 1212. So A, D, E fail sufficiency.

Divisibility by 2424 is sufficient (every multiple of 2424 is a multiple of 1212) but not necessary: n=12n = 12 is divisible by 1212 but not by 2424. So B fails necessity.

That leaves C. Since 33 and 44 share no common factor, being divisible by both forces divisibility by their product, 3×4=123 \times 4 = 12 — so the condition is sufficient. And every multiple of 1212 is certainly divisible by 33 and by 44 — so it is necessary. Both directions hold.

(The trap is D: 22 and 33 only force divisibility by 66, because 22 and 33 multiply to 66, not 1212. You need two factors whose product is 1212.)

The answer is C.


Example 2 — Negating a quantified statement

Consider the statement:

For every integer nn, if n2n^2 is odd then nn is odd.

Which of the following is its negation?

  • A. For every integer nn, if n2n^2 is odd then nn is even.
  • B. There exists an integer nn such that n2n^2 is odd and nn is even.
  • C. There exists an integer nn such that if n2n^2 is odd then nn is even.
  • D. For every integer nn, n2n^2 is odd and nn is even.
  • E. There exists an integer nn such that n2n^2 is even and nn is odd.

Solution. Negate in two steps. First the quantifier: the negation of "for every nn, \dots" is "there exists an nn such that not \dots" — so \forall becomes \exists (Section 3).

Then the inside. The negation of an implication "if PP then QQ" is "PP and not QQ" (Section 7) — not another implication. Here PP is "n2n^2 is odd" and QQ is "nn is odd", so the negation of the inside is "n2n^2 is odd and nn is not odd", i.e. "n2n^2 is odd and nn is even".

Putting the pieces together: there exists an integer nn such that n2n^2 is odd and nn is even — which is B.

Why the others fail: C keeps an if–then inside, but the negation of an implication is never an implication. D keeps "for every" instead of switching to "there exists". E negates the wrong parts, swapping which of n2n^2 and nn is odd. A negates only the conclusion and leaves \forall and the if–then untouched.

(As an aside: the original statement is actually true — it's the contrapositive of "nn even n2\Rightarrow n^2 even" from Section 5 — so its negation B is false. But the question asks only for the form of the negation, and B is that form.)

The answer is B.


Example 3 — Deduction by contrapositive

You are told that both of the following are true:

(i) If a function is differentiable, then it is continuous. (ii) The function gg is not continuous.

Which of the following can be validly deduced?

  • A. gg is differentiable.
  • B. gg is not differentiable.
  • C. gg is continuous.
  • D. Nothing can be deduced about whether gg is differentiable.
  • E. gg is both differentiable and not continuous.

Solution. Statement (i) is an implication: differentiable \Rightarrow continuous. Its contrapositive (Section 4) is the equivalent statement

not continuous    not differentiable.\text{not continuous} \;\Rightarrow\; \text{not differentiable}.

Statement (ii) tells us gg is not continuous. Feeding that into the contrapositive, we deduce that gg is not differentiable.

The others don't follow: C directly contradicts (ii); A and E assert gg is differentiable, which the contrapositive rules out; and D is wrong precisely because the contrapositive does let us conclude. This is the difference between a dead end and a valid deduction — running the implication backwards (the converse) would give nothing, but the contrapositive gives everything.

The answer is B.


Where to go from here

That completes the course. You've now got the full toolkit: implication and its many phrasings, necessary and sufficient conditions, negation and counter-examples, the contrapositive, proof by contradiction, equivalence, and truth tables. Every TMUA reasoning question is some combination of these moves — so the most valuable next step is to take that toolkit into full practice papers and watch the same ideas reappear under exam conditions.