Functions (AI HL) — IB Math AI HL AI HL Study Guide
For: IB Math AI HL candidates sitting IB Math: Applications & Interpretation HL.
Covers: standard linear/quadratic/exponential/logarithmic/sinusoidal models, piecewise functions, composite and inverse functions in applied contexts, and optimisation for real-world function modelling.
You should already know: IGCSE / pre-DP math; comfort with applied problems and tech.
A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the IB Math AI HL style for educational use. They are not reproductions of past IBO papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official IBO mark schemes for grading conventions.
1. What Is Functions (AI HL)?
Functions are mathematical relationships that map every input value from a defined domain to exactly one output value in a corresponding range. For IB Math AI HL, functions are the primary tool for modelling real-world phenomena, from population growth and corporate profit to periodic tide patterns and pharmaceutical decay. You will see them tested across all three papers, often in 10+ mark applied questions that require you to select, adjust, and interpret models for given contexts. Standard notation uses to denote the output of function for input , and functions are often referred to as mappings or mathematical models in exam wording.
2. Linear, quadratic, exp, log, sinusoidal models
These five core function types make up 90% of the modelling questions you will encounter on the exam, each suited to a specific type of real-world pattern:
- Linear model: , where is the constant rate of change and is the initial value. Used for scenarios with fixed per-unit change, e.g., hourly wage, constant speed travel.
- Quadratic model: , with a single turning point (vertex) at . Used for projectile motion, profit functions, and area optimisation, with a maximum if and minimum if .
- Exponential model: , where is the initial value and is the percentage growth/decay rate per unit . Used for population growth, compound interest, and radioactive decay.
- Logarithmic model: , the inverse of the exponential function. Used for scaling phenomena like pH levels, decibel ratings, and earthquake magnitude.
- Sinusoidal model: , where = amplitude, period = , = horizontal phase shift, and = vertical midline. Used for periodic patterns like tides, seasonal temperature, and circular motion.
Worked Example: A small business has 1200 customers at the start of 2023, growing at a fixed 4.5% annual rate. What year will the business reach 2500 customers? Use the exponential model , where = years after 2023. Set equal to 2500: The business will reach 2500 customers in 2023 + 17 = 2040.
3. Piecewise functions
Piecewise functions are defined by multiple separate sub-functions, each applying to a specific interval of the input domain. They are used for scenarios where the relationship between input and output changes at a threshold value, such as tiered pricing, overtime pay, or distance-time graphs with changes in speed. When evaluating piecewise functions, always first identify which interval your input falls into before selecting the correct sub-function to use.
Worked Example: A theme park ticket pricing scheme is as follows: children under 12 pay 35, and seniors aged 65 or over pay P(a)a$ is age in years, and calculate the total cost for a family with two children aged 8 and 10, two adults aged 38 and 41, and one senior aged 72. The piecewise function is: $$P(a) = \begin{cases} 15 & 0 < a < 12 \ 35 & 12 \leq a < 65 \ 20 & a \geq 65 \end{cases}$$ Total cost = . Exam tip: Examiners often ask you to evaluate piecewise functions at interval boundaries (e.g., in this example) to test that you select the correct sub-function.
4. Composite and inverse functions in context
Composite functions
A composite function applies the inner function to the input first, then uses the output of as the input for the outer function . Composite functions are used for multi-step conversions, e.g., converting currency first, then calculating import tax for an international purchase.
Inverse functions
An inverse function if and only if , and reverses the input and output of the original function. In context, inverse functions let you solve for the input required to get a specific target output, e.g., calculating how many units you can produce for a fixed budget given a cost function. Note that only one-to-one functions have valid inverses, so you will often need to restrict the domain of the original function to match the context (e.g., only positive time values for projectile motion).
Worked Example: Let convert British pounds to euros, and calculate the total cost of an item in euros including 8% import tax. (a) Find the composite function and explain what it represents, (b) If you have a budget of £300, what is the maximum pre-tax price in euros you can afford? (a) Substitute into : . This function gives the total cost of an item in euros for a given price in pounds including import tax. (b) First, find the inverse of the cost function : solve for to get . Convert £300 to euros: EUR. Max pre-tax price = EUR.
5. Optimisation in modelling
Optimisation is the process of finding the maximum or minimum value of a function for a given real-world context, one of the most frequently tested high-mark skills in AI HL functions. For basic models:
- For quadratic functions, the vertex is the global maximum or minimum.
- For differentiable non-quadratic functions, find critical points by setting the first derivative equal to zero, then confirm if it is a max or min using the second derivative test.
- For piecewise functions, always evaluate the function at all critical points and the boundaries of the domain, as the global max/min may lie at a threshold value. You are permitted to use your GDC to find turning points for complex functions on Paper 2 and 3, but you must show your working to demonstrate you selected the correct domain and interpreted the output correctly.
Worked Example: A manufacturer produces cardboard boxes with a square base, and the total surface area of each box is fixed at 600 cm². Find the maximum possible volume of the box. Let = side length of the square base, = height of the box. Surface area: . Rearrange to isolate : . Volume function: . Domain: and cm. Find critical points: cm. Second derivative test: , so , so it is a maximum. Maximum volume: cm³.
6. Common Pitfalls (and how to avoid them)
- Wrong move: Using a linear model for exponential growth/decay problems. Why: Students confuse fixed per-unit change (linear) with fixed percentage change (exponential). Correct move: If the problem says "grows by 20 units per year" use linear, if "grows by 2% per year" use exponential.
- Wrong move: Forgetting to restrict the domain of inverse functions to make them one-to-one. Why: Students assume all functions have inverses without checking context. Correct move: For quadratic or sinusoidal functions, restrict the domain to the relevant interval (e.g., time from launch to landing for projectile motion) before calculating the inverse.
- **Wrong move: Applying the wrong sub-function when evaluating piecewise functions at interval boundaries. Why: Students rush and select the first interval they see. Correct move: Circle the interval that includes your input value first, e.g., for age 12 in the theme park ticket example, use the adult sub-function, not the child sub-function.
- Wrong move: Mixing up the order of composite functions, using instead of . Why: Students confuse inner and outer functions. Correct move: Map the context to the order of operations: if you convert currency first then calculate tax, the currency conversion is the inner function.
- Wrong move: Forgetting to check domain boundary values when optimising. Why: Students only look for turning points, but global maxima/minima often lie at the edges of the valid domain. Correct move: List all critical points (turning points + domain boundaries) and evaluate the function at each to find the global max/min.
7. Practice Questions (IB Math AI HL Style)
Question 1
The height of water in a harbour over a 24-hour period follows a sinusoidal model. Low tide of 1.2 m occurs at 3 AM, and high tide of 5.8 m occurs at 9 AM. (a) Write a sinusoidal function where is hours after midnight. (b) Find the height of the water at 1 PM. (c) A boat can only enter the harbour when the water height is at least 4 m. Find all time intervals in a 24-hour period when the boat can enter.
Solution
(a) Midline m, amplitude m, period = 12 hours, so . High tide at , so use a cosine function with phase shift 9: (b) At (1 PM): (c) Solve : The boat can enter between 6:25 AM and 11:35 AM, and 6:25 PM and 11:35 PM.
Question 2
A freelance writer charges the following rates for blog posts: first 500 words cost 0.06, any word over 2000 costs $0.04. (a) Write the piecewise function for cost where is the number of words. (b) Calculate the cost of a 2800 word blog post. (c) Find the inverse function for the interval , and explain what it represents.
Solution
(a) $$C(w) = \begin{cases} 40 & 0 < w \leq 500 \ 40 + 0.06(w-500) & 500 < w \leq 2000 \ 40 + 0.061500 + 0.04(w-2000) & w > 2000 \end{cases}$$ Simplified: second line = , third line = (b) falls in the third interval: $0.042800 +50 = 112 +50 = $162$ (c) Solve for : . This function gives the maximum number of words you can order for a budget between 130 (the cost of a 2000 word post). For example, a budget of \frac{90}{0.06} = 1500$ words.
Question 3
A café sells 120 muffins per day at 0.25 increase in price, they sell 8 fewer muffins per day. (a) Write the daily revenue function where is the price of a muffin. (b) Find the price that maximises daily revenue, and the maximum revenue. (c) Find the range of prices that give a daily revenue of at least $370.
Solution
(a) Let = number of p = 3 + 0.25n120 -8nn = \frac{p-3}{0.25} = 4p -12q = 120 -8*(4p -12) = 120 -32p +96 = 216 -32pR(p) = pq = p(216 -32p) = -32p^2 +216p$. (b) Vertex at . The optimal price is (rounded to nearest cent). Maximum revenue: . (c) Solve : . Roots at and . The price range is to .
8. Quick Reference Cheatsheet
| Model Type | Formula | Key Properties | Use Case |
|---|---|---|---|
| Linear | = gradient, = y-intercept | Constant per-unit change | |
| Quadratic | Vertex at , max if , min if | Projectile motion, profit | |
| Exponential | = initial value, = percentage rate | Growth/decay, compound interest | |
| Sinusoidal | Amplitude , period $\frac{2\pi}{ | B | |
| Composite function | Apply inner function first | Multi-step conversions | |
| Inverse function | Reverses input/output | Solve for input for target output | |
| Optimisation | N/A | Evaluate at turning points + domain boundaries | Find max/min values for context |
9. What's Next
Functions are the foundational building block for almost all remaining topics in IB Math AI HL: you will use them to model probability distributions, calculate derivatives and integrals for calculus applications, analyse time series data, and solve optimisation problems for operations research topics like linear programming. Mastery of function modelling is also required for your internal assessment, where you will apply these concepts to a real-world research question of your choice, so solidifying these skills now will save you significant time later in the course.
If you have any questions about function notation, model selection, or optimisation steps, you can ask Ollie for step-by-step explanations or extra practice problems at any time on the homepage. You can also move on to our study guides for differential calculus or statistical modelling next, as both rely heavily on the function concepts covered in this guide.