MTH104 – Sets and Logic: Midterm Important Subjective (24 Solved Q&As)
Mathematics • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · MTH104 Course Page · MTH104 MCQ Pack (110 MCQs)
-
Define a set and its elements. Describe the two ways of representing a set, with examples.
Topic: Sets and Set Operations
A set is a well-defined collection of distinct objects, called its elements or members. A set can be described in two ways: (1) Roster (tabular) form, in which all elements are listed within braces, e.g. A = {1, 2, 3, 4}; (2) Set-builder form, in which a property common to all elements is stated, e.g. A = {x : x is a positive integer less than 5}. Sets are usually denoted by capital letters and their elements by small letters. We write x ∈ A if x is an element of A, and x ∉ A if it is not.
-
Define subset, proper subset and power set. Find the power set of A = {a, b}.
Topic: Sets and Set Operations
A is a subset of B, written A ⊆ B, if every element of A is also an element of B. A is a proper subset of B, written A ⊂ B, if A ⊆ B and A ≠ B. The power set of A, denoted P(A), is the set of all subsets of A; if A has n elements then P(A) has 2^n elements. For A = {a, b}, P(A) = {∅, {a}, {b}, {a, b}}, which has 2^2 = 4 elements.
-
State and prove De Morgan's laws for sets.
Topic: Sets and Set Operations
Let x ∈ (A ∪ B)^c. Then x ∉ A ∪ B, so x ∉ A and x ∉ B, which means x ∈ A^c and x ∈ B^c, i.e. x ∈ A^c ∩ B^c. Conversely, let x ∈ A^c ∩ B^c. Then x ∉ A and x ∉ B, so x ∉ A ∪ B, i.e. x ∈ (A ∪ B)^c. Hence (A ∪ B)^c = A^c ∩ B^c. Similarly, (A ∩ B)^c = A^c ∪ B^c.
-
In a class of 40 students, 25 study Mathematics, 20 study Physics and 8 study both subjects. Find (i) how many students study at least one of the two subjects, (ii) how many study only Mathematics.
Topic: Sets and Set Operations
By the counting formula, n(M ∪ P) = n(M) + n(P) - n(M ∩ P) = 25 + 20 - 8 = 37. So 37 students study at least one of the two subjects. The number of students who study only Mathematics = n(M) - n(M ∩ P) = 25 - 8 = 17.
-
Define absolute value of a real number and solve the inequality |x - 3| < 5.
Topic: Real Numbers, Absolute Value and Intervals
The absolute value of a real number x is defined by |x| = x if x ≥ 0 and |x| = -x if x < 0. Now |x - 3| < 5 means -5 < x - 3 < 5. Adding 3 throughout: -2 < x < 8. Hence the solution set is the open interval (-2, 8).
-
Define a bounded set of real numbers, giving one example of a bounded set and one of an unbounded set.
Topic: Real Numbers, Absolute Value and Intervals
A set A of real numbers is called bounded if there exists a real number M such that |x| ≤ M for every x ∈ A; equivalently, A has both an upper bound and a lower bound. For example, the interval (0, 5) is bounded, since |x| < 5 for every x in it. The set of counting numbers {1, 2, 3, ...} is not bounded, because no such M exists.
-
State the completeness property of the set of real numbers. Why is the set Q of rational numbers not complete?
Topic: Real Numbers, Absolute Value and Intervals
The completeness property states that every non-empty set of real numbers which is bounded above has a least upper bound (supremum) in R. The set Q of rational numbers does not have this property: for example, the set {x ∈ Q : x^2 < 2} is bounded above in Q but has no least upper bound in Q, because its supremum would have to be √2, which is not a rational number. Hence R is complete but Q is not.
-
Use the Euclidean algorithm to find gcd(124, 348), showing all steps.
Topic: Number Theory: Primes, GCD and LCM
348 = 2 × 124 + 100; 124 = 1 × 100 + 24; 100 = 4 × 24 + 4; 24 = 6 × 4 + 0. The last non-zero remainder is 4. Hence gcd(124, 348) = 4.
-
Find the gcd and lcm of 24 and 60 by prime factorization.
Topic: Number Theory: Primes, GCD and LCM
24 = 2 × 2 × 2 × 3 = 2^3 × 3 and 60 = 2 × 2 × 3 × 5 = 2^2 × 3 × 5. The gcd takes each common prime with the smaller exponent: gcd = 2^2 × 3 = 12. The lcm takes each prime with the larger exponent: lcm = 2^3 × 3 × 5 = 120. (Check: gcd × lcm = 12 × 120 = 1440 = 24 × 60.)
-
State the fundamental theorem of arithmetic and find the prime factorization of 360.
Topic: Number Theory: Primes, GCD and LCM
The fundamental theorem of arithmetic states that every integer n > 1 can be expressed as a product of prime numbers, and this factorization is unique apart from the order of the factors. Now 360 = 36 × 10 = (4 × 9) × (2 × 5) = 2^2 × 3^2 × 2 × 5 = 2^3 × 3^2 × 5.
-
Define congruence modulo m. Show that 37 ≡ 2 (mod 5).
Topic: Number Theory: Primes, GCD and LCM
Let m be a fixed positive integer. Two integers a and b are said to be congruent modulo m, written a ≡ b (mod m), if m divides a - b. For 37 and 2 modulo 5: 37 - 2 = 35 = 5 × 7, so 5 divides 37 - 2. Hence 37 ≡ 2 (mod 5).
-
Define a relation, its domain and its range. Find the domain and range of R = {(1, 2), (1, 4), (2, 4), (3, 2)}.
Topic: Relations and Partitions
A relation R from a set A to a set B is a subset of A × B. If R is a relation on A, its domain is the set of all first coordinates of the pairs in R, and its range is the set of all second coordinates. For R = {(1, 2), (1, 4), (2, 4), (3, 2)} on A = {1, 2, 3}: domain of R = {1, 2, 3} and range of R = {2, 4}.
-
Define reflexive, symmetric and transitive relations, with one example of each.
Topic: Relations and Partitions
A relation R on a set A is: (i) reflexive if (a, a) ∈ R for every a ∈ A, e.g. 'is less than or equal to' on R; (ii) symmetric if (a, b) ∈ R implies (b, a) ∈ R, e.g. 'is perpendicular to' for lines; (iii) transitive if (a, b) ∈ R and (b, c) ∈ R together imply (a, c) ∈ R, e.g. 'is less than' on R.
-
Define an equivalence relation. Prove that congruence modulo m is an equivalence relation on Z.
Topic: Relations and Partitions
A relation R on a set A is an equivalence relation if it is reflexive, symmetric and transitive. For congruence modulo m on Z: (i) Reflexive: m divides a - a = 0, so a ≡ a (mod m). (ii) Symmetric: if m divides a - b, it divides b - a = -(a - b), so a ≡ b implies b ≡ a. (iii) Transitive: if m divides a - b and b - c, it divides their sum (a - b) + (b - c) = a - c, so a ≡ b and b ≡ c imply a ≡ c. Hence congruence modulo m is an equivalence relation.
-
Define a partition of a set. Write down all the partitions of the set {1, 2, 3}.
Topic: Relations and Partitions
A partition of a non-empty set S is a collection of non-empty, pairwise disjoint subsets of S (called cells) whose union is S; thus every element of S belongs to exactly one cell. The partitions of {1, 2, 3} are: {{1, 2, 3}}; {{1}, {2, 3}}; {{2}, {1, 3}}; {{3}, {1, 2}}; {{1}, {2}, {3}}. There are 5 partitions in all.
-
Let A = {0, 1, 2}, R = {(0, 1), (1, 0), (2, 2)} and S = {(0, 0), (2, 1), (1, 0)}. Find the composition R ∘ S.
Topic: Relations and Partitions
Using the convention R ∘ S = {(a, c) : there exists b with (a, b) ∈ R and (b, c) ∈ S}: (0, 1) ∈ R and (1, 0) ∈ S give (0, 0); (1, 0) ∈ R and (0, 0) ∈ S give (1, 0); (2, 2) ∈ R and (2, 1) ∈ S give (2, 1). Hence R ∘ S = {(0, 0), (1, 0), (2, 1)}.
-
Define a function. What is meant by a one-to-one function and an onto function? Give one example of each.
Topic: Functions, Logic and Mathematical Induction
A function f from A to B is a relation in which every element of A is paired with exactly one element of B. f is one-to-one (injective) if f(a) = f(b) implies a = b, e.g. f(x) = 2x on R. f is onto (surjective) if every element of B is the image of at least one element of A, i.e. the range of f equals B, e.g. f(x) = x^3 on R. A function that is both one-to-one and onto is called bijective.
-
Let f(x) = 2x + 1 and g(x) = x^2. Find f ∘ g and g ∘ f, and show that f ∘ g ≠ g ∘ f.
Topic: Functions, Logic and Mathematical Induction
(f ∘ g)(x) = f(g(x)) = f(x^2) = 2x^2 + 1. (g ∘ f)(x) = g(f(x)) = g(2x + 1) = (2x + 1)^2 = 4x^2 + 4x + 1. Since 2x^2 + 1 ≠ 4x^2 + 4x + 1 in general (for example at x = 1 they are 3 and 9), f ∘ g ≠ g ∘ f; that is, composition of functions is not commutative.
-
Construct the truth table for p → q and for its contrapositive ¬q → ¬p, and show that they are logically equivalent.
Topic: Functions, Logic and Mathematical Induction
p, q, p → q, ¬q → ¬p: (T, T): T, T. (T, F): F, F. (F, T): T, T. (F, F): T, T. The columns for p → q and ¬q → ¬p are identical, so the two statements are logically equivalent: p → q ≡ ¬q → ¬p. This is why proving the contrapositive proves the original statement.
-
Prove De Morgan's law ¬(p ∧ q) ≡ ¬p ∨ ¬q using a truth table.
Topic: Functions, Logic and Mathematical Induction
p, q, p ∧ q, ¬(p ∧ q), ¬p ∨ ¬q: (T, T): T, F, F. (T, F): F, T, T. (F, T): F, T, T. (F, F): F, T, T. The columns for ¬(p ∧ q) and ¬p ∨ ¬q agree in every row, so ¬(p ∧ q) ≡ ¬p ∨ ¬q, which is De Morgan's law for logic.
-
Define tautology and contradiction, with one example of each.
Topic: Functions, Logic and Mathematical Induction
A tautology is a compound statement that is true for all possible truth values of its components, e.g. p ∨ ¬p. A contradiction is a compound statement that is false for all possible truth values of its components, e.g. p ∧ ¬p. A statement that is neither a tautology nor a contradiction is called a contingency.
-
Prove by mathematical induction that 1 + 2 + ... + n = n(n + 1)/2 for all counting numbers n.
Topic: Functions, Logic and Mathematical Induction
For n = 1: LHS = 1 and RHS = 1(1 + 1)/2 = 1, so the statement is true for n = 1. Suppose it is true for n = k: 1 + 2 + ... + k = k(k + 1)/2. Then for n = k + 1: 1 + 2 + ... + k + (k + 1) = k(k + 1)/2 + (k + 1) = (k + 1)(k + 2)/2, which is the formula with n = k + 1. Hence by mathematical induction the formula holds for all counting numbers n.
-
Prove by mathematical induction that the sum of the first n odd numbers is n^2.
Topic: Functions, Logic and Mathematical Induction
For n = 1: LHS = 1 = 1^2, so the statement is true for n = 1. Suppose it is true for n = k: 1 + 3 + ... + (2k - 1) = k^2. Adding the next odd number 2(k + 1) - 1 = 2k + 1 to both sides: 1 + 3 + ... + (2k - 1) + (2k + 1) = k^2 + 2k + 1 = (k + 1)^2, which is the statement for n = k + 1. Hence by induction the result holds for all counting numbers n.
-
Define a well-ordered set and an ordinal number. Give the ordinal numbers of the empty set, of {1, 2, 3, 4}, and of the set of counting numbers.
Topic: Well-Ordered Sets and Ordinal Numbers
A set A with an order relation is well-ordered if every non-empty subset of A has a first (smallest) element; the set of counting numbers with the usual order is the standard example. The ordinal number of a well-ordered set is the symbol assigned to it in such a way that two well-ordered sets receive the same symbol if and only if they are similar to each other. Thus the ordinal number of the empty set is 0, the ordinal number of {1, 2, 3, 4} is 4, and the ordinal number of the set of all counting numbers is denoted by ω.