James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI SL › Functions › Functions & graphs

Functions & graphing with technology

Function notation, domain and range, and inverses, then the GDC skills that AI SL depends on: graphing with a sensible window, and finding zeros, maximum and minimum points, asymptotes and intersections. Solving an equation graphically works for equations you could never solve by hand.

SL 2.2–2.4Paper 1Paper 2GDC allowed≈ 60 min to work through
Before you start: substituting into a formula (Before you start › Formulae) and graphing lines (Straight lines).

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Use function notation, such as f(3) and solving f(x)=7SL 2.2
  • State the domain and range of a function, including on a restricted domainSL 2.2
  • Find the inverse of a simple function, and understand f−1 as a reflection in y=xSL 2.2
  • Draw a graph on the GDC with a suitable window, and sketch it on paperSL 2.3
  • Find zeros, maximum and minimum points, intercepts and asymptotes with the GDCSL 2.3, 2.4
  • Solve f(x)=g(x) by finding where two graphs intersectSL 2.4

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A function is a rule that turns each input into exactly one output. In AI SL you rarely need algebra to study a function: you graph it. Almost every question about a function, such as "where is it zero?", "what is its largest value?" or "when does it reach 30?", is answered by drawing it on the GDC and reading off a point. The skill is knowing which tool to use and writing the answer properly.

2.1 Function notation and inverses

f(x)=3x−5 means "the function f multiplies its input by 3 and subtracts 5". f(4) is the output when the input is 4. The inverse f−1 undoes f: if f(4)=7, then f−1(7)=4. Its graph is the reflection of the graph of f in the line y=x.

Worked example 1Paper 1
f(x)=3x−5. Find (a) f(4) (b) the value of x for which f(x)=13 (c) f−1(x).
(a) f(4)=3(4)−5=7
(b) 3x−5=13⇒x=6
(c) y=3x−5⇒x=y+53, so f−1(x)=x+53
Swap the roles of input and output: make x the subject, then write the result in terms of x. Check: f−1(13)=6, matching (b).

2.2 Domain and range

The domain is the set of inputs allowed; the range is the set of outputs produced. In a model the domain is often limited by the context (time cannot be negative, a box side cannot be longer than the card). To find a range, graph the function on its domain and read off the lowest and highest values: check the endpoints as well as any turning points.

Worked example 2Paper 1
f(x)=x2−4x+1, for −1≤x≤5. Find the range of f.
Graph f1(x)=x^2−4x+1 | −1≤x≤5
The | (such that) symbol restricts the domain on the GDC: press ctrl = for the inequality signs.
Minimum: (2,−3). Endpoints: f(−1)=6, f(5)=6
menu → Analyze Graph → Minimum. The largest value is at an endpoint, not at a turning point.
−3≤f(x)≤6

2.3 Key features on the GDC

FeatureHow to find itHow to write it
y-interceptPut x=0, or trace to x=0(0,3)
Zeros (x-intercepts)menu → Analyze Graph → Zerox=−1, or the points (−1,0)
Maximum / minimummenu → Analyze Graph → Maximum or Minimuma point: (2.15,−3.08)
Vertical asymptotewhere the function is undefined (often a denominator of 0)an equation: x=1
Horizontal asymptotethe value the function approaches as x becomes very large; check with the tablean equation: y=2
Worked example 3Paper 1
For f(x)=x3−3x2−x+3, find (a) the zeros (b) the coordinates of the local maximum and the local minimum.
(a) Graph it, then Zero three times: x=−1, 1, 3
Or use the polynomial root finder.
(b) Local maximum (−0.155, 3.08); local minimum (2.15, −3.08)
Give coordinates of points to 3 s.f., unless told otherwise.
Worked example 4Paper 1
g(x)=2+3x−1. Write down the equations of the asymptotes and find the zero of g.
Vertical asymptote x=1
The denominator is 0 when x = 1.
Horizontal asymptote y=2
As x gets large, 3x−1 gets close to 0. The GDC table at x = 1000 gives 2.003.
Zero: x=−0.5

2.4 Solving equations graphically

To solve f(x)=g(x), graph y=f(x) and y=g(x) and find every intersection. Zoom out first so you do not miss one: the GDC only finds what is on the screen.

Worked example 5Paper 2
Solve x2=2x.
Graph f1(x)=x2 and f2(x)=2x
Intersections at x=2 and x=4
Both are easy to spot, and you can check them: 22=22 and 42=24=16.
Zooming out shows a third, at x=−0.767
With a window from 0 to 5 you would miss this one. Always check the whole picture.
Worked example 6 (faded)Paper 1
Solve 3x=10−x.
Graph y=3x and y=10−x. They meet once, at x= 1.90 (3 s.f.)  ← you work this out
On your TI-Nspire Calculator tricks →

