Chapter 9 Ā· Functions

Read Functions and Values from Graphs

Use vertical lines to tell whether a graph shows a function, then read exact outputs at marked inputs and check them against each piece.

15 min read

You already know that a function gives each allowed input exactly one output, while different inputs may share an output. The set of allowed inputs is called the domain. You have used this rule with tables and ordered pairs. For each graph in this lesson, the text states which inputs it covers, and the grid lines are 11 unit apart.

A graph shows input-output pairs as points. In a point (x,y)(x, y), the input xx is measured along the horizontal axis and the output yy along the vertical axis. Every point with input 22, for example, lies on one vertical line: the line through 22 on the horizontal axis. So each point where that line meets a graph gives one output for input 22, and counting those points tells you how many outputs input 22 has.

Key concept

The vertical-line check

A graph shows yy as a function of xx when every input in its stated domain has exactly one output. Different inputs may share an output, so two points at the same height are fine when their inputs differ.

To check, imagine a vertical line at every input in the domain:

  • If each of these lines meets the graph exactly once, the graph is a function on that domain.
  • If any of these lines meets the graph at two or more points, that input has two or more outputs, so the graph is not a function of xx.

Apply the check to the whole graph across its whole domain. Testing a few sample inputs leaves the rest untested, but one failing input is enough to rule out a function.

Graph on a coordinate grid. Horizontal axis: x, from āˆ’2 to 6. Vertical axis: y, from āˆ’3 to 5. Grid lines every 1. A circle with center (2, 1) and radius 3. Its leftmost, rightmost, lowest and highest points are (āˆ’1, 1), (5, 1), (2, āˆ’2) and (2, 4). At the input x = 2 the circle has two outputs, y = āˆ’2 and y = 4, so it is not the graph of a function of x.

Circle with center (2,1)(2, 1) and radius 33, passing through (2,4)(2, 4) and (2,āˆ’2)(2, -2), two points with the same input 22.

Worked example

Testing a circle

The figure shows a circle with center (2,1)(2, 1) and radius 33, so every point on it is exactly 33 units from the center. Its inputs run from 2āˆ’3=āˆ’12 - 3 = -1 to 2+3=52 + 3 = 5. Is the circle a function of xx?

  1. Choose an input from āˆ’1 to 5 to test. The center's input, x = 2, is a good choice, because the vertical line there passes right through the center.

    x=2x = 2
  2. Move 3 units straight up and straight down from the center (2, 1). Each new point is exactly 3 units from the center, so it lies on the circle. Moving straight up or down changes only y, so both points keep the input 2.

    (2,1+3)=(2,4)and(2,1āˆ’3)=(2,āˆ’2)(2, 1 + 3) = (2, 4) \quad \text{and} \quad (2, 1 - 3) = (2, -2)
  3. So input 2 has two outputs, 4 and āˆ’2. One input with two outputs breaks the rule, so you can stop here: no other input needs checking.

Answer

The circle is not a function of xx, because the input x=2x = 2 has two outputs, y=4y = 4 and y=āˆ’2y = -2.

Graph on a coordinate grid. Horizontal axis: x, from āˆ’1 to 6. Vertical axis: y, from āˆ’1 to 5. Grid lines every 1. A sideways parabola, x = y² āˆ’ 4y + 5, drawn for y = 0 to 4. It opens to the right, with its vertex at (1, 2), and its ends are (5, 0) and (5, 4). At the input x = 5 it has two outputs, y = 0 and y = 4, so it is not the graph of a function of x.

The curve x=y2āˆ’4y+5x = y^2 - 4y + 5 for 0≤y≤40 \le y \le 4, which passes through both (2,1)(2, 1) and (2,3)(2, 3).

