LC Ordinary Maths

Algebra and functions · Chapter 21

Functions and graphs

Clear notes, 13 worked examples and 5 questions to try.

01 · Understand the idea

The essentials

Key terms

Domain
The set of allowed inputs.
Range
The set of outputs actually produced.
Intercept
A point at which a graph meets an axis.
Turning point
A point at which a curve changes from increasing to decreasing, or vice versa.

Key ideas

  • A function assigns exactly one output to each input in its domain. f(x)\displaystyle f(x) means the output for input x.
  • The domain contains allowed inputs; the codomain is the stated set of possible outputs, and the range contains outputs actually reached.
  • Make a table of values, label axes and choose consistent scales before plotting.
  • A root is an x-value where the graph crosses or touches the x-axis. The y-intercept occurs when x is zero.
  • An intersection solves f(x)=g(x)\displaystyle f(x)=g(x). A maximum or minimum describes an extreme output within the given domain.
  • For contextual graphs, interpret coordinates with units. A model may only make sense for non-negative or whole-number inputs.
  • A composite function uses one output as the next input. (f∘g)(x)=f(g(x))\displaystyle (f\circ g)(x)=f(g(x)): do g first.
  • For an informal limit, investigate the outputs as x approaches a value from both sides. The approached value need not equal the value of the function at that point.
The quadratic has roots −1 and 3 and a minimum at (1, −4).
A root is an x-value for which y is zero. Crossing is not required: a graph can touch the x-axis at a root. The two panels use the same scales.

03 · Follow the working

Worked examples

Read the question first. Cover the working and decide what you would do next.

01Evaluating a function

The function f is given by f(x)=3x+4\displaystyle f \left(x\right) = 3x + 4. What is f(3)\displaystyle f \left(3\right)?

Why this method? Decide whether the input or the output is known. For graphs, label the axes and read the relevant coordinate in the right order.

Purple follows the input 3 into the rule, then the multiplication result 9. The coefficient 3 stays in place.

  1. f(x)=3x+4\displaystyle f(x)=3x+4
    Why?The rule says multiply the input by 3,\displaystyle 3 , then add 4\displaystyle 4.
  2. f\displaystyle f(3)\displaystyle (3)=3\displaystyle =3(3)\displaystyle (3)+4\displaystyle +4
    Why?Replace x by the input 3\displaystyle 3. The 3\displaystyle 3 outside the brackets is the coefficient.
  3. f(3)=\displaystyle f(3)=9\displaystyle 9+4\displaystyle +4
    Why?Multiply before adding.
  4. f(3)=13\displaystyle f(3)=13
    Why?Thirteen is the output when the input is 3\displaystyle 3.

Think about it: Before moving on: what does f(3)\displaystyle f \left(3\right) mean, and how is it different from 3×f\displaystyle 3 \times f?

02Finding the input for a given output

The function f is given by f(x)=8x+7\displaystyle f \left(x\right) = 8x + 7. For what value of x is f(x)=87\displaystyle f \left(x\right) = 87?

Why this method? Decide whether the input or the output is known. For graphs, label the axes and read the relevant coordinate in the right order.

  1. 8x+7=87\displaystyle 8x + 7 = 87
    Why?Write the equation
  2. 8x=87−7=80\displaystyle 8x = 87 - 7 = 80
    Why?Take the constant away from both sides
  3. x=80÷8=10\displaystyle x = 80 \div 8 = 10
    Why?Divide every term on both sides by the coefficient so that the coefficient of the variable becomes 1\displaystyle 1.

Think about it: Before moving on: how can you check your answer for x by evaluating the function?

03Reading the y-intercept from a graph

Graph 1:\displaystyle 1 : The straight line in the graph crosses the y-axis. What is the y-value where it crosses?

Straight line rising from left to right on axes marked from −6 to 6 on each side. The line is drawn across the whole grid.

Why this method? Decide whether the input or the output is known. For graphs, label the axes and read the relevant coordinate in the right order.

  1. The line crosses the y-axis at y=6\displaystyle y = 6
    Why?The y-intercept is where the line crosses the y-axis, at x=0\displaystyle x = 0

Think about it: Before moving on: which point on the graph gives the y-intercept, and why is it the only one you need?

04Reading where two graphs cross

Graph 1:\displaystyle 1 : The two straight lines in the graph cross at one point. What is the x-value of the point where they cross?

Two straight lines drawn on axes marked from −6 to 6 on each side. The lines cross at one point.

Why this method? Decide whether the input or the output is known. For graphs, label the axes and read the relevant coordinate in the right order.

  1. The lines cross at x=1\displaystyle x = 1
    Why?The lines cross where their y-values are equal. Read the x-value of that point from the horizontal axis

Think about it: Before moving on: why is the x-value where the lines cross the solution, and not the y-value?

05Two functions in succession

g(x)=x+1\displaystyle g(x)=x+1 and f(x)=2x\displaystyle f(x)=2x. Find f(g(3))\displaystyle f(g(3)).

