Skip to content

Mathematics · Ch 1 — Mathematical Logic

Two switches in parallel

1.5.2

Two switches in parallel

Two Switches in Parallel

Now wire S1S_1 and S2S_2 side by side, each offering its own path to the lamp LL (a parallel connection), with pp for S1S_1 and qq for S2S_2. Current reaches the lamp as long as at least one path is closed — the behaviour of disjunction p∨qp \lor q.

Figure 1.4Fig. 1.4 — Two switches S₁ and S₂ connected in parallel with lamp L
Fig. 1.4 — Fig. 1.4 — Two switches S₁ and S₂ connected in parallel with lamp L

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

What this figure shows. Figure 1.4 shows switches S1S_1 and S2S_2 as two separate side-by-side branches that both feed the same lamp LL, so current can reach the lamp through EITHER branch — both need not be closed. With pp for 'S1S_1 is on' and qq for 'S2S_2 is on', the lamp glows whenever pp or qq (or both) is true, failing only when both are off — the truth condition of the disjunction $p …

ppqqp∨qp \lor q
111
101
011
000

The lamp is dark only when both switches are off; a parallel connection is the circuit picture of OR.

With series = AND, parallel = OR, and a complementary switch = NOT now established, any circuit built from switches can be translated into a logical expression, and any logical expression can equally be built as a circuit — which is exactly what the worked examples below do.

Worked Example 1 — reading circuits into symbolic form. Three circuits (using switches S1,S2S_1, S_2, and in the third case S3S_3, all controlling a lamp LL) are to be written symbolically and given their input-output tables.

(i) With pp for S1S_1 and qq for S2S_2, this circuit's expression is (p∨q)∨(∼p∧∼q)(p \lor q) \lor (\sim p \land \sim q). Building the table column by column:

ppqq∼p\sim p∼q\sim qp∨qp \lor q∼p∧∼q\sim p \land \sim q(p∨q)∨(∼p∧∼q)(p \lor q) \lor (\sim p \land \sim q)
1100101
1001101
0110101
0011011

Every row gives 1 — the last column is all ones, so this circuit is a tautology: however the two switches are set, the lamp always glows.

(ii) With pp for S1S_1, qq for S2S_2, rr for S3S_3, the expression is [(p∧q)∨(∼p∧∼q)]∧r[(p \land q) \lor (\sim p \land \sim q)] \land r. Here (p∧q)∨(∼p∧∼q)(p\land q)\lor(\sim p\land \sim q) is 1 exactly when pp and qq agree (both on or both off), and the whole expression additionally needs rr on:

ppqqrrp∧qp \land q∼p∧∼q\sim p \land \sim q(p∧q)∨(∼p∧∼q)(p\land q)\lor(\sim p\land\sim q)result
1111011
1101010
1010000
1000000
0110000
0100000
0010111
0000110

The lamp glows only when pp and qq agree AND rr is on (rows 1 and 7).

(iii) With p,q,rp, q, r for S1,S2,S3S_1, S_2, S_3, the expression is (p∨q)∧q∧(r∨∼p)(p \lor q) \land q \land (r \lor \sim p):

ppqqrrp∨qp \lor qr∨∼pr \lor \sim p(p∨q)∧q(p\lor q)\land qresult
1111111
1101010
1011100
1001000
0111111
0101111
0010100
0000100

Notice (p∨q)∧q(p\lor q)\land q always equals qq itself (an instance of the Absorption Law), so the lamp really only needs qq on together with rr on or pp off — the table confirms it lights only where q=1q=1 and (r=1r=1 or p=0p=0).

Worked Example 2 — building circuits from expressions. Given three logical expressions (with p,q,rp,q,r for S1,S2,S3S_1,S_2,S_3), each is translated into a switch network by reading ∧\land as switches wired in series and ∨\lor as branches wired in parallel; no input-output table is needed here, only the circuit layout.

(i) [p∨(∼p∧q)]∨[(∼q∧r)∨∼p][p \lor (\sim p \land q)] \lor [(\sim q \land r) \lor \sim p] — since disjunction only ever adds parallel branches, this circuit is four paths side by side between the two terminals: a lone switch pp; a series pair ∼p,q\sim p, q; a series pair ∼q,r\sim q, r; and a lone switch ∼p\sim p.

(ii) (p∧q∧r)∨[∼p∨(q∧∼r)](p \land q \land r) \lor [\sim p \lor (q \land \sim r)] — three parallel branches: p,q,rp, q, r all in series; a lone switch ∼p\sim p; and q,∼rq, \sim r in series.

