Skip to content

A function's graph

A function's graph

A function’s graph

A function’s graph is all the points (x,y)\displaystyle (x,y) in the coordinate system where y\displaystyle y is the value the function gives x\displaystyle x.
The function f\displaystyle f is the rule “multiply by 2 and subtract 1”:

x\displaystyle x−1\displaystyle -10\displaystyle 01\displaystyle 12\displaystyle 2
y\displaystyle y−3\displaystyle -3−1\displaystyle -11\displaystyle 13\displaystyle 3

Each column of the table is a point of the graph.

f(x)\displaystyle f(x)
(−1,−3)\displaystyle (-1,-3)
(0,−1)\displaystyle (0,-1)
(1,1)\displaystyle (1,1)
(2,3)\displaystyle (2,3)
(1.5,2)\displaystyle (1.5,2)

Between the points of the table there are points of the graph too. For example x=1.5\displaystyle {x}={1.5}: 1.5⋅2−1=2\displaystyle {1.5\cdot2-1}={2}, so the point (1.5,2)\displaystyle (1.5,2) is on the graph as well. As more and more such points are worked out, they join into a line.

Reading values off the graph

From the graph you can read the y\displaystyle y of any x\displaystyle x, and also find the values of x\displaystyle x that have a given y\displaystyle y.

  • The y\displaystyle y of x=−1\displaystyle {x}={-1}: from −1\displaystyle -1 on the x\displaystyle x-axis go up to the graph, and from there straight across to the y\displaystyle y-axis: y=1\displaystyle {y}={1}.
  • The values of x\displaystyle x where y=−1\displaystyle {y}={-1}: from −1\displaystyle -1 on the y\displaystyle y-axis go across, and find all the points of the graph at that height.
f(x)\displaystyle f(x)
(−1,1)\displaystyle (-1,1)
(−2,−1)\displaystyle (-2,-1)
(1,−1)\displaystyle (1,-1)
(3,−1)\displaystyle (3,-1)

At the height y=−1\displaystyle {y}={-1} the graph has three points: (−2,−1)\displaystyle (-2,-1), (1,−1)\displaystyle (1,-1) and (3,−1)\displaystyle (3,-1). Each x\displaystyle x has one y\displaystyle y, but the same y\displaystyle y may belong to several values of x\displaystyle x.

A story graph: a bike ride

Noa left home for a bike ride, and came back home.
The graph shows her distance from home at every moment of the ride.
The x\displaystyle x-axis: the time in hours since leaving. The y\displaystyle y-axis: the distance from home in kilometres.

d(x)\displaystyle d(x)
  • In the first hour the graph goes up: Noa moves away from home, to 12 km.
  • Between one hour and an hour and a half the graph is flat: the distance does not change – Noa stopped to rest.
  • Two and a half hours after leaving she is farthest from home: 18 km.
  • Then the graph goes down: Noa rides back, and after 4 hours she is home.

The graph shows the distance from home, not the shape of the road: it goes up while Noa moves away from home, even if the road is flat.

The vertical line test

Each vertical line meets a function’s graph at one point at most.

  • All the points on a vertical line have the same x\displaystyle x.
  • A function gives each x\displaystyle x one y\displaystyle y, so its graph has one point at most on each vertical line.
?\displaystyle ?
x=3\displaystyle x=3
(3,4)\displaystyle (3,4)
(3,−4)\displaystyle (3,-4)

The circle is not a function’s graph: the vertical line x=3\displaystyle {x}={3} meets it at two points, (3,4)\displaystyle (3,4) and (3,−4)\displaystyle (3,-4). That is, x=3\displaystyle {x}={3} gets two values of y\displaystyle y, 4 and −4\displaystyle -4.

Exercise 1

Mark the points where the graph of g\displaystyle g meets the x\displaystyle x-axis and the y\displaystyle y-axis.
Write:

  • y\displaystyle y when x=−2\displaystyle {x}={-2}, and when x=4\displaystyle {x}={4};
  • all the values of x\displaystyle x where y=2\displaystyle {y}={2}.
g(x)\displaystyle g(x)

x=−2\displaystyle {x}={-2}

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    x=4\displaystyle {x}={4}

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      y=2\displaystyle {y}={2}
      Exercise 2

      Answer from the graph of Noa’s ride.

      • How far from home was Noa two hours after leaving?
      • How long did Noa rest?
      • When was Noa 6 km from home? There are two answers.
      • How many kilometres did Noa ride in the whole trip?
      Two hours after setting off (km)

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        The rest (hours)

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          At 6 km
          The whole ride (km)

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            Exercise 3

            Which of the drawings is a function’s graph? Explain with a vertical line.

            a
            ?\displaystyle ?
            b
            ?\displaystyle ?
            c
            ?\displaystyle ?
            d
            ?\displaystyle ?