Why this method? Substitute carefully into the stated rule and keep brackets around a substituted expression.

  1. g(3)=3+1=4\displaystyle g(3)=3+1=4
    Why?Do the inside function first.
  2. f(4)=2(4)=8\displaystyle f(4)=2(4)=8
    Why?Put its output 4\displaystyle 4 into f.
06A simple exponential table

Find values of f(x)=2x\displaystyle f(x)=2^x at x=0,1,2\displaystyle x = 0 , 1 , 2.

Why this method? Substitute carefully into the stated rule and keep brackets around a substituted expression.

  1. f(0)=20=1\displaystyle f(0)=2^0=1
    Why?A non-zero number to the power zero is 1\displaystyle 1.
  2. f(1)=2\displaystyle f(1)=2
    Why?A power of 1\displaystyle 1 leaves the base unchanged.
  3. f(2)=2(2)=4\displaystyle f(2)=2(2)=4
    Why?Multiply two factors of 2\displaystyle 2. Plot (0,1),(1,2),(2,4)\displaystyle \left(0 , 1\right) , \left(1 , 2\right) , \left(2 , 4\right).
07A limit from nearby inputs

Investigate f(x)=x+1\displaystyle f(x)=x+1 as x approaches 2\displaystyle 2.

Why this method? Substitute carefully into the stated rule and keep brackets around a substituted expression.

  1. f(1.9)=2.9,f(1.99)=2.99\displaystyle f(1.9)=2.9,\quad f(1.99)=2.99
    Why?Approach 2\displaystyle 2 using slightly smaller inputs.
  2. f(2.1)=3.1,f(2.01)=3.01\displaystyle f(2.1)=3.1,\quad f(2.01)=3.01
    Why?Approach from larger inputs.
  3. lim⁡x→2(x+1)=3\displaystyle \lim_{x\to2}(x+1)=3
    Why?The outputs approach 3\displaystyle 3 from both sides.
08Build a table for a quadratic graph

Make a table for y=x2−2\displaystyle y=x^2-2 using x=−2,−1,0,1,2\displaystyle x=-2,-1,0,1,2.

Completed table: y = x² − 2
x−2−1012
y2−1−2−12

Why this method? Choose an input, replace x, square it and then subtract 2\displaystyle 2. Repeat the same procedure for every input.

  1. x=−2:y=(−2)2−2=4−2=2\displaystyle x=-2:\quad y=(-2)^2-2=4-2=2
    Why?Keep the negative input in brackets before squaring.
  2. x=−1:y=(−1)2−2=1−2=−1\displaystyle x=-1:\quad y=(-1)^2-2=1-2=-1
    Why?The square of negative 1\displaystyle 1 is positive 1\displaystyle 1.
  3. x=0:y=02−2=−2\displaystyle x=0:\quad y=0^2-2=-2
    Why?This gives the point on the y-axis.
  4. x=1:y=12−2=−1\displaystyle x=1:\quad y=1^2-2=-1
    Why?The inputs 1\displaystyle 1 and −1\displaystyle - 1 give the same output.
  5. x=2:y=22−2=2\displaystyle x=2:\quad y=2^2-2=2
    Why?The inputs 2\displaystyle 2 and −2\displaystyle - 2 also give the same output.
  6. (−2,2), (−1,−1), (0,−2), (1,−1), (2,2)\displaystyle (-2,2),\ (-1,-1),\ (0,-2),\ (1,-1),\ (2,2)
    Why?Plot x first and y second. Draw a smooth curve through the points, rather than straight segments.
09A graph can touch the axis at a root

Compare the roots of y=x2−4\displaystyle y=x^2-4 and y=x2\displaystyle y=x^2.

Why this method? A root is an input where the output is zero. The graph may cross the x-axis or just touch it.

  1. x2−4=0⇒x2=4\displaystyle x^2-4=0\quad\Rightarrow\quad x^2=4
    Why?For the first graph, set y equal to zero.
  2. x=−2orx=2\displaystyle x=-2\quad\text{or}\quad x=2
    Why?Both positive 2\displaystyle 2 and negative 2\displaystyle 2 square to 4\displaystyle 4. This graph crosses the axis twice.
  3. x2=0⇒x=0\displaystyle x^2=0\quad\Rightarrow\quad x=0
    Why?For the second graph, zero is the only root. This graph touches the axis at (0,0)\displaystyle \left(0 , 0\right).
10Read a cost graph in context

A taxi fare is modelled by C=5+2d\displaystyle C=5+2d, where C is in euro and d is in kilometres. Interpret the intercept and slope.

