# 1.6: Graphs of Functions

- Page ID
- 3980

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

In the previous section, we said that one could describe relations algebraically using equations. In this section, we begin to explore this topic in greater detail. The main idea of this section is

The Fundamental Graphing Principle

The graph of an equation is the set of points which satisfy the equation. That is, a point \((x,y)\) is on the graph of an equation if and only if \(x\) and \(y\) satisfy the equation.

Example \(\PageIndex{1}\):

Graph \(f(x) = x^2 − x − 6\)

**Solution**

To check, we substitute \(x=2\) and \(y=-1\) into the equation and see if the equation is satisfied

\[ \begin{array}{rclr} (2)^2+(-1)^3 & \stackrel{?}{=} & 1 & \\ 3 & \neq & 1 & \\ \end{array} \]

Hence, \((2,-1)\) is **not **on the graph of \(x^2 + y^3 = 1\).

We could spend hours randomly guessing and checking to see if points are on the graph of the equation. A more systematic approach is outlined in the following example.

Example \(\PageIndex{2}\):

Graph \(x^2 + y^3 = 1\).

**Solution**

To efficiently generate points on the graph of this equation, we first solve for \(y\)

\[ \begin{array}{rclr} x^2 + y^3 & = & 1 & \\ y^3 & = & 1 - x^2 & \\ \sqrt[3]{y^3} & = & \sqrt[3]{1 - x^2} & \\ y & = & \sqrt[3]{1 - x^2} & \\ \end{array} \]

We now substitute a value in for \(x\), determine the corresponding value \(y\), and plot the resulting point, \((x,y)\). For example, for \(x=-3\), we substitute

\[y = \sqrt[3]{1 - x^2} = \sqrt[3]{1 - (-3)^2} = \sqrt[3]{-8} = - 2,\]

so the point \((-3, -2)\) is on the graph. Continuing in this manner, we generate a table of points which are on the graph of the equation. These points are then plotted in the plane as shown below.

\[\begin{array}{|r||c|c|} \hline x & y & (x,y) \\ \hline -3 & -2 & (-3, -2) \\ \hline -2 & -\sqrt[3]{3}& (-2,-\sqrt[3]{3}) \\ \hline -1 & 0 & ( -1, 0) \\ \hline 0 & 1& ( 0 , 1) \\ \hline 1 & 0 & ( 1, 0) \\ \hline 2 & -\sqrt[3]{3}& (2,-\sqrt[3]{3}) \\ \hline 3 & -2 & (3, -2) \\ \hline \end{array} \]

Remember, these points constitute only a small \(\textbf{sampling}\) of the points on the graph of this equation. To get a better idea of the shape of the graph, we could plot more points until we feel comfortable 'connecting the dots.' Doing so would result in a curve similar to the one pictured below on the far left.

Don't worry if you don't get all of the little bends and curves just right \(-\) Calculus is where the art of precise graphing takes center stage. For now, we will settle with our naive 'plug and plot' approach to graphing. If you feel like all of this tedious computation and plotting is beneath you, then you can reach for a graphing calculator, input the formula as shown above, and graph.

Of all of the points on the graph of an equation, the places where the graph crosses the axes hold special significance. These are called the **intercepts** of the graph. Intercepts come in two distinct varieties: \(x\)-intercepts and \(y\)-intercepts. They are defined below.

Note: Suppose the graph of an equation is given.

- A point at which a graph meets the \(x\)-axis is called an \(x\)-intercept of the graph.
- A point at which a graph meets the \(y\)-axis is called an \(y\)-intercept of the graph.

In our previous example the graph had two \(x\)-intercepts, \((-1,0)\) and \((1,0)\), and one \(y\)-intercept, \((0,1)\). The graph of an equation can have any number of intercepts, including none at all! Since \(x\)-intercepts lie on the \(x\)-axis, we can find them by setting \(y = 0\) in the equation. Similarly, since \(y\)-intercepts lie on the \(y\)-axis, we can find them by setting \(x = 0\) in the equation. Keep in mind, intercepts are *points* and therefore must be written as ordered pairs. To summarize,

Note: Steps for Finding the Intercepts of the Graph of an Equation

Given an equation involving \(x\) and \(y\): \index{intercept ! location of}

- the \(x\)-intercepts always have the form \((x,0)\); to find the \(x\)-intercepts of the graph, set \(y=0\) and solve for \(x\).
- \(y\)-intercepts always have the form \((0,y)\); to find the \(y\)-intercepts of the graph, set \(x=0\) and solve for \(y\).

Another fact which you may have noticed about the graph in the previous example is that it seems to be symmetric about the \(y\)-axis. To actually prove this analytically, we assume \((x,y)\) is a generic point on the graph of the equation. That is, we assume \(x^2 + y^3 = 1\). As we learned in Section 1.2.1, the point symmetric to \((x,y)\) about the \(y\)-axis is \((-x,y)\). To show the graph is symmetric about the \(y\)-axis, we need to show that \((-x,y)\) is on the graph whenever \((x,y)\) is. In other words, we need to show \((-x,y)\) satisfies the equation \(x^2 + y^3 = 1\) whenever \((x,y)\) does. Substituting gives

\[ \begin{array}{rclr} (-x)^2+(y)^3 & \stackrel{?}{=} & 1 & \\ x^2 + y^3 & \stackrel{\checkmark}{=} & 1 & \\ \end{array} \]

