Skip to main content

Section 5.2 Graphs of Functions

Subsection Reading Function Values from a Graph

The graph below shows the Dow-Jones Industrial Average (the average value of the stock prices of 500 major companies) recorded at noon each day during the stock market correction around October 10, 1987 ("Black Monday").

DJIA

The graph describes a function because there is only one value of the output, DJIA, for each value of the input, \(t\text{.}\) There is no formula that gives the DJIA for a particular day; but it is still a function, defined by its graph. The value of \(f(t)\) is specified by the vertical coordinate of the point with the given \(t\)-coordinate.

Example 5.25.
  1. The coordinates of point \(P\) on the DJIA graph are \((15, 2412)\text{.}\) What do the coordinates tell you about the function \(f\text{?}\)
  2. If the DJIA was 1726 at noon on October 20, what can you say about the graph of \(f\text{?}\)
Solution
  1. The coordinates of point \(P\) tell us that \(f(15) = 2412\text{,}\) so the DJIA was 2412 at noon on October 15.
  2. We can say that \(f(20) = 1726\text{,}\) so the point \((20, 1726)\) lies on the graph of \(f\text{.}\) This point is labeled \(Q\) in the figure above.

The coordinates of each point on the graph of the function give the output for a specific input.

Graph of a Function.

The point \((a, b)\) lies on the graph of the function \(f\) if and only if \(f(a)=b\text{.}\)

The water level in Lake Huron alters unpredictably over time. The graph below gives the average water level, \(L=f(t)\text{,}\) in meters in the year \(t\) over a 20-year period. (Source: The Canadian Hydrographic Service)

graph of Lake Huron water level

The second coordinate of a point on the graph is the function value for the first coordinate.

Functions and Coordinates.

Each point on the graph of the function \(f\) has coordinates \((x, f(x))\) for some value of \(x\text{.}\)

Example 5.28.

The figure shows the graph of a function \(g\text{.}\)

graph of a function
  1. Find \(g(-2)\) and \(g(5)\text{.}\)
  2. For what value(s) of \(t\) is \(g(t) = -2\text{?}\)
  3. What is the largest, or maximum, value of \(g(t)\text{?}\) For what value of \(t\) does the function take on its maximum value?
  4. On what intervals is \(g\) increasing?
Solution
  1. To find \(g(-2)\text{,}\) we look for the point with \(t\)-coordinate \(-2\text{.}\) The point \((-2, 0)\) lies on the graph of \(g\text{,}\) so \(g(-2) = 0\text{.}\) Similarly, the point \((5, 1)\) lies on the graph, so \(g(5) = 1\text{.}\)
  2. We look for points on the graph with \(y\)-coordinate \(-2\text{.}\) Because the points \((-5, -2)\text{,}\) \((-3, -2)\text{,}\) and \((3, -2)\) lie on the graph, we know that \(g(-5) = -2\text{,}\) \(g(-3) = -2\text{,}\) and \(g(3) = -2\text{.}\) Thus, the \(t\)-values we want are \(-5\text{,}\) \(-3\text{,}\) and \(3\text{.}\)
  3. The highest point on the graph is \((1, 4)\text{,}\) so the largest \(y\)-value is \(4\text{.}\) Thus, the maximum value of \(g(t)\) is \(4\text{,}\) and it occurs when \(t = 1\text{.}\)
  4. A graph is increasing if the \(y\)-values get larger as we read from left to right. The graph of \(g\) is increasing for \(t\)-values between \(-4\) and \(1\text{,}\) and between \(3\) and \(5\text{.}\) Thus, \(g\) is increasing on the intervals \((-4, 1)\) and \((3, 5)\text{.}\)

Refer to the graph of the function \(g\) shown in Example 5.28.

graph of a function

Subsection Constructing the Graph of a Function

We can construct a graph for a function described by a table or an equation. We make these graphs the same way we graph equations in two variables: by plotting points whose coordinates satisfy the equation.

Example 5.31.

Graph the function \(f(x) = \sqrt{x + 4}\)

Solution

We choose several convenient values for \(x\) and evaluate the function to find the corresponding \(f(x)\)-values. For this function we cannot choose \(x\)-values less than \(-4\text{,}\) because the square root of a negative number is not a real number.

\begin{equation*} f(\alert{-4}) =\sqrt{\alert{-4} + 4}=\sqrt{0}= 0 \end{equation*}
\begin{equation*} f(\alert{-3}) =\sqrt{\alert{-3} + 4}=\sqrt{1}= 1 \end{equation*}
\begin{equation*} f(\alert{0}) =\sqrt{\alert{0} + 4}=\sqrt{4}=2 \end{equation*}
\begin{equation*} f(\alert{2}) =\sqrt{\alert{2} + 4}=\sqrt{6}\approx 2.45 \end{equation*}
\begin{equation*} f(\alert{5}) =\sqrt{\alert{5} + 4}=\sqrt{9}=3 \end{equation*}

