Precalculus by Richard Wright

Previous Lesson Table of Contents Next Lesson

Are you not my student and
has this helped you?

This book is available
to download as an epub.


Now faith is confidence in what we hope for and assurance about what we do not see. ‭‭‭‭‭‭‭‭Hebrews‬ ‭11‬:‭1‬ ‭NIV‬‬‬

1-05 Graphs of Functions

Mr. Wright teaches the lesson.

Summary: In this section, you will:

SDA NAD Content Standards (2018): PC.5.3

Cars At Shell Gas Station
Figure 1: Domain and range are important to know when buying gas. credit (pixy.org/Eladia Henning)

On the way home, Pedro needs to get gas for his car. The price of the gas is $2.75 and the car holds 12 gallons of gas. The total price is a function of the number of gallons pumped into the car. The function modeling this is P = 2.75g. Remember that the domain is the input of the function which is the number of gallons pumped into the car, so the domain of this function is 0 to 12 gallons, or [0, 12]. The range is the output of the function or the total price which is $0 when 0 gallons are pumped to $33 when 12 gallons are pumped, or [0, 33]. Thus when Pedro arrives at the pump, he should have $33 dollars because the total price of his gas will be that or less.

Find Domain and Range from Graphs

The last lesson covered how to find domain from a function's equations. This lesson will cover how to find domain and range from a graph. The domain is the set of all input values, and on a graph, those are the x-values for which the function is graphed. The range is the set of all the output values, and on a graph, those the y-values for which the function is graphed. Remember that the graph continues beyond the visible portion of the graph, so the domain and range may be larger than what can be seen.

domain and range
Figure 2: Domain and range of a graphed function.

The graph extends horizontally in the x from −5 to the right and extends beyond the edge of the graph, so the domain is [−5, ∞). Also, the graph extends vertically in the y from −4 and up and extends beyond the edge of the graph, so the range is [−4, ∞). The domain is the horizontal extent of the graph, and the range is the vertical extent.

Domain and Range from a Graph

Example 1: Find Domain and Range from a Graph

Find the domain and range of the function in the graph below.

domain and range example graph
Figure 3
Solution

The horizontal extent of the graph is from x = −4 to x = 3. Because the right end of the function is an open dot, it does not include the point at x = 3. So the domain is [−4, 3).

The vertical extent of the graph is from y = −5 to y = 5. Because the left peak of the graph actually includes y = 5, it is included in the range even though it is not included in the right-hand point. The range is [−5, 5].

domain and range answer graph
Figure 4: Domain and range

Example 2: Find Domain and Range from a Graph

Find the domain and range of the function in the graph representing the size of the average house in the United States.

Alaska Crude Oil Production
Figure 5: Size of average US house in ft2 (Data: 24/7 Wall St.)
Solution

The horizontal extent of the graph is the years 1920 to 2010. The domain is [1920, 2010].

The vertical extent of the graph is the area of 983 ft2 to 2392 ft2. The range is [983, 2392].

Note that the range may need to be estimated because the points do not lie directly on a grid line.

Try It 1

Find the domain and range of the function in the graph below.

Answer

Domain: (−∞, 0) ∪ (0, ∞), Range: (-∞, 0) ∪ (0, ∞)

Vertical Line Test

Remember last lesson talked about what relations are functions. A function is a relation where each input value is paired to exactly one output value. In other words, no input value can be paired with more than one output value. Graphically, that means that no x-value can have more than one y-value. If it did, then a vertical line through the x-value would contain more than one y-value of the graph.

The vertical line test is used to determine whether a graph represents a function. A graph represents a function if no vertical line can intersect a graph more than once.

vertical line test vertical line test
Figure 6: Vertical line test. (a) This is a function (b) This is not a function
Vertical Line Test
  1. Look at the graph to see if any vertical line would intersect the curve more than once.
  2. If there is such a line, then the graph does not represent a function.
  3. Otherwise, the graph does represent a function.

Example 3: Apply the Vertical Line Test

Which of the graphs represent a function?

vertical line test parabola vertical line test linear vertical line test circle
Figure 7
Solution

The vertical line test says that if any vertical line intersects a graph more than once, then the graph does not represent a function.

The first two graph are functions because no vertical line can intersect the graph more than one. The circle is not a function because a vertical line can intersect it twice.

vertical line test circle answer
Figure 8: A circle is not a function.
Try It 2

Does the graph represent a function?

Answer

Yes, it passes the vertical line test.

Zeros of a Function

If the graph of f has an x-intercept at (a, 0), then it has a zero at a. The zeros of a function are the values of x that make f(x) = 0. Since f(x) replaced y in the equation, then the zeros occur where the y-values are 0 which is on the x-axis.

Zeros of a Function

The zeros of a function, f(x), are the x-values for which f(x) = 0.

  1. Replace f(x) with 0.
  2. Solve for x.

Example 3: Find Zeros

Find the zeros of the following functions.

  1. f(x) = −2x − 6
  2. g(x) = x2 + 5x + 6
Solution
  1. Replace the f(x) with 0 and solve for x.

    0 = −2x − 6

    6 = −2x

    −3 = x

    The zero of f(x) is x = −3. Notice the graph in figure 9 has x-intercept (−3, 0).

    zeros
    Figure 9: Graph of f(x) = −2x − 6
  2. Replace the g(x) with 0 and solve for x.

    0 = x2 + 5x + 6

    0 = (x + 2)(x + 3)

    x + 2 = 0 → x = −2

    x + 3 = 0 → x = −3

    The zeros of g(x) are x = −3 and x = −2. Notice the graph in figure 10 has x-intercepts (−3, 0) and (−2, 0).

    zeros of parabola
    Figure 10: Graph of g(x) = x2 + 5x + 6.
Try It 3

Find the zeros of f(x) = −x + 5.

Answer

x = 5

Find the Average Rate of Change of a Function

Think about a relation describing the price of gas as a function of the year. The price fluctuates during each year and between years. By looking at how quickly the price changes, prices in the future can be predicted. The price changes day-by-day, but long term trends can be found by using widely separated data such as the beginning and end of an experiment or study. The long term change is called the average rate of change. This is ratio of the change in the output over the change of the input. Thus, rate of change is the same as the slope.

$$ \text{Average rate of change } = \text{ slope } = \frac{\text{Change in output}}{\text{Change in input}} $$

$$ = \frac{Δy}{Δx} $$

$$ = \frac{y_2 - y_1}{x_2 - x_1} $$

$$ = \frac{f(x_2) - f(x_1)}{x_2 - x_1} $$

The Greek letter Δ (delta) stands for "change in", so the average rate of change is the "change in y" over the "change in x".

Examples of rates of change include:

Rate of Change

Example 4: Find Average Rate of Change from a Graph

Find the average rate of change on the interval [−2, 4].for the function in the graph.

parabola
Figure 11
Solution

Start by finding the two points where x = −2 and x = 4. They are (−2, 5) and (4, −4).

Substitute those points into the slope formula.

$$ m = \frac{y_2 - y_1}{x_2 - x_1} $$

$$ m = \frac{-4 - 5}{4 - (-2)} $$

$$ m = -\frac{3}{2} $$

Example 5: Compute Average Rate of Change from a Table

Cheetahs have amazing acceleration and top speed. A video was taken of a cheetah accelerating and the speed data is displayed in the table. Acceleration is the rate of change of speed with time. Find the average acceleration for the first 3 seconds.

Table 1

t (s)

0

0.5

1

1.5

2

2.5

3

3.5

v (m/s)

0

4.63

9.25

13.88

18.5

23.13

27.75

28.33

Solution

The acceleration is the average rate of change. The problem asks for the first 3 seconds, so use the points at t = 0 and t = 3 which are (0, 0) and (3, 27.75).

$$ m = \frac{y_2 - y_1}{x_2 - x_1} $$

$$ a = \frac{27.75 \text{ m/s } - 0}{3 \text{ s } - 0} $$

$$ a = 9.25 \text{ m/s}^2 $$

The cheetah can accelerate at 9.25 m/s2 which is faster than some car's acceleration.

Notice that the average acceleration would be different if a different time frame were chosen. For example the average acceleration from 3 to 3.5 seconds is 1.16 m/s2.

Try It 4

Find the average rate of change for the function f(x) = x3 + 5 from x = 1 and x = 4.

Answer

21

Use a Graph to Determine Where a Function is Increasing, Decreasing, or Constant

As part of the investigation of how functions change, the graphs show intervals where the functions change in specific ways. A function is increasing if it rises left to right and has a positive rate of change. A function is decreasing if it falls from left to right and has a negative rate of change. A function can also be constant if it is horizontal and does not rise or fall. Constant functions have zero rate of change.

increasing and decreasing graph
Figure 12: The function is increasing on (−∞, −2) ∪ (2, ∞) and is decreasing on (−2, 2).

Some functions, such as the one in figure 12, change from increasing to decreasing. This produces the highest point in the area called a local maximum. Likewise, when a function changes from decreasing to increasing, it produces the lowest point in the area called a local minimum. Local maximums and minimums are called extrema. If a function is neither increasing or decreasing, then it is constant and graphs a horizontal line.

For the function whose graph is shown in figure 13, the local maximum is 4, and it occurs at x = −2. The local minimum is −4 and it occurs at x = 2.

maximum and minimum graph
Figure 13: Local maximum and minimum
Increasing, Decreasing, and Constant
Extrema

Example 6: Find Increasing and Decreasing Intervals on a Graph

Identify the intervals on which the function appears to be increasing and decreasing.

increasing decreasing example
Figure 14: Where is the graph increasing, decreasing, or constant?
Solution

The function appears to be three parts: the left part that slopes down, the middle horizontal part, and the right part that slopes up. Therefore, in interval notation, the function decreases on (−∞, −3), is constant on (−3, 3), and increases on (3, ∞).

increasing decreasing example
Figure 15: The function decreases on (−∞, −3), is constant on (−3, 3), and increases on (3, ∞)

Example 7: Find Local Extrema from a Graph

Find all local maximums and minimums.

max min example
Figure 16: What the are local minimums and maximums?
Solution

The maximums are the highest points in the area. For this graph there is only one maximum and it is (−3, 2).

The minimums are the lowest points in the area. For this graph there is only one minimum and it is (2, −3).

max min example
Figure 17: The local minimum is (2, −3) and maximum is (−3, 2).
Try It 5

(a) Identify the intervals on which the function in the graph appears to be increasing and decreasing. (b) Find all the local maxima and minima.

Answer

Increasing: (−3, −0.76) ∪ (2, ∞); Decreasing: (−∞, −3) ∪ (−0.76, 2); Maximum: (−0.76, 1.65); Minimum: (−3, −1), (2, −3)

Lesson Summary

Domain and Range from a Graph

Vertical Line Test
  1. Look at the graph to see if any vertical line would intersect the curve more than once.
  2. If there is such a line, then the graph does not represent a function.
  3. Otherwise, the graph does represent a function.

Zeros of a Function

The zeros of a function, f(x), are the x-values for which f(x) = 0.

  1. Replace f(x) with 0.
  2. Solve for x.

Rate of Change

Increasing, Decreasing, and Constant

Extrema

Helpful videos about this lesson.

Practice Exercises

    Write the domain and range of each function using interval notation.

  1. Use the vertical line test to determine if the graph represents a function.

  2. Find the zeros of the following functions.

  3. f(x) = 5x − 8
  4. g(x) = x2 + 3x + 2
  5. \(h(x) = \sqrt{x + 1}\)
  6. Find the average rate of change of each function on the interval.

  7. j(x) = x2 + 4 on [2, a]
  8. k(x) = −2x + 1 on [1, 1 + h]
  9. m(x) = 2x2 − 3 on [x, x + h]
  10. Use the graph of each function to estimate the (a) intervals on which the function is increasing or decreasing and (b) the extrema.

  11. An odometer in a car gives the distance the car has been driven. At the start of a trip, the odometer reads 124,231 miles. At the end of the trip, 7.25 hours later, the odometer reads 124,739 miles. What is the average speed of the car during this trip?
  12. Mixed Review

  13. (1-04) Evaluate the function for (a) f(−2), (b) f(0), f(2): \(\left\{\begin{align} 2x&, \text{ if } x < 0 \\ x + 1&, \text{ if } x≥ 0 \end{align}\right.\)
  14. (1-04) Find the domain of the function: \(r(t) = \frac{t}{t - 3}\)
  15. (1-03) Find the linear equation that passes through (1, 0) and is parallel to y = 3x − 1
  16. (1-02) Find the x- and y-intercepts of 2xy = 4

Answers

  1. [−2, 4); (−5, 4]
  2. [−4, 4]; [0, 4]
  3. (−2, 4]; [−4, −2]
  4. Not a function
  5. Function
  6. Function
  7. \(\frac{8}{5}\)
  8. −2, −1
  9. −1
  10. a + 2
  11. −2
  12. 4x + 2h
  13. Increasing: (−∞, −2) ∪ (2, ∞); Decreasing: (−2, 2); Maximum: (−2, 4); Minimum: (2, 0)
  14. Increasing: never; Decreasing: (−∞, −2) ∪ (1, ∞); Constant: (−2, 1); No local maximum or minimum
  15. Increasing: (−2.6, 2.6); Decreasing: (−∞, −2.6) ∪ (2.6, ∞); Maximum: (2.6, 2.3); Minimum: (−2.6, −2.3)
  16. about 70.0 mph
  17. −4; 1, 3
  18. (−∞, 3) ∪ (3, ∞)
  19. y = 3x − 3
  20. (2, 0); (0, −4)