Why this topic matters · 8 min read
Sets, Relations, and Functions form the foundation of discrete mathematics tested in Agniveer Vayu. Expect 2-4 questions mixing set operations, relation properties (reflexive, symmetric, transitive), and function types (one-one, onto, bijective). Questions often combine concepts—e.g., 'Is this relation an equivalence relation?' or 'Find the domain/range of a composite function.' Speed and accuracy in identifying properties are critical; most aspirants lose marks by confusing relation types or miscounting elements in set operations.
Sets and Set Operations
A set is a well-defined collection of distinct objects. In Agniveer Vayu, you'll work with union, intersection, complement, and difference. The key is understanding Venn diagrams and De Morgan's Laws, which flip operations when negating. Think of sets like military units: union combines all soldiers, intersection finds those in both units, and complement finds those NOT in a unit.
- Union (A ∪ B): all elements in A or B or both
- Intersection (A ∩ B): only elements in both A and B
- Complement (A'): all elements NOT in A (within universal set U)
- Difference (A - B): elements in A but not in B
- De Morgan's Laws: (A ∪ B)' = A' ∩ B' and (A ∩ B)' = A' ∪ B'
- Cardinality |A|: count of elements; for finite sets, |A ∪ B| = |A| + |B| - |A ∩ B|
Key formulas
Inclusion-Exclusion Principle
|A ∪ B| = |A| + |B| - |A ∩ B|
When: Finding total elements in union of two sets without double-counting
Power Set Cardinality
|P(A)| = 2^|A|
When: Finding number of all possible subsets of a set A
Worked examples
If |A| = 5, |B| = 7, |A ∩ B| = 2, then |A ∪ B| = 5 + 7 - 2 = 10
If A = {1, 2, 3}, power set P(A) has 2^3 = 8 subsets: {}, {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3}
Relations and Their Properties
A relation is a connection between elements of two sets (or a set with itself). Relations have properties: reflexive (every element relates to itself), symmetric (if a relates to b, then b relates to a), and transitive (if a relates to b and b relates to c, then a relates to c). An equivalence relation has all three properties—it partitions a set into equivalence classes. This is heavily tested in Agniveer Vayu because it combines logical thinking with pattern recognition.
- Reflexive: (a, a) in R for all a in the set. Example: 'equal to' relation
- Symmetric: if (a, b) in R, then (b, a) in R. Example: 'is sibling of'
- Transitive: if (a, b) and (b, c) in R, then (a, c) in R. Example: 'less than or equal to'
- Equivalence Relation: reflexive AND symmetric AND transitive. Creates partitions
- Partial Order: reflexive AND antisymmetric AND transitive. Example: subset relation
- Check each property independently—don't assume one implies another
Worked examples
Is 'congruence modulo 3' an equivalence relation on integers? Reflexive: a ≡ a (mod 3) yes. Symmetric: if a ≡ b (mod 3) then b ≡ a (mod 3) yes. Transitive: if a ≡ b and b ≡ c (mod 3) then a ≡ c (mod 3) yes. Answer: YES, it's equivalence.
Is 'less than' on real numbers reflexive? Is 5 < 5? No. So NOT reflexive. Is it transitive? If a < b and b < c, is a < c? Yes. So transitive but not reflexive.
Functions and Function Types
A function f: A → B assigns each element of A (domain) to exactly one element of B (codomain). Key types: injective (one-one: different inputs give different outputs), surjective (onto: every element of B is mapped to), and bijective (both injective and surjective—one-to-one correspondence). Agniveer Vayu tests whether you can identify function types from equations or mappings, and compute composite functions.
- Injective (One-one): if f(a) = f(b) then a = b. No two inputs map to same output
- Surjective (Onto): for every b in B, there exists a in A such that f(a) = b. Every codomain element is used
- Bijective: both injective and surjective. Allows inverse function to exist
- Domain: set of all valid inputs. Range: set of all actual outputs (subset of codomain)
- Composite function (f ∘ g)(x) = f(g(x)): apply g first, then f
- Inverse function f^(-1) exists only if f is bijective
Key formulas
Composite Function
(f ∘ g)(x) = f(g(x))
When: Combining two functions; apply inner function first
Number of Functions
Total functions from A to B = |B|^|A|
When: Counting all possible function mappings
Number of Injective Functions
P(|B|, |A|) = |B|! / (|B| - |A|)! when |A| ≤ |B|
When: Counting one-one functions (permutation formula)
Worked examples
f(x) = 2x from integers to integers. Is it injective? If 2a = 2b, then a = b. YES. Is it surjective? Does every integer have a preimage? 3 has no preimage (3/2 not integer). NO. So injective but not surjective.
f(x) = x^2 from reals to non-negative reals. Injective? f(-2) = f(2) = 4. NO. Surjective? Every non-negative real y has preimage sqrt(y). YES. So surjective but not injective.
Equivalence Classes and Partitions
When a relation is equivalence, it divides the set into non-overlapping groups called equivalence classes. Each class contains all elements related to each other. For example, 'congruence modulo 3' on integers creates three classes: {0, 3, 6, ...}, {1, 4, 7, ...}, {2, 5, 8, ...}. Agniveer Vayu often asks to identify or count equivalence classes. The key insight: equivalence classes partition the set completely—every element belongs to exactly one class.
- Equivalence class [a] = {x in set : x is related to a}
- Two equivalence classes are either identical or disjoint (no overlap)
- Union of all equivalence classes equals the entire set
- Number of equivalence classes depends on the relation definition
- Partition: a collection of non-empty, disjoint subsets whose union is the whole set
⚠ Common mistakes to avoid
- Confusing 'onto' (surjective) with 'one-one' (injective). Remember: onto means every output is used; one-one means no two inputs share an output.
- Forgetting that a relation can be reflexive but not symmetric, or symmetric but not transitive. Check each property independently—they don't imply each other.
- Miscounting in set operations. Always use |A ∪ B| = |A| + |B| - |A ∩ B|, not just |A| + |B|. The intersection is subtracted to avoid double-counting.
- Assuming domain and codomain are the same. Domain is the input set; codomain is the target set. Range (actual outputs) is a subset of codomain.
- Making errors in composite functions. (f ∘ g)(x) means apply g first, then f. Writing it backwards is a frequent trap.
🧠 Memory aids
- RST for Equivalence: Reflexive, Symmetric, Transitive—if a relation has all three, it's equivalence.
- IOB for Function Types: Injective (one-one), Onto (surjective), Bijective (both). Bijective = has inverse.
- DUCO for Set Operations: De Morgan's Union = Complement Opposite (A ∪ B)' = A' ∩ B'.
- Inner-Outer for Composition: (f ∘ g)(x)—g is inner (apply first), f is outer (apply second).
🎯 AGNIVEER VAYU exam tips
- Agniveer Vayu typically includes 1-2 questions on identifying relation properties from a given set and relation definition. Practice recognizing reflexive/symmetric/transitive quickly by checking small examples.
- Function type identification (injective/surjective/bijective) appears in 1-2 questions. Often given as f(x) = expression; you must determine type. Sketch or test with examples if unsure.
- Composite functions and domain/range are tested together. A recent pattern: 'If f(x) = sqrt(x) and g(x) = x-1, find domain of (f ∘ g)(x).' Requires careful order of operations.
- Set operations with cardinality (inclusion-exclusion) appear in 1 question. Usually involves 2-3 sets and Venn diagram logic. Draw the diagram to avoid errors.
- Equivalence classes and partitions are less frequent but high-value. If asked, count carefully and verify that classes partition the set completely.
Q1 · medium · AI-verified
If f(x) = 2x + 3 and g(x) = x² − 1, then (f ∘ g)(2) equals:
- 14
- 9
- 7
- 11
Q2 · hard · AI-verified
In a class of 100 students, 55 play cricket, 45 play football, and 20 play both. Using the principle of inclusion-exclusion, how many students play neither cricket nor football?
- 30
- 15
- 20
- 25
Q3 · hard · AI-verified
If A = {1, 2, 3, 4, 5}, B = {3, 4, 5, 6, 7}, and C = {5, 6, 7, 8, 9}, then find n[A ∩ (B ∪ C)].
- 5
- 4
- 3
- 2
Q4 · medium · AI-verified
Let A = {1, 2, 3} and B = {4, 5}. How many relations can be defined from A to B?
- 64
- 16
- 128
- 32
Q5 · hard · AI-verified
Let f: R → R be defined by f(x) = x² + 1. What is the range of f?
- (0, ∞)
- R
- (1, ∞)
- [1, ∞)