Top Banner Ad

BCS303 — Unit 2: Functions

Table of Contents (28 sections)

BCS303 · Discrete Structures & Theory of Logic · Unit 2

Functions

Unit Scope & Exam Weightage: This unit combines classical functions with Boolean algebra: Definition, Classification of functions, Operations on functions, Growth of Functions, Boolean Algebra: Introduction, Axioms and Theorems of Boolean algebra, Algebraic manipulation of Boolean expressions, Simplification of Boolean Functions and Karnaugh maps. The corpus records 12 PYQ clusters worth about 64 marks; K-map minimisation alone contributes 28 marks, so a student who can group cells confidently has already secured the largest block.


Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)

Priority Topic (Exact Syllabus) PYQs Asked Marks Weightage Tag
1 Karnaugh maps 4 (2023-24 ×2, 2024-25, 2025-26) 7m × 4 Survival Mode Numerical
2 Classification of functions 2 (2023-24, 2024-25) 7m + 2m Core Concept
3 Operations on functions 2 (2023-24, 2024-25) 7m + 2m Composition
4 Definition 1 (2025-26) 2m Core Concept
5 Axioms and Theorems of Boolean algebra 1 (2025-26) 7m Theory
6 Simplification of Boolean Functions 1 (2025-26) 7m Counting
7 Algebraic manipulation of Boolean expressions 1 (2023-24) 2m Canonical Form
8 Boolean Algebra: Introduction integrated in #5 — Supporting Concept
9 Growth of Functions 0 direct — Predicted

