IB SL

Functions

Download PDF

IB Math AI SL — Functions

Complete Study Guide

Topics Covered

  1. Function Concepts — domain, range, notation, graphs
  2. Linear Models — gradient, equation of a line, direct variation
  3. Quadratic Models — vertex form, optimization, projectile motion
  4. Exponential Models — growth, decay, fitting data
  5. Logarithmic Models — the inverse of exponential, pH scale, decibels
  6. Sinusoidal Models — periodic phenomena, tides, temperatures
  7. Modelling and Fitting — choosing the best model for data
  8. 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 dataModel typeEquation form
Constant rate of changeLineary=mx+cy = mx + c
One turning point, symmetricQuadraticy=a(xh)2+ky = a(x-h)^2 + k
Rapid increase/decrease, never zeroExponentialy=kax+cy = ka^x + c
Inverse of exponentialLogarithmicy=alnx+cy = a \ln x + c
Repeating patternSinusoidaly=asin(b(xc))+dy = a\sin(b(x-c)) + d

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 (xx-values)
  • Range: the set of possible output values (yy-values)

In context, domain and range are restricted by the real-world situation. For example, if tt represents time, typically t0t \ge 0.

1.2 Function Notation

f(x)=2x+3f(x) = 2x + 3 means “the function ff takes input xx and outputs 2x+32x + 3.”

f(5)=2(5)+3=13f(5) = 2(5) + 3 = 13 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:

FeatureWhat it means in context
yy-interceptStarting value (at x=0x = 0)
xx-interceptWhen the quantity equals zero
Gradient (slope)Rate of change
Maximum/minimumHighest/lowest value of the quantity
AsymptoteA value the quantity approaches but never reaches

Section 2: Linear Models

A linear function has the form y=mx+cy = mx + c where mm is the gradient (rate of change) and cc is the yy-intercept (initial value).

2.1 Finding the Equation from Two Points

Given points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

Then use yy1=m(xx1)y - y_1 = m(x - x_1).

2.2 Direct and Inverse Variation

Direct variation: y=kxy = kx (the graph passes through the origin). If you double xx, you double yy.

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 FF in terms of distance dd, and find the fare for a 12 km trip.

F(d)=1.80d+3.50F(d) = 1.80d + 3.50

F(12)=1.80(12)+3.50=21.60+3.50=25.10F(12) = 1.80(12) + 3.50 = 21.60 + 3.50 = 25.10 (dollars)

The gradient m=1.80m = 1.80 represents the cost per km. The intercept c=3.50c = 3.50 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 CC in terms of data usage dd MB.