The results are shown in the table.

\(x\) \(f(x)\)
\(-4\) \(0\)
\(-3\) \(1\)
\(0\) \(2\)
\(2\) \(\sqrt{6}\)
\(5\) \(3\)
square root graph

Points on the graph have coordinates \((x, f(x))\text{,}\) so the vertical coordinate of each point is given by the value of \(f(x)\text{.}\) We plot the points and connect them with a smooth curve, as shown in the figure. Notice that no points on the graph have \(x\)-coordinates less than \(-4\text{.}\)

Technology 5.33. Using Technology to Graph a Function.

We can also use a graphing utility to obtain a table and graph for the function in Example 5.31. We graph a function just as we graphed an equation. For this function, we enter

\begin{equation*} Y_1 = \sqrt{\,}(X+4) \end{equation*}

and press ZOOM \(6\) for the standard window. Your calculator does not use the \(f(x)\) notation for graphs, so we will continue to use \(Y_1,~ Y_2,\) etc. for the output variable. Don't forget to enclose \(x+4\) in parentheses, because it appears under a radical. The graph is shown below.

GC square root graph

\(f(x)=x^3-2\)

cubic

Subsection The Vertical Line Test

In a function, two different outputs cannot be related to the same input. This restriction means that two different ordered pairs cannot have the same first coordinate. What does it mean for the graph of the function?

Consider the graph shown in Figure (a). Every vertical line intersects the graph in at most one point, so there is only one point on the graph for each \(x\)-value. This graph represents a function.

vertical line test

In Figure (b), however, the line \(x=2\) intersects the graph at two points, \((2,1)\) and \((2,4)\text{.}\) Two different \(y\)-values, 1 and 4, are related to the same \(x\)-value, 2. This graph cannot be the graph of a function.

The Vertical Line Test.

A graph represents a function if and only if every vertical line intersects the graph in at most one point.

Example 5.35.

Use the vertical line test to decide which of the graphs in the figure represent functions.

vertical line test
Solution
  • Graph (a) represents a function, because it passes the vertical line test.

  • Graph (b) is not the graph of a function, because the vertical line at (for example) \(x = 1\) intersects the graph at two points.

  • For graph (c), notice the break in the curve at \(x = 2\text{:}\) The solid dot at \((2, 1)\) is the only point on the graph with \(x = 2\text{;}\) the open circle at \((2, 3)\) indicates that \((2, 3)\) is not a point on the graph. Thus, graph (c) is a function, with \(f(2) = 1\text{.}\)

Use the vertical line test to determine which of the graphs below represent functions.

vertical line test

  • (a)

  • (b)

  • (c)

  • None of the above

Solution

Only (b) is a function.

Subsection Graphical Solution of Equations and Inequalities

We have used graphs to solve linear and quadratic equations and inequalities. We can also use a graphical technique to solve equations and inequalities involving other functions.

Example 5.38.

Use a graph of \(f(x)=-2x^3 + x^2 + 16x\) to solve the equation

\begin{equation*} -2x^3 + x^2 + 16x = 15 \end{equation*}
Solution

If we sketch in the horizontal line \(y = 15\text{,}\) we can see that there are three points on the graph of \(f\) that have \(y\)-coordinate \(15\text{,}\) as shown below. The \(x\)-coordinates of these points are the solutions of the equation.

graph of cubic

From the graph, we see that the solutions are \(x = -3\text{,}\) \(x = 1\text{,}\) and approximately \(x = 2.5\text{.}\) We can verify each solution algebraically.

For example, if \(x = \alert{-3}\text{,}\) we have

\begin{align*} f(\alert{-3})\amp= -2(\alert{-3})3 + (\alert{-3})^2 + 16(\alert{-3})\\ \amp= -2(-27) + 9 - 48\\ \amp =54 + 9 - 48 = 15 \end{align*}

so \(-3\) is a solution. Similarly, you can check that \(x = 1\) and \(x = 2.5\) are solutions.

graph of parabola
Example 5.41.

Use the graph in Example 5.38 to solve the inequality

\begin{equation*} -2x^3 + x^2 + 16x \ge 15 \end{equation*}
Solution

We first locate all points on the graph that have \(y\)-coordinates greater than or equal to \(15\text{.}\) The \(x\)-coordinates of these points are the solutions of the inequality.

The figure below shows the points in red, and their \(x\)-coordinates as intervals on the \(x\)-axis. The solutions are \(x \le -3\) and \(1\le x \le 2.5\text{,}\) or in interval notation, \((-\infty, -3] \cup [1, 2.5]\text{.}\)

graph of cubic
graph of cubic

Subsection More about Notation

To simplify the notation, we sometimes use the same letter for the output variable and for the name of the function. In the next example, \(C\) is used in this way.

Example 5.43.

TrailGear decides to market a line of backpacks. The cost, \(C\text{,}\) of manufacturing backpacks is a function of the number of backpacks produced, \(x\text{,}\) given by the equation

\begin{equation*} C=C(x)=3000+20x \end{equation*}

where \(C(x)\) is in dollars. Find the cost of producing 500 backpacks.

Solution

To find the value of \(C\) that corresponds to \(x=\alert{500}\text{,}\) we evaluate \(C(\alert{500})\text{:}\)

\begin{equation*} C(\alert{500}) = 3000+20(\alert{500}) = 13,000 \end{equation*}

The cost of producing 500 backpacks is $13,000.

Exercises Problem Set 5.2

Warm Up

For problems 1–4, sketch a graph of the linear or quadratic function by hand, and label the significant points.

1.

\(f(x)=3x-4\)

10 by 10 grid
2.

\(F(t)=\dfrac{-3}{4}t + 60\)

10 by 10 grid
3.

\(p(t)=3-t^2\)

10 by 10 grid
4.

\(g(w)=(w+2)^2\)

10 by 10 grid
5.

Use the graph of \(~y=1.4x-0.64~\) to solve the inequalities. Show your method on the graph.

  1. \(\displaystyle 1.4x-0.64 \gt 0.2\)

    y = 1.4x - 0.64
  2. \(\displaystyle -1.2 \gt1.4x-0.64 \)

    y = 1.4x - 0.64
6.

Use the graphs to solve the inequalities. Show your method on the graph.

  1. \(\displaystyle -6x^2+4.8x-0.9 \ge 0\)

    parabola
  2. \(\displaystyle 5x^2+7.5x+1.8 \le 0\)

    parabola
Skills Practice

For Problems 7–10,

  1. Make a table of values and sketch a graph of the function by plotting points. (Use the suggested \(x\)-values.)
  2. Use your calculator to make a table of values and to graph the function. Compare the calculator's graph with your sketch.
7.

\(g(x)=x^3+4\)

\(x = -2, -1, \dots, 2\)

8.

\(h(x)=2+\sqrt{x}\)

\(x = 0, 1, \dots, 9\)

9.

\(G(x)=\sqrt{4-x}\)

\(x = -5, -4, \dots, 4\)

10.

\(w(x)=x^3-8x\)

\(x = -4, -3, \dots, 4\)

Applications

For Problems 11–14, use the graph.

11.
curve
  1. Find \(h(-3), ~h(1),\) and \(h(3)\text{.}\)
  2. For what value(s) of \(z\) is \(h(z)=3\text{?}\)
  3. Find the intercepts of the graph. List the function values given by the intercepts.
  4. What is the maximum value of \(h(z)\text{?}\)
  5. For what value(s) of \(z\) does \(h\) take on its maximum value?
  6. On what intervals is the function increasing? Decreasing?
12.
curve
  1. Find \(R(1)\) and \(R(3)\text{.}\)
  2. For what value(s) of \(p\) is \(R(p)=2\text{?}\)
  3. Find the intercepts of the graph. List the function values given by the intercepts.
  4. Find the maximum and minimum values of \(R(p)\text{.}\)
  5. For what value(s) of \(p\) does \(R\) take on its maximum and minimum values?
  6. On what intervals is the function increasing? Decreasing?
13.
curve
  1. Find \(S(0), ~S\left(\dfrac{1}{6}\right),\) and \(S(-1)\text{.}\)
  2. Estimate the value of \(S\left(\dfrac{1}{3}\right)\) from the graph.
  3. For what value(s) of \(x\) is \(S(x)=\dfrac{-1}{2}\text{?}\)
  4. Find the maximum and minimum values of \(S(x)\text{.}\)
  5. For what value(s) of \(x\) does \(S\) take on its maximum and minimum values?
  6. On what intervals is the function increasing? Decreasing?
14.
step function
  1. Find \(F(-3),~F(-2)\) and \(F(2)\text{.}\)
  2. For what value(s) of \(s\) is \(F(s)=-1\text{?}\)
  3. Find the maximum and minimum values of \(F(s)\text{.}\)
  4. For what value(s) of \(s\) does \(F\) take on its maximum and minimum values?
15.

The graph shows the speed of sound in the ocean as a function of depth, \(S = f (d)\text{.}\) The speed of sound is affected both by increasing water pressure and by dropping temperature. (Source: Scientific American)

speed of sound vs depth
  1. Evaluate \(f(1000)\) and explain its meaning.

  2. Solve \(f(d) = 1500\) and explain its meaning.

  3. At what depth is the speed of sound the slowest, and what is the speed? Write your answer with function notation.

  4. Describe the behavior of \(f(d)\) as \(d\) increases.

16.

The figure shows the temperature of the ocean at various depths.

graph
  1. Is depth a function of temperature?
  2. Is temperature a function of depth?
  3. The axes in this figure are scaled in an unusual way. Why is it useful to present the graph in this way?
  4. What is the difference in temperature between the surface of the ocean and the deepest level shown?
  5. Over what depths does the temperature change most rapidly?
  6. What is the average rate of change of temperature with respect to depth in the region called the thermocline?
17.

Which of the following graphs represent functions?

graph
18.

Which of the following graphs represent functions?

graph
19.

The figure shows the graph of \(g(x) = \dfrac{12}{2 + x^2}\text{.}\) Use the graph to solve the following equations and inequalities. Show your work on the graph. Write your answers in interval notation.

bell-like curve
  1. \(\displaystyle \dfrac{12}{2 + x^2} = 4\)
  2. \(\displaystyle \dfrac{12}{2 + x^2} \gt 4\)
  3. \(\displaystyle 1\le \dfrac{12}{2 + x^2} \le 2\)
  4. \(\displaystyle \dfrac{12}{2 + x^2} \le 6\)
20.

The figure shows the graph of \(H(t)=t^3-4t^2-4t-12\text{.}\) Use the graph to solve the following equations and inequalities. Show your work on the graph. Write your answers in interval notation.

cubic
  1. \(\displaystyle t^3-4t^2-4t-12 = -4\)
  2. \(\displaystyle t^3-4t^2-4t-12=16\)
  3. \(\displaystyle t^3-4t^2-4t-12 \lt -4\)
  4. \(\displaystyle t^3-4t^2-4t-12 \gt 6\)
21.

The figure shows a graph of \(M = g(q)\text{.}\)

mystery curve
  1. Find all values of \(q\) for which

    1. \(\displaystyle g(q) = 0\)

    2. \(\displaystyle g(q) = 16\)

    3. \(\displaystyle g(q)\lt 6\)

  2. For what values of \(q\) is \(g(q)\) increasing?

22.

The figure shows a graph of \(P = f(t)\text{.}\)

mystery curve
  1. Find all values of \(t\) for which

    1. \(\displaystyle f(t)=3\)

    2. \(\displaystyle f(t) \gt 4.5\)

    3. \(\displaystyle 2 \le f(t) \le 4\)

  2. For what values of \(q\) is \(g(q)\) increasing?

For Problems 23 and 24, graph each function in the "friendly" window

\begin{align*} \text{Xmin} \amp = -9.4 \amp\amp \text{Xmax} = 9.4\\ \text{Ymin} \amp = -10 \amp\amp \text{Ymax} = 10 \end{align*}

Then answer the questions about the graph.

23.

\(g(x)=\sqrt{36-x^2}\)

  1. Find the intercepts of the graph. Write your answers in function notation.
  2. Find all points on the graph for which \(g(x)=6.4\text{.}\)
  3. Explain why there are no points on the graph with \(x \gt 6\) or \(x \lt-6\text{.}\)
24.

\(F(x)=0.5x^3-4x\)

  1. Estimate the coordinates of the turning points of the graph, where the graph changes from increasing to decreasing or vice versa.
  2. Estimate the coordinates of the \(x\)-intercepts.
  3. Write an equation of the form \(F(a)=b\) for each turning point and each \(x\)-intercept.

For Problems 25 and 26,

  1. Compute \(f(0)\) and \(g(0)\text{.}\)
  2. Find all values of \(x\) for which \(f(x)=0\text{.}\)
  3. Find all values of \(x\) for which \(g(x)=0\text{.}\)
  4. Find all values of \(x\) for which \(f(x)=g(x)\text{.}\)
  5. Graph \(f\) and \(g\) on the same axes, and illustrate your answers to (a)–(d) as points on the graph.
25.

\(f(x) = 2x^2+3x, \quad g(x) = 5-6x\)

grid
26.

\(f(x) = 2x^2-2x, \quad g(x) = x^2+3\)

grid