Why this method? Read what each axis measures. The intercept gives the cost at distance zero; the slope gives the increase in cost for each kilometre.

  1. d=0:C=5+2(0)=5\displaystyle d=0:\quad C=5+2(0)=5
    Why?The vertical intercept is (0,5)\displaystyle \left(0 , 5\right). The fixed charge is €5\displaystyle 5.
  2. change in costchange in distance=21=2\displaystyle \frac{\text{change\ in\ cost}}{\text{change\ in\ distance}}=\frac21=2
    Why?Each extra kilometre adds €2\displaystyle 2. The slope is €2\displaystyle 2 per km.
  3. d=3:C=5+2(3)=11\displaystyle d=3:\quad C=5+2(3)=11
    Why?At 3\displaystyle 3 km the model predicts a fare of €11\displaystyle 11.
11Compose in the right order

If f(x)=2x+1\displaystyle f(x)=2x+1 and g(x)=x2\displaystyle g(x)=x^2, find g(f(3))\displaystyle g(f(3)).

Why this method?

  1. f(3)=2(3)+1=7\displaystyle f(3)=2(3)+1=7
    Why?Work from the inside out.
  2. g(7)=72=49\displaystyle g(7)=7^2=49
    Final stepThe first output is the next input.
12Read an approaching value

For f(x)=x2−4x−2\displaystyle f(x)=\frac{x^2-4}{x-2}, what does f(x) approach as x approaches 2\displaystyle 2?

Why this method?

  1. f(x)=x+2,x≠2\displaystyle f(x)=x+2,\quad x\ne2
    Why?Factor the numerator and cancel only away from 2\displaystyle 2.
  2. The values approach 4\displaystyle 4.
    Final stepThe limit is about nearby values; f(2)\displaystyle f \left(2\right) itself is undefined.
13Plot a cubic using a table

Sketch the graph of f(x)=x3−4x\displaystyle f(x)=x^3-4x near its roots.

Why this method?

  1. f(−3)=−15, f(−1)=3, f(1)=−3, f(3)=15\displaystyle f(-3)=-15,\ f(-1)=3,\ f(1)=-3,\ f(3)=15
    Why?Substitute selected negative and positive inputs.
  2. f(x)=x(x−2)(x+2)\displaystyle f(x)=x(x-2)(x+2)
    Why?Factor to locate the crossings exactly.
  3. Plot the values and join with a smooth curve.
    Final stepThe curve crosses the axis at −2,0\displaystyle - 2 , 0 and 2\displaystyle 2. Use closer inputs if a turning point is hard to see.

Common mistake

Swapping input and output coordinates. The point (2,5)\displaystyle (2,5) means input 2\displaystyle 2 gives output 5\displaystyle 5. It does not mean that input 5\displaystyle 5 gives output 2\displaystyle 2.

Exam technique

Read the scale before estimating a crossing and label a graphical estimate as approximate.

Show your method, use units where appropriate and check whether the question asks for an exact or rounded answer.

04 · Try it yourself

Self-check questions

Work on paper first, then open the answer. These are practice questions, not submitted homework.

Question 1

The function f is given by f(x)=6x+11\displaystyle f \left(x\right) = 6x + 11. What is f(7)\displaystyle f \left(7\right)?

Show answer & check
53\displaystyle 53

Compare your result with the answer. If it differs, revisit a worked example and check each step.

Question 2

The function f is given by f(x)=5x+3\displaystyle f \left(x\right) = 5x + 3. For what value of x is f(x)=38\displaystyle f \left(x\right) = 38?

Show answer & check
7\displaystyle 7

Compare your result with the answer. If it differs, revisit a worked example and check each step.

Question 3 · Build confidence

For y=x2−2\displaystyle y=x^2-2, find y when x=−3\displaystyle x=-3.

Show answer & check
y=(−3)2−2=7\displaystyle y=(-3)^2-2=7.

Square the negative input in brackets.

Question 4 · Apply or explain

Find the root of y=(x−2)2\displaystyle y=(x-2)^2. Does the graph cross or touch the x-axis?

Show answer & check
The root is x=2\displaystyle x=2. The graph touches the axis at (2,0)\displaystyle (2,0).

A square is never negative, so the graph stays on or above the axis.

Question 5 · Apply or explain

The cost model is C=8+3d\displaystyle C=8+3d, in euro, for distance d in kilometres. Interpret both numbers.

Show answer & check
€8\displaystyle 8 fixed charge and €3\displaystyle 3 for each kilometre.

The fixed charge remains when d is zero; 3\displaystyle 3 is the cost increase per kilometre.

Watch an explanation

Videos for this chapter

Choose one explanation, pause to work an example, then return to the notes. All Maths videos →

Corbettmaths · Start here

Function Machines

The YouTube player loads only when you choose this button.

Open on YouTube ↗

Tulla Maths · Calculator guide

Calculator: make a table of values

The YouTube player loads only when you choose this button.

For the Casio fx-83GT CW / fx-85GT CW. Use the table values to draw a graph on paper; the calculator does not display the graph.

Open on YouTube ↗

Classroom resources

Open slides & animated PowerPoint →
Open full-size image ↗
Enlarged maths diagram