Why Relations and Functions matter in everyday math
Ever wondered how a simple rule can turn a messy list of pairs into a neat, predictable machine? That’s exactly what relations and functions do for us – they give order to chaos.
💡 In Simple Words: A relation is just a collection of ordered pairs, like matching names to phone numbers. A function is a special kind of relation where each input gets only one output, like a vending machine that gives exactly one snack for each coin you drop.
What is a Relation?
A relation is any set of ordered pairs (a, b). Think of it as a two‑column table where the left column lists the "input" and the right column lists the "output". The first element of each pair is called the domain element (the input), and the second is the range element (the output).
Example: The relation R = {(1,2), (2,4), (3,6)} links each number to its double. If you picture each pair as a bridge connecting two islands, the whole set of bridges is the relation.
Key properties of relations
- Reflexive: Every element is related to itself. Like a mirror – each person sees their own reflection.
- Symmetric: If a is related to b, then b is related to a. Imagine a friendship where if Alice likes Bob, Bob also likes Alice.
- Transitive: If a is related to b and b to c, then a is related to c. Like a chain of hand‑shakes passing a secret.
What makes a Function?
A function is a relation with a rule that never gives two different outputs for the same input. In other words, each input points to exactly one output. This is the “one‑input‑one‑output” rule.
Real‑life analogy: A school locker assignment – each student (input) gets one locker (output). No student can have two lockers at the same time.
Domain and Range
The domain is the set of all possible inputs. The range (sometimes called codomain) is the set of values that actually appear as outputs.
For f(x)=x², if we restrict the domain to whole numbers from -3 to 3, the domain is {‑3,‑2,‑1,0,1,2,3} and the range becomes {0,1,4,9}.
Types of Functions
| Type | Definition | Example |
|---|---|---|
| One‑to‑One (Injective) | Different inputs give different outputs. No two arrows land on the same output. | f(x)=2x+1 on all real numbers |
| Onto (Surjective) | Every possible output in the codomain is hit by at least one input. | g(x)=x³ on all real numbers (covers every real number as output) |
| One‑to‑One & Onto (Bijective) | Both injective and surjective – a perfect pairing. | h(x)=x+5 on real numbers |
How to test if a relation is a function
- Vertical Line Test (for graphs): Draw a vertical line anywhere; if it crosses the graph more than once, it’s not a function.
- Check the ordered pairs: No two pairs should have the same first element with different second elements.
Operations on Functions
Composition of Functions
Composition means plugging one function into another. If we have f(x) and g(x), the composition (f∘g)(x) means “first apply g, then f”.
Example: f(x)=x+2, g(x)=3x. Then (f∘g)(x)=f(g(x))=f(3x)=3x+2.
Inverse Function
An inverse function reverses the action of the original function. If f sends a to b, the inverse f⁻¹ sends b back to a.
To find f⁻¹, swap x and y in the equation y=f(x) and solve for y.
Example: f(x)=2x‑3 → swap → x=2y‑3 → 2y = x+3 → y = (x+3)/2, so f⁻¹(x) = (x+3)/2.
Quick Summary
- Relation = any set of ordered pairs.
- Function = relation where each input has exactly one output.
- Domain = all allowed inputs; Range = actual outputs.
- One‑to‑One (injective) never repeats an output.
- Onto (surjective) hits every possible output.
- Bijective = both one‑to‑one and onto.
- Composition: (f∘g)(x)=f(g(x)).
- Inverse: f⁻¹ undoes f.
📝 Likely Exam Questions
- Define a function and give an example that is not one‑to‑one.
Answer: A function assigns exactly one output to each input. Example: f(x)=x² on ℝ is not one‑to‑one because f(2)=f(‑2)=4. - Determine whether the relation R = {(1,2),(2,3),(3,2)} is a function.
Answer: Yes, each first element (1,2,3) appears only once, so it is a function. - Find the inverse of f(x)=5x‑4.
Answer: Swap x and y: x=5y‑4 → 5y = x+4 → y = (x+4)/5, so f⁻¹(x) = (x+4)/5. - State whether f(x)=x³‑x is onto ℝ.
Answer: Yes, because a cubic polynomial with real coefficients takes every real value (by the Intermediate Value Theorem). - Compute (f∘g)(x) if f(x)=2x+1 and g(x)=x²‑3.
Answer: (f∘g)(x)=f(g(x))=2(x²‑3)+1 = 2x²‑5.