KS Maths
Year 10 Standard · Unit 3 Functions and quadratics · Lesson 1 of 6

Functions, domain and range

Which rules give every input just one output?

A function pairs each input with exactly one output. The vertical line test, the domain (the inputs allowed), the range (the outputs reached) and the notation f(x) describe a function completely.

FunctionsGDC optional

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.
square
Multiply a number by itself. Also, a shape with four equal sides and four right angles.5 squared is 25.
negative
Less than zero. A negative number has a minus sign.Minus 4 is a negative number.
exact
Not rounded. Completely correct.The exact answer is one third, not 0.33.
square root
A number that gives the original number when multiplied by itself.The square root of 25 is 5.
add
Put numbers together to find the total.Add 3 and 4 to get 7.

Warm-up

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

  1. From Year 7, Unit 3, lesson 5: a function machine doubles the input and then adds 3. What does it output for the input 5?
    Answer13. Double 5 to get 10, then add 3.
  2. From Year 9, Unit 3, lesson 3: a line has gradient 2 and passes through (0, −1). What is its equation?
    Answery = 2x − 1. The gradient is the number in front of x, and the y-intercept is −1.
  3. From Year 8, Unit 3, lesson 5: work out 3 × (−4)² − 5.
    Answer43. Square first: (−4)² = 16, then 3 × 16 = 48, then 48 − 5 = 43.
Words used in this lesson
function
a rule that gives every input exactly one output. For example: the cost of a parcel from its weight.
domain
the set of inputs a function can accept. For example: temperatures from 0 to 40.
range
the set of outputs a function actually gives. For example: fares from 8 up to 90.
relation
any set of ordered pairs, whether or not it is a function. For example: {(1, 2), (1, 3)}.
vertical line test
a graph is a function if no vertical line meets it twice. For example: a circle fails it.
f(x)
the output of the function f for the input x. For example: f(2) means put 2 in place of x.

One card, one borrower

A library gives every card a number and writes a borrower's name against it. Some borrowers hold more than one card. Rules like this appear everywhere: a bus fare from a distance, a price from a weight, a score from a time.

Predict first: is “card number → borrower” a function? Is “borrower → card number” a function? Then use the figure to see how a graph shows the difference.

1
1points where the line meets it
yesa function?

y = 2x − 1 for 0 ≤ x ≤ 3: the line x = 1 meets it once, at y = 1. No vertical line meets it twice, so it is a function.

Show me the steps
  1. Press y = 2x − 1 and slide the line to x = 2. It meets the graph once, at y = 3. The domain is 0 ≤ x ≤ 3 and the range is −1 ≤ y ≤ 5.
  2. Press x = y² and slide to x = 4. The line meets it twice, at y = −2 and y = 2. One input has two outputs, so it is not a function.
  3. Press x² + y² = 16, a circle. The line x = 0 meets it at y = −4 and y = 4; the line x = 4 meets it once, at y = 0. Domain and range are both from −4 to 4.
  4. Press y = √x and slide to x = −2. The line misses it, because −2 is outside the domain (0 ≤ x ≤ 4). The range is 0 ≤ y ≤ 2.

A function gives every input exactly one output. The set of inputs allowed is the domain; the set of outputs that actually occur is the range. On a graph, a relation is a function when no vertical line meets it more than once.

Function notation. f(x) = 3x − 2 names the rule f and says “the output for input x”. f(4) means put 4 in place of every x. The graph of the function is the set of points (x, f(x)).

Two inputs may share an output, as 3 and −3 do under y = x². An input may never have two outputs.

Read what Keith says

A function gives every input exactly one output. The inputs allowed are the domain, and the outputs that actually occur are the range. On a graph, a vertical line should never meet the curve more than once. Two different inputs may share an output, as three and minus three do when you square. But one input may never have two outputs. Try sliding a vertical line across a graph and see how often it cuts.

Two common mistakes. f(x) is not f multiplied by x: it is one symbol for the output. And a graph that seems to stop at the edge of a screen has not reached the end of its domain: the window shows only part of it, so the domain comes from the rule, not from the picture.

