Relations, mappings and function notation

Relations, mappings and function notation

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A relation links inputs to outputs; show it as a mapping, table, ordered pairs or graph.
  • A function gives exactly one output for each input.
  • On a graph, the vertical line test checks for a function.
  • Write f(x)f(x) for the output; substitute the input for xx to evaluate.
  • Solving f(x)=cf(x)=c means the output is known and you find the input.

Relations and mappings

A relation links inputs to outputs, and one relation can be shown as arrows, a table, ordered pairs or a graph.

A relation links inputs to outputs. A mapping draws arrows from inputs to outputs. The mapping 1→41\to4, 2→52\to5, 3→53\to5 is the table with inputs 1,2,31,2,3 and outputs 4,5,54,5,5, and the ordered pairs (1,4)(1,4), (2,5)(2,5), (3,5)(3,5).

12345
The mapping 1 → 4, 2 → 5, 3 → 5

Which ordered pair belongs to the mapping 2→52\to5?

What makes a function

A relation is a function when every input has exactly one output.

  • 1→41\to4, 2→52\to5, 3→53\to5 is a function. Two inputs may share an output.
  • 1→41\to4, 3→53\to5, 3→63\to6 is not a function: input 33 has two outputs.

On a graph, use the vertical line test: a vertical line crossing the graph twice means it is not a function.

  • Functioneach input has exactly one output
13456
Not a function: input 3 has two outputs
−3−2−1123−3−2−1123xycrosses twicecircle
A circle fails the vertical line test

The mapping 2→72\to7, 3→73\to7, 4→84\to8 is

Function notation

We write a function as f(x)=3x−4f(x)=3x-4, and find f(a)f(a) by substituting aa for xx.

In f(x)=3x−4f(x)=3x-4, ff is the name, xx is the input and f(x)f(x) is the output. Other letters work too, such as g(x)g(x) or C(d)C(d). To substitute, replace xx everywhere with the input, in brackets.

−4−3−2−1123456−10−5510xyf(5) = 11f(−2) = −10f(x) = 3x − 4
f(x) = 3x − 4: f(5) = 11 and f(−2) = −10
  • f(x)=3x−4f(x)=3x-4output for input xx
  • f(5)f(5)3(5)−4=113(5)-4=11

Worked example

For f(x)=3x−4f(x)=3x-4 find f(5)f(5), f(−2)f(-2) and f(2a)f(2a). For g(x)=x2+1g(x)=x^2+1 find g(−3)g(-3).

If f(x)=2x+1f(x)=2x+1, what is f(−4)f(-4)?

Solving f(x) = c

f(8)f(8) puts 8 in as the input, but f(x)=8f(x)=8 says the output is 8 and asks for the input.

For f(x)=cf(x)=c, write the equation and solve it for xx. Check by evaluating ff at your answer.

−11234567−6−4−22468101214xyx = 4f(x) = 3x − 4y = 8
Solving f(x) = 8: where the graph of f(x) = 3x − 4 meets the line y = 8 the input is x = 4

f(8)

  • Input is 8
  • Substitute and work out the output

f(x) = 8

  • Output is 8
  • Form an equation and solve for x

Worked example

For f(x)=3x−4f(x)=3x-4, solve f(x)=8f(x)=8.

If f(x)=3x−4f(x)=3x-4, what is f(8)f(8)?

Function notation in context

In context, the number multiplying the input is the rate and the constant is the starting amount.

A taxi charges C(d)=5+2dC(d)=5+2d QAR for dd km. C(12)=29C(12)=29 means 12 km costs 29 QAR. C(0)=5C(0)=5 is the fixed charge and 22 is the cost per kilometre. Always give units, and remember a model may stop being realistic far outside its intended inputs.

24681012141618201020304050d (km)C (QAR)start 5(12, 29)(14, 33)C(d) = 5 + 2d
Taxi fare C(d) = 5 + 2d

Worked example

Solve C(d)=33C(d)=33.

For C(d)=5+2dC(d)=5+2d, what does the number 2 mean?

Try an exam question

The function ff is defined by f(x)=3x−4f(x)=3x-4. Find f(−2)f(-2) and solve f(x)=8f(x)=8.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find f(5)f(5).

1 mark, marked against the mark scheme

Revision notes