Skip to main content

Applied Precalculus MTH 103

Section 1.2 The Graph of a Function

One way to visualize a function is by graphing it. The graph of a function \(y=f(x)\) is the set of all ordered pairs or points \((x,f(x))\) in the \(xy\)-plane such that \(x\) is in the domain of the function \(f\) and \(y=f(x)\) is the output assigned to the input \(x\) by \(f\text{.}\)
This graph is often a curve in the \(xy\)-plane. Specifically, it is the set of all ordered pairs \((x,f(x))\) for which the second coordinate \(y\) is the value of the function \(f\) at the first coordinate \(x\text{;}\) that is, the graph is the set of all points \((x,y)\) that satisfy the equation \(y=f(x)\text{:}\)

Instructions.

Drag the point \(x\) to see how \((x,y)\) changes.
Figure 1.2.1.
A short description.
It is not always reasonable or even possible to plot the ordered pair associated with each \(x\) in the domain of a given function \(f(x)\text{.}\) This is because functions can have many (sometimes even infinitely many) possible inputs. When drawing the graph of a function by hand, we customarily take relatively few points \(x\text{,}\) plot the corresponding ordered pairs \((x,f(x))\) in the \(xy\)-plane, and then join neighboring ordered pairs with straight line segments. The result is an approximation of the graph of the function. Graphing calculators and other graphing tools do exactly thisβ€”they just use a greater number of inputs \(x\) than we typically would when graphing by hand.
It is useful to state a precise definition of the graph of a function as similar definitions appear in other contexts in mathematics.

Definition 1.2.2. Graph of a Function.

The graph of a function \(y=f(x)\) is the collection of all points \((x,y)\) in the \(xy\)-plane for which \(y=f(x)\text{.}\) In other words, the graph is the collection of points \((x,f(x))\) for all inputs \(x\) in the domain of \(f\text{.}\)

Example 1.2.3.

Sketch the graph of the function \(y=f(x)\) where \(f(x)=0.2x^{2}\) by hand. Plot points on the graph for \(x=0,\pm 1, \pm 2, \pm 3, \pm 4\text{.}\)
Solution.
The below table gives each input \(x\text{,}\) the corresponding output \(y\) obtained by calculating \(f(x)\text{,}\) and then the associated point \((x,f(x))\text{.}\)
\(x\) \(y=f(x)\) \((x,f(x))\) pair
\(\textcolor{blue}{-4}\) \(0.2\cdot(-4)^{2}=\textcolor{red}{3.2}\) \((-4,3.2)\)
\(\textcolor{blue}{-3}\) \(0.2\cdot(-3)^{2}=\textcolor{red}{1.8}\) \((-3,1.8)\)
\(\textcolor{blue}{-2}\) \(0.2\cdot(-2)^{2}=\textcolor{red}{0.8}\) \((-2,0.8)\)
\(\textcolor{blue}{-1}\) \(0.2\cdot(-1)^{2}=\textcolor{red}{0.2}\) \((-1,0.2)\)
\(\textcolor{blue}{0}\) \(0.2\cdot(0)^{2}=\textcolor{red}{0}\) \((0,0)\)
\(\textcolor{blue}{1}\) \(0.2\cdot(1)^{2}=\textcolor{red}{0.2}\) \((1,0.2)\)
\(\textcolor{blue}{2}\) \(0.2\cdot(2)^{2}=\textcolor{red}{0.8}\) \((2,0.8)\)
\(\textcolor{blue}{3}\) \(0.2\cdot(3)^{2}=\textcolor{red}{1.8}\) \((3,1.8)\)
\(\textcolor{blue}{4}\) \(0.2\cdot(4)^{2}=\textcolor{red}{3.2}\) \((4,3.2)\)
Plotting these points on the \(xy\)-plane and joining neighboring points by straight line segments results in the following rough sketch of \(f(x)=0.2x^{2}\text{:}\)
A short description.
This is a decent approximation of the graph of \(y=0.2x^{2}\text{.}\) A better graph of \(y=0.2x^{2}\) can be obtained from a graphing calculator, graphing software package, or other similar tool.
A short description.
In ExampleΒ 1.2.3, the function \(f(x)\) was given algebraically. That is, we were provided the algebraic formula \(f(x)=0.2x^{2}\) for the function.
Sometimes, a function is given graphically. That is, we are given only the graph of the function. The following examples illustrate that a great deal of information can be extracted from the graph of a function.

