Relations and Functions
๐ง First, listen to the class discussion audio of Relations and Functions:
๐ง Real-Life Use of Relations and Functions
Build a strong foundation on Relations and Functions with real-life applications and practice session.
1. Relations
๐ Learn this topic
In simple terms, a relation is just a way to pair elements from one set with elements from another set. For example, pairing students to their roll numbers is a relation.
Types of Relations
A. Reflexive Relation
Meaning: Every element must be related to itself. $(a, a) \in R$ for every $a \in A$.
- Simple Explanation: Like looking in a mirror; you see yourself.
- Examples: "Is equal to" (5=5), "Is a subset of" ($\subseteq$).
- Real-Life Use: A "My Profile" entry in a phone contact list.
B. Symmetric Relation
Meaning: If $a$ is related to $b$, then $b$ must also be related to $a$. If $(a, b) \in R$, then $(b, a) \in R$.
- Simple Explanation: Itโs a two-way street. If I am your sibling, you are my sibling.
- Examples: "Is perpendicular to", "Is a friend of".
- Real-Life Use: Facebook friendsโif User A is friends with User B, User B is friends with User A.
C. Transitive Relation
Meaning: If $a \to b$ and $b \to c$, then $a \to c$. If $(a, b) \in R$ and $(b, c) \in R$, then $(a, c) \in R$.
- Simple Explanation: A chain reaction. If A is taller than B, and B is taller than C, then A is taller than C.
- Examples: "Is greater than" ($>$), "Is an ancestor of".
- Real-Life Use: Company Hierarchy (CEO $\to$ Manager $\to$ Team Lead).
D. Equivalence Relation
Meaning: A relation that is Reflexive, Symmetric, AND Transitive all at once.
- Example: "Is congruent to" in geometry.
- Real-Life Use: Currency Exchange (having the same value across different currencies).
2. Functions
๐ Learn this topic
A function is a special relation where every input must have exactly one output.
One-to-One and Onto Functions
One-to-One (Injective)
Meaning: No two different inputs have the same output. Everyone gets their own unique seat.
- Example: Students $\to$ Admission Numbers.
- Real-Life Use: Fingerprint Scanners.
Onto (Surjective)
Meaning: Every element in the target set (Codomain) is used at least once. No empty seats.
- Example: Students $\to$ Classrooms (where every room has at least one student).
- Real-Life Use: Delivery services where every house in a zone receives a package.
Bijective Function
Meaning: A function that is both One-to-One and Onto. Perfect pairing.
Composite and Inverse Functions
Composite Functions
Meaning: Applying one function to the result of another: $(g \circ f)(x) = g(f(x))$.
- Example: Converting Celsius to Fahrenheit, then rounding the result.
- Real-Life Use: Online Shopping (Price + Tax $\to$ then apply Discount).
Inverse of a Function
Meaning: A function that "reverses" the original. Only Bijective functions have an inverse.
- Real-Life Use: Encryption (Function) and Decryption (Inverse).
3. Binary Operations
๐ Learn this topic
Meaning: A binary operation on a set $A$ is a function that takes two elements from $A$ and produces another element that also belongs to $A$.
- Simple Explanation: A rule for combining two numbers.
- Example: Addition (+) on Integers. $2 + 3 = 5$ (all are integers).
- Real-Life Use: Basic calculator arithmetic ($+, -, \times, \div$).
4. Inverse Trigonometric Functions
๐ Learn this topic
Standard trig functions find the ratio from an angle. Inverse trig functions find the angle from the ratio.
Domain and Range
| Function | Domain | Range (Principal Value) |
|---|---|---|
| $\sin^{-1}(x)$ | $[-1, 1]$ | $[-\pi/2, \pi/2]$ |
| $\cos^{-1}(x)$ | $[-1, 1]$ | $[0, \pi]$ |
| $\tan^{-1}(x)$ | $\mathbb{R}$ | $(-\pi/2, \pi/2)$ |
Key Properties
- $\sin^{-1}(x) + \cos^{-1}(x) = \pi/2$
- $\tan^{-1}(x) + \tan^{-1}(y) = \tan^{-1}(\frac{x+y}{1-xy})$
Real-Life Use: Architectureโcalculating the slope angle of a ramp using the height and length ratio.
5. Formulas & Equations
๐ Learn this topic
| Concept | Mathematical Representation |
|---|---|
| Reflexive | $\forall a \in A, (a, a) \in R$ |
| Symmetric | $(a, b) \in R \implies (b, a) \in R$ |
| Transitive | $(a, b) \in R \text{ and } (b, c) \in R \implies (a, c) \in R$ |
| Composition | $(g \circ f)(x) = g(f(x))$ |
| Inverse Trig | $\sin(\sin^{-1} x) = x$ |
6. Comparison: One-to-One vs. Onto
๐ Learn this topic
| Feature | One-to-One (Injective) | Onto (Surjective) |
|---|---|---|
| Core Rule | No two $x$'s share a $y$. | No $y$ is left alone. |
| Mapping | Distinct inputs $\to$ Distinct outputs. | Every element in Codomain is an Image. |
| Condition | $f(x_1) = f(x_2) \implies x_1 = x_2$ | Range $=$ Codomain |
| Visual | No two arrows hit the same target. | Every target is hit by at least one arrow. |
7. Numerical Problems
๐ Learn this topic
Problem 1: Proving Equivalence Relation
Let $L$ be the set of all lines in a plane and $R$ be the relation "is parallel to." Prove $R$ is an equivalence relation.
Step 1 (Reflexive): Every line is parallel to itself. (L1, L1) โ R. โ
Step 2 (Symmetric): If L1 || L2, then L2 || L1. (L1, L2) โ R โ (L2, L1) โ R. โ
Step 3 (Transitive): If L1 || L2 and L2 || L3, then L1 || L3. โ
Conclusion: Since it is reflexive, symmetric, and transitive, it is an equivalence relation.
Problem 2: Composite Function
If $f(x) = 2x + 3$ and $g(x) = x^2$, find $(g \circ f)(x)$.
Step 1: Formula: (g โ f)(x) = g(f(x))
Step 2: Substitute f(x) inside g: g(2x + 3)
Step 3: Apply rule of g (square the input): (2x + 3)ยฒ
Step 4: Expand: 4xยฒ + 12x + 9
Final Answer: 4xยฒ + 12x + 9
8. Industry Applications
๐ Learn this topic
- Database Management (SQL): Every table in a SQL database is a mathematical "relation."
- Cryptography: RSA encryption uses functions and their inverses to secure messages.
- Game Development: Inverse Trigonometry calculates character rotation angles to face targets.
9. Case Study: The Smart Logistics Hub
๐ Learn this topic
Imagine "QuickShip," an automated warehouse using math to optimize operations:
- The Relation Side: They use an Equivalence Relation to group packages by zip code. If Package A and B share a zip, and B and C share a zip, A and C must also share it (Transitivity). This allows efficient clustering for delivery trucks.
- The Function Side: They use a Bijective Function for tracking IDs. Every package has one unique ID (One-to-One), and every ID in the system must belong to a package (Onto). This allows the Inverse Function to instantly find a package via its ID.
- The Trig Application: Robotic arms use $\theta = \tan^{-1}(h/d)$ to calculate the tilt angle to reach a shelf at height $h$ and distance $d$.
10. Multiple Choice Questions
๐ Practice MCQs
- If a relation $R$ is reflexive, symmetric, and transitive, it is called:
Ans: b) Equivalence relation - A function $f: A \to B$ is injective if:
Ans: b) $f(x_1) = f(x_2) \implies x_1 = x_2$ - The range of $\sin^{-1} x$ is:
Ans: c) $[-\pi/2, \pi/2]$ - $(g \circ f)(x)$ is read as:
Ans: b) $g$ of $f$ of $x$ - Which of the following is a binary operation on the set of natural numbers $\mathbb{N}$?
Ans: c) Addition - An onto function is also known as:
Ans: b) Surjective - The domain of $\cos^{-1} x$ is:
Ans: c) $[-1, 1]$ - If $f$ is a bijective function, then $f^{-1}$ always:
Ans: b) Exists and is also bijective - If $(a, b) \in R \implies (b, a) \in R$, the relation is:
Ans: c) Symmetric - $\tan^{-1}(1)$ is equal to:
Ans: c) $\pi/4$
11. Exam-Oriented Questions with Answers
๐ Important Questions
- Q: Distinguish between a Relation and a Function.
A: A relation is any set of ordered pairs. A function is a restricted relation where every input has exactly one output. - Q: What is the condition for a function to have an inverse?
A: A function must be bijective (both one-to-one and onto). - Q: Prove that "is parallel to" is an equivalence relation.
A: (Refer to Numerical Problem 1 in Section 7). - Q: If $f(x) = 3x - 2$ and $g(x) = x^2 + 1$, find $(f \circ g)(x)$.
A: $f(g(x)) = 3(x^2 + 1) - 2 = 3x^2 + 1$. - Q: Define the Principal Value Branch of $\cos^{-1} x$.
A: The principal value branch is $[0, \pi]$. - Q: Explain the difference between Codomain and Range.
A: Codomain is the set of all potential outputs; Range is the set of actual outputs produced. - Q: What is a Binary Operation? Give an example.
A: A rule combining two elements of a set to produce another element of the same set. Example: Multiplication on $\mathbb{R}$. - Q: Simplify $\sin(\cos^{-1} \frac{3}{5})$.
A: Let $\theta = \cos^{-1}(3/5) \to \cos \theta = 3/5$. $\sin \theta = \sqrt{1 - (3/5)^2} = 4/5$. - Q: Check if $R = \{(1,1), (2,2), (3,3), (1,2), (2,1)\}$ is an equivalence relation.
A: Yes, it is reflexive, symmetric, and transitive. - Q: Why is the domain of $\sin^{-1} x$ restricted to $[-1, 1]$?
A: Because the original $\sin \theta$ only outputs values between $-1$ and $1$.
12. Revision Notes & Memory Tricks
โก Quick Revision
- Reflexive: Self-pairing (Mirror).
- Symmetric: Mutual pairing (Two-way street).
- Transitive: Chain pairing (Train).
- Injective: Unique targets (No sharing).
- Surjective: No empty targets (Full house).
Mnemonic for Relations: "RST"
Reflexive $\to$ Reflection | Symmetric $\to$ Swap | Transitive $\to$ Train
Trig Ranges:
Sine $\to$ Signed ($-\pi/2$ to $\pi/2$) | Cosine $\to$ Counts from zero ($0$ to $\pi$)