2-Hour Last-Night Survival Checklist:

  1. K-maps (#1): group only in powers of two (1,2,4,8), wrap edges/corners, and use don't-cares (X) only to enlarge groups. Write the group term beside each loop before writing the final expression.
  2. Three memorised results: Σ(1,2,5,7)\Sigma(1,2,5,7) with D(0,4,6)D(0,4,6) → A+A′B′+BC′A+A'B'+BC'; E=y′t′+y′z′t+x′y′zt+yzt′E=y't'+y'z't+x'y'zt+yzt' → x′y′+y′z′+zt′x'y'+y'z'+zt'; Σ(0,1,2,4,5,6,8,9,12,13,14)\Sigma(0,1,2,4,5,6,8,9,12,13,14) → z′+x′t′+yt′z'+x't'+yt'.
  3. Fourth K-map (same PYQ): Σ(0,2,5,7,8,10,13,15)\Sigma(0,2,5,7,8,10,13,15) groups into four corners B′D′B'D' and the middle 2×22\times2 block BDBD, so F=B′D′+BDF=B'D'+BD (XNOR of B,DB,D).
  4. Functions (#2/#3): linear 3x+53x+5 is bijective on R\mathbb{R}; (x−1)2(x-1)^2 is neither injective nor onto R\mathbb{R}; (f∘g∘h)(x)=147/x2−210/x+77(f\circ g\circ h)(x)=147/x^2-210/x+77, (g∘g)(x)=49x−40(g\circ g)(x)=49x-40, (g∘h)(x)=7/x−5(g\circ h)(x)=7/x-5.
  5. Boolean theory (#5/#6/#7): four laws (identity, complement, distributive, De Morgan); number of functions of nn variables =22n=2^{2^n}; canonical SOP of xy+y′zxy+y'z is Σ(1,5,6,7)\Sigma(1,5,6,7).

1. Definition, Classification and Operations on Functions

Function: a relation f:A→Bf:A\to B in which every a∈Aa\in A is paired with exactly one b∈Bb\in B. AA is the domain, BB the codomain, and f(a)=bf(a)=b is the image of aa.

1.1 Classification

Type Test Example
Injective (one-to-one) f(a1)=f(a2)⇒a1=a2f(a_1)=f(a_2)\Rightarrow a_1=a_2 3x+53x+5 on R\mathbb{R}
Surjective (onto) every b∈Bb\in B has some aa with f(a)=bf(a)=b 3x+53x+5 onto R\mathbb{R}
Bijective injective and surjective 3x+53x+5 on R\mathbb{R}
Neither fails one or both x2−2x+1x^2-2x+1 on R\mathbb{R}

Horizontal-line test: if a horizontal line cuts the graph more than once → not injective; if some horizontal line misses the codomain → not surjective.

1.2 Domain and Range

domain(f)={x:f(x) is defined},range(f)={f(x):x∈domain}⊆B\text{domain}(f)=\{x: f(x)\text{ is defined}\},\qquad \text{range}(f)=\{f(x):x\in\text{domain}\}\subseteq B

For f(x)=1−∣x∣f(x)=1-|x|: domain =R=\mathbb{R} and since ∣x∣≥0|x|\ge0, 1−∣x∣≤11-|x|\le1 with no lower bound → range =(−∞,1]=(-\infty,1].

1.3 Operations and Composition

Given f,g:R→Rf,g:\mathbb{R}\to\mathbb{R}:

  • sum/difference/product/quotient: (f±g)(x)=f(x)±g(x)(f\pm g)(x)=f(x)\pm g(x), etc.;
  • composition: (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)) — apply gg first, then ff.

Composition is associative: f∘(g∘h)=(f∘g)∘hf\circ(g\circ h)=(f\circ g)\circ h, but is generally not commutative (f∘g≠g∘ff\circ g\ne g\circ f).

Examiner Tip: For "classify" questions always name the codomain. x2x^2 is onto [0,∞)[0,\infty) but not onto R\mathbb{R}; writing "onto" without the set is incomplete. For composition, expand step by step: inner function → substitute → simplify.

After-Topic PYQ (2025-26 Sec A Q1c — 2 Marks): Find the domain and range of the function f(x)=1−∣x∣f(x)=1-|x|.

After-Topic PYQ (2024-25 Sec C Q4b — 7 Marks): Let f(x)=3x+5f(x) = 3x + 5 and g(x)=x2−2x+1g(x) = x^2 - 2x + 1. Evaluate f(3)f(3) and Classify f(x)f(x) and g(x)g(x) as one-to-one, onto, or neither.

After-Topic PYQ (2023-24 Sec A Q1c — 2 Marks): Investigate whether the function f(x)=x2−1f(x)=x^{2}-1 is injective or not for f:R→Rf:\mathbb{R}\rightarrow\mathbb{R}.

After-Topic PYQ (2023-24 Sec C Q4b — 7 Marks): If f:R→R,  g:R→R,  h:R→Rf:\mathbb{R}\rightarrow\mathbb{R},\;g:\mathbb{R}\rightarrow\mathbb{R},\;h:\mathbb{R}\rightarrow\mathbb{R} are defined by f(x)=3x2+2f(x)=3x^{2}+2, g(x)=7x−5g(x)=7x-5, h(x)=1/xh(x)=1/x, compute the composition functions: (i) (f∘g∘o h)(x)(f\circ g\circ o\,h)(x) (ii) (g∘o g)(x)(g\circ o\,g)(x) (iii) (g∘o h)(x)(g\circ o\,h)(x).

After-Topic PYQ (2024-25 Sec A Q1d — 2 Marks): Calculate the composite mapping g∘fg \circ f if f:R→Rf: R \rightarrow R is given by f(x)=exf(x) = e^x and g:R→Rg: R \rightarrow R is given by g(x)=sin⁡xg(x) = \sin x.


2. Growth of Functions

Big-O notation (predicted topic): f(n)=O(g(n))f(n)=O(g(n)) if there exist constants c>0c>0 and n0n_0 such that ∣f(n)∣≤c∣g(n)∣|f(n)|\le c|g(n)| for all n≥n0n\ge n_0. It gives an upper bound on growth rate.

Notation Meaning Example
OO upper bound 3n+5=O(n)3n+5=O(n)
Ω\Omega lower bound n2=Ω(n)n^2=\Omega(n)
Θ\Theta tight bound 4n2+2n=Θ(n2)4n^2+2n=\Theta(n^2)

Hierarchy: log⁡n≺n≺nlog⁡n≺n2≺n3≺2n≺n!\log n \prec n \prec n\log n \prec n^2 \prec n^3 \prec 2^n \prec n!.

Examiner Tip: Growth of Functions has no PYQ, so any question here is predicted. To prove f=O(g)f=O(g), explicitly exhibit cc and n0n_0 — e.g. 3n+5≤8n3n+5\le8n for n≥1n\ge1, so c=8,n0=1c=8,n_0=1.


3. Boolean Algebra: Introduction, Axioms and Theorems

Boolean algebra: a set BB with two binary operations ++ (OR) and ⋅\cdot (AND) and a unary operation ′' (NOT) satisfying the Huntington postulates — closure, identity, commutativity, distributivity, complement and at least two distinct elements.

3.1 Fundamental Laws

Law OR form AND form
Identity x+0=xx+0=x x⋅1=xx\cdot1=x
Null x+1=1x+1=1 x⋅0=0x\cdot0=0
Idempotent x+x=xx+x=x x⋅x=xx\cdot x=x
Complement x+x′=1x+x'=1 x⋅x′=0x\cdot x'=0
Commutative x+y=y+xx+y=y+x xy=yxxy=yx
Associative x+(y+z)=(x+y)+zx+(y+z)=(x+y)+z x(yz)=(xy)zx(yz)=(xy)z
Distributive x(y+z)=xy+xzx(y+z)=xy+xz x+yz=(x+y)(x+z)x+yz=(x+y)(x+z)
Absorption x+xy=xx+xy=x x(x+y)=xx(x+y)=x
De Morgan (x+y)′=x′y′(x+y)'=x'y' (xy)′=x′+y′(xy)'=x'+y'

3.2 Canonical Forms and Manipulation

  • A minterm contains every variable once, complemented or not; for nn variables there are 2n2^n minterms m0…m2n−1m_0\dots m_{2^n-1}.
  • A canonical SOP is a sum of selected minterms, written Σm( ⋅ )\Sigma m(\,\cdot\,).
  • To expand a product term, AND it with (v+v′)=1(v+v')=1 for each missing variable vv.

Worked: E(x,y,z)=xy+y′zE(x,y,z)=xy+y'z. Then xy=xy(z+z′)=xyz+xyz′=m7+m6xy=xy(z+z')=xyz+xyz'=m_7+m_6 and y′z=y′z(x+x′)=xy′z+x′y′z=m5+m1y'z=y'z(x+x')=xy'z+x'y'z=m_5+m_1. Hence E=Σ(1,5,6,7)E=\Sigma(1,5,6,7).

number of distinct Boolean functions in n variables=22n\text{number of distinct Boolean functions in } n \text{ variables} = 2^{2^n}

The truth table has 2n2^n rows and each row's output may be 0 or 1, so there are 22n2^{2^n} distinct truth tables and therefore that many functions. Each canonical SOP corresponds to choosing a subset of the 2n2^n minterms.

Examiner Tip: The "four laws" question wants named equations, not prose. Write identity, complement, distributive and De Morgan with both OR and AND forms — eight equations fill a 7-mark answer.

After-Topic PYQ (2025-26 Sec B Q2b — 7 Marks): Explain the basic concepts of Boolean algebra and state any four fundamental laws of Boolean algebra.

After-Topic PYQ (2025-26 Sec C Q4b — 7 Marks): Show that the number of minimal Boolean functions in nn variables is 22n2^{2^n}.

After-Topic PYQ (2023-24 Sec A Q1d — 2 Marks): Express E(x,y,z)=xy+y′zE(x,y,z)=xy+y'z into its complete sum‑of‑products form.


4. Karnaugh Maps and Simplification

Karnaugh map (K-map): a grid of 2n2^n cells arranged in Gray code order (adjacent cells differ in one variable) so that logically adjacent minterms are physically adjacent. Groups of 2k2^k adjacent 1s eliminate kk variables.

4.1 Grouping Rules

  1. Group sizes must be 1, 2, 4, 8, 16… — never 3 or 6.
  2. Wrap-around is allowed: first and last columns/rows are adjacent; the four corners form a group of 4.
  3. A cell may be reused in several groups; cover every 1 with the fewest, largest groups.
  4. Don't-care entries X may be included only to enlarge a group; they need not be covered themselves.
  5. The term for a group keeps only the variables that do not change across the group.

4.2 Worked — Three-Variable Map With Don't Cares

F(A,B,C)=Σ(1,2,5,7)F(A,B,C)=\Sigma(1,2,5,7), D(0,4,6)D(0,4,6). Columns BC=00,01,11,10BC=00,01,11,10; rows A=0,1A=0,1.

        BC: 00   01   11   10
A=0     [ X    1    0    1 ]     m0 X, m1 1, m3 0, m2 1
A=1     [ X    1    1    X ]     m4 X, m5 1, m7 1, m6 X
  • Group the whole A=1A=1 row (m4,m5,m7,m6) using X's → term AA.
  • Group m0(X) with m1 → A′B′A'B' (A fixed 0, B fixed 0, C changes).
  • Group m2 with m6(X) → BC′BC' (B fixed 1, C fixed 0, A changes).
F=A+A′B′+BC′\boxed{F=A+A'B'+BC'}

(Equivalent minimal form: A+B′C+BC′A+B'C+BC'; both cover the four 1s and no off-minterm.)

4.3 Worked — Four-Variable Expression

E=y′t′+y′z′t+x′y′zt+yzt′E=y't'+y'z't+x'y'zt+yzt'. Rows xy=00,01,11,10xy=00,01,11,10; columns zt=00,01,11,10zt=00,01,11,10.

xy \ zt: 00   01   11   10
00        1    1    1    1
01        0    0    0    1
11        0    0    0    1
10        1    1    0    1
  • Row xy=00xy=00 is all 1s → x′y′x'y'.
  • Rows 00 and 10, columns 00 and 01 → y′z′y'z' (covers m8,m9).
  • Column zt=10zt=10 in all four rows → zt′zt' (covers m6,m14 and m2,m10).
E=x′y′+y′z′+zt′\boxed{E=x'y'+y'z'+zt'}

Check: m3 is covered by x′y′x'y'; m14 by zt′zt'; m8,m9 by y′z′y'z'.

4.4 Worked — Two 4-Variable Functions From the Repeated PYQ

(i) F=Σ(0,1,2,4,5,6,8,9,12,13,14)F=\Sigma(0,1,2,4,5,6,8,9,12,13,14):

AB \ CD: 00   01   11   10
00        1    1    0    1
01        1    1    0    1
11        1    1    0    1
10        1    1    0    0
  • Columns 00 and 01 in all rows → octet z′z'.
  • Rows 00 and 01, columns 00 and 10 → x′t′x't'.
  • Rows 01 and 11, columns 00 and 10 → yt′yt'.
F=z′+x′t′+yt′\boxed{F=z'+x't'+yt'}

(ii) F=Σ(0,2,5,7,8,10,13,15)F=\Sigma(0,2,5,7,8,10,13,15):

AB \ CD: 00   01   11   10
00        1    0    0    1
01        0    1    1    0
11        0    1    1    0
10        1    0    0    1
  • Four corners (rows 00,10; columns 00,10) → B′D′B'D'.
  • Central 2×22\times2 block (rows 01,11; columns 01,11) → BDBD.
F=B′D′+BD\boxed{F=B'D'+BD}

This is the XNOR of BB and DD: the value is 1 whenever B=DB=D.

Examiner Tip: In every K-map question draw the labelled grid, list each group with its term, then write the final SOP. If don't-cares are given, state explicitly which ones you used and which you left uncovered — examiners check this.

After-Topic PYQ (2023-24, 2024-25 Sec C Q4a — 7 Marks): Solve the following Boolean function using K-map: F(A,B,C)=∑(1,2,5,7)F(A, B, C) = \sum(1, 2, 5, 7) and D(0,4,6)D(0, 4, 6) using SOP.

After-Topic PYQ (2025-26 Sec C Q4a — 7 Marks): Use a Karnaugh map to find a minimal sum for E=y′t′+y′z′t+x′y′zt+yzt′E= y' t' + y' z' t + x' y' z t + y z t'.

After-Topic PYQ (2024-25 Sec C Q4a — 7 Marks): Solve the following Boolean functions using K-map: (i) F(A,B,C,D)=∑(m0,m1,m2,m4,m5,m6,m8,m9,m12,m13,m14)F(A, B, C, D) = \sum(m_0, m_1, m_2, m_4, m_5, m_6, m_8, m_9, m_{12}, m_{13}, m_{14}) (ii) F(A,B,C,D)=∑(0,2,5,7,8,10,13,15)F(A, B, C, D) = \sum(0, 2, 5, 7, 8, 10, 13, 15)

After-Topic PYQ (2023-24 Sec B Q2b — 7 Marks): Solve the following Boolean functions using K‑map: (i) F(A,B,C,D)=∑(m0,m1,m2,m4,m5,m6,m8,m9,m12,m13,m14)F(A,B,C,D)=\sum(m_{0},m_{1},m_{2},m_{4},m_{5},m_{6},m_{8},m_{9},m_{12},m_{13},m_{14}) (ii) F(A,B,C,D)=∑(0,2,5,7,8,10,13,15)F(A,B,C,D)=\sum(0,2,5,7,8,10,13,15).


Solved Exam-Ready Questions

Solved Q1 (2023-24, 2024-25 Sec C Q4a — 7 Marks | Survival Mode)

Q: Solve the following Boolean function using K-map: F(A,B,C)=∑(1,2,5,7)F(A, B, C) = \sum(1, 2, 5, 7) and D(0,4,6)D(0, 4, 6) using SOP.

Solution:

  1. Place 1s at m1, m2, m5, m7 and X at m0, m4, m6; m3 is 0.
  2. Group m4(X), m5, m7, m6(X) as the entire A=1A=1 row → term AA.
  3. Group m0(X) with m1 → A′B′A'B' (B fixed at 0).
  4. Group m2 with m6(X) → BC′BC' (C fixed at 0).
  5. Check: m1 is covered by A′B′A'B', m2 by BC′BC', m5 and m7 by AA; m3 is covered by none.
  6. Minimal SOP: F=A+A′B′+BC′F=A+A'B'+BC'. (Equivalent: A+B′C+BC′A+B'C+BC'.)
  7. Conclusion: three 2-literal product terms; the don't-cares m0, m4 and m6 allowed the largest possible groups.

Solved Q2 (2025-26 Sec C Q4a — 7 Marks)

Q: Use a Karnaugh map to find a minimal sum for E=y′t′+y′z′t+x′y′zt+yzt′E= y' t' + y' z' t + x' y' z t + y z t'.

Solution:

  1. Expand the terms: y′t′y't' → m0,m2,m8,m10; y′z′ty'z't → m1,m9; x′y′ztx'y'zt → m3; yzt′yzt' → m6,m14.
  2. Fill the map (rows xyxy, columns ztzt) as shown in Section 4.3.
  3. Group row xy=00xy=00 (m0,m1,m3,m2) → x′y′x'y'; this is the only group containing m3, so it is essential.
  4. Group rows 00 and 10, columns 00 and 01 (m0,m1,m8,m9) → y′z′y'z'; covers m8,m9.
  5. Group the entire zt=10zt=10 column (m2,m6,m14,m10) → zt′zt'; essential for m6 and m14.
  6. All nine 1s are covered with three prime implicants.
  7. Result: E=x′y′+y′z′+zt′\boxed{E=x'y'+y'z'+zt'}.

Solved Q3 (2024-25 Sec C Q4a — 7 Marks)

Q: Solve the following Boolean functions using K-map: (i) F(A,B,C,D)=∑(m0,m1,m2,m4,m5,m6,m8,m9,m12,m13,m14)F(A, B, C, D) = \sum(m_0, m_1, m_2, m_4, m_5, m_6, m_8, m_9, m_{12}, m_{13}, m_{14}) (ii) F(A,B,C,D)=∑(0,2,5,7,8,10,13,15)F(A, B, C, D) = \sum(0, 2, 5, 7, 8, 10, 13, 15)

Solution:

  1. Part (i): plot the 11 minterms; columns CD=00,01,11,10CD=00,01,11,10 and rows AB=00,01,11,10AB=00,01,11,10.
  2. Group columns 00 and 01 across all four rows (8 cells) → z′z'. This covers m0,m1,m4,m5,m8,m9,m12,m13.
  3. Group rows 00,01 with columns 00,10 → x′t′x't' (covers m2,m6); group rows 01,11 with columns 00,10 → yt′yt' (covers m6,m14).
  4. Part (i) result: F=z′+x′t′+yt′F=z'+x't'+yt'.
  5. Part (ii): plot m0,m2,m5,m7,m8,m10,m13,m15.
  6. The four corners form one group (rows AB=00,10AB=00,10, columns CD=00,10CD=00,10) → B′D′B'D'; the central 2×22\times2 block (rows 01,11, columns 01,11) → BDBD.
  7. Part (ii) result: F=B′D′+BDF=B'D'+BD — the XNOR of BB and DD. Conclusion: both functions reduce to three or two product terms.

Solved Q4 (2023-24 Sec B Q2b — 7 Marks)

Q: Solve the following Boolean functions using K‑map: (i) F(A,B,C,D)=∑(m0,m1,m2,m4,m5,m6,m8,m9,m12,m13,m14)F(A,B,C,D)=\sum(m_{0},m_{1},m_{2},m_{4},m_{5},m_{6},m_{8},m_{9},m_{12},m_{13},m_{14}) (ii) F(A,B,C,D)=∑(0,2,5,7,8,10,13,15)F(A,B,C,D)=\sum(0,2,5,7,8,10,13,15).

Solution: The minterm sets are identical to the previous question (only the wording and non-breaking hyphen differ). For (i) the octet z′z' plus pairs x′t′x't' and yt′yt' give F=z′+x′t′+yt′F=z'+x't'+yt'; essential groups: z′z' for m1, x′t′x't' for m2, yt′yt' for m14. For (ii) the corner group gives B′D′B'D' and the central quartet gives BDBD, so F=B′D′+BDF=B'D'+BD. In both parts the K-map grids of Section 4.4 should be drawn and each group labelled with its term.


Solved Q5 (2024-25 Sec C Q4b — 7 Marks)

Q: Let f(x)=3x+5f(x) = 3x + 5 and g(x)=x2−2x+1g(x) = x^2 - 2x + 1. Evaluate f(3)f(3) and Classify f(x)f(x) and g(x)g(x) as one-to-one, onto, or neither.

Solution:

  1. f(3)=3(3)+5=14f(3)=3(3)+5=\mathbf{14}.
  2. ff injective: 3a+5=3b+5⇒3a=3b⇒a=b3a+5=3b+5\Rightarrow3a=3b\Rightarrow a=b. ✓
  3. ff surjective onto R\mathbb{R}: given any yy, choose x=(y−5)/3x=(y-5)/3; then f(x)=yf(x)=y. ✓ Hence ff is bijective.
  4. gg not injective: g(x)=(x−1)2g(x)=(x-1)^2; g(0)=1=g(2)g(0)=1=g(2) although 0≠20\ne2.
  5. gg not onto R\mathbb{R}: (x−1)2≥0(x-1)^2\ge0, so negative outputs such as −1-1 are never produced; range is [0,∞)[0,\infty).
  6. If the codomain were changed to [0,∞)[0,\infty), gg would be onto but still not one-to-one.
  7. Conclusion: ff is one-to-one and onto; gg is neither (for the stated codomain R\mathbb{R}).

Solved Q6 (2023-24 Sec C Q4b — 7 Marks)

Q: If f:R→R,  g:R→R,  h:R→Rf:\mathbb{R}\rightarrow\mathbb{R},\;g:\mathbb{R}\rightarrow\mathbb{R},\;h:\mathbb{R}\rightarrow\mathbb{R} are defined by f(x)=3x2+2f(x)=3x^{2}+2, g(x)=7x−5g(x)=7x-5, h(x)=1/xh(x)=1/x, compute the composition functions: (i) (f∘g∘o h)(x)(f\circ g\circ o\,h)(x) (ii) (g∘o g)(x)(g\circ o\,g)(x) (iii) (g∘o h)(x)(g\circ o\,h)(x).

Solution:

  1. Rule: (p∘q)(x)=p(q(x))(p\circ q)(x)=p(q(x)); evaluate the innermost function first.
  2. (iii) (g∘h)(x)=g(1/x)=7(1/x)−5=7x−5(g\circ h)(x)=g(1/x)=7(1/x)-5=\dfrac{7}{x}-5, valid for x≠0x\ne0.
  3. (ii) (g∘g)(x)=g(7x−5)=7(7x−5)−5=49x−35−5=49x−40(g\circ g)(x)=g(7x-5)=7(7x-5)-5=49x-35-5=\mathbf{49x-40}.
  4. (i) (g∘h)(x)=7/x−5(g\circ h)(x)=7/x-5, so (f∘g∘h)(x)=f ⁣(7x−5)=3(7x−5)2+2(f\circ g\circ h)(x)=f\!\left(\frac7x-5\right)=3\left(\frac7x-5\right)^2+2.
  5. Expand: 3(49x2−70x+25)+2=147x2−210x+75+2=147x2−210x+773\left(\frac{49}{x^2}-\frac{70}{x}+25\right)+2=\dfrac{147}{x^2}-\dfrac{210}{x}+75+2=\mathbf{\dfrac{147}{x^2}-\dfrac{210}{x}+77}.
  6. Equivalent single fraction: 77x2−210x+147x2\dfrac{77x^2-210x+147}{x^2}; domain x≠0x\ne0.
  7. Conclusion: composition is applied right-to-left; the three answers are 147x2−210x+77\frac{147}{x^2}-\frac{210}{x}+77, 49x−4049x-40 and 7x−5\frac7x-5.

Solved Q7 (2025-26 Sec A Q1c — 2 Marks)

Q: Find the domain and range of the function f(x)=1−∣x∣f(x)=1-|x|.

Solution: ∣x∣|x| is defined for all real xx, so the domain is R\mathbb{R}. Since ∣x∣≥0|x|\ge0, 1−∣x∣≤11-|x|\le1, and as ∣x∣→∞|x|\to\infty the value tends to −∞-\infty. Therefore the range is (−∞,1](-\infty,1].


Solved Q8 (2024-25 Sec A Q1d — 2 Marks)

Q: Calculate the composite mapping g∘fg \circ f if f:R→Rf: R \rightarrow R is given by f(x)=exf(x) = e^x and g:R→Rg: R \rightarrow R is given by g(x)=sin⁡xg(x) = \sin x.

Solution: (g∘f)(x)=g(f(x))=g(ex)=sin⁡(ex)(g\circ f)(x)=g(f(x))=g(e^x)=\mathbf{\sin(e^x)}. The domain is R\mathbb{R} and the range is contained in [−1,1][-1,1] (in fact all of [−1,1][-1,1] is attained as exe^x ranges over (0,∞)(0,\infty)).


Solved Q9 (2023-24 Sec A Q1c — 2 Marks)

Q: Investigate whether the function f(x)=x2−1f(x)=x^{2}-1 is injective or not for f:R→Rf:\mathbb{R}\rightarrow\mathbb{R}.

Solution: Not injective: f(1)=12−1=0f(1)=1^2-1=0 and f(−1)=(−1)2−1=0f(-1)=(-1)^2-1=0, but 1≠−11\ne-1. A horizontal line at y=0y=0 cuts the parabola twice. Restricting the domain to [0,∞)[0,\infty) would make it injective.


Solved Q10 (2025-26 Sec B Q2b — 7 Marks)

Q: Explain the basic concepts of Boolean algebra and state any four fundamental laws of Boolean algebra.

Solution:

  1. Concept: Boolean algebra is a set BB with OR (++), AND (⋅\cdot) and complement (′') satisfying closure, identity, commutativity, distributivity and complementation; its elements are usually 0 and 1.
  2. Identity: x+0=xx+0=x and x⋅1=xx\cdot1=x.
  3. Complement: x+x′=1x+x'=1 and x⋅x′=0x\cdot x'=0.
  4. Distributive: x(y+z)=xy+xzx(y+z)=xy+xz and x+yz=(x+y)(x+z)x+yz=(x+y)(x+z).
  5. De Morgan: (x+y)′=x′y′(x+y)'=x'y' and (xy)′=x′+y′(xy)'=x'+y'.
  6. Use: these laws simplify switching circuits and prove equivalence of expressions without truth tables.
  7. Conclusion: the laws mirror set operations (union/intersection/complement) and form the algebraic basis for K-map simplification.

Solved Q11 (2025-26 Sec C Q4b — 7 Marks)

Q: Show that the number of minimal Boolean functions in nn variables is 22n2^{2^n}.

Solution:

  1. A Boolean function of nn variables is fully determined by its truth table.
  2. The truth table contains 2n2^n rows (one for each assignment of the nn variables).
  3. Each row's output may independently be 0 or 1.
  4. Therefore the number of distinct truth tables — and hence distinct Boolean functions — is 2×2×⋯2\times2\times\cdots (2n2^n times) =22n=2^{2^n}.
  5. Equivalently, there are 2n2^n minterms m0,…,m2n−1m_0,\dots,m_{2^n-1}; choosing any subset of them as the SOP gives one function, so there are 22n2^{2^n} canonical SOPs.
  6. Every function has at least one minimal SOP obtained by K-map grouping, so the number of distinct (minimal-representable) functions is the same count.
  7. Conclusion: 22n2^{2^n} — e.g. for n=3n=3 there are 28=2562^8=256 Boolean functions.

Solved Q12 (2023-24 Sec A Q1d — 2 Marks)

Q: Express E(x,y,z)=xy+y′zE(x,y,z)=xy+y'z into its complete sum‑of‑products form.

Solution: Expand each product to include the missing variable: xy=xy(z+z′)=xyz+xyz′=m7+m6xy=xy(z+z')=xyz+xyz'=m_7+m_6; y′z=y′z(x+x′)=xy′z+x′y′z=m5+m1y'z=y'z(x+x')=xy'z+x'y'z=m_5+m_1. Hence E=m1+m5+m6+m7=Σ(1,5,6,7)E=m_1+m_5+m_6+m_7=\mathbf{\Sigma(1,5,6,7)} (variables ordered x,y,zx,y,z).


Practice Questions (Self-Test)

  1. (2 Marks) Define injective and surjective functions with one example each.
  2. (7 Marks) Find (f∘g)(x)(f\circ g)(x) and (g∘f)(x)(g\circ f)(x) for f(x)=2x+1f(x)=2x+1, g(x)=x2g(x)=x^2; are they equal?
  3. (7 Marks) Prove 3n2+5n+7=Θ(n2)3n^2+5n+7=\Theta(n^2) by finding constants c1,c2,n0c_1,c_2,n_0.
  4. (7 Marks) State and prove De Morgan's laws for three variables using a truth table.
  5. (7 Marks) Convert F=xy′z+x′yz′+xyzF=xy'z+x'yz'+xyz into canonical SOP and canonical POS.
  6. (7 Marks) Minimise F(A,B,C,D)=Σ(0,3,4,5,7,8,10,11,15)F(A,B,C,D)=\Sigma(0,3,4,5,7,8,10,11,15) using a K-map.
  7. (7 Marks) Minimise F(A,B,C,D)=Σ(1,3,6,7,9,11,12,13,14)F(A,B,C,D)=\Sigma(1,3,6,7,9,11,12,13,14) with don't-cares D(0,2,5)D(0,2,5).
  8. (7 Marks) Explain why group sizes in a K-map must be powers of two.
  9. (2 Marks) How many Boolean functions of four variables exist?
  10. (7 Marks) Determine whether f(x)=x3−xf(x)=x^3-x is injective on R\mathbb{R}; justify with a counterexample or derivative argument.