All revision notes topics

Relations, mappings and function notationIB MYP Maths Standard: Revision notes

Section 1

Relations and mappings

A relation links inputs to outputs. We can show it as a mapping (arrows from inputs to outputs), a table, a list of ordered pairs such as (1,4)(1,4), or a graph. Example: the mapping 1→41\to4, 2→52\to5, 3→53\to5 is the same as 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).

Key termsrelationmappinginputoutput

Section 2

What makes a relation a function?

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

  • The mapping 1→41\to4, 2→52\to5, 3→53\to5 is a function. Two different inputs can share an output.
  • The mapping 1→41\to4, 3→53\to5, 3→63\to6 is not a function, because input 33 has two outputs. On a graph, use the vertical line test: if any vertical line crosses the graph more than once, it is not a function.
Key termsfunctionvertical line test
Common mistake

Saying a mapping is not a function because an output is repeated. It is only a problem if an input has two outputs.

Section 3

Function notation

We write a function as f(x)=3x−4f(x)=3x-4. This is read 'ff of xx equals 3x−43x-4'. The letter ff is the name of the function and xx is the input. f(x)f(x) is the output. Other letters can be used, such as g(x)g(x), h(t)h(t) or C(d)C(d). In C(d)C(d) the name CC may stand for cost and dd for distance.

Key termsfunction notation

Section 4

Evaluating f(a)

To find f(a)f(a), substitute aa in place of xx everywhere. For f(x)=3x−4f(x)=3x-4: f(5)=3(5)−4=11f(5)=3(5)-4=11, and f(−2)=3(−2)−4=−10f(-2)=3(-2)-4=-10. You can also substitute an expression: f(2a)=3(2a)−4=6a−4f(2a)=3(2a)-4=6a-4. For g(x)=x2+1g(x)=x^2+1: g(3)=32+1=10g(3)=3^2+1=10. Use brackets for negatives: g(−3)=(−3)2+1=10g(-3)=(-3)^2+1=10.

Key termssubstituteevaluate
Exam tip

Put every substituted value in brackets, especially negatives, before working it out.

Section 5

Solving f(x) = c

f(a)f(a) means 'put aa in'. f(x)=cf(x)=c means 'the output is cc, find the input'. Write the equation and solve it. Example: f(x)=3x−4f(x)=3x-4 and f(x)=8f(x)=8. Then 3x−4=83x-4=8, so 3x=123x=12 and x=4x=4. Check: f(4)=12−4=8f(4)=12-4=8.

Key termssolve
Common mistake

Mixing up f(8)f(8) (input 88) with f(x)=8f(x)=8 (output 88).

Section 6

Function notation in context

Function notation can describe real situations. If a taxi charges C(d)=5+2dC(d)=5+2d QAR for dd km, then C(12)=29C(12)=29 means a 12 km journey costs 29 QAR. C(0)=5C(0)=5 is the fixed starting charge, and 22 is the cost per kilometre. To solve C(d)=33C(d)=33: 5+2d=335+2d=33, so d=14d=14 km. Always say what your answer means, with units. Be careful: a model may stop being realistic for inputs far outside the values it was designed for.

Key termsfixed chargerate

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Relations, mappings and function notation

  1. A function is defined by f(x)=3x−4f(x)=3x-4.
    Find f(2a)f(2a), giving your answer in its simplest form.2 marks
  2. Two relations are given as mappings. Relation RR maps 1→41\to4, 2→52\to5, 3→53\to5 and 3→63\to6. Relation SS maps 1→41\to4, 2→52\to5, 3→53\to5 and 4→54\to5.
    Change one pair in RR so that it becomes a function, and explain why your new relation is a function.2 marks
  3. A taxi company in Doha charges according to the rule C(d)=5+2dC(d)=5+2d, where C(d)C(d) is the cost in Qatari riyals (QAR) of a journey of dd kilometres.
    (i) Find C(12)C(12). (ii) Solve C(d)=33C(d)=33 and state what your answer means.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).