Junior Cycle Mathematics14.2 Function notation and evaluating functions

All books

14.2 Function notation and evaluating functions — Learn

Prerequisites: the idea of a function from Section 14.1, and substituting values into expressions from Section 10.2.

Objectives: read and write function notation; find the output for a given input; find the input that gives a chosen output; name the domain and the range in notation; use a function to model the garden bed.

By the end of this section, you can use function notation to find an output, and to find the input that gives it.

Naming a function

A function needs a name, so you can talk about it. We use a letter, usually ff.

The notation f(x)f(x) means "the output of the function ff for the input xx". You read f(x)f(x) as "ff of xx".

f(x)=3x−2f(x) = 3x-2

This is the rule multiply by 3, then subtract 2, with the name ff. The same rule can be written in three ways, and they all mean the same thing.

The last one uses an arrow and reads "the function ff maps xx to 3x−23x-2".

Finding an output

To find f(4)f(4), replace every xx in the rule with 4.

f(4)=3×4−2=12−2=10f(4) = 3\times4-2 = 12-2 = 10

The output is 10. The number inside the bracket is always the input.

Example 1. The function ff is given by f(x)=3x−2f(x)=3x-2. Find f(−2)f(-2).

f(−2)=3×(−2)−2=−6−2=−8f(-2) = 3\times(-2)-2 = -6-2 = -8

Put a negative input in brackets, so the sign stays attached to the number.

Example 2. The function gg is given by g(x)=x2+1g(x)=x^2+1. Find g(5)g(5).

g(5)=52+1=25+1=26g(5) = 5^2+1 = 25+1 = 26

Work out the index before the addition.

Example 3. The function gg is given by g(x)=x2+1g(x)=x^2+1. Find g(−3)g(-3).

g(−3)=(−3)2+1=9+1=10g(-3) = (-3)^2+1 = 9+1 = 10

The square of a negative number is positive.

Finding the input

Sometimes you know the output and want the input. You solve an equation.

Example 4. The function ff is given by f(x)=2x+7f(x)=2x+7. Find the input xx for which f(x)=19f(x)=19.

Write the rule equal to the output, and solve.

2x+7=192x+7 = 19

Subtract 7 from both sides.

2x=122x = 12

Divide both sides by 2.

x=6x = 6

The input is 6, because 2×6+7=192\times6+7=19.

Example 5. The function hh is given by h(x)=x2−4h(x)=x^2-4. Find both inputs for which h(x)=0h(x)=0.

x2−4=0x^2-4 = 0 x2=4x^2 = 4 x=−2orx=2x = -2 \quad \text{or} \quad x = 2

A square hides the sign of its input, so both −2-2 and 2 give the output 0.

Domain and range in notation

The domain is the set of inputs the function allows. The range is the set of outputs it produces.

For f(x)=2x+1f(x)=2x+1 with the domain {1,2,3}\{1, 2, 3\}, the range is {3,5,7}\{3, 5, 7\}.

For f(x)=x2f(x)=x^2 with the domain of all real numbers, the range is every number from 0 upwards. A square cannot be negative, so no output is below 0.

In a real problem the domain is often limited by the situation. The garden bed cannot have a negative width, and it cannot be wider than 6 m, so its domain is 00 to 66.

The garden bed

The area of the garden bed is a function of its width. Write it with the name AA.

A(x)=x(12−2x)=12x−2x2A(x) = x(12-2x) = 12x-2x^2

Example 6. Find A(3)A(3).

A(3)=12×3−2×32=36−18=18A(3) = 12\times3-2\times3^2 = 36-18 = 18

The area is 18 m218\ \text{m}^2 for a width of 3 m.

Example 7. Find the widths for which the area is 16 m216\ \text{m}^2.

12x−2x2=1612x-2x^2 = 16

This is a quadratic equation. Move every term to one side and divide by 2.

x2−6x+8=0x^2-6x+8 = 0

Factorise.

(x−2)(x−4)=0(x-2)(x-4) = 0

So x=2x=2 or x=4x=4. Both widths give an area of 16 m216\ \text{m}^2, which is the pair you met in Section 14.1.

Two functions that meet

Two functions can have the same output for one input. That input is where their graphs cross.

Example 8. The functions are f(x)=2x+1f(x)=2x+1 and g(x)=x+5g(x)=x+5. Find the input for which f(x)=g(x)f(x)=g(x).

2x+1=x+52x+1 = x+5

Subtract xx from both sides.

x+1=5x+1 = 5 x=4x = 4

Check: f(4)=2×4+1=9f(4)=2\times4+1=9 and g(4)=4+5=9g(4)=4+5=9. Both functions give 9, so the graphs cross at the point (4,9)(4,9).

Progress check

Return to the chapter problem. The area of the garden bed is A(x)=12x−2x2A(x)=12x-2x^2 square metres, where xx is the width in metres.

  1. Find A(2)A(2) and A(4)A(4).
  2. Both answers are the same. What does that tell you about the graph of AA?
  3. Find the width for which the area is 18 m218\ \text{m}^2.

In Section 14.3 you will draw the graph of the fenced length.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.