IB

IB Math AI HL Functions & Formulae – Complete Study Guide

Master IB Math AI HL Functions and Formulae with this complete study guide. Covers domain, range, composite, inverse, logistic functions, and all key formulae.
"Functions and formulae guide for IB Mathematics AI Higher Level showing mathematical equations and function notation on modern gradient background"

Functions & Formulae – IB Math AI HL Complete Study Guide

Course: IB Mathematics: Applications & Interpretation (AI) Higher Level  |  Topic: 2 – Functions  |  Level: HL

This study guide covers every sub-topic in IB Math AI HL Topic 2: Functions, including all official formula booklet entries, worked examples, exam-style tips, and common mistakes students make in Paper 1, Paper 2, and Paper 3. Work through each section carefully — understanding functions deeply is critical because they appear throughout the entire AI HL course.


1. Linear Functions — Equations, Gradients & Intercepts

A linear function produces a straight-line graph and has the general form f(x) = mx + c. Linear functions are the foundation of Topic 2 and appear regularly in modelling contexts across the AI HL exam.

Three Forms of a Linear Equation

Slope-Intercept Form: y = mx + c

Standard Form: ax + by + d = 0

Point-Slope Form: y − y₁ = m(x − x₁)

Where m is the gradient (slope) and c is the y-intercept.

Gradient Formula

Gradient between two points (x₁, y₁) and (x₂, y₂): m = (y₂ − y₁) / (x₂ − x₁)
🔑 Key Fact: Parallel lines have equal gradients (m₁ = m₂). Perpendicular lines satisfy m₁ × m₂ = −1.

Perpendicular Bisector

The perpendicular bisector of a line segment passes through its midpoint and is perpendicular to it. To find it: (1) find the midpoint using the midpoint formula; (2) find the negative reciprocal of the original gradient; (3) apply point-slope form.

Midpoint of (x₁, y₁) and (x₂, y₂): M = ( (x₁ + x₂)/2 , (y₁ + y₂)/2 )

📘 Worked Example

Find the equation of the line passing through A(2, 3) and B(6, 11).

Step 1 – Gradient: m = (11 − 3)/(6 − 2) = 8/4 = 2

Step 2 – Equation: y − 3 = 2(x − 2) → y = 2x − 1


2. Domain and Range

The domain of a function is the complete set of all possible input values (x-values) for which the function is defined. The range is the complete set of all possible output values (y-values) the function can produce.

TermMeaningNotation
DomainSet of all valid inputs (x-values)x ∈ ℝ, x > 0, {x : x ≥ 2}, etc.
RangeSet of all possible outputs (y-values)f(x) ∈ ℝ, f(x) > 0, {y : y ≤ 5}, etc.

Rules for Identifying the Domain

  • Square roots: The expression under a square root must be ≥ 0, so set the expression ≥ 0 and solve.
  • Fractions (rational functions): The denominator cannot equal zero, so exclude values that make it zero.
  • Logarithms: The argument of a logarithm must be strictly greater than zero (log(x) requires x > 0).
  • No restriction stated: If a domain is not specified, assume x ∈ ℝ (all real numbers).
⚠️ Common Mistake: Students often confuse domain and range. Always ask: "What can I put in?" (domain) vs. "What do I get out?" (range).

📘 Worked Example

Find the domain and range of f(x) = √(x − 4).

Domain: x − 4 ≥ 0 → x ≥ 4 → Domain: x ∈ [4, ∞)

Range: Since square root outputs are always ≥ 0 → Range: f(x) ∈ [0, ∞)


3. Types of Functions: One-to-One & Many-to-One

Understanding function types is critical for determining whether an inverse exists and how to approach composite function problems on the IB exam.

TypeDefinitionInverse Exists?Example
One-to-One (Injective)Each x-value maps to a unique y-value✅ Yesf(x) = 3x + 2
Many-to-OneTwo or more x-values map to the same y-value❌ No (unless domain restricted)f(x) = x²

Use the horizontal line test: if any horizontal line crosses the graph more than once, the function is many-to-one and does not have an inverse on its natural domain.

💡 Exam Tip: For quadratic functions like f(x) = x², restrict the domain to x ≥ 0 (or x ≤ 0) to make it one-to-one, then find the inverse.

