Functions
Download PDFHow to Use This Guide
Functions is Topic 2 of the IB Math AA HL syllabus and is one of the highest-yield topics for Paper 1 (non-calculator). The concepts here underpin all of calculus, statistics, and algebra — you cannot afford gaps. This guide covers subtopics 2.1–2.5 in syllabus order plus the AHL extension: language of functions, composite and inverse functions, transformations, rational functions, the modulus function, and polynomial division with the factor and remainder theorems. Every section includes worked examples drawn from past IB papers, exam alert boxes flagging the Paper 1 traps that cost marks most often, and MCQ practice at the end of each section. Use the jump links below to navigate directly to the section you need.
Jump links: Language of Functions (2.1) · Composite & Inverse (2.2) · Transformations (2.3) · Rational Functions (2.4) · Modulus & Inequalities (2.5) · Polynomial Division & Theorems (2.6 AHL) · MCQ Practice
Formula booklet reminder: The booklet provides the general forms of transformations, but not the rules for determining domains of composites or restrictions for invertibility. You must know those cold. The booklet also does not give you asymptote rules — degree comparison and long division are your tools.
Section 1: Language of Functions (2.1)
A function is a rule that assigns to each element of a set (the domain) exactly one element of another set (the codomain). The set of all output values actually produced is called the range (or image). Note: the range is a subset of the codomain, but they are not necessarily equal.
where is the domain, is the codomain, and the range is .
1.1 Key Vocabulary
| Term | Definition | Notation |
|---|---|---|
| Domain | Set of permitted input values | or |
| Codomain | Set within which outputs must fall | |
| Range / Image | Set of actual output values produced | |
| Image of a point | The specific output for a given input | |
| Pre-image | Input(s) that map to a given output |
Arrow diagram notation: In an arrow diagram, each arrow begins at a domain element and ends at the corresponding codomain element. A mapping is a function if and only if every domain element has exactly one outgoing arrow.
1.2 Types of Function
One-to-one (injective): Every element of the range is the image of exactly one domain element. No two different inputs produce the same output. Equivalently: .
Many-to-one: At least one output value is the image of more than one input. Example: maps both and to .
Onto (surjective): The range equals the codomain — every element of the codomain is the image of at least one domain element.
Bijective: Both injective and surjective. Only bijective functions have a well-defined inverse over their full domain.
Horizontal line test: A function is one-to-one if and only if every horizontal line intersects its graph at most once. This test is Paper 1-ready — you can apply it from a sketch in under five seconds.
A common mark-losing error: confusing range and codomain. If is defined by , the codomain is , but the range is . The IB mark scheme treats these as distinct — write “range” when you mean the set of actual outputs.
1.3 Finding the Domain and Range
Natural domain: the largest subset of for which is defined. Restrictions arise from:
- Square roots: the expression under the radical must be .
- Denominators: the denominator must be .
- Logarithms: the argument must be .
Finding domain and range
Find the domain and range of .
Domain: Require , i.e. , so .
Range: The expression is the upper half of a circle of radius . The maximum occurs at (giving ) and the minimum is at .
Quick Recall — Section 1
Try to answer without scrolling up:
- What is the difference between range and codomain?
- State the horizontal line test.
- What restrictions on the domain arise from a square root?
Reveal answers
- The codomain is the declared target set; the range is the set of outputs actually produced. Range codomain, but they need not be equal.
- A function is one-to-one if and only if every horizontal line intersects its graph at most once.
- The expression under the radical must be .
Section 2: Composite and Inverse Functions (2.2)
2.1 Composite Functions
The composite function (read “f composed with g”) is defined by:
Think of as the inner function (applied first) and as the outer function (applied second). Order matters: in general.
Domain of : The domain is the set of all in such that .
Finding a composite and its domain
Let (domain ) and (domain ). Find and its domain.
Step 1:
Step 2: Domain requires , so , giving .
On Paper 1, the most common composite-function trap is applying the functions in the wrong order. The notation means acts first. Write out both functions separately before composing — one mis-step and every subsequent mark is lost.
2.2 Inverse Functions
If is one-to-one (injective), then the inverse function is defined so that:
Geometrically, the graph of is the reflection of the graph of in the line .
Key relationships:
Algorithm for finding :
- Write .
- Rearrange to express in terms of .
- Swap and (replace every with and every with ).
- The result is .
- State the domain of (which equals the range of ).
Finding an inverse function
Find for , .
Step 1: Let .
Step 2: Rearrange for :
Step 3: Swap :
Verification: ✓
2.3 Restricting the Domain for Invertibility
A function that is not one-to-one does not have an inverse over its full domain. You can, however, restrict the domain to a maximal interval on which the function is one-to-one, then find the inverse on that restricted domain.
Restricting domain of
Find a restricted domain and the inverse of .
is many-to-one over (fails horizontal line test), so it has no inverse on .
Restriction: makes one-to-one.
Inverse: (taking the positive root because ).
When a question asks “state the largest domain for which has an inverse,” look for the largest interval containing the given point on which the function is monotone (strictly increasing or strictly decreasing). For a parabola with vertex at , the two standard choices are and .
Quick Recall — Section 2
Try to answer without scrolling up:
- What is in terms of the individual domains?
- State the two properties must satisfy.
- What does “restrict the domain” mean for a non-injective function, and why is it necessary?
Reveal answers
- .
- for all , and for all .
- Choosing a sub-interval of the domain on which the function is one-to-one, so that an inverse exists on that interval.
Section 3: Transformations of Functions (2.3)
A transformation maps a parent function to a new function by shifting, reflecting, or stretching its graph. The IB AA HL syllabus requires you to identify and apply six transformation types fluently.
3.1 Transformation Summary Table
| Transformation | Function form | Effect on graph |
|---|---|---|
| Horizontal translation right by | Every point moves units right | |
| Horizontal translation left by | Every point moves units left | |
| Vertical translation up by | Every point moves units up | |
| Vertical translation down by | Every point moves units down | |
| Reflection in the -axis | -coordinates change sign | |
| Reflection in the -axis | -coordinates change sign | |
| Vertical stretch by factor | -coordinates multiplied by | |
| Horizontal stretch by factor | -coordinates divided by |
Inside vs outside the function:
- Changes inside the brackets (to ) affect horizontal behaviour — and they do the opposite of what you expect: moves right, not left.
- Changes outside the brackets (to the whole expression) affect vertical behaviour — and they do exactly what you expect: moves up by .
This asymmetry is the single most-tested transformation concept on IB Paper 1.
3.2 Combining Transformations
When multiple transformations are combined, apply them in the correct order:
- Horizontal stretch/compression (changes to inside brackets)
- Horizontal translation
- Vertical stretch/compression
- Vertical translation
For :
- : horizontal compression (narrowing)
- : horizontal stretch (widening)
- : vertical stretch (tallening)
- : vertical compression (flattening)
- : horizontal shift right by (left if )
- : vertical shift up by (down if )
Describing a combined transformation
Describe the transformations that map onto .
Reading from the form with , , , , :
- Vertical stretch by factor (every -value multiplied by ).
- Translation by (2 units right, 1 unit up).
Note: vertical stretch before translation, or the translation remains correct regardless of order here since .
Translation vectors are frequently asked on Paper 1. Write translation as a column vector: means 2 right, 1 up. The IB mark scheme awards the mark only for the correct vector form — “shift right 2 and up 1” in words may not receive full credit if vector form is specifically requested.
3.3 Transformation Diagram
The diagram below shows how the transformations shift the parabola.
The parabola (grey dashed) is shifted 2 units right to give (navy dashed), then 1 unit up to give (solid navy). Vertex moves from to to .
3.4 Invariant Points
A point is invariant under a transformation if it maps to itself. For reflections in the -axis, invariant points satisfy (points on the -axis). For reflections in the line (which corresponds to finding ), invariant points satisfy .
Finding invariant points under means solving , not . These are the same equation rearranged, but students often confuse them and solve the wrong equation.
Quick Recall — Section 3
Try to answer without scrolling up:
- Does shift the graph left or right? By how much?
- Write the combined transformation — which parameter controls horizontal stretch?
- How do you find invariant points under the reflection in ?
Reveal answers
- Right, by 3 units. Changes inside the brackets act in the opposite direction to their sign.
- Parameter : the graph is stretched horizontally by factor (compressed if , stretched if ).
- Solve .
Section 4: Rational Functions (2.4)
A rational function has the form where and are polynomials and . The key features are asymptotes and holes.
4.1 Vertical Asymptotes
A vertical asymptote at occurs where the denominator is zero and the numerator is non-zero. The function grows without bound as .
Finding vertical asymptotes:
- Factor the denominator fully.
- Find zeros of the denominator.
- Check whether the numerator is also zero at those points.
- If numerator : vertical asymptote at .
- If numerator : there is a hole (removable discontinuity) at , not an asymptote.
4.2 Horizontal Asymptotes
A horizontal asymptote at occurs when as .
Let and :
When , divide by using polynomial long division to find an oblique (slant) asymptote of the form .
Asymptote rules in one sentence: “Bottom zero gives vertical; top and bottom same degree gives a horizontal fraction; top one degree higher gives oblique via long division.”
4.3 Oblique Asymptotes HL
When , divide to obtain:
where is the remainder. As , the remainder term , so is the oblique asymptote.
Oblique asymptote by long division
Find the oblique asymptote of .
Perform long division of by :
Therefore:
As , , so the oblique asymptote is .
4.4 Sketching Rational Functions
Systematic approach for :
- Find all vertical asymptotes (zeros of where ).
- Find all holes (zeros of where too — cancel the common factor first).
- Find the horizontal or oblique asymptote using degree comparison / long division.
- Find -intercepts: set (after cancellation).
- Find -intercept: compute .
- Determine sign of in each interval between vertical asymptotes using a sign table.
- Sketch, ensuring the curve approaches each asymptote from the correct side.
Sketching
Step 1 — Vertical asymptote: . Numerator at : . Vertical asymptote: .
Step 2 — Holes: No common factors. No holes.
Step 3 — Horizontal asymptote: Both numerator and denominator degree ; leading coefficients both . Horizontal asymptote: .
Step 4 — -intercept: . Point: .
Step 5 — -intercept: . Point: .
Step 6 — Sign table:
| Interval | Sign of | Sign of | Sign of |
|---|---|---|---|
4.5 Rational Function Diagram
Graph of . Vertical asymptote (red dashed) at ; horizontal asymptote (orange dashed) at . The curve crosses the -axis at and the -axis at .
On Paper 1 sketching questions, you must label all asymptotes with their equations and mark all intercepts with coordinates. A sketch without labelled asymptotes will lose the asymptote marks even if the curve shape is correct. Write on vertical asymptotes and on horizontal asymptotes.
Quick Recall — Section 4
Try to answer without scrolling up:
- How do you find vertical asymptotes of a rational function?
- State the horizontal asymptote rule when .
- When does a rational function have an oblique asymptote, and how do you find it?
Reveal answers
- Set the denominator equal to zero. Check the numerator at each root — if the numerator is non-zero there, it is a vertical asymptote; if the numerator is also zero, it is a removable hole.
- .
- When the degree of the numerator is exactly one more than the degree of the denominator. Find it by polynomial long division; the quotient (excluding the remainder term) is the oblique asymptote.
Section 5: Modulus Function and Inequalities (2.5)
The modulus function (absolute value) is defined as:
Geometrically, is the distance of from the origin on the number line.
5.1 Solving Equations Involving Modulus
Basic form (where ):
Always check both solutions by substituting back into the original equation, especially when the original problem places restrictions on the domain.
Solving
Case 1:
Case 2:
Both solutions are valid. Answer: or .
Solving
When both sides are moduli, square both sides (valid since both sides are ):
Verify: and ✓. and ✓.
5.2 Modulus Inequalities
Form (strict; ):
Form (strict; ):
Inequality direction rule: gives a bounded (finite) interval — it is an “and” condition. gives an unbounded region — it is an “or” condition (two separate intervals). Confusing these two directions is the most common modulus error on Paper 1.
Solving
Answer: .
Solving
Branch 1:
Branch 2:
Answer: .
5.3 Graphs of and
These two operations produce different graphs and are a common source of confusion.
: Take the graph of , then reflect all parts below the -axis upward. Parts above the axis remain unchanged.
: Take the right half of (for ) and reflect it in the -axis to produce the left half. The original left half of the graph is discarded.
A reliable way to remember the difference: affects the output (reflects -values), so it looks like folding the graph up at the -axis. affects the input (replaces with ), so the function receives non-negative inputs only, creating a symmetric graph about the -axis.
Paper 1 graph-sketching questions frequently ask you to sketch given the graph of . The two most common errors are: (1) reflecting the correct part of the graph the wrong way (should reflect the portion below the -axis upward, not downward), and (2) leaving a corner point unlabelled at the -axis where the reflection occurs.
Quick Recall — Section 5
Try to answer without scrolling up:
- Write the solution set for .
- Write the solution set for .
- Describe the graph of in terms of the graph of .
Reveal answers
- , a single bounded interval.
- or , two unbounded intervals.
- Take the right half of the graph of () and reflect it in the -axis. The left half of the original graph is replaced.
Section 6: Polynomial Division, Factor & Remainder Theorems HL
This section covers AHL content for Topic 2. The factor and remainder theorems give you a systematic toolkit for factorising and evaluating polynomials — skills that appear in Paper 1 (factor theorem, quick remainder evaluation) and Paper 2 (full long division to find quotients).
6.1 Polynomial Long Division
When you divide a polynomial by a divisor , you obtain a quotient and a remainder , where the degree of is strictly less than the degree of :
For a linear divisor , the remainder is a constant.
Method — long division by :
- Write the dividend in descending powers, inserting coefficients for any missing terms.
- Divide the leading term of the current dividend by the leading term of the divisor. Write the result above the line as the next term of the quotient.
- Multiply the divisor by that term and subtract.
- Bring down the next term and repeat until the degree of the remainder is less than the degree of the divisor.
Polynomial long division
Divide by .
Set up the division: divided by .
Step 1: Divide the leading term: . Multiply: . Subtract:
Step 2: Divide: . Multiply: . Subtract:
Step 3: Divide: . Multiply: . Subtract:
Result:
The remainder is , confirming that is a factor. The quotient , so .
6.2 The Factor Theorem
Factor Theorem: is a factor of polynomial if and only if .
Equivalently: if , then is not a factor of .
The factor theorem gives you a fast way to test whether a linear expression divides evenly into a polynomial, without performing long division. Once one factor is confirmed, long division (or synthetic division) yields the remaining quotient.
Rational Root Theorem (useful for finding candidates): If has integer coefficients, any rational root has the form .
Finding all factors using the Factor Theorem
Factorise completely.
Step 1 — Test rational root candidates. By the rational root theorem, candidates are .
So is a factor.
Step 2 — Divide out the known factor. Divide by :
Verify: . Expand: . Correct.
Step 3 — Factorise the quadratic.
Result:
In Paper 1, if you are asked to show that is a factor, use the Factor Theorem by computing . A single line of substitution earns the method mark and the conclusion mark. Full polynomial long division is usually needed in Paper 2 or when the question asks you to find the remaining quotient after establishing a factor.
6.3 The Remainder Theorem
Remainder Theorem: When is divided by , the remainder equals .
More generally, when is divided by , the remainder equals .
The remainder theorem lets you find the remainder of a polynomial division without performing the full algorithm — just evaluate the polynomial at the appropriate value.
Applying the Remainder Theorem
Find the remainder when is divided by .
The divisor is , so . Evaluate:
The remainder is . No long division required.
The remainder theorem is a Paper 1 time-saver. If the question asks only for the remainder (not the full quotient), substitute directly. Only perform long division when the quotient itself is needed.
6.4 Combining the Theorems — Solving Cubic Equations
The standard strategy for solving a cubic :
- Find one root by testing (rational root candidates) using the factor theorem.
- Extract the linear factor , then divide by to obtain a quadratic quotient.
- Solve the quadratic by factorisation, completing the square, or the quadratic formula.
If , then divides exactly, and the quotient has degree one lower than .
Solving a cubic equation completely
Solve .
Let . Test rational root candidates :
So is a factor. Divide by :
Factorise the quadratic:
Therefore:
Solutions: , , .
Check: and . Confirmed.
Quick Recall — Section 6
Try to answer without scrolling up:
- State the Factor Theorem.
- State the Remainder Theorem.
- When dividing by , what value do you substitute to find the remainder using the Remainder Theorem?
Reveal answers
- is a factor of if and only if .
- When is divided by , the remainder equals .
- Set , so . The remainder is .
MCQ Practice
These questions are styled after IB AA HL Paper 1. Work each one before revealing the answer.
Section 1 MCQs — Language of Functions
Q1. The function is defined by . Which of the following statements is correct?
A. is one-to-one and its range equals its codomain.
B. is many-to-one and its range equals its codomain.
C. is one-to-one and its range is .
D. is many-to-one and its range is .
Reveal answer and explanation
Answer: D
is many-to-one because, for example, . The minimum value of is (at ), so the minimum of is . The range is , which is a proper subset of the codomain . Options A and C are wrong because is not one-to-one. Option B is wrong because the range does not equal .
Q2. The natural domain of is:
A.
B.
C.
D.
Reveal answer and explanation
Answer: B
For the logarithm to be defined, the argument must be strictly positive: . The domain is the open interval , which matches option B. Note the strict inequality — gives , which is undefined, so C is wrong.
Section 2 MCQs — Composite and Inverse Functions
Q3. Let and . Find .
A.
B.
C. , simplified to
D. (same as A)
Reveal answer and explanation
Answer: B (equivalently C)
.
Note that A is wrong — a common error is to compute instead of . Always apply the inner function first.
Q4. The function , . Find .
A.
B.
C. (confirmed)
D.
Reveal answer and explanation
Answer: A
Method 1 (direct): asks “which satisfies ?” Set , so , giving .
Method 2 (full inverse): Let . Then , so , giving , so . Thus and .
Section 3 MCQs — Transformations
Q5. The graph of is translated by . The equation of the resulting graph is:
A.
B.
C.
D.
Reveal answer and explanation
Answer: C
A translation of means 3 units left and 2 units up. Moving left by 3 means replacing with inside the function. Moving up by 2 means adding 2 outside. Result: . The trap here is option A: inside the brackets means a rightward shift, not leftward.
Q6. The point lies on the graph of . What point lies on the graph of ?
A.
B.
C.
D.
Reveal answer and explanation
Answer: A
If is on , then .
Under : the horizontal compression by factor maps to ; the reflection negates the -value, so .
The image point is .
Section 4 MCQs — Rational Functions
Q7. The function . Which of the following correctly describes its behaviour?
A. One vertical asymptote at and a hole at .
B. Vertical asymptotes at and .
C. One vertical asymptote at and a hole at .
D. No vertical asymptotes; a hole at .
Reveal answer and explanation
Answer: A
Factor: numerator ; denominator .
Cancel the common factor : the simplified form is , valid for .
At : both numerator and denominator were zero — hole (removable discontinuity) at .
At : denominator , numerator — vertical asymptote at .
Q8. As , the function approaches:
A.
B.
C.
D.
Reveal answer and explanation
Answer: B
Both numerator and denominator have degree . The horizontal asymptote is the ratio of leading coefficients: .
Option A is wrong (confusing the leading coefficient ratio with just the numerator coefficient). Option C is wrong because the degrees are equal. Option D would only apply if the numerator’s degree were smaller.
Section 5 MCQs — Modulus and Inequalities
Q9. Solve .
A. or
B.
C. or
D.
Reveal answer and explanation
Answer: B
gives .
Subtract 5: .
Divide by and reverse both inequality signs: , i.e. .
The trap is forgetting to reverse the inequalities when dividing by a negative number.
Q10. Which of the following is the graph of ?
A. The parabola with the portion between and reflected above the -axis.
B. The parabola with the portions outside reflected above the -axis.
C. A parabola with vertex at opening downward.
D. The graph of unchanged.
Reveal answer and explanation
Answer: A
is negative between its roots and (since the parabola dips below the -axis there). Applying reflects that negative portion upward. Outside , the parabola is already non-negative, so it is unchanged. The result is a “W-shape” with the dip between and folded upward, touching the -axis at .
Section 6 MCQs — Polynomial Division, Factor & Remainder Theorems
Q11. Find the remainder when is divided by .
A.
B.
C.
D.
Reveal answer and explanation
Answer: C
By the Remainder Theorem, the remainder equals :
Option A would mean is a factor — but , so it is not. Option D is a sign error from mishandling .
Q12. If is a factor of , find the value of .
A.
B.
C.
D.
Reveal answer and explanation
Answer: C
By the Factor Theorem, is a factor if and only if :
Set equal to zero: .
A common error is substituting instead of (confusing the factor with the root ). Always set the factor equal to zero to find the substitution value.
Final exam strategy for Topic 2: In the 45 minutes you have for each Paper 1 section, rational function sketches and transformation questions together are worth roughly 15–20 marks. Always start with asymptotes and intercepts before drawing any curve. For modulus inequalities, write out both branches explicitly — never try to do them mentally. For composite and inverse functions, write the definitions out step-by-step; the mark scheme allocates method marks at each line.
IB Formula Booklet — Complex Numbers
Modulus & Polar Form
| GIVEN | z = r(cosθ + i sinθ) = r cis θ |
| GIVEN | z = reiθ (Euler form) |
| MEMORISE | |z| = √(a² + b²) |
| MEMORISE | arg(z) — sketch point, use quadrant formula |
Polar Multiplication & Division
| GIVEN | z&sub1;z&sub2; = r&sub1;r&sub2; cis(θ&sub1; + θ&sub2;) |
| GIVEN | z&sub1;/z&sub2; = (r&sub1;/r&sub2;) cis(θ&sub1; − θ&sub2;) |
De Moivre's Theorem
| GIVEN | (r cis θ)n = rn cis(nθ) |
| MEMORISE | z + 1/z = 2cosθ (when |z|=1) |
| MEMORISE | z − 1/z = 2i sinθ (when |z|=1) |
nth Roots
| GIVEN | w1/n = r1/n cis((θ + 2πk)/n), k=0..n-1 |
| MEMORISE | Sum of nth roots of unity = 0 |
| MEMORISE | 1 + ω + ω² = 0 (cube roots) |
Conjugate & Arithmetic
| MEMORISE | z* = a − bi |
| MEMORISE | z · z* = |z|² (always real) |
| MEMORISE | z + z* = 2Re(z) |
| MEMORISE | z − z* = 2i Im(z) |
Loci
| MEMORISE | |z − a| = r → Circle, centre a, radius r |
| MEMORISE | |z − a| = |z − b| → Perpendicular bisector |
| MEMORISE | arg(z − a) = θ → Ray from a |
Vieta's Formulas
| MEMORISE | z² + az + b = 0: sum = −a, product = b |
| MEMORISE | Conjugate root theorem: real coeff → roots come in conjugate pairs |