C(d)={0.10dif 0d50050+0.05(d500)if d>500C(d) = \begin{cases} 0.10d & \text{if } 0 \le d \le 500 \\ 50 + 0.05(d - 500) & \text{if } d > 500 \end{cases}

At d=500d = 500: C=50C = 50. At d=800d = 800: C=50+0.05(300)=65C = 50 + 0.05(300) = 65.


Section 3: Quadratic Models

A quadratic function has the form y=ax2+bx+cy = ax^2 + bx + c. The graph is a parabola. If a>0a > 0, it opens upward (minimum). If a<0a < 0, it opens downward (maximum).

3.1 Vertex Form

y=a(xh)2+ky = a(x - h)^2 + k

The vertex is at (h,k)(h, k). This form is most useful for optimization problems.

3.2 The Axis of Symmetry

For y=ax2+bx+cy = ax^2 + bx + c, the axis of symmetry is:

x=b2ax = -\frac{b}{2a}

3.3 The Discriminant

Δ=b24ac\Delta = b^2 - 4ac

Δ>0\Delta > 0Two distinct real roots (xx-intercepts)
Δ=0\Delta = 0One repeated root (vertex touches the xx-axis)
Δ<0\Delta < 0No real roots (parabola does not cross the xx-axis)

Quadratic model — projectile motion

A ball is thrown upward from a platform 1.5 m above the ground. Its height hh metres after tt seconds is modelled by h(t)=4.9t2+12t+1.5h(t) = -4.9t^2 + 12t + 1.5.

(a) Find the maximum height.

Using the axis of symmetry: t=122(4.9)=129.8=1.224t = -\dfrac{12}{2(-4.9)} = \dfrac{12}{9.8} = 1.224 s.

h(1.224)=4.9(1.224)2+12(1.224)+1.5=7.34+14.69+1.5=8.85h(1.224) = -4.9(1.224)^2 + 12(1.224) + 1.5 = -7.34 + 14.69 + 1.5 = 8.85 m.

(b) Find when the ball hits the ground (h=0h = 0).

Using the GDC to solve 4.9t2+12t+1.5=0-4.9t^2 + 12t + 1.5 = 0: t=0.120t = -0.120 or t=2.57t = 2.57.

Since t0t \ge 0, the ball hits the ground at t=2.57t = 2.57 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 ”4.9t2+12t+1.5=0-4.9t^2 + 12t + 1.5 = 0, using GDC t=2.57t = 2.57.”


Section 4: Exponential Models

An exponential function has the form y=kax+cy = ka^x + c where:

  • kk is the initial multiplier
  • aa is the base (growth if a>1a > 1, decay if 0<a<10 < a < 1)
  • cc is the horizontal asymptote

4.1 Growth and Decay

Exponential growth: population, compound interest, viral spread.

P(t)=P0at,a>1P(t) = P_0 \cdot a^t, \quad a > 1

Exponential decay: radioactive decay, cooling, depreciation.

Q(t)=Q0at,0<a<1Q(t) = Q_0 \cdot a^t, \quad 0 < a < 1

4.2 The Natural Exponential

The function y=exy = e^x where e2.718e \approx 2.718 is the natural exponential. In many models:

P(t)=P0ertP(t) = P_0 e^{rt}

where r>0r > 0 gives growth and r<0r < 0 gives decay.

Exponential model — bacterial growth

A colony of bacteria has 200 cells at time t=0t = 0 and doubles every 3 hours. Write a model for the number of bacteria NN after tt hours, and find when there are 10,000 bacteria.

N(t)=200×2t/3N(t) = 200 \times 2^{t/3}

For N=10000N = 10000:

200×2t/3=10000200 \times 2^{t/3} = 10000 2t/3=502^{t/3} = 50 t3=log250=ln50ln2=5.644\frac{t}{3} = \log_2 50 = \frac{\ln 50}{\ln 2} = 5.644 t=16.9 hourst = 16.9 \text{ hours}

4.3 Identifying Exponential Data

If the ratio between consecutive yy-values is constant, the data is exponential.

xx01234
yy100120144172.8207.4
Ratio1.21.21.21.2

Constant ratio     \implies exponential model with a=1.2a = 1.2.


Section 5: Logarithmic Models

The logarithmic function y=logaxy = \log_a x is the inverse of y=axy = a^x.

5.1 Key Properties

  • loga1=0\log_a 1 = 0 for all bases aa
  • logaa=1\log_a a = 1
  • loga(xy)=logax+logay\log_a(xy) = \log_a x + \log_a y
  • loga(xn)=nlogax\log_a(x^n) = n \log_a x

5.2 Real-World Logarithmic Scales

Many real-world measurements use logarithmic scales because the quantities span many orders of magnitude:

ScaleFormulaContext
Richter scaleM=log10(AA0)M = \log_{10}\left(\dfrac{A}{A_0}\right)Earthquake magnitude
pH scalepH=log10[H+]\text{pH} = -\log_{10}[\text{H}^+]Acidity
DecibelsL=10log10(II0)L = 10\log_{10}\left(\dfrac{I}{I_0}\right)Sound intensity

Logarithmic model — pH

The concentration of hydrogen ions in a solution is [H+]=3.2×104[\text{H}^+] = 3.2 \times 10^{-4} mol/L. Find the pH.

pH=log10(3.2×104)=(log103.2+log10104)=(0.5054)=3.49\text{pH} = -\log_{10}(3.2 \times 10^{-4}) = -(\log_{10} 3.2 + \log_{10} 10^{-4}) = -(0.505 - 4) = 3.49


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

y=asin(b(xc))+dy = a\sin(b(x - c)) + d

ParameterMeaning
aaAmplitude (half the distance from max to min)
bbRelated to period: period=2πb\text{period} = \dfrac{2\pi}{b} or 360b\dfrac{360^\circ}{b}
ccHorizontal shift (phase shift)
ddVertical shift (midline)

Quick parameter extraction from context

Given max value MM and min value mm:

a=Mm2,d=M+m2a = \frac{M - m}{2}, \qquad d = \frac{M + m}{2}

If the period is TT: b=2πTb = \dfrac{2\pi}{T} (radians) or b=360Tb = \dfrac{360}{T} (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 DD at time tt hours after midnight.

a=8.32.12=3.1a = \dfrac{8.3 - 2.1}{2} = 3.1

d=8.3+2.12=5.2d = \dfrac{8.3 + 2.1}{2} = 5.2

b=2π12.4=0.5067b = \dfrac{2\pi}{12.4} = 0.5067

High tide is at t=3t = 3. Since sin\sin reaches its maximum at π2\frac{\pi}{2}, we need b(tc)=π2b(t - c) = \frac{\pi}{2} when t=3t = 3.

Using cosine instead (max at t=ct = c): D(t)=3.1cos(0.507(t3))+5.2D(t) = 3.1\cos(0.507(t - 3)) + 5.2

Check: D(3)=3.1cos(0)+5.2=3.1+5.2=8.3D(3) = 3.1\cos(0) + 5.2 = 3.1 + 5.2 = 8.3 m. Correct (high tide).

Sine vs cosine: Use cosine when you know when the maximum occurs (since cos(0)=1\cos(0) = 1). Use sine when you know when the midline crossing occurs (since sin(0)=0\sin(0) = 0). 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

  1. Plot the data (scatter plot on GDC)
  2. Identify the shape — linear, curved, periodic, etc.
  3. Run regression on GDC for the candidate model type
  4. Check the fit using R2R^2 (coefficient of determination)
  5. Interpret the model parameters in context
  6. Evaluate limitations — does the model make sense for large/small values?

7.2 Coefficient of Determination (R2R^2)

R2R^2 measures how well the model fits the data:

  • R2=1R^2 = 1: perfect fit
  • R20.9R^2 \ge 0.9: strong fit
  • R20.7R^2 \ge 0.7: moderate fit
  • R2<0.7R^2 < 0.7: 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 DD (thousands) of a new app over 8 weeks.

Week tt12345678
DD1.22.55.110.320.841.583.2167

Check the ratios: 2.51.2=2.08\frac{2.5}{1.2} = 2.08, 5.12.5=2.04\frac{5.1}{2.5} = 2.04, 10.35.1=2.02\frac{10.3}{5.1} = 2.02

The ratios are approximately constant at 2, suggesting an exponential model.

Using GDC exponential regression: D=0.598×2.01tD = 0.598 \times 2.01^t, R2=0.9999R^2 = 0.9999.

This is an excellent fit. The downloads approximately double each week.

Limitation: This model predicts D(20)=0.598×2.0120=660000D(20) = 0.598 \times 2.01^{20} = 660\,000. 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 C=0.18u+12.50C = 0.18u + 12.50 where uu is the number of units used. Interpret the 0.18 and the 12.50 in context.

0.180.18 is the cost per unit of electricity (in dollars per unit).

12.5012.50 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: a=3482=13a = \dfrac{34 - 8}{2} = 13 degrees C.

Midline: d=34+82=21d = \dfrac{34 + 8}{2} = 21 degrees C.

Q3. A car worth 32,000 depreciates exponentially to 18,000 after 4 years. Find the annual depreciation rate.

18000=32000×r418000 = 32000 \times r^4

r4=1800032000=0.5625r^4 = \dfrac{18000}{32000} = 0.5625

r=0.56250.25=0.866r = 0.5625^{0.25} = 0.866

Depreciation rate: 10.866=0.134=13.4%1 - 0.866 = 0.134 = 13.4\% per year.

Paper 2 Style (Extended Response)

Q4. The depth of water DD metres in a harbour at time tt hours after midnight is modelled by D(t)=4.2sin(0.507(t3))+6.8D(t) = 4.2\sin(0.507(t - 3)) + 6.8. (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: 6.8+4.2=11.06.8 + 4.2 = 11.0 m. Minimum: 6.84.2=2.66.8 - 4.2 = 2.6 m.

(b) Period: 2π0.507=12.4\dfrac{2\pi}{0.507} = 12.4 hours.

(c) Solve D(t)=4D(t) = 4:

4.2sin(0.507(t3))+6.8=44.2\sin(0.507(t - 3)) + 6.8 = 4

sin(0.507(t3))=2.84.2=0.6667\sin(0.507(t - 3)) = \dfrac{-2.8}{4.2} = -0.6667

Using GDC: 0.507(t3)=0.72970.507(t - 3) = -0.7297 or 0.507(t3)=π+0.7297=3.8710.507(t - 3) = \pi + 0.7297 = 3.871

t=3+0.72970.507=1.56t = 3 + \dfrac{-0.7297}{0.507} = 1.56 or t=3+3.8710.507=10.6t = 3 + \dfrac{3.871}{0.507} = 10.6

The boat cannot enter between t=1.56t = 1.56 (01:34) and t=10.6t = 10.6 (10:36) approximately. Wait, that does not seem right. Let me reconsider.

Actually, D<4D < 4 when the sine term is sufficiently negative. The depth is below 4 m between t=1.56t = 1.56 and… we need the two solutions where D=4D = 4 in one cycle.

Recomputing: The depth is below 4 m for tt between the two solutions where D(t)=4D(t) = 4 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 NN (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 tt123456
NN0.51.84.27.511.114.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: N=0.196t2+3.73t2.86N = -0.196t^2 + 3.73t - 2.86, R2=0.996R^2 = 0.996.

(c) N(8)=0.196(64)+3.73(8)2.86=12.54+29.842.86=14.4N(8) = -0.196(64) + 3.73(8) - 2.86 = -12.54 + 29.84 - 2.86 = 14.4 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 a<0a < 0), 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 (tt)012345
Population (PP)320374438512599701

(a) Show that an exponential model of the form P=a×btP = a \times b^t is appropriate for this data.

(b) Use your GDC to find the values of aa and bb, correct to 3 significant figures.

(c) Interpret the value of bb 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:

374320=1.169\dfrac{374}{320} = 1.169, 438374=1.171\dfrac{438}{374} = 1.171, 512438=1.169\dfrac{512}{438} = 1.169, 599512=1.170\dfrac{599}{512} = 1.170, 701599=1.170\dfrac{701}{599} = 1.170

The ratios are approximately constant at 1.17, confirming an exponential model is appropriate.

(b) Using GDC exponential regression on the data:

a=320a = 320, b=1.17b = 1.17 (3 s.f.)

Model: P=320×1.17tP = 320 \times 1.17^t

(c) b=1.17b = 1.17 means the deer population increases by approximately 17% per year.

(d) P(8)=320×1.178=320×3.511=1124P(8) = 320 \times 1.17^8 = 320 \times 3.511 = 1124 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 hh metres after travelling a horizontal distance xx metres is modelled by:

h(x)=0.04x2+1.2xh(x) = -0.04x^2 + 1.2x

(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 h(x)h(x) in this context, giving a reason.

Show Solution

(a) The axis of symmetry: x=1.22(0.04)=1.20.08=15x = -\dfrac{1.2}{2(-0.04)} = \dfrac{1.2}{0.08} = 15 m.

Maximum height: h(15)=0.04(225)+1.2(15)=9+18=9h(15) = -0.04(225) + 1.2(15) = -9 + 18 = 9 m.

The ball reaches a maximum height of 9 m at a horizontal distance of 15 m.

(b) Set h(x)=0h(x) = 0:

0.04x2+1.2x=0-0.04x^2 + 1.2x = 0

x(0.04x+1.2)=0x(-0.04x + 1.2) = 0

x=0x = 0 or x=1.20.04=30x = \dfrac{1.2}{0.04} = 30 m.

The ball lands at 30 m.

(c) h(28)=0.04(784)+1.2(28)=31.36+33.6=2.24h(28) = -0.04(784) + 1.2(28) = -31.36 + 33.6 = 2.24 m.

Since 2.24<2.442.24 < 2.44, the ball does not clear the crossbar at the goalkeeper’s position.

(d) Domain: 0x300 \le x \le 30, since xx represents horizontal distance from the kick, and the ball is in the air only between x=0x = 0 (kick) and x=30x = 30 (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 CC dollars is modelled by:

C(u)={0.14u+0.85if 0u200.22(u20)+3.65if u>20C(u) = \begin{cases} 0.14u + 0.85 & \text{if } 0 \le u \le 20 \\ 0.22(u - 20) + 3.65 & \text{if } u > 20 \end{cases}

(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) u=1520u = 15 \le 20, so use the first piece:

C(15)=0.14(15)+0.85=2.10+0.85=2.95C(15) = 0.14(15) + 0.85 = 2.10 + 0.85 = 2.95 (dollars)

(b) u=35>20u = 35 > 20, so use the second piece:

C(35)=0.22(3520)+3.65=0.22(15)+3.65=3.30+3.65=6.95C(35) = 0.22(35 - 20) + 3.65 = 0.22(15) + 3.65 = 3.30 + 3.65 = 6.95 (dollars)

(c) Since 6.95<7.096.95 < 7.09, the customer used more than 20 kWh. Use the second piece:

0.22(u20)+3.65=7.090.22(u - 20) + 3.65 = 7.09

0.22(u20)=3.440.22(u - 20) = 3.44

u20=3.440.22=15.636u - 20 = \dfrac{3.44}{0.22} = 15.6\overline{36}

u=35.6u = 35.6 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

GIVENz = r(cosθ + i sinθ) = r cis θ
GIVENz = re (Euler form)
MEMORISE|z| = √(a² + b²)
MEMORISEarg(z) — sketch point, use quadrant formula

Polar Multiplication & Division

GIVENz&sub1;z&sub2; = r&sub1;r&sub2; cis(θ&sub1; + θ&sub2;)
GIVENz&sub1;/z&sub2; = (r&sub1;/r&sub2;) cis(θ&sub1; − θ&sub2;)

De Moivre's Theorem

GIVEN(r cis θ)n = rn cis(nθ)
MEMORISEz + 1/z = 2cosθ (when |z|=1)
MEMORISEz − 1/z = 2i sinθ (when |z|=1)

nth Roots

GIVENw1/n = r1/n cis((θ + 2πk)/n), k=0..n-1
MEMORISESum of nth roots of unity = 0
MEMORISE1 + ω + ω² = 0 (cube roots)

Conjugate & Arithmetic

MEMORISEz* = a − bi
MEMORISEz · z* = |z|² (always real)
MEMORISEz + z* = 2Re(z)
MEMORISEz − z* = 2i Im(z)

Loci

MEMORISE|z − a| = r → Circle, centre a, radius r
MEMORISE|z − a| = |z − b| → Perpendicular bisector
MEMORISEarg(z − a) = θ → Ray from a

Vieta's Formulas

MEMORISEz² + az + b = 0: sum = −a, product = b
MEMORISEConjugate root theorem: real coeff → roots come in conjugate pairs