When we substituted \((-x,y)\) into the equation \(x^2 + y^3 = 1\), we obtained the original equation back when we simplified. This means \((-x, y)\) satisfies the equation and hence is on the graph. In this way, we can check whether the graph of a given equation possesses any of the symmetries discussed in Section \ref{CartesianPlane}. The results are summarized below.

Note: Steps for Testing if the Graph of an Equation Possesses Symmetry

To test the graph of an equation for symmetry \index{symmetry ! testing an equation for}

- About the \(y\)-axis: Substitute \((-x,y)\) into the equation and simplify. If the result is equivalent to the original equation, the graph is symmetric about the \(y\)-axis.
- About the \(x\)-axis: Substitute \((x,-y)\) into the equation and simplify. If the result is equivalent to the original equation, the graph is symmetric about the \(x\)-axis.
- About the origin: Substitute \((-x,-y)\) into the equation and simplify. If the result is equivalent to the original equation, the graph is symmetric about the origin.

Intercepts and symmetry are two tools which can help us sketch the graph of an equation analytically, as evidenced in the next example.

Example \(\PageIndex{1}\):

Find the \(x\)- and \(y\)-intercepts (if any) of the graph of \((x-2)^2 + y^2 = 1\). Test for symmetry. Plot additional points as needed to complete the graph.

**Solution**

To look for \(x\)-intercepts, we set \(y=0\) and solve:

\[ \begin{array}{rclr} (x-2)^2 + y^2 & = & 1 & \\ (x-2)^2 + 0^2 & = & 1 & \\ (x-2)^2 & = & 1 & \\ \sqrt{(x-2)^2} & = & \sqrt{1} & \mbox{extract square roots}\\ x - 2 & = & \pm 1 & \\ x & = & 2 \pm 1 & \\ x & = & 3, 1 & \\ \end{array} \]

We get \textbf{two} answers for \(x\) which correspond to \textbf{two} \(x\)-intercepts: \((1,0)\) and \((3,0)\). Turning our attention to \(y\)-intercepts, we set \(x=0\) and solve:

\[ \begin{array}{rclr} (x-2)^2 + y^2 & = & 1 & \\ (0-2)^2 + y^2 & = & 1 & \\ 4 + y^2 & = & 1 & \\ y^2 & = & -3 & \\ \end{array} \]

Since there is no real number which squares to a negative number (Do you remember why?), we are forced to conclude that the graph has \textbf{no} \(y\)-intercepts.

Plotting the data we have so far, we get

Moving along to symmetry, we can immediately dismiss the possibility that the graph is symmetric about the \(y\)-axis or the origin. If the graph possessed either of these symmetries, then the fact that \((1,0)\) is on the graph would mean \((-1,0)\) would have to be on the graph. (Why?) Since \((-1,0)\) would be another \(x\)-intercept (and we've found all of these), the graph can't have \(y\)-axis or origin symmetry. The only symmetry left to test is symmetry about the \(x\)-axis. To that end, we substitute \((x,-y)\) into the equation and simplify

\[ \begin{array}{rclr} (x-2)^2 + y^2 & = & 1 & \\ (x-2)^2 + (-y)^2 & \stackrel{?}{=} & 1 & \\ (x-2)^2 + y^2 & \stackrel{\checkmark}{=} & 1 & \\ \end{array} \]

Since we have obtained our original equation, we know the graph is symmetric about the \(x\)-axis. This means we can cut our 'plug and plot' time in half: whatever happens below the \(x\)-axis is reflected above the \(x\)-axis, and vice-versa. Proceeding as we did in the previous example, we obtain

A couple of remarks are in order. First, it is entirely possible to choose a value for \(x\) which does not correspond to a point on the graph. For example, in the previous example, if we solve for \(y\) as is our custom, we get:

\[y = \pm \sqrt{1-(x-2)^2}.\]

Upon substituting \(x=0\) into the equation, we would obtain

\[y = \pm \sqrt{1 - (0-2)^2} = \pm \sqrt{1 - 4} = \pm \sqrt{-3},\]

which is not a real number. This means there are no points on the graph with an \(x\)-coordinate of \(0\). When this happens, we move on and try another point. This is another drawback of the 'plug-and-plot' approach to graphing equations. Luckily, we will devote much of the remainder of this book developing techniques which allow us to graph entire families of equations quickly.\footnote{Without the use of a calculator, if you can believe it!} Second, it is instructive to show what would have happened had we tested the equation in the last example for symmetry about the \(y\)-axis. Substituting \((-x,y)\) into the equation yields

\[ \begin{array}{rclr} (x-2)^2 + y^2 & = & 1 & \\ (-x-2)^2 + y^2 & \stackrel{?}{=} & 1 & \\ ((-1)(x+2))^2 + y^2 & \stackrel{?}{=} & 1 & \\ (x+2)^2 + y^2 & \stackrel{?}{=} & 1. & \\ \end{array} \]

This last equation does not \(\textbf{appear}\) to be equivalent to our original equation. However, to \(\textbf{prove}\) it is not symmetric about the \(y\)-axis, we need to find a point \((x,y)\) on the graph whose reflection \((-x,y)\) is not. Our \(x\)-intercept \((1,0)\) fits this bill nicely, since if we substitute \((-1,0)\) into the equation we get

\[ \begin{array}{rclr} (x-2)^2+y^2 & \stackrel{?}{=} & 1 & \\ (-1-2)^2 + 0^2 & \neq & 1 & \\ 9 & \neq & 1. & \end{array} \]

This proves that \((-1,0)\) is not on the graph.

### Contributors

- Carl Stitz, Ph.D. (Lakeland Community College) and Jeff Zeager, Ph.D. (Lorain County Community College)