(iii) [(p∧r)∨(∼q∧∼r)]∨(∼p∧∼r)[(p \land r) \lor (\sim q \land \sim r)] \lor (\sim p \land \sim r) — three parallel branches: p,rp, r in series; ∼q,∼r\sim q, \sim r in series; and ∼p,∼r\sim p, \sim r in series.

Worked Example 3 — simplifying to fewer switches. A circuit with switches S1(p)S_1 (p) and S2(q)S_2 (q) has expression (p∧∼q)∨(∼p∧q)∨(∼p∧∼q)(p \land \sim q) \lor (\sim p \land q) \lor (\sim p \land \sim q) — four switch-occurrences in all. The law chain below finds an equivalent circuit using as few switches as possible:

(p∧∼q)∨(∼p∧q)∨(∼p∧∼q)(p \land \sim q) \lor (\sim p \land q) \lor (\sim p \land \sim q)

≡(p∧∼q)∨[∼p∧(q∨∼q)]\equiv (p \land \sim q) \lor [\sim p \land (q \lor \sim q)] — Distributive Law, factoring ∼p\sim p out of the last two terms

≡(p∧∼q)∨(∼p∧t)\equiv (p \land \sim q) \lor (\sim p \land t) — Complement Law, q∨∼q≡tq \lor \sim q \equiv t

≡(p∧∼q)∨∼p\equiv (p \land \sim q) \lor \sim p — Identity Law, ∼p∧t≡∼p\sim p \land t \equiv \sim p

≡∼p∨(p∧∼q)\equiv \sim p \lor (p \land \sim q) — Commutative Law

≡(∼p∨p)∧(∼p∨∼q)\equiv (\sim p \lor p) \land (\sim p \lor \sim q) — Distributive Law

≡t∧(∼p∨∼q)\equiv t \land (\sim p \lor \sim q) — Complement Law, ∼p∨p≡t\sim p \lor p \equiv t

≡∼p∨∼q\equiv \sim p \lor \sim q — Identity Law, t∧X≡Xt \land X \equiv X

So this four-switch circuit is logically identical to just two switches, ∼p\sim p and ∼q\sim q (the complements of S1S_1 and S2S_2), wired in parallel — the minimum arrangement for this expression.

Worked Example 4 — expressing, tabulating, and interpreting. With pp for S1S_1 and qq for S2S_2, a given circuit's expression is (p∨q)∧(∼p)∧(∼q)(p \lor q) \land (\sim p) \land (\sim q):

ppqq∼p\sim p∼q\sim qp∨qp \lor q(p∨q)∧∼p(p\lor q)\land \sim presult
1100100
1001100
0110110
0011000

Every row is 0. Algebraically this checks out too: (p∨q)∧∼p∧∼q≡(p∧∼p∧∼q)∨(q∧∼p∧∼q)≡c∨c≡c(p\lor q)\land\sim p\land\sim q \equiv (p\land\sim p\land\sim q)\lor(q\land\sim p\land\sim q) \equiv c \lor c \equiv c, a contradiction. Interpretation: the lamp never glows, no matter how the two switches are set.

Worked Example 5 — simplifying to a constant. With pp for S1S_1 and qq for S2S_2, a circuit's expression is p∧(∼p∨∼q)∧qp \land (\sim p \lor \sim q) \land q:

p∧(∼p∨∼q)∧qp \land (\sim p \lor \sim q) \land q

≡[p∧(∼p∨∼q)]∧q\equiv [p \land (\sim p \lor \sim q)] \land q — Associative Law

≡[(p∧∼p)∨(p∧∼q)]∧q\equiv [(p \land \sim p) \lor (p \land \sim q)] \land q — Distributive Law

≡[c∨(p∧∼q)]∧q\equiv [c \lor (p \land \sim q)] \land q — Complement Law, p∧∼p≡cp \land \sim p \equiv c

≡(p∧∼q)∧q\equiv (p \land \sim q) \land q — Identity Law, c∨X≡Xc \lor X \equiv X

≡p∧(∼q∧q)\equiv p \land (\sim q \land q) — Associative Law

≡p∧c\equiv p \land c — Complement Law, ∼q∧q≡c\sim q \land q \equiv c

≡c\equiv c — Identity Law, X∧c≡cX \land c \equiv c

Conclusion: the expression collapses to the contradiction cc, so the lamp will not glow regardless of how the switches are set.

Worked Example 6 — symbolic form, table, and simplification together. With p,q,rp, q, r for S1,S2,S3S_1, S_2, S_3: …

Table 2Table 1.23 — Input-output table for two switches in parallel (p ∨ q)
p (S1)q (S2)p ∨ q
111
101