Example 1.2.4.

The amount of nicotine in a person’s bloodstream, \(N=f(t)\text{,}\) in milligrams, is a function of the time \(t\text{,}\) in hours, that has passed since the person smoked a single cigarette. The graph of the function \(f(t)\) is given in FigureΒ 1.2.5.
A short description.
Figure 1.2.5.
  1. How much nicotine is absorbed from a single cigarette?
  2. How much nicotine is left in the person’s bloodstream \(2\) hours after smoking a single cigarette? What about after \(4\) hours?
Solution.
  1. Note that \(f(0)=2\) (as the point \((0,2)\) belongs to the graph of \(f(t)\)). Thus, at \(0\) hoursβ€”so immediately after a person finishes smoking a cigaretteβ€”the amount of nicotine in their bloodstream is \(2\) milligrams. This is the amount absorbed from the cigarette.
  2. As time goes on, the amount of nicotine decreases. We see from the grid on the \(tN\)-plane that \(f(2)=1\text{;}\) in other words, the point \((2,1)\) lies on the graph. This tells us that \(2\) hours after smoking a single cigarette there is \(1\) milligram of nicotine left in the bloodstream.
    Similarly, we observe that \(f(4)=0.5\) and conclude that \(4\) hours after smoking a single cigarette there is only \(0.5\) milligram of nicotine left in the bloodstream.

Example 1.2.6.

A woman is driving to visit with her family in a town \(120\) miles from her home. Let \(t\) be the time, in hours, since she left her home. Let \(d\) be the distance, in miles, to her destination. Here, \(d\) is a function of \(t\text{:}\) \(d=g(t)\text{.}\) The graph of the function \(g(t)\) is given in FigureΒ 1.2.7.
A short description.
Figure 1.2.7.
  1. What is her distance from her destination \(1\) hour after she leaves home?
  2. Estimate the time at which her distance from her destination is \(60\) miles.
  3. When will she reach her destination?
  4. How fast is she driving?
Solution.
  1. The point on the graph above \(t=1\) is \((1,80)\text{.}\) In function notation, this can be written as \(g(1)=80\text{.}\) The practical meaning of this notation is that the distance to her destination after \(1\) hour of driving is \(80\) miles.
  2. We look for the point on the graph for which the second coordinate is \(d=60\text{.}\) The \(t\)-coordinate of that point seems to be at \(t=1.5\text{.}\) We conclude that the point \((1.5,60)\) lies on the graph, and that the associated function notation is \(g(1.5)=60\text{.}\) This means that after \(1.5\) hours, the woman is 60 miles from her destination.
  3. The woman reaches her destination when \(d=0\text{;}\) that is, when \(g(t)=0\text{.}\) From the graph, it is clear that \(g(3)=0\text{.}\) Hence the woman arrives at her destination after \(3\) hours.
  4. In the first hour of driving, her distance from her destination drops from \(120\) miles to \(80\) miles. After the next hour, it drops from \(80\) miles to \(40\) miles, and then from \(40\) miles to \(0\) miles during the hour after that. This pattern reveals that the woman is traveling at \(40\) miles per hour.

Subsection Graphs of Increasing and Decreasing Functions

In graphical terms:
  • A function is increasing if its graph climbs as the independent variable increases; that is, as we move from left to right.
  • A function is decreasing if its graph falls as the independent variable increases; that is, as we move from left to right.
The function \(N=f(t)\) in ExampleΒ 1.2.3 is decreasingβ€”its graph is falling as \(t\) increases. The amount of nicotine decreases as the amount of time after smoking a cigarette increases. In ExampleΒ 1.2.6 the distance to the destination \(d=g(t)\) decreases as the time \(t\) spent driving increases. The function in ExampleΒ 1.2.3 is neither increasing nor decreasing in its domain. At first, over the negative \(x\)-axis the graph is falling; the values \(f(x)\) decrease as \(x\) increases. Then, over the positive \(x\)-axis, the graph is climbing; the values \(f(x)\) increase as \(x\) increases. We can say that \(f\) is decreasing on the interval \(x \lt 0\) and increasing on the interval \(x \gt 0\text{.}\)

By the way...

Definition 1.2.8. Functions Increasing or Decreasing on Intervals.

  • A function \(f(x)\) is increasing on an interval \(I\) if the values \(f(x)\) increase as \(x\) increases along \(I\text{.}\)
  • A function \(f(x)\) is decreasing on an interval \(I\) if the values \(f(x)\) decrease as \(x\) increases along \(I\text{.}\)

Example 1.2.9.

Identify the interval(s) on which the function \(f(x)\) depicted below is increasing and the interval(s) on which it is decreasing.
A short description.
Solution.
The graph of \(f(x)\) is climbing on the interval \(-4 \lt x \lt -2\) and on the interval \(2 \lt x \lt 4\text{.}\) Hence, the function is increasing on these intervals. In interval notation, we would write that the function is increasing on \((-4,-2)\cup(2,4)\text{.}\)
The graph of \(f(x)\) is falling and thus \(f(x)\) is decreasing on the interval \(-2 \lt x \lt 2\text{.}\) In interval notation, we would write that the function is decreasing on \((-2,4)\text{.}\)
By the way...

Subsection Vertical Line Test

We have established that the graph of a function \(y=f(x)\) is often a curve in the \(xy\)-plane. However, not every curve in the \(xy\)-plane is the graph of a function. The definition of a function requires that for each input \(x\) in the domain there is exactly one output \(y\text{.}\) That is, there cannot be two different outputs corresponding to the same input.
The Vertical Line Test is a simple visual way of determining if a given curve is or is not the graph of a function.

By the way...

Example 1.2.11.

Is the circle of radius \(1\) centered at the origin \((0,0)\) in the \(xy\)-plane the graph of a function?
Solution.
Consider the vertical line corresponding to \(x=0.5\text{;}\) that is, the vertical line passing through the point \((0.5,0)\) on the \(x\)-axis.
A short description.
By the way...
This vertical line intersects the circle at two points with two different values of \(y\text{,}\) meaning there are two outputs corresponding to the input \(x=0.5\text{.}\) This violates the definition of a function. Hence, the circle is NOT the graph of a function.
In utilizing the Vertical Line Test, it doesn’t matter if the coordinates on the plane are labeled with \(x\text{,}\) \(y\text{,}\) or other letters. The idea is the same.

Example 1.2.12.

Is the graph of a straight line segment between the ordered pairs \((0,120)\) and \((3,0)\) in the \(td\)-plane the graph of a function?
A short description.
Solution.
The line segment is the graph of a function whose domain is the interval \(0\leq t\leq3\text{.}\) Using the Vertical Line Test, we can see that each individual vertical line that passes through a specific value of \(t\) with \(0\leq t\leq 3\) on the horizontal axis crosses the line segment at exactly one point. Any vertical line that passes through a value of \(t\) outside the interval \(0\leq t \leq 3\) does not intersect the segment.
Note that, in general, a function can have the same output for two different inputs. In ExampleΒ 1.2.3, the function \(f(x)=0.2x^{2}\) gives the same output \(y=1.8\) for both \(x=3\) and \(x=-3\text{.}\) Still, for each \(x\text{,}\) we have only one value of \(y\text{.}\)
Having the same output for two different inputs means that some horizontal lines intersect the graph more than once which is perfectly fine for a function:
A short description.
We will revisit graphs of functions in Section 1.4.

Exercises Exercises

1.

Create a table of values and sketch the graph of the function \(y=x^3\) for \(-2\leq x\leq 2\text{.}\) Then use a graphing calculator or other graphing utility to check your graph.
Solution.
\(x\) \(-2\) \(-1\) \(0\) \(1\) \(2\)
\(y\) \(-8\) \(-1\) \(0\) \(1\) \(8\)
A short description.

2.

Create a table of values and sketch the graph of the function \(f(t)=t^2+t\) for \(-2\leq t\leq 1\text{.}\) Then use your calculator or any other graphing utility to check your graph.
Solution.
\(t\) \(-2\) \(-1\) \(0\) \(1\)
\(f(t)\) \(2\) \(0\) \(0\) \(2\)
A short description.

3.

Create a table of values and sketch the graph of the function \(g(x)=\sqrt{x}\) for \(x\geq 0\text{.}\) Then use a graphing calculator or other graphing utility to check your graph.
Solution.
\(x\) \(0\) \(1\) \(4\) \(9\)
\(g(x)\) \(0\) \(1\) \(2\) \(3\)
A short description.

4.

The total cost of a meal in a restaurant, \(C\text{,}\) in dollars, as a function of the price of the meal, \(p\text{,}\) in dollars is given by:
\begin{equation*} C=p+0.20p \end{equation*}
where the term \(0.20p\) corresponds to the \(20\%\) tip. Create a table of values and sketch the graph of the function \(C=p+0.20p\) for \(10\leq p\leq 20\text{.}\) Then use your calculator or any other graphing utility to check your graph.
Solution.
\(p\) \(10\) \(12\) \(14\) \(16\) \(18\) \(20\)
\(C\) \(12\) \(14.4\) \(16.8\) \(19.2\) \(21.6\) \(24\)
A short description.

7.

For the function \(y=f(x)\) whose graph is given in ExerciseΒ 5, estimate all values of \(x\) for which \(f(x)=8\text{.}\)
Solution.
\(x\approx -1.5\text{,}\) \(x=0\text{,}\) and \(x\approx 4.5\text{.}\)

10.

For the function \(y = f(t)\) whose graph is given in ExerciseΒ 8, estimate all values of \(t\) for which \(f(t) = 12\text{.}\)
Solution.
\(t=3\text{,}\) \(t=9\text{,}\) \(t=15\text{,}\) and \(t=21\)

11.

A driver of a 2019 Toyota Corolla fills his gas tank and embarks on a highway trip. The amount of gas left in the tank, \(G\text{,}\) in gallons, is a function of the number of miles \(m\) driven, \(G=g(m)\text{.}\) Use the graph of \(g(m)\) given below to answer the following questions.
A short description.
  1. What is the fuel tank capacity of the 2019 Toyota Corolla?
  2. How much fuel is left after 200 miles?
  3. What happens after 528 miles?
  4. What is the fuel efficiency of the 2019 Toyota Corolla on the highway?
Solution.
  1. \(13.2\) gallons.
  2. \(8\) gallons.
  3. The gas tank is empty.
  4. Approximately \(40\) miles per gallon.

12.

The amount of caffeine remaining in the body, \(C\text{,}\) in milligrams, \(t\) hours after drinking a cup of coffee, \(C=C(t)\) is given by the graph below.
A short description.
  1. How much caffeine was absorbed into the bloodstream from the cup of coffee?
  2. How much caffeine is left after \(5\) hours? After \(10\) hours?
  3. Is the function \(C(t)\) increasing, decreasing or neither on the interval \(t\geq 0\text{?}\)
Solution.
  1. \(96\) mg.
  2. After \(5\) hours, there are \(48\) mg left. After \(10\) hours, \(24\) mg.
  3. Decreasing.

13.

A man deposited money into a savings account. His balance \(B(t)\text{,}\) in dollars, after \(t\) years is given by the graph below.
A short description.
  1. What was his initial deposit?
  2. How much money was in his account after 10 years? After 20 years?
  3. Is the function \(B(t)\) increasing, decreasing or neither in the interval \(t\geq 0\text{?}\)
Solution.
  1. \(\$1000\text{.}\)
  2. After 10 years, \(\$2000\text{.}\) After 20 years, \(\$4000\text{.}\)
  3. Increasing.

14.

Is the curve below the graph of a function \(y=f(x)\text{?}\) Explain your answer.
A short description.
Solution.
No, because it fails the vertical line test (in many places!).

16.

For the function \(y=f(t)\) whose graph is depicted below, identify the intervals on the \(t\)-axis for which the function is increasing and for which the function is decreasing.
A short description.
Solution.
Increasing on the intervals \((0,3) \cup (9,12)\text{.}\) Or, write as \(0\lt t\lt 3\) and \(9\lt t\lt 12\). Decreasing on the interval \((3,9)\text{.}\) Or, write as \(3\lt t \lt 9\).

Worksheet Practice Worksheet

1.

Create a table of values and sketch the graph of the function \(y=x^3\) for \(-2\leq x\leq 2\text{.}\) Then use your calculator or any other graphing utility to check your graph.
Solution.

2.

The total cost of a meal in a restaurant, \(C\text{,}\) in dollars, as a function of the price of the meal, \(p\text{,}\) in dollars is given by:
\begin{equation*} C=p+0.20p \end{equation*}
where the term \(0.20p\) corresponds to the \(20\%\) tip. Create a table of values and sketch the graph of the function \(C=p+0.20p\) for \(10\leq p\leq 20\text{.}\) Then use your calculator or any other graphing utility to check your graph.
Solution.
We can combine like terms and write \(C = 1.20 p\text{.}\) We then have the following.

4.

For the function \(y=f(x)\) in Problem 3, estimate all points \(x\) for which \(f(x)=0\text{.}\)
Solution.
This is looking for ordered pairs \((x,y)\) on the graph of the function where \(y=0\text{,}\) which are: \((-2,0)\text{,}\) \((1,0)\text{,}\) and \((4,0)\) (the points in green).

5.

For the function \(y=f(x)\) in Problem 3, estimate all points \(x\) for which \(f(x)=8\text{.}\)
Solution.
This is looking for ordered pairs \((x,y)\) on the graph of the function where \(y=8\text{,}\) which are (approximately): \((-2.2,8)\text{,}\) \((2,8)\text{,}\) and \((3.4, 8)\) (the points in blue).

6.

The amount of caffeine remaining in the body, \(C\text{,}\) in milligrams, \(t\) hours after drinking a cup of coffee, \(C=C(t)\) is given by the graph below:
(a)
How much caffeine was absorbed into the bloodstream from the cup of coffee?
Solution.
This is the value at \(t=0\) hours, so \(96\) milligrams.
(b)
How much caffeine is left after 5 hours? After 10 hours?
Solution.
After \(5\) hours, there are \(C(5)=48\) mg of caffeine remaining. After \(10\) hours, there are \(C(10)=24\) mg of caffeine remaining.
(c)
Is the function \(C(t)\) increasing, decreasing or neither on the interval \(t\geq 0\text{?}\)
Solution.
The function is decreasing on \(t\ge 0\text{;}\) the outputs decrease as the inputs increase.

7.

A man deposits money into a savings account. His balance \(B(t)\text{,}\) in dollars, after \(t\) years is given by the graph below:
(b)
How much money was in his account after 10 years? After 20 years?
Solution.
After \(10\) years, there is \(B(10)=\$2000\) in his account. After \(20\) years, there is \(B(20)=\$4000\) in his account.
(c)
Is the function \(B(t)\) increasing, decreasing or neither in the interval \(t\geq 0\text{?}\)
Solution.
The function \(B\) is increasing for \(t\ge 0\text{.}\)

8.

Is the curve below the graph of a function \(y=f(x)\text{?}\) Explain!
Solution.
No, because it fails the vertical line test as shown above (and in other places as well).

9.

The graph of a function \(y=f(x)\) is given below.
(b)
Estimate all values of \(x\) for which \(f(x)=0\text{.}\)
Solution.
We look for ordered pairs \((x,y)\) on the graph where \(y=0\text{.}\) These occur at \((-2,0)\) and \((2,0)\) (shown in blue).
(c)
Estimate all values of \(x\) for which \(f(x)=5\text{.}\)
Solution.
Similarly, \((-3,5)\) and \((3,5)\) (shown in green).

10.

For the function \(y=f(t)\) whose graph is depicted below, identify intervals on the \(t\)-axis on which the function is increasing and the intervals on the \(t\)-axis on which the function is decreasing.
Solution.
The function is increasing on the intervals \((0,3)\) and \((9,12)\text{,}\) which in inequality notation reads \(0\lt t \lt 3\) and \(9 \lt t \lt 12\text{,}\) respectively. The function is decreasing on the interval \((3,9)\text{,}\) which in inequality notation reads \(3 \lt t \lt 9\text{.}\)