A parabola is a U-shaped curve. The curve above is a sideways parabola: its equation x=y2āˆ’4y+5x = y^2 - 4y + 5, for 0≤y≤40 \le y \le 4, finds xx from yy, so the U opens to the right. Putting in values of yy gives points on it:

  • y=0y = 0: x=02āˆ’4(0)+5=0āˆ’0+5=5x = 0^2 - 4(0) + 5 = 0 - 0 + 5 = 5, one end
  • y=1y = 1: x=12āˆ’4(1)+5=1āˆ’4+5=2x = 1^2 - 4(1) + 5 = 1 - 4 + 5 = 2
  • y=2y = 2: x=22āˆ’4(2)+5=4āˆ’8+5=1x = 2^2 - 4(2) + 5 = 4 - 8 + 5 = 1, the turning point, where the curve changes direction
  • y=3y = 3: x=32āˆ’4(3)+5=9āˆ’12+5=2x = 3^2 - 4(3) + 5 = 9 - 12 + 5 = 2
  • y=4y = 4: x=42āˆ’4(4)+5=16āˆ’16+5=5x = 4^2 - 4(4) + 5 = 16 - 16 + 5 = 5, the other end

Its inputs run from 11, at the turning point, to 55, at the ends. Input 22 appears twice: (2,1)(2, 1) and (2,3)(2, 3) are both on the curve, so input 22 has two outputs. The sideways parabola is not a function of xx. The next graph passes the check.

Graph on a coordinate grid. Horizontal axis: x, from āˆ’1 to 9. Vertical axis: y, from āˆ’1 to 7. Grid lines every 1. One connected path over the inputs x = 0 to 8, with closed endpoints at (0, 1) and (8, 3). Every input from 0 to 8 has exactly one output, so it is the graph of a function. Piece 1 of 3, x = 0 to 2: straight, from (0, 1) to (2, 5), slope 2, increasing. Join at (2, 5). Piece 2 of 3, x = 2 to 6: curved, part of y = x² āˆ’ 8x + 17, from (2, 5) to (6, 5); it opens upward, with its turning point (a minimum) at (4, 1). It is decreasing from x = 2 to 4, getting less steep (slope āˆ’4 to 0), then increasing from x = 4 to 6, getting steeper (slope 0 to 4). Join at (6, 5). Piece 3 of 3, x = 6 to 8: straight, from (6, 5) to (8, 3), slope āˆ’1, decreasing. Increasing on x = 0 to 2; decreasing on x = 2 to 4; increasing on x = 4 to 6; decreasing on x = 6 to 8. Straight (linear) on x = 0 to 2 and x = 6 to 8; curved (nonlinear) on x = 2 to 6.

One connected path over the domain 0≤x≤80 \le x \le 8: a segment, a curve and a segment, joined at (2,5)(2, 5) and (6,5)(6, 5).

Worked example

Testing a connected path

This graph is one connected path over the domain 0≤x≤80 \le x \le 8, with its pieces joined end to end. From left to right, the pieces are the segment from (0,1)(0, 1) to (2,5)(2, 5), the curve y=x2āˆ’8x+17y = x^2 - 8x + 17 for 2≤x≤62 \le x \le 6, and the segment from (6,5)(6, 5) to (8,3)(8, 3). Is the graph a function of xx on its domain?

  1. Check that the pieces cover the whole domain. They run over inputs 0 to 2, then 2 to 6, then 6 to 8, so every input from 0 to 8 lies on at least one piece.

    0≤x≤2,2≤x≤6,6≤x≤80 \le x \le 2, \quad 2 \le x \le 6, \quad 6 \le x \le 8
  2. Check inside each piece. Each segment's endpoints have different inputs, so it is not vertical, and a vertical line meets it at most once. Unlike the sideways parabola, the curve's equation finds y by calculating with x, and one calculation gives one result. So inside any one piece, each input has one output. This comes from the stated endpoints and equation, not from how the picture looks.

  3. Check input 2, where the first segment meets the curve, because it belongs to both pieces. The segment ends at (2, 5), and the curve gives the same output, so input 2 still has only one output.

    22āˆ’8(2)+17=4āˆ’16+17=52^2 - 8(2) + 17 = 4 - 16 + 17 = 5
  4. Check input 6 the same way. The curve gives 5, which matches the start (6, 5) of the last segment.

    62āˆ’8(6)+17=36āˆ’48+17=56^2 - 8(6) + 17 = 36 - 48 + 17 = 5
  5. Notice that inputs 2 and 6 share the output 5. That is allowed: the rule limits how many outputs one input has, not how many inputs share an output.

Answer

Yes. Every input in the domain 0≤x≤80 \le x \le 8 has exactly one output, so the graph is a function of xx on that domain.

Because a function gives each input in its domain exactly one output, though different inputs may share an output, you can ask for the output of an input. To read it, start at the input on the horizontal axis and look straight up to the graph (straight down if the graph is below the axis). Then look straight across to the vertical axis: the number there is the output. This works because the point you reach has your input as its xx-coordinate, and its height is its yy-coordinate, the output.

Read values only at marked inputs, the inputs where the figure marks a point on the graph. They sit on grid lines, and the figure gives each marked point exactly. Between marks, the drawing can only suggest an estimate, not an exact value. After reading a value, check it against the piece it lies on, using that piece's equation or its endpoints. An input outside the domain has no output, because the vertical line there misses the graph.

Graph on a coordinate grid. Horizontal axis: x, from āˆ’1 to 9. Vertical axis: y, from āˆ’1 to 7. Grid lines every 1. One connected path over the inputs x = 0 to 8, with closed endpoints at (0, 1) and (8, 3). Every input from 0 to 8 has exactly one output, so it is the graph of a function. Piece 1 of 3, x = 0 to 2: straight, from (0, 1) to (2, 5), slope 2, increasing. Join at (2, 5). Piece 2 of 3, x = 2 to 6: curved, part of y = x² āˆ’ 8x + 17, from (2, 5) to (6, 5); it opens upward, with its turning point (a minimum) at (4, 1). It is decreasing from x = 2 to 4, getting less steep (slope āˆ’4 to 0), then increasing from x = 4 to 6, getting steeper (slope 0 to 4). Join at (6, 5). Piece 3 of 3, x = 6 to 8: straight, from (6, 5) to (8, 3), slope āˆ’1, decreasing. Increasing on x = 0 to 2; decreasing on x = 2 to 4; increasing on x = 4 to 6; decreasing on x = 6 to 8. Straight (linear) on x = 0 to 2 and x = 6 to 8; curved (nonlinear) on x = 2 to 6. Marked values: at x = 1, y = 3; at x = 3, y = 2; at x = 7, y = 4.

The same path with inputs 11, 33 and 77 marked; the domain is still 0≤x≤80 \le x \le 8.

Worked example

Reading values from the path

Use the marked points on this graph, whose domain is 0≤x≤80 \le x \le 8, to find the outputs for inputs 11, 33 and 77, and check each one against its piece. Then decide whether input 99 has an output.

  1. Input 1: start at 1 on the horizontal axis, look up to the marked point, then look across to the vertical axis, which gives 3. Check it: input 1 is on the segment from (0, 1) to (2, 5). On a straight segment, equal steps in input give equal steps in output, so input 1, halfway from 0 to 2, has the output halfway from 1 to 5.

    1+52=62=3\frac{1 + 5}{2} = \frac{6}{2} = 3
  2. Input 3: look up from 3 to the marked point on the curve, then across to the output 2. Check it by putting x = 3 into the curve's equation, which covers inputs 2 to 6.

    y=32āˆ’8(3)+17=9āˆ’24+17=2y = 3^2 - 8(3) + 17 = 9 - 24 + 17 = 2
  3. Input 7: look up from 7 to the marked point, then across to the output 4. Check it: input 7 is halfway along the segment from (6, 5) to (8, 3), so its output is halfway from 5 to 3.

    5+32=82=4\frac{5 + 3}{2} = \frac{8}{2} = 4
  4. Input 9 is greater than 8, so it lies outside the domain. The vertical line at 9 misses the graph, so input 9 has no output here. Do not extend the last segment to guess one.

    9>89 > 8

Answer

Input 11 has output 33, input 33 has output 22, and input 77 has output 44. Input 99 is outside the domain 0≤x≤80 \le x \le 8, so the graph gives it no output.

A graph is a function of xx when every input in its stated domain has exactly one output: each vertical line at an input in the domain meets the graph exactly once, though different inputs may share an output. A circle and a sideways U-shaped parabola each have an input with two outputs, so neither is a function of xx. On a function's graph, find an output by looking from a marked input up (or down) to the graph and across, then confirm it with the piece's equation or endpoints. Inputs outside the domain have no output. Next, you will find the domain and range of a function, where the range is the set of all its outputs.