Relations, mappings and function notation

Relations, mappings and function notation

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A relation links inputs to outputs: a mapping, table, ordered pairs or graph.
  • A function gives exactly one output for every input; repeated outputs are fine.
  • On a graph, use the vertical line test.
  • In f(x)=3x−4f(x)=3x-4, ff is the name, xx the input and f(x)f(x) the output.
  • f(a)f(a) means substitute aa; f(x)=cf(x)=c means solve for the input.

Relations and mappings

A relation can be shown as a mapping, a table, a list of ordered pairs or a graph.

A relation links inputs to outputs. The mapping 1→41\to4, 2→52\to5, 3→53\to5 is the same as the ordered pairs (1,4)(1,4), (2,5)(2,5), (3,5)(3,5).

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

Input 1

  • Output 4

Input 2

  • Output 5

Input 3

  • Output 5

Write the mapping 1→41\to4, 2→52\to5, 3→53\to5 as ordered pairs.

What makes a relation a function?

A function gives exactly one output for every input.

1→41\to4, 2→52\to5, 3→53\to5 is a function: two inputs can share an output.

1→41\to4, 3→53\to5, 3→63\to6 is not, because input 33 has two outputs.

On a graph, use the vertical line test: if a vertical line crosses the graph more than once, it is not a function.

13456
Not a function: input 3 has two outputs
−4−3−2−11234−3−2−1123xyx = 1(1, √3)(1, -√3)a circle
A circle fails the vertical line test: the line x = 1 crosses it twice

Is the mapping 2→72\to7, 5→75\to7, 9→19\to1 a function?

Function notation

f(x) is read "f of x": f is the name of the function, x is the input and f(x) is the output.

For f(x)=3x−4f(x)=3x-4, 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), CC may stand for cost and dd for distance.

x = 0

  • f(x)=−4f(x)=-4

x = 1

  • f(x)=−1f(x)=-1

x = 2

  • f(x)=2f(x)=2

x = 3

  • f(x)=5f(x)=5

In h(t)=2t+1h(t)=2t+1, which letter is the input?

Evaluating f(a) and solving f(x) = c

To find f(a), substitute a for x; to solve f(x) = c, write the equation and solve for the input.

f(x)=3x−4f(x)=3x-4: f(5)=3(5)−4=11f(5)=3(5)-4=11 and f(−2)=−10f(-2)=-10. You can substitute an expression: f(2a)=6a−4f(2a)=6a-4.

For g(x)=x2+1g(x)=x^2+1: g(−3)=(−3)2+1=10g(-3)=(-3)^2+1=10. Put every substituted value in brackets.

−4−3−2−11234567−10−5510xyf(5) = 11f(-2) = -10f(x) = 3x − 4
f(x) = 3x − 4: the points (5, 11) and (−2, −10)

Worked example

f(x)=3x−4f(x)=3x-4. Solve f(x)=8f(x)=8.

−2−11234567−6−4−22468101214xy(4, 8)y = 3x − 4y = 8
f(x) = 8 where the graph meets the line y = 8

If g(x)=x2+1g(x)=x^2+1, what is g(−4)g(-4)?

Function notation in context

A function can model a real situation; say what each value means, with units.

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. A model may stop being realistic far outside the values it was designed for.

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

Worked example

For C(d)=5+2dC(d)=5+2d, find the distance when the fare is 3333 QAR.

What does C(0) = 5 mean in the taxi problem?

Try an exam question

f(x)=3x−4f(x)=3x-4. Find f(5)f(5) and solve f(x)=8f(x)=8.

[3 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