Skip to content
  1. IB Question Bank
  2. Maths AI
  3. Functions
Topic 2.02 · SL and HL

Functions, domain, range: notes and practice questions

Summary
  • A function maps each input to exactly one output (one-to-one or many-to-one).
  • Vertical Line Test: If a vertical line intersects a graph more than once, it is not a function.
  • Function notation: f(x)f(x) represents the output for input xx.
  • Domain: Set of all valid input (xx) values.
  • Range: Set of all possible output (yy or f(x)f(x)) values.
  • Standard Number Sets: R\mathbb{R} (Real), Q\mathbb{Q} (Rational), Z\mathbb{Z} (Integers), N\mathbb{N} (Natural).
  • Largest Possible Domain exceptions:
  • Square roots: Expression inside must be ≥0\ge 0. E.g., for f(x)=xf(x) = \sqrt{x}, domain is x≥0x \ge 0.
  • Rational functions: Denominator cannot be zero. E.g., for f(x)=1x−2f(x) = \frac{1}{x-2}, domain is x≠2x \neq 2.
  • Piecewise functions: Defined by different formulas for different input intervals; evaluate by matching input to correct interval.
  • Inverse functions (f−1(x)f^{-1}(x)):
  • Only one-to-one functions have inverses (or restricted domains).
  • Horizontal Line Test: If a horizontal line intersects a graph more than once, it has no inverse (unless domain is restricted).
  • Domain of f(x)f(x) becomes range of f−1(x)f^{-1}(x).
  • Range of f(x)f(x) becomes domain of f−1(x)f^{-1}(x).
  • Graph of f−1(x)f^{-1}(x) is a reflection of f(x)f(x) across the line y=xy = x.
  • GDC for Range: Graph function, observe min/max yy-values within the domain.
  • GDC for Solving Equations (f(x)=g(x)f(x) = g(x)): Plot both functions, use intersection tool.
  • GDC for Key Features: Use analysis tools for roots, intercepts, turning points.
  • To find f(a)f(a): Substitute aa into the function's expression.
  • To find range for monotonic function over [a,b][a, b]: Evaluate f(a)f(a) and f(b)f(b). E.g., for f(x)=x3+1f(x) = x^3 + 1 on [2,10][2, 10], range is [f(2),f(10)]=[9,1001][f(2), f(10)] = [9, 1001].

How it is examined

Domain and range questions are usually asked in context, so the answer has to respect the situation as well as the algebra: a model of a population has domain t≥0t \ge 0 because negative time is meaningless, not because the formula breaks. The inverse at SL is read off a graph or found by solving f(x)=kf(x) = k with technology, never by rearranging. Asking an SL student to "find an expression for f−1(x)f^{-1}(x)" is an AHL 2.7 question.

Key ideas
  • The concept of a function, its domain, its range and its graph.
  • Function notation, for example f(x)f(x), v(t)v(t), C(n)C(n).
  • The concept of a function as a mathematical model.
  • The informal idea that an inverse function reverses or undoes the effect of a function.

Linking questions

  • Other contexts: temperature and currency conversions.
  • Links to other subjects: currency conversions and cost functions (economics and business management); projectile motion (physics).
  • Aim 8: what is the relationship between real-world problems and mathematical models?
  • International-mindedness: functions were developed by Descartes (France), Leibniz (Germany) and Euler (Switzerland), and the notation was settled by many mathematicians across the 17th and 18th centuries. How did today's notation become internationally accepted?
  • TOK: should mathematics or logic be classified as a language?

Practice questions

80 questions · 3 easy · 67 medium · 10 hard
Showing 20 of 20

Question 1

EasyPaper 1 · calculator8 marks
(a)

(a) A scientist is observing the trajectory of a particle. The relationship between its horizontal position (xx) and vertical position (yy) is described by the equation x2+y2=9x^2 + y^2 = 9.

Does this relationship represent yy as a function of xx? Justify your answer.

Graph of a circle $x^2 + y^2 = 9$
[2]
(b)

(b) Another experiment records the temperature (yy) of a chemical reaction over time (xx). The relationship is modelled by the equation y=x2−4x+3y = x^2 - 4x + 3.

