What Is a Function, Really?
A function is a rule that assigns to each input exactly one output. The word “exactly one” is the critical part — if any input maps to two different outputs, it’s not a function.
Think of it like a machine: you put something in, exactly one thing comes out. Every vending machine is a function — press button A1, get one specific snack.
Formally, a function maps every element of set (domain) to exactly one element of set (co-domain). The set of actual output values is the range (which may be smaller than the co-domain).
Domain, Range, and Co-domain
Domain: Set of all valid inputs. When not specified, assume all real numbers for which the expression is defined.
Co-domain: The set the function maps into (often by default).
Range: The set of actual outputs — the image of the domain under .
Finding the domain: identify values where the function “breaks.” Remove values that make a denominator zero, put a negative under an even root, or make a logarithm’s argument .
Example:
- Denominator cannot be 0:
- Under square root must be non-negative:
- Combined: , so Domain
Types of Functions
Injective (One-One) Functions
is injective if different inputs give different outputs: .
Horizontal line test: If any horizontal line crosses the graph more than once, the function is not injective.
Surjective (Onto) Functions
is surjective if every element of is actually achieved: Range = Co-domain.
Bijective Functions
Both injective and surjective. Only bijective functions have well-defined inverses.
CBSE Class 12 regularly asks: “Show that is bijective.” Show injectivity by assuming and deriving . Show surjectivity by solving for any , getting .
Standard Functions and Their Graphs
1. Constant Function:
Horizontal line at height . Domain: , Range: . Not injective (all inputs give same output), technically surjective only if co-domain is .
2. Identity Function:
Line through origin with slope 1. Domain and Range both . Bijective.
3. Linear Function:
Straight line. Bijective for . Slope tells us steepness; is the y-intercept.
4. Quadratic Function:
Parabola. If , opens upward (minimum at vertex). If , opens downward (maximum at vertex).
Vertex: ,
Not injective over full (symmetric about vertex), but injective if restricted to one half.
5. Modulus Function:
V-shape with vertex at origin. Domain: , Range: . Not injective.
6. Greatest Integer Function (Floor):
Also written . Returns the greatest integer . Graph is a staircase with closed left endpoint and open right endpoint on each step.
, ,
7. Signum Function
Range: .
8. Exponential Function: ,
Domain: , Range: . Always passes through .
- If : increasing (standard growth curve)
- If : decreasing (decay curve)
9. Logarithmic Function:
Domain: , Range: . Inverse of exponential. Passes through .
Graph Transformations
Understanding transformations lets you sketch complex functions without plotting dozens of points.
Starting from a base graph :
| Transformation | Effect on Graph |
|---|---|
| Shift up by | |
| Shift down by | |
| Shift left by | |
| Shift right by | |
| Reflect about x-axis | |
| Reflect about y-axis | |
| , | Vertical stretch |
| , | Vertical compress |
| , | Horizontal compress |
| Reflect negative parts above x-axis |
For vs : “Inside the bracket, opposite direction.” shifts LEFT by 2 (not right). This trips up many students.
Worked Example: Sketch
Step 1: Sketch (parabola, vertex at , crosses x-axis at ).
Step 2: Any part of the curve below the x-axis gets reflected above it.
Step 3: The portion between and (where ) flips upward, creating a “W” shape.
Composition and Inverse
Composition
We apply first, then . The domain of is the set of where is in the domain of .
in general. For example, , : but .
Inverse Function
If is bijective, then exists. The graph of is the mirror image of about the line .
Finding : Replace with , swap and , solve for .
Example: . Let . Swap: . Solve: . So .
Verification: . Correct.
Even and Odd Functions
Even function: for all in the domain. Graph is symmetric about the y-axis. Examples: .
Odd function: for all in the domain. Graph has rotational symmetry about the origin. Examples: .
Neither: Most functions. Example: .
If the domain is symmetric about 0 (like or ), check even/odd by substituting . If the domain is not symmetric (like ), the question doesn’t arise.
Solved Examples
Example 1 — CBSE Level
Find the domain of .
We need .
Domain
Example 2 — JEE Main Level
If , check if it’s even, odd, or neither. Also find its range.
. So is odd.
For range: Let . Then . For real : discriminant : .
Range
Example 3 — JEE Advanced Level
is given by for all and . Find for positive integer , and show that forms a geometric series.
Setting : or . Since , .
Setting : .
So , , …, .
Sum .
Common Mistakes to Avoid
Mistake 1: Confusing range and co-domain. Co-domain is what the function is defined to map into. Range is what it actually maps to. They can differ: , has co-domain but range .
Mistake 2: Assuming always exists. Only bijective functions have inverses. doesn’t have an inverse over all of .
Mistake 3: For (floor function), students compute instead of the correct . Floor always rounds DOWN (toward ), not toward zero.
Mistake 4: Shifting direction: shifts LEFT, not right. The function reaches the same value at as the original reaches at .
Mistake 5: In composite functions, the order matters. — apply the rightmost function first.
Practice Questions
Q1. Find the domain and range of .
Domain: , so . For range: , valid when . Range: .
Q2. If and , find .
. .
Q3. Is even, odd, or neither?
. So is odd.
Q4. Find the inverse of .
Let . Then . So .
Q5. Evaluate .
, , , . Sum .
Q6. Describe the transformation from to .
Shift right by 3, then reflect about x-axis, then shift up by 4. The parabola opens downward with vertex at .
FAQs
Q: What is the difference between “one-one” and “many-one” functions?
One-one (injective): distinct inputs always give distinct outputs. Many-one: at least two different inputs give the same output. is many-one since .
Q: Can a function be both even and odd?
Yes — only (the zero function) satisfies both and simultaneously.
Q: In JEE, how often does greatest integer function appear?
Almost every year. Common question types: finding range of , evaluating limits involving , and solving equations like .
Q: How do I prove a function is bijective in CBSE?
Standard two-step proof: (1) Assume and show (injectivity). (2) For any in co-domain, find in domain with (surjectivity). Always show both steps explicitly.
Q: What is the significance of the vertical line test?
If any vertical line crosses the graph more than once, the curve does not represent a function — some x-value maps to multiple y-values. This visually checks the “exactly one output per input” rule.