Graphs page: type the function after f1(x)=. Window: menu → Window/Zoom → Window Settings, or Zoom – Fit. Analyze Graph (menu): Zero, Minimum, Maximum, Intersection: click to the left of the point, then to the right. Table: ctrl T shows a table of values; useful for asymptotes and checking. Restricting the domain: add |1≤x≤5 after the function.

3Explore it

Change the values in y=a+bx−h. The dashed lines are the asymptotes. Watch how each value moves the graph, and where the zero is.

4Common mistakes & exam tips

Common mistakes

  • Giving a maximum as just a y-value when the question asks for coordinates, or the other way round.
  • Finding the range from the turning point only, and ignoring the endpoints of the domain.
  • Missing an intersection because the window is too small.
  • Writing an asymptote as a number ("2") instead of an equation (y=2).
  • Copying a graph that has joined across a vertical asymptote. Asymptotes are never crossed by a rational graph like this.

Exam tips

  • "Sketch" means a neat graph showing its shape and the key features labelled; "draw" means accurately, on given axes or to scale.
  • On a sketch, label intercepts, turning points and asymptotes with their values, and show the curve approaching asymptotes.
  • Write down the equations you graphed: "graphing y=x2 and y=2x" earns the method mark.
  • Use the table (ctrl T) to check behaviour for large x when you suspect a horizontal asymptote.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
f(x)=5−2x. Find f(−3) and f−1(x).
f(−3)=11; f−1(x)=5−x2
FluencyP2
Find the range of f(x)=2x for 0≤x≤4.
1≤f(x)≤16
FluencyP3
Find the coordinates of the minimum of y=x2−6x+11.
(3,2)
FluencyP4
Write down the asymptotes of y=4x+2−1.
x=−2 and y=−1
Problem solvingP5
Solve lnx=4−x.
Graph both: x=2.93 (3 s.f.)
Problem solvingP6
f(x)=x3−6x2+9x+1 for 0≤x≤4. How many solutions does f(x)=3 have?
The graph rises to 5, falls to 1 and rises to 5 again, so the line y=3 meets it 3 times.

6Exam-style questions

Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

Let f(x)=2x+1x−3, for x≠3.

  • (a)Write down the equation of the vertical asymptote.[1]
  • (b)Write down the equation of the horizontal asymptote.[1]
  • (c)Sketch the graph of f for −6≤x≤12, showing the asymptotes.[2]
  • (d)Solve f(x)=x.[2]
(a)
x=3A1
(b)
y=2A1
(c)
two branches with the correct shape, approaching the asymptotesA1
zero at x=−0.5 and y-intercept (0,−13) shownA1
(d)
graphing y=f(x) and y=x, or rearranging to x2−5x−1=0(M1)
x=−0.193, 5.19A1
Question 2Paper 1[6 marks]

Let f(x)=x3−6x2+9x+1, for 0≤x≤4.

  • (a)Find the coordinates of the local maximum and the local minimum.[2]
  • (b)Find the range of f.[2]
  • (c)Write down the number of solutions of f(x)=3.[2]
(a)
local maximum (1,5)A1
local minimum (3,1)A1
(b)
f(0)=1, f(4)=5(M1)
1≤f(x)≤5A1
(c)
line y=3 drawn or considered(M1)
3A1
Question 3Paper 2[7 marks]

A cup of tea cools in a room. Its temperature after t minutes is T(t)=20+60e−0.05t °C, for t≥0.

  • (a)Write down the initial temperature of the tea.[1]
  • (b)Find the temperature after 10 minutes.[1]
  • (c)Write down the equation of the horizontal asymptote of the graph of T, and interpret it in context.[2]
  • (d)Find the time taken for the tea to cool to 30 °C.[2]
  • (e)Write down the range of T.[1]
(a)
80 °CA1
(b)
56.4 °CA1
(c)
T=20A1
the tea cools towards room temperature, 20 °CR1
(d)
graphing T and y=30, or e−0.05t=16(M1)
35.8 minutesA1
(e)
20<T≤80A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try these real IB Maths AI SL questions. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2021 · TZ2 · Paper 1Q7Range of a rational function on a restricted domain; an inverse value★☆☆
May 2025 · TZ2 · Paper 1Q9Function on a table of values: solve equations, composite and inverse★☆☆
May 2025 · TZ3 · Paper 1Q3Water tank model: evaluate, an inverse value and its meaning, range★★☆
May 2023 · TZ1 · Paper 2Q2Graph of 3x − 1 + 4/(x − 2): turning points, intersections, asymptotes★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake