Functions, domains, ranges, and graphs
Practice Flashcards
What is a function?
Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.
All Flashcards in Topic 2.2
Below are all 64 flashcards for this topic. Sign up free to track your progress and get personalized review schedules.
2.2.116 cards
What is a function?
A function is a rule that assigns exactly one output to each input. Every input (x-value) maps to one and only one output (y-value). Example: f maps every temperature in °C to a temperature in °F — one input, one output.
A mapping shows: 1 → 5, 2 → 7, 3 → 5. Is this a function? What about 1 → 5, 1 → 9, 2 → 7?
First mapping (1→5, 2→7, 3→5): YES, this is a function. Two inputs (1 and 3) share the same output — that is allowed. Second mapping (1→5, 1→9): NOT a function. Input 1 maps to two different outputs — that breaks the rule.
Give a real-world example of a function and explain why it qualifies.
Example: "Country → Capital city." Each country has exactly one capital — every input (country) maps to exactly one output (capital). Non-example: "Person → Friend" — a person can have many friends, so one input maps to many outputs.
Exam trap: Can two different inputs map to the same output in a function?
Yes — this is perfectly fine and does NOT stop something from being a function. What is NOT allowed: one input mapping to two different outputs. Example: f(2) = 5 and f(3) = 5 is fine. But f(2) = 5 and f(2) = 9 means it is not a function.
What does the notation f(x) mean?
f(x) is the output of the function f when the input is x. Read it as "f of x." f is the name of the function. x is the input. f(x) is the corresponding output. Example: if f(x) = 2x + 1, then f(3) = 7.
Rewrite y = 4x − 3 using function notation.
f(x) = 4x − 3. Replace y with f(x). The name "f" is conventional but any letter works (g, h, p, etc.). Both y = 4x − 3 and f(x) = 4x − 3 describe the same rule.
g(x) = x² + 1. What does g(t) mean? What does g(a + 1) mean?
g(t): apply the same rule but with t as the input → g(t) = t² + 1. g(a + 1): replace every x with (a + 1) → g(a + 1) = (a + 1)² + 1. The letter inside the bracket is always the input — substitute it everywhere x appears.
Exam trap: A student writes "f(x) means f multiplied by x." What is the error?
f(x) is not multiplication — the parentheses here mean "function of," not "times." f(x) = 4x + 2 does not mean f × x = 4x + 2. f is the function name; f(x) is the output value when the input is x.
How do you evaluate f(a) given a function f(x)?
Substitute a for every x in the function rule, then simplify. Example: f(x) = 3x + 5. Find f(4). Replace x with 4: f(4) = 3(4) + 5 = 12 + 5 = 17.
f(x) = 2x − 7. Find f(3) and f(0).
f(3) = 2(3) − 7 = 6 − 7 = −1. f(0) = 2(0) − 7 = 0 − 7 = −7. f(0) gives the y-intercept of the function.
h(x) = x² − 4x + 1. Find h(−2).
Replace x with −2: h(−2) = (−2)² − 4(−2) + 1 = 4 + 8 + 1 = 13. Key: (−2)² = 4 (positive). −4(−2) = +8 (negative times negative = positive).
Exam trap: f(x) = x² + 3. A student evaluates f(−4) = −4² + 3 = −16 + 3 = −13. What is wrong?
The error is in −4². When substituting a negative number, use brackets: (−4)² = +16. Without brackets: −4² = −16 (squaring only 4, then negating — wrong). Correct: f(−4) = (−4)² + 3 = 16 + 3 = 19.
What is the vertical line test and what does it tell you?
The vertical line test: draw (or imagine) any vertical line through a graph. If every vertical line crosses the graph at most once → the graph represents a function. If any vertical line crosses the graph more than once → it is NOT a function (one x has two y-values).
Does a full circle (e.g. x² + y² = 9) represent a function? Explain using the vertical line test.
No — a vertical line through the centre of the circle crosses it twice (two y-values for one x). Since one input (x) gives two outputs (y), the circle fails the vertical line test and is not a function.
Does the graph of y = |x| (V-shape) represent a function? Why?
Yes — every vertical line crosses the V-shape exactly once. Although the V looks like two lines meeting at a point, each x-value still gives exactly one y-value. y = |x| passes the vertical line test and is a function.
Exam trap: A student says "the vertical line test checks if every y-value is produced by only one x." Is this correct?
No — this describes a one-to-one function (injective), not just any function. The vertical line test only checks if each x gives at most one y. It is fine for two different x-values to produce the same y (many-to-one is still a function).
2.2.216 cards
What is the domain of a function?
The domain is the set of all valid input values (x-values) for which the function is defined. Example: f(x) = √x has domain x ≥ 0 because you cannot take the square root of a negative number.
What two things most commonly restrict the natural domain of a function?
1. Division by zero — values of x that make the denominator = 0 must be excluded. Example: f(x) = 1/(x − 3) → x ≠ 3. 2. Square root of a negative — the expression inside √ must be ≥ 0. Example: f(x) = √(x + 4) → x ≥ −4.
State the natural domain of f(x) = √(x − 5). Show your reasoning.
The expression inside √ must be ≥ 0: x − 5 ≥ 0 → x ≥ 5. Domain: x ≥ 5 (or [5, ∞) in interval notation). At x = 5: f(5) = √0 = 0 ✓. At x = 4: f(4) = √(−1) — undefined ✗.
Exam trap: f(x) = 1/(x² − 9). A student says the domain excludes x = 9. What is the mistake?
The denominator is x² − 9 = (x − 3)(x + 3). This equals zero when x = 3 or x = −3. The domain excludes x = 3 and x = −3, not x = 9. Always set the denominator equal to 0 and solve — do not guess.
What is the range of a function?
The range is the set of all possible output values (y-values) that the function can produce. Example: f(x) = x² has range y ≥ 0 because squaring any real number gives a non-negative result.
Why is the range of f(x) = x² equal to y ≥ 0? Why not all real numbers?
Squaring any real number always gives a non-negative result: (−3)² = 9, 0² = 0. The output can never be negative. So no matter what x you input, f(x) ≥ 0. The minimum value is 0 (at x = 0); the function grows without limit as x → ±∞.
State the range of g(x) = x² + 3 for all real x.
Since x² ≥ 0, we have x² + 3 ≥ 3. Range: g(x) ≥ 3 (or [3, ∞)). The minimum value is 3, reached at x = 0: g(0) = 0 + 3 = 3.
Exam trap: A student gives the range of f(x) = √x as "all real numbers." Why is this wrong?
The square root function only outputs non-negative values: √x ≥ 0 for all x ≥ 0. Correct range: f(x) ≥ 0 (or [0, ∞)). The function cannot produce negative outputs — √9 = 3, not ±3.
How do you read the domain of a function from its graph?
Look at the graph horizontally — the domain is the set of x-values covered by the graph. Find the leftmost and rightmost x-values. Filled circle (●) = endpoint included. Open circle (○) = endpoint not included.
How do you read the range of a function from its graph?
Look at the graph vertically — the range is the set of y-values covered by the graph. Find the lowest and highest y-values reached by the graph. A filled dot means that y-value is included; an open dot means it is excluded.
A graph runs from x = −2 to x = 6 (both endpoints included) and the y-values go from −3 to 8 (both included). State the domain and range.
Domain: −2 ≤ x ≤ 6. Range: −3 ≤ y ≤ 8 (or −3 ≤ f(x) ≤ 8). IB also accepts interval notation: domain [−2, 6], range [−3, 8].
Exam trap: A student is asked for the domain of a graph and reads off the y-values instead of x-values. What rule helps avoid this?
Domain → x-axis (horizontal). Range → y-axis (vertical). Memory trick: "D for domain, D for direction left-right (x-axis)." Domain = span of x-values; range = span of y-values.
What is a restricted domain and when does it occur in real-world problems?
A restricted domain limits the valid inputs to a practical range — not all mathematical values make sense. Examples: • Time t: must be t ≥ 0 (time cannot be negative). • Number of items n: must be a positive integer (you cannot buy half an item). • Distance d: must be d ≥ 0.
A pool drains at 80 L/min. The model is V(t) = 1200 − 80t. State an appropriate domain and explain.
Domain: 0 ≤ t ≤ 15. t ≥ 0: time cannot be negative. t ≤ 15: V(15) = 1200 − 80(15) = 0 — the pool is empty; the model stops being valid.
A function is defined only for x ∈ [2, 10]. A student substitutes x = 11. Is this valid?
No — x = 11 is outside the domain [2, 10]. The function is not defined for x = 11; the output is meaningless in this context. Always check inputs are within the stated domain before calculating.
Exam trap: A model gives profit P(n) = 5n − 200, where n is the number of units sold. A student treats the domain as all real numbers. What is wrong?
n must be a non-negative integer (you cannot sell −3.7 units). A more appropriate domain is n ∈ {0, 1, 2, 3, ...} or n ≥ 0 with n ∈ ℤ. IB context questions often award a mark for recognising this restriction.
2.2.316 cards
What is a composite function?
A composite function applies one function to the output of another. f(g(x)): first apply g to x, then apply f to the result. Notation: (f ∘ g)(x) = f(g(x)) — read "f of g of x."
What does the notation (f ∘ g)(x) mean? Which function is applied first?
(f ∘ g)(x) = f(g(x)). g is applied first (the inner function), then f is applied to the result (the outer function). Think of it like nested brackets — work from the inside out.
f(x) = x + 2, g(x) = 3x. Write f(g(x)) step by step.
Step 1: g(x) = 3x (the inner function). Step 2: f(g(x)) = f(3x) = (3x) + 2 = 3x + 2. Substitute g(x) = 3x wherever x appears in f.
Exam trap: A student writes f(g(x)) = f(x) × g(x). What is the error?
Composition (f ∘ g) is not multiplication. f(g(x)) means "substitute g(x) into f" — apply one function to the output of the other. f(x) × g(x) means multiply the two outputs — a completely different operation.
What are the two steps for evaluating f(g(a)) at a specific value a?
Step 1: Calculate the inner function first — find g(a). Step 2: Substitute that result into f — find f(g(a)). Always work inside out: inner function first, outer function second.
f(x) = 2x + 1, g(x) = x². Find f(g(3)).
Step 1: g(3) = 3² = 9. Step 2: f(g(3)) = f(9) = 2(9) + 1 = 19.
f(x) = x − 4, g(x) = 3x + 2. Find g(f(5)).
Step 1: f(5) = 5 − 4 = 1. Step 2: g(f(5)) = g(1) = 3(1) + 2 = 5. Note: this asks for g(f(5)), so f is applied first, then g.
Exam trap: A student evaluates f(g(4)) by computing f(4) first, then applying g. What is the error?
They applied the functions in the wrong order. For f(g(4)): compute the inner function g(4) first, then substitute into f. The function written on the right (inside the bracket) is always applied first.
How do you write f(g(x)) as an algebraic expression?
Step 1: Write out g(x). Step 2: Substitute g(x) into f — replace every x in f(x) with the expression g(x). Step 3: Simplify if possible.
f(x) = 2x + 3, g(x) = x². Find f(g(x)) as a simplified expression.
g(x) = x². f(g(x)) = f(x²) = 2(x²) + 3 = 2x² + 3.
f(x) = x − 1, g(x) = 3x. Find g(f(x)) and simplify.
f(x) = x − 1. g(f(x)) = g(x − 1) = 3(x − 1) = 3x − 3.
Exam trap: f(x) = (x + 1)². A student writes f(g(x)) = (g(x))² + 1 without checking. What should they have done?
They applied the wrong rule. f(x) = (x + 1)² means: take the input, add 1, then square. f(g(x)) = (g(x) + 1)² — substitute g(x) for x throughout. Always replace every x in f with the full expression g(x), including inside brackets.
Is f(g(x)) always equal to g(f(x))? Give a counterexample.
No — in general f(g(x)) ≠ g(f(x)). Counterexample: f(x) = x + 1, g(x) = x². f(g(x)) = x² + 1. g(f(x)) = (x + 1)² = x² + 2x + 1. These are different.
f(x) = x², g(x) = x + 3. Calculate f(g(2)) and g(f(2)). Compare the results.
f(g(2)): g(2) = 5, then f(5) = 25. g(f(2)): f(2) = 4, then g(4) = 7. f(g(2)) = 25 ≠ g(f(2)) = 7. The order of composition matters.
If f(g(x)) = x and g(f(x)) = x for all x, what special relationship do f and g have?
f and g are inverse functions of each other: g = f⁻¹ (and f = g⁻¹). Each function "undoes" the other. Example: f(x) = 2x + 1 and g(x) = (x − 1)/2 satisfy f(g(x)) = x and g(f(x)) = x.
Exam trap: A question asks for g(f(x)) and a student computes f(g(x)) instead. How can they check which order is correct?
Read carefully: g(f(x)) means "f is inside g" — apply f first, then g. Memory check: the function closest to x (written on the right) is always applied first. In g(f(x)): f is closer to x → f goes first → then g.
2.2.416 cards
What does the inverse function f⁻¹ do?
f⁻¹ undoes the effect of f — it reverses the mapping. If f maps a → b, then f⁻¹ maps b → a. Together: f⁻¹(f(x)) = x and f(f⁻¹(x)) = x.
State the two key properties that define f⁻¹ as the inverse of f.
f(f⁻¹(x)) = x (applying f after f⁻¹ gives back x). f⁻¹(f(x)) = x (applying f⁻¹ after f gives back x). Both compositions return the original input — they cancel each other out.
f(3) = 8 and f(5) = 12. Write down f⁻¹(8) and f⁻¹(12).
f⁻¹ reverses the mapping: f⁻¹(8) = 3 and f⁻¹(12) = 5. No formula needed — just swap the input and output of f.
Exam trap: A student writes f⁻¹(x) = 1/f(x). What is the error?
f⁻¹(x) is the inverse function, not the reciprocal. 1/f(x) means "1 divided by the output of f" — a completely different thing. The −1 in f⁻¹ is function notation for "inverse," not an exponent.
Describe the algebraic steps to find f⁻¹(x).
1. Write y = f(x). 2. Swap x and y (write x = f(y)). 3. Rearrange to make y the subject. 4. Replace y with f⁻¹(x).
Find f⁻¹(x) for f(x) = 4x − 7.
y = 4x − 7. Swap: x = 4y − 7. Rearrange: x + 7 = 4y → y = (x + 7)/4. f⁻¹(x) = (x + 7)/4.
Find f⁻¹(x) for f(x) = (2x + 1)/3.
y = (2x + 1)/3. Swap: x = (2y + 1)/3. Rearrange: 3x = 2y + 1 → 2y = 3x − 1 → y = (3x − 1)/2. f⁻¹(x) = (3x − 1)/2.
Exam trap: A student finds f⁻¹(x) by rearranging y = f(x) for x without swapping x and y first. What is the consequence?
They will get x = (expression in y), not y = (expression in x). The swap is essential — it converts the input-output relationship. Without swapping, the result is not expressed as f⁻¹(x).
Why might we need to restrict the domain of f(x) before an inverse exists?
An inverse only exists if f is one-to-one (each output comes from exactly one input). Example: f(x) = x² over all ℝ is not one-to-one — f(3) = f(−3) = 9, so the inverse would give two outputs. Restricting to x ≥ 0 makes it one-to-one: f⁻¹(x) = √x.
f(x) = x² with domain x ≥ 0. Find f⁻¹(x) and state its domain.
y = x². Swap: x = y². Rearrange: y = √x (take positive root since original domain x ≥ 0). f⁻¹(x) = √x, domain x ≥ 0.
Complete the sentence: The domain of f⁻¹ equals the ______ of f. The range of f⁻¹ equals the ______ of f.
The domain of f⁻¹ equals the range of f. The range of f⁻¹ equals the domain of f. The inverse swaps domain and range — inputs become outputs and vice versa.
Exam trap: A student finds f⁻¹(x) = √x for f(x) = x² but does not state the domain. Why is this incomplete?
Without a domain restriction, f(x) = x² is not one-to-one — the inverse is not unique. The full answer must be: f⁻¹(x) = √x for x ≥ 0. IB questions typically award a separate mark for correctly stating the domain of f⁻¹.
How are the graphs of f and f⁻¹ geometrically related?
The graph of f⁻¹ is the reflection of the graph of f in the line y = x. Every point (a, b) on f maps to the point (b, a) on f⁻¹ — x and y coordinates are swapped.
The graph of f passes through (2, 7) and (−1, 4). Write down two points on the graph of f⁻¹.
(7, 2) and (4, −1). The inverse swaps x and y — every (a, b) on f becomes (b, a) on f⁻¹.
What is special about any point where the graphs of f and f⁻¹ intersect?
At any intersection point, f(x) = f⁻¹(x). These points also lie on the line y = x (since they satisfy f(x) = x at the intersection in the most common case). Note: f and f⁻¹ can intersect off the line y = x too, but they always cross y = x when they intersect.
Exam trap: A student sketches f⁻¹ by reflecting f over the x-axis. What is the correct reflection?
The correct reflection is over the line y = x, not the x-axis. Reflecting over the x-axis would flip the graph vertically — that gives −f(x), not f⁻¹(x). The line y = x is the mirror that swaps x and y coordinates.
Topic 2.2 study notes
Full notes & explanations for Functions, domains, ranges, and graphs
Math AI SL exam skills
Paper structures, command terms & tips
Want smart review reminders?
Sign up free to track your progress. Our spaced repetition algorithm will tell you exactly which cards to review and when.
Start Free