Does this relationship represent yy as a function of xx? Justify your answer.

Graph of a parabola $y = x^2 - 4x + 3$
[2]
(c)

(c) A sensor measures a constant environmental factor, where its value (xx) is always 22, regardless of any other variable (yy). The relationship is given by x=2x = 2.

Does this relationship represent yy as a function of xx? Justify your answer.

Graph of a vertical line $x = 2$
[2]
(d)

(d) A technician plots the oscillation of a spring, where its displacement (yy) is related to time (xx) by the equation y=sin⁡(x)y = \sin(x).

Does this relationship represent yy as a function of xx? Justify your answer.

Graph of a sine wave $y = \sin(x)$
[2]

Question 2

MediumPaper 1 · calculator7 marks

A digital artist is designing a new fractal pattern. The initial curve for the pattern is defined by the function f(x)=log⁡2xf(x) = \log_2 x. To create a variation, the artist applies a transformation to f(x)f(x), resulting in a new curve g(x)g(x). This transformation involves a horizontal translation of pp units and a vertical translation of qq units.

The new curve g(x)g(x) is observed to pass through the points (6,−2)(6, -2) and (12,0)(12, 0).

Find the value of pp and the value of qq.

Question 3

HardPaper 2 · calculator11 marks
(a)

In a controlled chemical experiment, the initial temperature, xx (in degrees Celsius), of a reactant mixture is adjusted before a reaction begins. The adjusted temperature, f(x)f(x), is then used to determine the reaction rate, g(f(x))g(f(x) ).

The adjustment function is given by f(x)=x−3f(x) = x - 3, for x∈Rx \in \mathbb{R}.

State the range of f(x)f(x).

[1]
(b)

The overall reaction rate, gf(x)gf(x), as a function of the initial temperature xx, is modelled by gf(x)=4x2−24x+30gf(x) = 4x^2 - 24x + 30, for x∈Rx \in \mathbb{R}.

State the range of gf(x)gf(x).

[1]
(c)

The experiment is designed to achieve a specific 'target state' when the adjusted reaction rate f(gf(x))f(gf(x) ) equals 0. Solve the equation fgf(x)=0fgf(x) = 0.

[3]
(d)

Determine the function g(x)g(x).

[6]

Question 4

EasyPaper 1 · calculator4 marks
(a)

(a) Consider the graph of a relationship where the input is the length of a side of a square, xx, and the output is its area, AA. This graph is represented by A=x2A = x^2 for x≥0x \ge 0. State whether this graph represents AA as a function of xx, giving a reason.

[2]
(b)

(b) Consider the graph of a relationship between two variables, xx and yy, which forms a vertical line segment from (3,1)(3, 1) to (3,5)(3, 5). State whether this graph represents yy as a function of xx, giving a reason.

[2]

Question 5

MediumPaper 1 · calculator7 marks
(a)

The "LearnFast" online learning platform charges a monthly subscription fee of $40\$40 and an additional $7\$7 per premium course. If a student enrolls in a minimum of 1010 premium courses in a month, a one-time discount of $25\$25 is applied to their total bill.

This can be modelled by the following function, LL, which gives the total cost when enrolling in a minimum of 1010 premium courses at LearnFast:

L(x)=7x+15,x≥10L(x) = 7x + 15, x \ge 10

where xx is the number of premium courses a student enrolls in.

Find the total cost of enrolling in 2020 premium courses at LearnFast.

[2]
(b)

Find L−1(99)L^{-1}(99).

[2]
(c)

Another online learning platform, "SkillUp", charges a flat rate of $8\$8 per premium course, with no monthly subscription or discounts. A student must enroll in a minimum of 1010 premium courses for a direct comparison with LearnFast's discounted model.

The total cost at LearnFast is cheaper than SkillUp when x>kx > k.

Find the minimum integer value of kk.

[3]

Question 6

HardPaper 2 · calculator11 marks
(a)

(a) An engineer is designing a section of a roller coaster track. To ensure a smooth ride, the track must follow a specific curve. Three sensor readings are taken at different horizontal positions along this section of the track, giving the following height coordinates: (1,4)(1, 4), (2,7)(2, 7), and (3,14)(3, 14).

Assuming the track follows a quadratic path of the form y=ax2+bx+cy = ax^2 + bx + c, find the equation of this quadratic curve.

[4]
(b)

(b) A fourth sensor reading is taken at a horizontal position of x=4x=4, recording a height of y=28y=28. Determine if this new point lies on the quadratic curve found in part (a).

[2]
(c)

(c) Due to the discrepancy, the engineer decides that a cubic function, y=Ax3+Bx2+Cx+Dy = Ax^3 + Bx^2 + Cx + D, would be a better fit for the track. Find the equation of the cubic function that passes through all four points: (1,4)(1, 4), (2,7)(2, 7), (3,14)(3, 14), and (4,28)(4, 28).

[5]

Question 7

EasyPaper 1 · calculator4 marks
(a)

(a) The height of a drone above the ground, hh metres, tt seconds after launch, is modelled by a function whose graph is shown below. The drone is launched from a platform, reaches a maximum height, and then descends to the ground. The graph starts at (0,7)(0, 7), reaches a maximum point at (3,16)(3, 16), and touches the horizontal axis at (7,0)(7, 0).

State the domain and range for this function.

[2]
(b)

(b) A freshly brewed cup of coffee is left to cool. Its temperature, TT degrees Celsius, tt minutes after brewing, is modelled by a function whose graph is shown below. The graph starts at (0,100)(0, 100), and as time progresses, the temperature decreases, approaching an ambient temperature of 2525 degrees Celsius, but never quite reaching it.

State the domain and range for this function.

[2]

Question 8

MediumPaper 1 · calculator7 marks
(a)

A manufacturing company purchases a new specialized machine. The machine's value depreciates exponentially over time. The value of the machine, VV, in thousands of dollars, tt years after its purchase, is modelled by the function V(t)=Ae−ktV(t) = A e^{-kt}, for t≥0t \ge 0.

The initial value of the machine was 150 thousand dollars. After 3 years, its value had decreased by 40%.

(a) Find the value of kk.

[3]
(b)

(b) Calculate the value of the machine after 5 years and 6 months, giving your answer to two decimal places.

[2]
(c)

(c) The company believes that, according to this model, the machine will always have some residual value, however small.

State a mathematical reason why the company might believe this.

[1]
(d)

(d) Write down one possible limitation of the domain of the model.

[1]

Question 9

HardPaper 2 · calculator22 marks
(a)

The concentration of a certain chemical, CC, in a solution over a period of time can be modelled using the function C(t)=−0.005t3+0.1t2−0.2t+5C(t) = -0.005t^3 + 0.1t^2 - 0.2t + 5, where tt is the time in hours after the experiment begins.

Sketch the graph of C(t)=−0.005t3+0.1t2−0.2t+5C(t) = -0.005t^3 + 0.1t^2 - 0.2t + 5 for 0≤t≤200 \le t \le 20.

[3]
(b)

Find the concentration after 22 hours.

[2]
(c)

Find the concentration after 1515 hours.

[2]
(d)

Find the maximum concentration and the time in hours at which this occurs.

[6]
(e)

Find the minimum concentration and the time in hours at which this occurs.

[5]
(f)

Find the times in hours when the concentration is 66 mol/L.

[4]

Question 10

MediumPaper 1 · calculator7 marks
(a)

An architect is designing a parabolic arch for a new building. The shape of the arch can be modelled by the function f(x)=ax2+bx+cf(x) = ax^2 + bx + c, where xx and f(x)f(x) are measured in metres. The highest point of the arch (the vertex) is at (2,4)(2, 4). One end of the arch is at the origin (0,0)(0, 0), and the other end is at (p,0)(p, 0).

(a) Find the value of pp.

[1]
(b)(i)

(b) Find the value of

(i) aa.

[3]
(b)(ii)

(ii) bb.

[1]
(b)(iii)

(iii) cc.

[1]
(c)

(c) Write down the equation of the axis of symmetry of the arch.

[1]

Question 11

HardPaper 2 · calculator14 marks
(a)

A drone launches a package, and its trajectory is modelled by the equation h(x)=−0.015x2+0.6x+5h(x) = -0.015x^2 + 0.6x + 5, where h(x)h(x) is the height of the package in metres and xx is the horizontal distance in metres from the launch point.

On paper, sketch the graph of the path that the package flies for x≥0x \ge 0. Clearly indicate the initial height, the maximum height, and the horizontal distance when it lands.

[3]
(b)

Find the height of the package when it has travelled a horizontal distance of 1515 metres.

[2]
(c)

Find the maximum height of the package.

[4]
(d)

Find the horizontal distance at which the package lands on the ground, and explain what this value represents in the context of the problem.

[5]

Question 12

MediumPaper 1 · calculator5 marks
(a)

A new fertilizer is being tested on a specific plant species. The concentration of a key nutrient, C C , in the plant (in mg/L) is modelled by the function C(x)=5−30x−2 C(x) = 5 - \frac{30}{x-2} , where x x is the amount of fertilizer added (in grams). The amount of fertilizer used is restricted to −4≤x≤8 -4 \le x \le 8 , where x≠2 x \neq 2 (due to experimental constraints).

Find the range of the nutrient concentration C(x) C(x) .

[3]
(b)

Determine the amount of fertilizer x x that results in a nutrient concentration of −1 -1 mg/L. Give your answer in the form C−1(−1) C^{-1}(-1) .

[2]

Question 13

HardPaper 2 · calculator15 marks
(a)

(a) A pharmaceutical company is designing a new cylindrical container for a special liquid. The container has a fixed volume V=500 cm3V = 500 \text{ cm}^3.

The radius of the container is r cmr \text{ cm} and the height is h cmh \text{ cm}.

Show that πr2h=500\pi r^2 h = 500.

[2]
(b)

(b) Find an expression for the total surface area SS of the container.

[2]
(c)

(c) Substitute an expression for hh (from part (a) ) into your expression for SS (from part (b) ) and hence show that S=2πr2+1000rS = 2\pi r^2 + \frac{1000}{r}.

[3]
(d)

(d) Find dSdr\frac{dS}{dr}.

[2]
(e)

(e) Find the minimum value of SS and the values of rr and hh when this occurs. Show that this value of SS is indeed a minimum.

[6]

Question 14

MediumPaper 1 · calculator7 marks
(a)

Let the function C(w)C(w) represent the cost in dollars per display stand, where ww is the width of the stand in meters.

C(w)=500w2+1.2C(w) = \frac{500}{w^2} + 1.2 for 5≤w≤155 \le w \le 15.

Find the range of CC.

[3]
(b)(i)

The function C−1C^{-1} is the inverse function of CC.

Find C−1(15)C^{-1}(15).

[2]
(b)(ii)

In the context of the question, interpret your answer to part (b)(i).

[1]
(b)(iii)

Write down the range of C−1C^{-1}.

[1]

Question 15

HardPaper 2 · calculator21 marks
(a)(i)

The "SkyGazer" is a new observation wheel in a city park. The wheel has a diameter of 7070 m. To begin the ride, a passenger enters a capsule at the lowest point on the wheel, which is 33 m above the ground. A ride consists of multiple revolutions, and the wheel makes 22 revolutions per minute.

The height of a capsule above the ground, hh, measured in metres, during a ride on the SkyGazer can be modelled by the function h(t)=−acos⁡(bt)+dh(t) = -a \cos (bt) + d, where tt is the time, in seconds, since a passenger began their ride.

(a) Calculate the value of

(i) aa;

[2]
(a)(ii)

(a)(ii) bb;

[3]
(a)(iii)

(a)(iii) dd.

[2]
(b)

(b) A ride on the SkyGazer lasts for 1010 minutes in total.

Calculate the number of revolutions of the wheel per ride.

[2]
(c)(i)

(c) For exactly one ride on the SkyGazer, suggest

(i) an appropriate domain for h(t)h(t);

[2]
(c)(ii)

(c)(ii) an appropriate range for h(t)h(t).

[2]
(d)

(d) A 2020 metre-tall building stands on the horizontal ground next to the SkyGazer.

By considering the graph of h(t)h(t), determine the length of time during one revolution of the wheel for which the capsule is higher than the building.

[5]
(e)(i)

(e) There is a plan to relocate the SkyGazer onto a taller platform which will increase the maximum height of the wheel to 7575 m. This will change the value of one parameter, aa, bb or dd, found in part (a).

(i) Identify which parameter will change.

[1]
(e)(ii)

(e)(ii) Find the new value of the parameter identified in part (e)(i).

[2]

Question 16

MediumPaper 1 · calculator8 marks
(a)

A biologist is studying the effect of a new toxin on a bacterial culture. The number of active bacterial cells, NN (in thousands), remaining after exposure to a toxin dose DD (in mg/L) follows the relationship:

log⁡10N=k−D\log_{10}N = k - D, for some constant k∈Rk \in \mathbb{R}.

In an experiment, it was observed that when the toxin dose was 2 mg/L, there were 1000 thousand (i.e., 1,000,000) active cells remaining.

(a) Find the value of kk.

[2]
(b)

The relationship for this bacterial culture can also be written in the form N=b10DN = \frac{b}{10^D}.

(b) Find the value of bb.

[2]
(c)

(c) Given that the toxin dose DD is between 0.5 mg/L and 4.0 mg/L (i.e., 0.5<D<4.00.5 < D < 4.0 ), find the range for NN.

[2]
(d)

The effectiveness score, SS, of a new antidote is inversely proportional to the number of active cells, NN, remaining after toxin exposure, such that S=1NS = \frac{1}{N}.

(d) A new antidote was tested on a culture exposed to a dose of 4.5 mg/L. Calculate the effectiveness score, SS, for this antidote. Give your answer to 3 significant figures.

[2]

Question 17

HardPaper 2 · calculator18 marks
(a)(i)

A tech company launches a new social media app. The number of active users, UU, can be modelled by the function

U(t)=800×kt,t≥0U(t) = 800 \times k^t, t\ge 0,

where tt is the number of hours since the app was launched, and kk is a positive constant.

Write down the value of U(0)U(0).

[1]
(a)(ii)

Interpret what this value means in this context.

[1]
(b)

4 hours after the app was launched, the number of active users was 4050.

Find the value of kk.

[3]
(c)

Find the number of active users 2 hours and 15 minutes after the app was launched.

[3]
(d)

A competitor launches a similar app, whose user base, U2U_2, can be modelled by the function

U2(t)=2500×1.2t,t≥0U_2(t) = 2500 \times 1.2^t, t\ge 0,

where tt is the number of hours since both apps were launched.

Find the value of tt when the number of users for both apps is equal.

[3]
(e)

It takes HH hours and mm minutes for the number of users of the first app to reach 15000.

Find the value of HH and mm, giving mm as an integer.

[4]
(f)

Each user of the first app requires 1.5×10−21.5 \times 10^{-2} MB of server storage. The total available server capacity is 3.0×1053.0 \times 10^5 MB.

Determine how long it would take for the app's user base to exceed the server capacity.

[3]

Question 18

MediumPaper 1 · calculator8 marks
(a)

A new experimental drug is administered to a patient. The concentration of the drug in the patient's bloodstream, CC, in mg/L, tt hours after administration, is modelled by the function C(t)=C0e−ktC(t) = C_0 e^{-kt}, where C0C_0 and kk are positive constants.

Initially, the concentration of the drug is 250250 mg/L. After 22 hours, the concentration drops to 150150 mg/L.

Determine the value of kk.

[3]
(b)

Using this model, calculate the concentration of the drug in the bloodstream 55 hours after administration.

[2]
(c)

Based on this model, will the drug ever completely leave the patient's bloodstream? Justify your answer.

[2]
(d)

State one limitation of the domain of this model in a real-world context.

[1]

Question 19

HardPaper 2 · calculator23 marks
(a)

(a) A confectionery company is designing a new wrapper for a chocolate bar. The wrapper is in the shape of a rectangular prism with a square base of side length xx cm. The height, hh cm, is twice the side length of the base.

Write down an expression for hh in terms of xx.

[1]
(b)

(b) The chocolate bar has a volume of 250250 cm3^3.

Find the value of xx and hh.

[3]
(c)

(c) Calculate the total external surface area of this rectangular prism wrapper.

[3]
(d)

(d) The company also considers a cylindrical wrapper with radius rr cm and height HH cm. This wrapper must also hold 250250 cm3^3 of chocolate.

Find an expression for the height, HH, of the cylindrical wrapper in terms of rr.

[2]
(e)

(e) Let the total external surface area of the cylindrical wrapper be AA cm2^2.

Show that A=2πr2+500rA = 2\pi r^2 + \frac{500}{r}.

[2]
(f)

(f) Find dAdr\frac{dA}{dr}.

[3]
(g)(i)

(g.i) Hence or otherwise, find the value of rr that will minimize AA.

[3]
(g)(ii)

(g.ii) Find the minimum value of AA for the cylindrical wrapper.

[3]
(h)

(h) To account for manufacturing waste and overlap, an additional 12%12\% of the calculated surface area is required for the rectangular prism wrapper, and 20%20\% for the cylindrical wrapper.

Determine which wrapper design the company should choose to minimize material usage. Justify your answer.

[3]

Question 20

MediumPaper 1 · calculator7 marks
(a)

A scientist is modeling the concentration of a certain chemical in a solution over time. The concentration, CC, in mg/L, is given by the function C(t)=4+18t−3C(t) = 4 + \frac{18}{t-3}, where tt is the time in hours. The model is valid for 1≤t≤91 \leq t \leq 9, but the chemical reaction causes a singularity at t=3t=3 hours, so t≠3t \neq 3.

(a) Find the range of CC.

[3]
(b)

(b) Find an expression for the inverse function C−1(t)C^{-1}(t). The domain is not required.

[3]
(c)

(c) Write down the range of C−1(t)C^{-1}(t).

[1]

60 more Functions, domain, range questions in the app

Every answer is marked mark by mark, IB-style, and the AI tutor helps when you are stuck.

Where marks are lost

  • Using your own wrong value after failing a "show that." All follow through is withdrawn for the rest of that question.
Free. Every IB subject.
No card, no trial that runs out. Just a free account.
  • 50 marked answers a month
    Marked mark by mark, IB-style
  • Hints and mark schemes
    On every part of every question
  • 3,000+ questions
    All 6 subjects, SL and HL, mapped to the syllabus
  • Progress that adapts
    Your Study Profile picks what to practise next

Practise this topic as a session

Pick a difficulty and paper, and FourtyFive tracks your progress on this topic as you go.

or with email
FAQ

Questions,
answered.

Can't find what you're looking for? Email our student team.

What does Functions, domain, range cover in IB Maths AI?

A function maps each input to exactly one output (one-to-one or many-to-one). Vertical Line Test: If a vertical line intersects a graph more than once, it is not a function. Function notation: f(x) represents the output for input x.

Is Functions, domain, range SL or HL?

Both. SL and HL students study Functions, domain, range to the same depth.

How do I revise Functions, domain, range for IB Maths AI?

Start from the core idea: a function maps each input to exactly one output (one-to-one or many-to-one). In the exam: domain and range questions are usually asked in context, so the answer has to respect the situation as well as the algebra: a model of a population has domain t ≥ 0 because negative time is meaningless, not because the formula breaks. The inverse at SL is read off a graph or found by solving f(x) = k with technology, never by rearranging. Then practise exam-style questions, easiest first, writing out every step of your working before you check it.

How does FourtyFive help me practise Functions, domain, range?

FourtyFive has 80 Functions, domain, range questions. Every answer you write is marked mark by mark, IB-style, and you see where each mark was won or lost. Every part has a hint, the AI tutor helps you through the step you are stuck on, and your Study Profile picks what to practise next.

Is FourtyFive free for Functions, domain, range practice?

Yes. A free account gives you 50 marked answers a month, and you do not need a card to sign up.

Can I handwrite Functions, domain, range answers on an iPad?

Yes. In the FourtyFive iPad app you write your working by hand with Apple Pencil, the way you would on paper, and it is marked the same way.

Start with the IB question
bank built for you.

Free to start, no card needed. Thousands of syllabus-mapped questions, AI Examiner marking, your weakest topics first.