4. Composite Functions

A composite function applies one function to the result of another. The notation (f ∘ g)(x) means "apply g first, then apply f to the result." Order matters — f ∘ g is generally not equal to g ∘ f.

Definition of Composite Function: (f ∘ g)(x) = f(g(x))

Read as: "f of g of x" — apply g first, then f

Domain of a Composite Function

Finding the domain of f ∘ g requires two steps:

  1. Find the range of g, then restrict it to values that lie within the domain of f.
  2. The domain of f ∘ g is the set of x-values that produce this restricted range through g.

📘 Worked Example

Given f(x) = x² and g(x) = x + 3, find (f ∘ g)(x) and (g ∘ f)(x).

(f ∘ g)(x): f(g(x)) = f(x + 3) = (x + 3)² = x² + 6x + 9

(g ∘ f)(x): g(f(x)) = g(x²) = x² + 3

These are different — composition is not commutative.

📘 Domain of Composite — Worked Example

f(x) = √x (domain: x ≥ 0), g(x) = x − 5. Find the domain of (f ∘ g)(x).

(f ∘ g)(x) = f(g(x)) = √(x − 5)

For the square root to be defined: x − 5 ≥ 0 → Domain: x ≥ 5

⚠️ Common Mistake: Confusing (f ∘ g)(x) with (g ∘ f)(x). Always read the notation carefully and apply the inner function first.

5. Inverse Functions

The inverse function f⁻¹(x) reverses the effect of f(x). If f maps x to y, then f⁻¹ maps y back to x. Geometrically, the graph of f⁻¹ is the reflection of f in the line y = x.

How to Find an Inverse Function (Algebraically)

  1. Replace f(x) with y: 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).
Key Relationship: f(f⁻¹(x)) = x and f⁻¹(f(x)) = x

Domain & Range Swap: Domain of f⁻¹ = Range of f Range of f⁻¹ = Domain of f

📘 Worked Example

Find the inverse of f(x) = 3x − 7.

Step 1: y = 3x − 7

Step 2: Swap x and y: x = 3y − 7

Step 3: Rearrange: 3y = x + 7 → y = (x + 7)/3

Result: f⁻¹(x) = (x + 7)/3

Restricted Domain for Many-to-One Functions

For functions like f(x) = x² that are many-to-one, restrict the domain first (typically using the vertex as the boundary) so the function becomes one-to-one. Then find the inverse on this restricted domain. Remember: restricting the domain differently gives a different inverse.

💡 Exam Tip: On IB exams, you will often be given the restricted domain. Check that your inverse function's range matches the restricted domain of the original function.

6. Quadratic Functions & Axis of Symmetry

Quadratic functions have the standard form f(x) = ax² + bx + c (where a ≠ 0) and produce a parabola-shaped graph. The sign of a determines whether the parabola opens upward (a > 0) or downward (a < 0).

Three Forms of a Quadratic

FormFormulaBest Used For
Standard Formf(x) = ax² + bx + cFinding y-intercept (c), discriminant
Vertex Formf(x) = a(x − h)² + kFinding vertex (h, k) directly
Factored Formf(x) = a(x − p)(x − q)Finding x-intercepts (roots) p and q

Key Formulae

Axis of Symmetry (from IB Formula Booklet): x = −b / (2a)

Quadratic Formula — Solutions of ax² + bx + c = 0: x = (−b ± √(b² − 4ac)) / (2a), a ≠ 0

Discriminant: Δ = b² − 4ac

Discriminant Interpretation

  • Δ > 0: Two distinct real roots (parabola crosses x-axis twice)
  • Δ = 0: One repeated real root (parabola touches x-axis once — at the vertex)
  • Δ < 0: No real roots (parabola does not cross x-axis); roots are complex

📘 Worked Example

f(x) = 2x² − 8x + 6. Find the axis of symmetry, vertex, and roots.

Axis of symmetry: x = −(−8)/(2 × 2) = 8/4 = 2

Vertex: f(2) = 2(4) − 8(2) + 6 = 8 − 16 + 6 = −2 → Vertex: (2, −2)

Discriminant: Δ = 64 − 4(2)(6) = 64 − 48 = 16 > 0 → two real roots

Roots: x = (8 ± √16)/4 = (8 ± 4)/4 → x = 3 or x = 1


7. Exponential & Logarithmic Functions

Exponential functions model rapid growth or decay and appear frequently in AI HL modelling problems. Logarithmic functions are their inverses.

Exponential Function

General Form: f(x) = a · bˣ (where a ≠ 0, b > 0, b ≠ 1)

Natural Exponential: f(x) = eˣ

Exponential Growth Model: N(t) = N₀ · eᵏᵗ (k > 0 for growth, k < 0 for decay)

Logarithmic Function

Definition (from Formula Booklet — AHL 1.5): aˣ = b ⟺ x = logₐ(b), where a > 0, b > 0, a ≠ 1

Laws of Logarithms (AHL 1.9): logₐ(xy) = logₐx + logₐy logₐ(x/y) = logₐx − logₐy logₐ(xᵐ) = m · logₐx

Change of Base: logₐ(b) = ln(b) / ln(a)

The graph of y = logₐ(x) has a vertical asymptote at x = 0, passes through (1, 0), and is only defined for x > 0. It is the reflection of y = aˣ in the line y = x.

⚠️ Common Mistake: log(a + b) ≠ log(a) + log(b). The log of a sum cannot be simplified using log laws — only log of a product can.

8. Logistic Function (HL Only)

The logistic function is an HL-only formula that models bounded growth — situations where a quantity grows rapidly at first but levels off at a maximum value known as the carrying capacity (L). It is one of the most important functions in the AI HL modelling context.

Logistic Function (AHL 2.9 — IB Formula Booklet): f(x) = L / (1 + Ce⁻ᵏˣ), where L, k, C > 0

Parameters: L = carrying capacity (upper horizontal asymptote) k = growth rate constant C = constant related to initial conditions

Key Features of the Logistic Curve

FeatureValue / Location
Upper horizontal asymptotey = L (carrying capacity)
Lower horizontal asymptotey = 0
y-interceptf(0) = L / (1 + C)
Point of inflectionWhere f(x) = L/2 (halfway to carrying capacity)
Range0 < f(x) < L

Real-World Applications

  • Population growth limited by food supply or habitat
  • Spread of disease (epidemiological models)
  • Adoption of technology in a market
  • Fish populations in a bounded ecosystem

📘 Worked Example

The population of a town is modelled by f(t) = 50000 / (1 + 24e⁻⁰·³ᵗ), where t is in years.

Carrying capacity: L = 50,000

Initial population (t = 0): f(0) = 50000 / (1 + 24) = 50000/25 = 2,000

Point of inflection: When population = 25,000 (i.e., L/2)

💡 Exam Tip: In Paper 2, you may be asked to find L, C, or k from given data using your GDC regression tool. Always state what each parameter represents in context.

9. Transformations of Functions

Transformations alter the graph of a function systematically. Mastering transformations helps you quickly sketch graphs and interpret function behaviour — a frequent skill in IB AI HL exam questions.

TransformationFormEffect on Graph
Vertical Translationf(x) + aShifts graph up (a > 0) or down (a < 0)
Horizontal Translationf(x − a)Shifts graph right (a > 0) or left (a < 0)
Vertical Stretch/Compressiona · f(x)Stretches vertically if |a| > 1; compresses if 0 < |a| < 1
Horizontal Stretch/Compressionf(ax)Compresses horizontally if |a| > 1; stretches if 0 < |a| < 1
Reflection in x-axis−f(x)Flips graph upside down
Reflection in y-axisf(−x)Flips graph left–right
Reflection in y = xf⁻¹(x)Produces the inverse function graph
⚠️ Common Mistake: Horizontal translations are counterintuitive — f(x − 3) shifts RIGHT by 3, not left. Think of it as the x-value that makes the bracket zero.
💡 GDC Tip: On Paper 2, always use your GDC to verify graph transformations by plotting the original and transformed function side-by-side.

10. Official Formula Booklet Summary – Topic 2

These are all the Topic 2 formulas listed in the IB Math AI HL official formula booklet. You must know what each formula means and when to apply it.

Syllabus RefDescriptionFormula
SL 2.1Equation of a straight liney = mx + c ; ax + by + d = 0 ; y − y₁ = m(x − x₁)
SL 2.1Gradient formulam = (y₂ − y₁)/(x₂ − x₁)
SL 2.6Axis of symmetry of a quadraticx = −b/(2a)
AHL 2.9Logistic function (HL only)f(x) = L / (1 + Ce⁻ᵏˣ), L, k, C > 0
Prior Learning (HL)Quadratic formulax = (−b ± √(b² − 4ac)) / (2a), a ≠ 0
💡 Important: The IB formula booklet gives you these formulas in the exam. However, you still need to know how to apply them correctly, interpret results, and substitute in the right values quickly under exam pressure.

11. Exam Tips & Common Mistakes

Students who score 6s and 7s in IB Math AI HL don't just know the formulas — they apply them accurately under time pressure and present working clearly. Here are the most impactful strategies for Topic 2.

Top 10 Tips for Functions in IB AI HL

  1. Always state the domain and range when sketching a function — marks are often awarded specifically for these.
  2. Show the reflection line y = x on any graph involving inverse functions for full marks.
  3. Label asymptotes explicitly on all exponential, logarithmic, and logistic graphs.
  4. Check function types before finding an inverse — if the function is many-to-one, state a restriction first.
  5. Verify composites by substituting a number. If (f ∘ g)(2) ≠ f(g(2)), you've made an error.
  6. State context when using logistic models. Don't just write L = 50000 — say "the carrying capacity is 50,000 people."
  7. For Paper 1 (no GDC), focus on algebraic manipulation and exact values. Know log laws by heart.
  8. For Paper 2 (GDC allowed), use regression tools to fit logistic and exponential models from data tables.
  9. Check discriminant before finding roots — it saves time to know whether to expect real solutions.
  10. Read transformation notation carefully — f(x − 3) + 2 involves both a horizontal shift AND a vertical shift. Apply each step separately.

Marking Scheme Awareness

IB marking schemes commonly award marks for: (M) Method, (A) Accuracy, (R) Reasoning, and (ft) Follow-through. Even if you make an arithmetic error early on, show all working to collect method marks for subsequent correct steps.

⚠️ Do Not: Skip steps when writing inverse functions or composite functions. Examiners mark each step, and showing "f⁻¹(x) = …" without working risks zero marks even if the answer is correct.

12. Frequently Asked Questions (FAQ)

What is the difference between IB Math AI HL and AA HL in Topic 2: Functions?

IB Math AI HL (Applications and Interpretation) focuses on applied, real-world modelling functions such as the logistic function and regression models. IB Math AA HL (Analysis and Approaches) goes deeper into analytical function theory, including rational functions, odd/even functions, and more complex graph analysis. AI HL emphasises using GDC technology to model real-world scenarios, while AA HL emphasises deeper algebraic and analytical treatment.

Is the logistic function given in the IB AI HL formula booklet?

Yes. The logistic function f(x) = L / (1 + Ce⁻ᵏˣ) is listed in the official IB Math AI HL formula booklet under AHL 2.9. You will have access to this formula in the exam, but you must understand what L, k, and C represent and how to use the GDC to fit logistic models to data.

Can every function have an inverse?

No. Only one-to-one (injective) functions have an inverse on their natural domain. Many-to-one functions like f(x) = x² or f(x) = sin(x) require a domain restriction to make them one-to-one before an inverse can be defined. The horizontal line test is a quick visual check: if any horizontal line crosses the graph more than once, the function is not one-to-one.

How do I find the domain of a composite function f ∘ g?

To find the domain of (f ∘ g)(x): first determine the range of g, then restrict these output values to those that fall within the domain of f. The domain of (f ∘ g) is the set of x-values from the domain of g that produce outputs lying within the domain of f.

What does the axis of symmetry formula give me for a quadratic?

The axis of symmetry formula x = −b/(2a) gives the x-coordinate of the vertex (turning point) of the parabola. Substitute this x-value back into f(x) to find the y-coordinate of the vertex. The vertex is the minimum point if a > 0 and the maximum point if a < 0.

Shares: