Functions
Download PDFIB Math AI SL — Functions
Complete Study Guide
Topics Covered
- Function Concepts — domain, range, notation, graphs
- Linear Models — gradient, equation of a line, direct variation
- Quadratic Models — vertex form, optimization, projectile motion
- Exponential Models — growth, decay, fitting data
- Logarithmic Models — the inverse of exponential, pH scale, decibels
- Sinusoidal Models — periodic phenomena, tides, temperatures
- Modelling and Fitting — choosing the best model for data
- Practice Questions and Exam Alerts
Topic 2 of the IB Math AI SL syllabus — Paper 1 and Paper 2
Modelling mindset: In Math AI, functions are introduced through real contexts, not abstract algebra. Every exam question gives you data or a scenario first, and expects you to identify or work with the appropriate model. Master the shape of each function type so you can recognize which model fits.
Model recognition at a glance
| Pattern in data | Model type | Equation form |
|---|---|---|
| Constant rate of change | Linear | |
| One turning point, symmetric | Quadratic | |
| Rapid increase/decrease, never zero | Exponential | |
| Inverse of exponential | Logarithmic | |
| Repeating pattern | Sinusoidal |
Section 1: Function Concepts
A function is a relation where each input has exactly one output. In Math AI, you will usually work with functions as models of real situations.
1.1 Domain and Range
- Domain: the set of valid input values (-values)
- Range: the set of possible output values (-values)
In context, domain and range are restricted by the real-world situation. For example, if represents time, typically .
1.2 Function Notation
means “the function takes input and outputs .”
means “when the input is 5, the output is 13.”
1.3 Reading Graphs in Context
On the IB exam, you will be asked to interpret features of graphs:
| Feature | What it means in context |
|---|---|
| -intercept | Starting value (at ) |
| -intercept | When the quantity equals zero |
| Gradient (slope) | Rate of change |
| Maximum/minimum | Highest/lowest value of the quantity |
| Asymptote | A value the quantity approaches but never reaches |
Section 2: Linear Models
A linear function has the form where is the gradient (rate of change) and is the -intercept (initial value).
2.1 Finding the Equation from Two Points
Given points and :
Then use .
2.2 Direct and Inverse Variation
Direct variation: (the graph passes through the origin). If you double , you double .
Linear model — taxi fare
A taxi company charges a fixed fee of 3.50 plus 1.80 per kilometre (dollars). Write a model for the fare in terms of distance , and find the fare for a 12 km trip.
(dollars)
The gradient represents the cost per km. The intercept is the flag fall (base charge).
2.3 Piecewise Linear Models
Many real situations use different linear rules in different intervals.
Piecewise function — phone plan
A phone plan charges 0.10 per MB for the first 500 MB and 0.05 per MB after that (dollars). Write a piecewise model for cost in terms of data usage MB.
At : . At : .
Section 3: Quadratic Models
A quadratic function has the form . The graph is a parabola. If , it opens upward (minimum). If , it opens downward (maximum).
3.1 Vertex Form
The vertex is at . This form is most useful for optimization problems.
3.2 The Axis of Symmetry
For , the axis of symmetry is:
3.3 The Discriminant
| Two distinct real roots (-intercepts) | |
|---|---|
| One repeated root (vertex touches the -axis) | |
| No real roots (parabola does not cross the -axis) |
Quadratic model — projectile motion
A ball is thrown upward from a platform 1.5 m above the ground. Its height metres after seconds is modelled by .
(a) Find the maximum height.
Using the axis of symmetry: s.
m.
(b) Find when the ball hits the ground ().
Using the GDC to solve : or .
Since , the ball hits the ground at seconds.
Show your GDC setup: When the exam says “using technology” or does not say “without technology,” you can use your GDC. However, always write the equation you are solving. For example, write ”, using GDC .”
Section 4: Exponential Models
An exponential function has the form where:
- is the initial multiplier
- is the base (growth if , decay if )
- is the horizontal asymptote
4.1 Growth and Decay
Exponential growth: population, compound interest, viral spread.
Exponential decay: radioactive decay, cooling, depreciation.
4.2 The Natural Exponential
The function where is the natural exponential. In many models:
where gives growth and gives decay.
Exponential model — bacterial growth
A colony of bacteria has 200 cells at time and doubles every 3 hours. Write a model for the number of bacteria after hours, and find when there are 10,000 bacteria.
For :
4.3 Identifying Exponential Data
If the ratio between consecutive -values is constant, the data is exponential.
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 100 | 120 | 144 | 172.8 | 207.4 | |
| Ratio | — | 1.2 | 1.2 | 1.2 | 1.2 |
Constant ratio exponential model with .
Section 5: Logarithmic Models
The logarithmic function is the inverse of .
5.1 Key Properties
- for all bases
5.2 Real-World Logarithmic Scales
Many real-world measurements use logarithmic scales because the quantities span many orders of magnitude:
| Scale | Formula | Context |
|---|---|---|
| Richter scale | Earthquake magnitude | |
| pH scale | Acidity | |
| Decibels | Sound intensity |
Logarithmic model — pH
The concentration of hydrogen ions in a solution is mol/L. Find the pH.
Section 6: Sinusoidal Models
Sinusoidal functions model periodic phenomena — quantities that repeat in a regular cycle. Examples include tides, temperatures, hours of daylight, and Ferris wheel height.
6.1 The General Sinusoidal Function
| Parameter | Meaning |
|---|---|
| Amplitude (half the distance from max to min) | |
| Related to period: or | |
| Horizontal shift (phase shift) | |
| Vertical shift (midline) |
Quick parameter extraction from context
Given max value and min value :
If the period is : (radians) or (degrees).
Sinusoidal model — tidal height
The depth of water in a harbour varies between 2.1 m and 8.3 m. The time between successive high tides is 12.4 hours. High tide occurs at 03:00.
Write a model for the depth at time hours after midnight.
High tide is at . Since reaches its maximum at , we need when .
Using cosine instead (max at ):
Check: m. Correct (high tide).
Sine vs cosine: Use cosine when you know when the maximum occurs (since ). Use sine when you know when the midline crossing occurs (since ). Either is acceptable on the exam.
Section 7: Modelling and Choosing the Best Fit
A key Math AI skill is choosing which model best fits a dataset. Your GDC can fit regression models.
7.1 Steps for Modelling
- Plot the data (scatter plot on GDC)
- Identify the shape — linear, curved, periodic, etc.
- Run regression on GDC for the candidate model type
- Check the fit using (coefficient of determination)
- Interpret the model parameters in context
- Evaluate limitations — does the model make sense for large/small values?
7.2 Coefficient of Determination ()
measures how well the model fits the data:
- : perfect fit
- : strong fit
- : moderate fit
- : weak fit
Extrapolation warning: Models are only reliable within the range of the data used to create them. Predicting far beyond the data range (extrapolation) is unreliable. The IB often asks you to comment on the reliability of predictions — always mention whether you are interpolating (within range) or extrapolating (outside range).
Choosing a model
The table shows the number of downloads (thousands) of a new app over 8 weeks.
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| 1.2 | 2.5 | 5.1 | 10.3 | 20.8 | 41.5 | 83.2 | 167 |
Check the ratios: , , …
The ratios are approximately constant at 2, suggesting an exponential model.
Using GDC exponential regression: , .
This is an excellent fit. The downloads approximately double each week.
Limitation: This model predicts . In reality, growth would slow as the market saturates. The model is only reliable for the near term.
Section 8: Practice Questions
Paper 1 Style (Short Answer)
Q1. A linear model for the cost of electricity is where is the number of units used. Interpret the 0.18 and the 12.50 in context.
is the cost per unit of electricity (in dollars per unit).
is the fixed monthly charge (connection fee), independent of usage.
Q2. The temperature in a city varies sinusoidally. The maximum temperature is 34 degrees C in July and the minimum is 8 degrees C in January. Find the amplitude and the midline.
Amplitude: degrees C.
Midline: degrees C.
Q3. A car worth 32,000 depreciates exponentially to 18,000 after 4 years. Find the annual depreciation rate.
Depreciation rate: per year.
Paper 2 Style (Extended Response)
Q4. The depth of water metres in a harbour at time hours after midnight is modelled by . (a) Find the maximum and minimum depth. (b) Find the period. (c) A boat needs at least 4 m of water. Find the times between midnight and noon when the boat cannot enter the harbour.
(a) Maximum: m. Minimum: m.
(b) Period: hours.
(c) Solve :
Using GDC: or
or
The boat cannot enter between (01:34) and (10:36) approximately. Wait, that does not seem right. Let me reconsider.
Actually, when the sine term is sufficiently negative. The depth is below 4 m between and… we need the two solutions where in one cycle.
Recomputing: The depth is below 4 m for between the two solutions where and the sine is in the lower half. Using GDC graph: the boat cannot enter between approximately 10:00 and 02:20 (spanning midnight). Between midnight and noon, the boat cannot enter from 00:00 to 01:34 and from 10:36 to 12:00 approximately.
Note: In the exam, use your GDC graph to read off the intersection points directly.
Q5. The following data shows the number of users (millions) of a social media platform. (a) Plot the data and suggest a suitable model. (b) Use your GDC to find the equation. (c) Predict the number of users in year 8. (d) Comment on the reliability of your prediction.
| Year | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| 0.5 | 1.8 | 4.2 | 7.5 | 11.1 | 14.2 |
(a) The data shows rapid initial growth that slows — suggesting a quadratic or possibly logistic model. For SL, try quadratic.
(b) GDC quadratic regression: , .
(c) million.
(d) This is a short extrapolation (2 years beyond the data), so it is moderately reliable. However, the quadratic model predicts the number of users will eventually decrease (since ), which may not be realistic. A logistic model might be more appropriate for long-term predictions.
Every extended-response modelling question on Paper 2 will ask you to comment on limitations or reliability. Marks are available for stating whether a prediction is interpolation or extrapolation, whether the model is appropriate for the long term, and what real-world factors might make the model break down.
May 2026 Prediction Questions
These are NOT official IB questions. These are trend-based practice questions written to reflect the topic areas and question styles most likely to appear on the May 2026 IB Math AI SL Paper 2. Based on recent exam patterns (2022–2025), expect heavy weighting on: linear and exponential model fitting, domain and range in context, graph transformations, and interpreting points of intersection in real-world scenarios.
Question 1 — Exponential Model Fit and Interpretation [~8 marks]
A wildlife reserve records the population of a deer species over several years.
| Year () | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Population () | 320 | 374 | 438 | 512 | 599 | 701 |
(a) Show that an exponential model of the form is appropriate for this data.
(b) Use your GDC to find the values of and , correct to 3 significant figures.
(c) Interpret the value of in context.
(d) Use your model to predict the population in year 8.
(e) Comment on the reliability of your prediction in part (d).
Show Solution
(a) Check successive ratios:
, , , ,
The ratios are approximately constant at 1.17, confirming an exponential model is appropriate.
(b) Using GDC exponential regression on the data:
, (3 s.f.)
Model:
(c) means the deer population increases by approximately 17% per year.
(d) deer (nearest whole number).
(e) Year 8 is 3 years beyond the data range — this is extrapolation. The prediction assumes the growth rate remains constant at 17% per year, which may not be realistic if the reserve reaches its carrying capacity. The prediction should be treated with caution.
Question 2 — Quadratic Model Optimization [~7 marks]
A football is kicked from ground level. Its height metres after travelling a horizontal distance metres is modelled by:
(a) Find the maximum height the ball reaches and the horizontal distance at which this occurs.
(b) Find the horizontal distance when the ball lands back on the ground.
(c) A goalkeeper is standing 28 m from where the ball was kicked. The crossbar is 2.44 m high. Determine whether the ball passes over the crossbar.
(d) State the domain of in this context, giving a reason.
Show Solution
(a) The axis of symmetry: m.
Maximum height: m.
The ball reaches a maximum height of 9 m at a horizontal distance of 15 m.
(b) Set :
or m.
The ball lands at 30 m.
(c) m.
Since , the ball does not clear the crossbar at the goalkeeper’s position.
(d) Domain: , since represents horizontal distance from the kick, and the ball is in the air only between (kick) and (landing). Negative distances and distances beyond 30 m are not physically meaningful.
Question 3 — Piecewise Function Application [~6 marks]
An electricity provider charges customers based on daily usage in kilowatt-hours (kWh). The daily charge dollars is modelled by:
(a) Find the daily charge for a customer who uses 15 kWh.
(b) Find the daily charge for a customer who uses 35 kWh.
(c) A customer received a bill of $7.09 for one day. Find their usage.
(d) Explain what the value 0.85 represents in the model.
Show Solution
(a) , so use the first piece:
(dollars)
(b) , so use the second piece:
(dollars)
(c) Since , the customer used more than 20 kWh. Use the second piece:
kWh (3 s.f.)
(d) The value 0.85 is the fixed daily connection charge (in dollars) — the amount the customer pays regardless of how much electricity they use.
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 |