Worked examples

1. Is {(0, 2), (1, 3), (4, 3), (6, 7)} a function? State its domain and range.

  1. List the inputs (the first numbers): 0, 1, 4 and 6. Each appears once, so each has one output.
  2. It is a function. The domain is {0, 1, 4, 6}.
  3. The outputs are 2, 3, 3 and 7. List each value once: the range is {2, 3, 7}. Two inputs share the output 3, which is allowed.

2. f(x) = 2x² − 3x + 1. Find f(−2).

  1. Replace each x by (−2), with brackets: 2(−2)² − 3(−2) + 1.
  2. (−2)² = 4, so the first term is 8, and −3 × (−2) = +6.
  3. f(−2) = 8 + 6 + 1 = 15.

3. State the domain and range of g(x) = √(x − 1).

  1. A square root needs a number that is not negative: x − 1 ≥ 0, so the domain is x ≥ 1.
  2. A square root is never negative, and it reaches every value from 0 upward: the range is g(x) ≥ 0.

4. f(x) = 3x − 2. Find the input x for which f(x) = 19.

  1. The output is given, so set the rule equal to it: 3x − 2 = 19.
  2. Add 2: 3x = 21. Divide by 3: x = 7. Check: f(7) = 21 − 2 = 19.

Your go. The first step is given. g(x) = 10 − x². Find g(−3).

  1. Put (−3) in place of x, with brackets: g(−3) = 10 − (−3)².
  2. Now square first, then subtract.
Check the answer

(−3)² = 9, so g(−3) = 10 − 9 = 1. Without the brackets, −3² would be −9 and the answer would be 19.

With a GDC (optional)

A GDC can tabulate a function for you. Enter the rule in the graph menu's list of functions and open the table of values: the column of outputs is f(x) for every whole-number input. For f(x) = x³ + 2x the table shows 12 beside x = 2, which matches 8 + 4 done by hand.

Use the table to check, not to think. A graph window only shows part of a function, so a graph that seems to stop is not evidence about the domain. Set the window yourself and say in words what you see. Everything here can be done by hand.

Check before you go on

1. Which set of ordered pairs is a function?

Your turn

Start at Level 1 and go as far as you can. Type negative numbers with a minus sign, for example -7. A wrong answer gets a reason, not just a cross: read it, then try again.

Level 1 · Getting started

2. f(x) = x² − 4x + 7. Find f(−3).

3. f(x) = 5 − 2x. Find the input x for which f(x) = 11.

Level 2 · Building

4. h(x) = x² − 2x is defined only for the whole numbers x = −1, 0, 1, 2 and 3. How many different values are in its range?

5. A taxi in Accra charges 12 cedi plus 4 cedi for each kilometre, so the fare is C(d) = 12 + 4d for a trip of d km. A trip costs 50 cedi. How many kilometres is it?

Level 3 · Stretch

6. m(x) = √(3x − 12) is only defined when 3x − 12 is not negative. What is the smallest whole-number input?

7. f(x) = 6x − x². There are two inputs for which f(x) = 0. One is x = 0. What is the other?

Something to think about

A function may send two different inputs to the same output, but never one input to two outputs. Is there a rule where every output comes from exactly one input? Try y = 2x + 1 and y = x².

One way to think about it

y = 2x + 1 works: each output comes from just one input, so you can undo it. y = x² does not: 3 and −3 both give 9, so from the output 9 you cannot tell which input was used. Restrict the inputs to x ≥ 0 and the squares become one-to-one again. This is why a function can be undone only when no two inputs share an output.

Exit ticket

8. Which of these is not a function of x?

Want the rest of this unit?

This is a free sample lesson. The Years 7 to 11 plan opens every other lesson in the unit, and every lesson from Year 7 to Year 11, so the refresher links always open. It covers every child in the family and includes the Year 7 to 11 revision packs.

$59 for 12 months, or $99 for 2 years

Student without a card? in one tap.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Already paid? Type the email you paid with in the sign-in box, then click the link we send. See every price, including $19 revision packs.