KS Maths
Topic 2.2 · AA and AI, SL and HL

Functions, domain and range

The range is not the y-axis

f(x) = √(2 − x). Type f(3) into a calculator and it refuses, because the domain stops at 2. Now give the range. Most people write "all real numbers", and the honest answer is f(x) ≥ 0: this function never returns a negative number, whatever you feed it.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

function
A rule that gives exactly one output for each input.f(x) = x plus 2 is a function.
domain
All the input values a function can use.The domain of the square root is zero and above.
range
The difference between the biggest and smallest value. Also, all the output values of a function.Data from 2 to 9 has range 7.
input
The number you put into a function or machine.If the input is 3, the output is 5.
output
The number that comes out of a function or machine.The function adds 2 to the input to give the output.
inverse
The operation that undoes another one.Subtraction is the inverse of addition.
square
Multiply a number by itself. Also, a shape with four equal sides and four right angles.5 squared is 25.
square root
A number that gives the original number when multiplied by itself.The square root of 25 is 5.
inverse function
A function that undoes another function.If f adds 2, its inverse subtracts 2.
axis
A number line that a graph is drawn on. The x-axis goes across and the y-axis goes up.The y-axis is vertical.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Three quick ones from earlier work. Try each on paper before you open the answer.

  1. Solve 6 − 2x ≥ 0.
    Answer

    x ≤ 3. Move 2x across: 6 ≥ 2x, so x ≤ 3. If you divide both sides of an inequality by a negative number the sign flips, which is the slip to watch.

  2. If f(x) = x² − 4, find f(−3).
    Answer

    5. Square the input first: (−3)² = 9, then subtract 4. A negative input gives a positive square.

  3. Make x the subject of y = 2x + 5.
    Answer

    x = (y − 5) ÷ 2. Undo the +5 first, then undo the ×2. This undoing is exactly what an inverse function is.

Words used in this lesson
domain
the set of inputs a function is allowed to take. For example: f(x) = √(x − 5) has domain x ≥ 5.
range
the set of outputs a function actually gives. For example: y = x² has range y ≥ 0.
function notation
writing f(x) for the output when the input is x. For example: f(4) means put 4 in for x.
input, output
what goes in, and what comes out. For example: in f(4) = 9 the output is 9.
inverse function
the function that undoes the first one. For example: if f adds 5 then its inverse takes 5 away.
one-to-one
every output comes from exactly one input. For example: y = x + 1 is one-to-one; y = x² is not.
reflection in y = x
a flip in the line where x and y are equal. For example: the point (2, 7) reflects to (7, 2).
restrict
cut the domain so that the function behaves. For example: restrict x² to x ≥ 0 so it has an inverse.
state
write the answer with no working needed. For example: “state the range” asks for the inequality only.
discrete, continuous
separate values only, or every value in an interval. For example: the number of students is discrete; time is continuous.
-14-10-6-22-8-44y = xstops at x = 2domain so farrange so far(2, 0)f(2) = 0. The curve stops here: x cannot be more than 2.Domain: x at most 2. Range: f(x) at least 0. Different axes, different answers.
2x, the input
0f(x), the output
the domain endsverdict

The shading on the x-axis is the domain. The shading on the y-axis is the range. They are different axes and different questions.

Two reasons a domain stops

ReasonExampleWhat the domain is
The arithmetic forbids itf(x) = √(2 − x)x ≤ 2, because a square root needs 2 − x ≥ 0
The situation forbids itC(n) = 8000 + 150n, a coachn a whole number from 1 to 45, because that is a coach

The second kind is the one modelling questions are about, and the one that gets left out. Nothing in 8000 + 150n stops you putting in n = 2.5 or n = 1000. A coach does.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AI SL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. This lesson is in AA and in AI: choose your own course below. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AI SL Mock Exam Pack, $19BuyPlan $99