Graphs of Linear Functions

Learning Objectives

In this section, you will:

  • Graph linear functions.
  • Write the equation for a linear function from the graph of a line.
  • Given the equations of two lines, determine whether their graphs are parallel or perpendicular.
  • Write the equation of a line parallel or perpendicular to a given line.
  • Solve a system of linear equations.

Two competing telephone companies offer different payment plans. The two plans charge the same rate per long distance minute, but charge a different monthly flat fee. A consumer wants to determine whether the two plans will ever cost the same amount for a given number of long distance minutes used. The total cost of each payment plan can be represented by a linear function. To solve the problem, we will need to compare the functions. In this section, we will consider methods of comparing functions using graphs.

Graphing Linear Functions

In Linear Functions, we saw that that the graph of a linear function is a straight line. We were also able to see the points of the function as well as the initial value from a graph. By graphing two functions, then, we can more easily compare their characteristics.

There are three basic methods of graphing linear functions. The first is by plotting points and then drawing a line through the points. The second is by using the y-intercept and slope. And the third is by using transformations of the identity function [latex]f\left(x\right)=x.[/latex]

Graphing a Function by Plotting Points

To find points of a function, we can choose input values, evaluate the function at these input values, and calculate output values. The input values and corresponding output values form coordinate pairs. We then plot the coordinate pairs on a grid. In general, we should evaluate the function at a minimum of two inputs in order to find at least two points on the graph. For example, given the function, [latex]f\left(x\right)=2x,[/latex] we might use the input values 1 and 2. Evaluating the function for an input value of 1 yields an output value of 2, which is represented by the point [latex]\left(1,2\right).[/latex] Evaluating the function for an input value of 2 yields an output value of 4, which is represented by the point [latex]\left(2,4\right).[/latex] Choosing three points is often advisable because if all three points do not fall on the same line, we know we made an error.

How To

Given a linear function, graph by plotting points.

  1. Choose a minimum of two input values.
  2. Evaluate the function at each input value.
  3. Use the resulting output values to identify coordinate pairs.
  4. Plot the coordinate pairs on a grid.
  5. Draw a line through the points.

Example 1: Graphing by Plotting Points

Graph [latex]f\left(x\right)=-\frac{2}{3}x+5[/latex] by plotting points.

Analysis

The graph of the function is a line as expected for a linear function. In addition, the graph has a downward slant, which indicates a negative slope. This is also expected from the negative constant rate of change in the equation for the function.

Try it #1

Graph [latex]f\left(x\right)=-\frac{3}{4}x+6[/latex] by plotting points.

Graphing a Function Using y-intercept and Slope

Another way to graph linear functions is by using specific characteristics of the function rather than plotting points. The first characteristic is its y-intercept, which is the point at which the input value is zero. To find the y-intercept, we can set [latex]x=0[/latex] in the equation.

The other characteristic of the linear function is its slope [latex]m,[/latex] which is a measure of its steepness. Recall that the slope is the rate of change of the function. The slope of a function is equal to the ratio of the change in outputs to the change in inputs. Another way to think about the slope is by dividing the vertical difference, or rise, by the horizontal difference, or run. We encountered both the y-intercept and the slope in Linear Functions.

Let’s consider the following function.

[latex]f\left(x\right)=\frac{1}{2}x+1[/latex]

The slope is [latex]\frac{1}{2}.[/latex] Because the slope is positive, we know the graph will slant upward from left to right. The y-intercept is the point on the graph when [latex]x=0.[/latex] The graph crosses the y-axis at [latex]\left(0,1\right).[/latex] Now we know the slope and the y-intercept. We can begin graphing by plotting the point [latex]\left(0,1\right)[/latex] We know that the slope is rise over run, [latex]m=\frac{\text{rise}}{\text{run}}.[/latex] From our example, we have [latex]m=\frac{1}{2},[/latex] which means that the rise is 1 and the run is 2. So starting from our y-intercept [latex]\left(0,1\right),[/latex] we can rise 1 and then run 2, or run 2 and then rise 1. We repeat until we have a few points, and then we draw a line through the points as shown in (Figure).

Graphical Interpretation of a Linear Function

In the equation [latex]f\left(x\right)=mx+b[/latex]

  • [latex]b[/latex] is the y-intercept of the graph and indicates the point [latex]\left(0,b\right)[/latex] at which the graph crosses the y-axis.
  • [latex]m[/latex] is the slope of the line and indicates the vertical displacement (rise) and horizontal displacement (run) between each successive pair of points. Recall the formula for the slope:
[latex]m=\frac{\text{change in output (rise)}}{\text{change in input (run)}}=\frac{\text{Δ}y}{\text{Δ}x}=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}[/latex]

Q&A

Do all linear functions have y-intercepts?

Yes. All linear functions cross the y-axis and therefore have y-intercepts. (Note: A vertical line parallel to the y-axis does not have a y-intercept, but it is not a function.)

How To

Given the equation for a linear function, graph the function using the y-intercept and slope.

  1. Evaluate the function at an input value of zero to find the y-intercept.
  2. Identify the slope as the rate of change of the input value.
  3. Plot the point represented by the y-intercept.
  4. Use [latex]\frac{\text{rise}}{\text{run}}[/latex] to determine at least two more points on the line.
  5. Sketch the line that passes through the points.

Example 2: Graphing by Using the y-intercept and Slope

Graph [latex]f\left(x\right)=-\frac{2}{3}x+5[/latex] using the y-intercept and slope.

Analysis

The graph slants downward from left to right, which means it has a negative slope as expected.

Try it #2

Find a point on the graph we drew in (Figure) that has a negative x-value.

Graphing a Function Using Transformations

Another option for graphing is to use transformations of the identity function [latex]f\left(x\right)=x[/latex]. A function may be transformed by a shift up, down, left, or right. A function may also be transformed using a reflection, stretch, or compression.

Vertical Stretch or Compression

In the equation [latex]f\left(x\right)=mx,[/latex] the [latex]m[/latex] is acting as the vertical stretch or compression of the identity function. When [latex]m[/latex] is negative, there is also a vertical reflection of the graph. Notice in (Figure) that multiplying the equation of [latex]f\left(x\right)=x[/latex] by [latex]m[/latex] stretches the graph of [latex]f[/latex] by a factor of [latex]m[/latex] units if [latex]m>\text{1}[/latex] and compresses the graph of [latex]f[/latex] by a factor of [latex]m[/latex] units if [latex]0

Vertical stretches and compressions and reflections on the function [latex]f\left(x\right)=x.[/latex]

Vertical Shift

In [latex]f\left(x\right)=mx+b,[/latex] the [latex]b[/latex] acts as the vertical shift, moving the graph up and down without affecting the slope of the line. Notice in (Figure) that adding a value of [latex]b[/latex] to the equation of [latex]f\left(x\right)=x[/latex] shifts the graph of [latex]f[/latex] a total of [latex]b[/latex] units up if [latex]b[/latex] is positive and [latex]|b|[/latex] units down if [latex]b[/latex] is negative.

This graph illustrates vertical shifts of the function [latex]f\left(x\right)=x.[/latex]

Using vertical stretches or compressions along with vertical shifts is another way to look at identifying different types of linear functions. Although this may not be the easiest way to graph this type of function, it is still important to practice each method.

How To

Given the equation of a linear function, use transformations to graph the linear function in the form [latex]f\left(x\right)=mx+b.[/latex]

  1. Graph [latex]f\left(x\right)=x.[/latex]
  2. Vertically stretch or compress the graph by a factor [latex]m.[/latex]
  3. Shift the graph up or down [latex]b[/latex] units.

Example 3: Graphing by Using Transformations

Graph [latex]f\left(x\right)=\frac{1}{2}x-3[/latex] using transformations.

Try it #3

Graph [latex]f\left(x\right)=4+2x,[/latex] using transformations.

Q&A

In (Figure), could we have sketched the graph by reversing the order of the transformations?

No. The order of the transformations follows the order of operations. When the function is evaluated at a given input, the corresponding output is calculated by following the order of operations. This is why we performed the compression first. For example, following the order: Let the input be 2.

[latex]\begin{array}{l}f\text{(2)}=\frac{\text{1}}{\text{2}}\text{(2)}-\text{3}\hfill \\ \text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }=\text{1}-\text{3}\hfill \\ \text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }=-\text{2}\hfill \end{array}[/latex]

Writing the Equation for a Function from the Graph of a Line

Recall that in Linear Functions, we wrote the equation for a linear function from a graph. Now we can extend what we know about graphing linear functions to analyze graphs a little more closely. Begin by taking a look at (Figure). We can see right away that the graph crosses the y-axis at the point [latex]\left(0,\text{ 4}\right)[/latex] so this is the y-intercept.

Then we can calculate the slope by finding the rise and run. We can choose any two points, but let’s look at the point [latex]\left(-2,0\right).[/latex] To get from this point to the y-intercept, we must move up 4 units (rise) and to the right 2 units (run). So the slope must be

[latex]m=\frac{\text{rise}}{\text{run}}=\frac{4}{2}=2[/latex]

Substituting the slope and y-intercept into the slope-intercept form of a line gives

[latex]y=2x+4[/latex]

How To

Given a graph of linear function, find the equation to describe the function.

  1. Identify the y-intercept of an equation.
  2. Choose two points to determine the slope.
  3. Substitute the y-intercept and slope into the slope-intercept form of a line.

EXAMPLE 4: Matching Linear Functions to Their Graphs

Match each equation of the linear functions with one of the lines in (Figure).

  1. [latex]f\left(x\right)=2x+3[/latex]
  2. [latex]g\left(x\right)=2x-3[/latex]
  3. [latex]h\left(x\right)=-2x+3[/latex]
  4. [latex]j\left(x\right)=\frac{1}{2}x+3[/latex]

Finding the x-intercept of a Line

So far, we have been finding the y-intercepts of a function: the point at which the graph of the function crosses the y-axis. A function may also have an x-intercept, which is the x-coordinate of the point where the graph of the function crosses the x-axis. In other words, it is the input value when the output value is zero.

To find the x-intercept, set a function [latex]f\left(x\right)[/latex] equal to zero and solve for the value of [latex]x.[/latex] For example, consider the function shown.

[latex]f\left(x\right)=3x-6[/latex]

Set the function equal to 0 and solve for [latex]x.[/latex]

[latex]\begin{array}{l}0=3x-6\hfill \\ 6=3x\hfill \\ 2=x\hfill \\ x=2\hfill \end{array}[/latex]

The graph of the function crosses the x-axis at the point [latex]\left(2,\text{ 0}\right).[/latex]

Q&A

Do all linear functions have x-intercepts?

No. However, linear functions of the form [latex]y=c,[/latex] where [latex]c[/latex] is a nonzero real number are the only examples of linear functions with no x-intercept. For example, [latex]y=5[/latex] is a horizontal line 5 units above the x-axis. This function has no x-intercepts, as shown in (Figure).

Graph of y = 5.

x-intercept

The x-intercept of the function is value of [latex]x[/latex] when [latex]f\left(x\right)=0.[/latex] It can be solved by the equation [latex]0=mx+b.[/latex]

EXAMPLE 5: Finding an x-intercept

Find the x-intercept of [latex]f\left(x\right)=\frac{1}{2}x-3.[/latex]

Analysis

A graph of the function is shown in (Figure). We can see that the x-intercept is [latex]\left(6,\text{ 0}\right)[/latex] as we expected.

The graph of the linear function [latex]f\left(x\right)=\frac{1}{2}x-3.[/latex]

Try it #4

Find the x-intercept of [latex]f\left(x\right)=\frac{1}{4}x-4.[/latex]

Describing Horizontal and Vertical Lines

There are two special cases of lines on a graph—horizontal and vertical lines. A horizontal line indicates a constant output, or y-value. In (Figure), we see that the output has a value of 2 for every input value. The change in outputs between any two points, therefore, is 0. In the slope formula, the numerator is 0, so the slope is 0. If we use [latex]m=0[/latex] in the equation [latex]f\left(x\right)=mx+b,[/latex] the equation simplifies to [latex]f\left(x\right)=b.[/latex] In other words, the value of the function is a constant. This graph represents the function [latex]f\left(x\right)=2.[/latex]

A horizontal line representing the function [latex]f\left(x\right)=2.[/latex]

A vertical line indicates a constant input, or x-value. We can see that the input value for every point on the line is 2, but the output value varies. Because this input value is mapped to more than one output value, a vertical line does not represent a function. Notice that between any two points, the change in the input values is zero. In the slope formula, the denominator will be zero, so the slope of a vertical line is undefined.

Notice that a vertical line, such as the one in (Figure), has an x-intercept, but no y-intercept unless it’s the line [latex]x=0.[/latex] This graph represents the line [latex]x=2.[/latex]

The vertical line, [latex]x=2,[/latex] which does not represent a function.

Horizontal and Vertical Lines

Lines can be horizontal or vertical.

A horizontal line is a line defined by an equation in the form [latex]f\left(x\right)=b.[/latex]

A vertical line is a line defined by an equation in the form [latex]x=a.[/latex]

EXAMPLE 6: Writing the Equation of a Horizontal Line

Write the equation of the line graphed in (Figure).

Graph of x = 7.

EXAMPLE 7: Writing the Equation of a Vertical Line

Write the equation of the line graphed in (Figure).

Graph of two functions where the baby blue line is y = -2/3x + 7, and the blue line is y = -x + 1.

Determining Whether Lines are Parallel or Perpendicular

The two lines in (Figure) are parallel lines: they will never intersect. Notice that they have exactly the same steepness, which means their slopes are identical. The only difference between the two lines is the y-intercept. If we shifted one line vertically toward the y-intercept of the other, they would become the same line.

Graph of two functions where the blue line is y = -2/3x + 1, and the baby blue line is y = -2/3x +7. Notice that they are parallel lines.

Parallel lines.

We can determine from their equations whether two lines are parallel by comparing their slopes. If the slopes are the same and the y-intercepts are different, the lines are parallel. If the slopes are different, the lines are not parallel.

Unlike parallel lines, perpendicular lines do intersect. Their intersection forms a right, or 90-degree, angle. The two lines in (Figure) are perpendicular.

Graph of two functions where the blue line is perpendicular to the orange line.

Perpendicular lines.

Perpendicular lines do not have the same slope. The slopes of perpendicular lines are different from one another in a specific way. The slope of one line is the negative reciprocal of the slope of the other line. The product of a number and its reciprocal is [latex]1.[/latex] So, if [latex]{m}_{1}\text{ and }\text{ }{m}_{2}[/latex] are negative reciprocals of one another, they can be multiplied together to yield [latex]–1.[/latex]

[latex]{m}_{1}{m}_{2}=-1[/latex]

To find the reciprocal of a number, divide 1 by the number. So the reciprocal of 8 is [latex]\frac{1}{8},[/latex] and the reciprocal of [latex]\frac{1}{8}[/latex] is 8. To find the negative reciprocal, first find the reciprocal and then change the sign.

As with parallel lines, we can determine whether two lines are perpendicular by comparing their slopes, assuming that the lines are neither horizontal nor perpendicular. The slope of each line below is the negative reciprocal of the other so the lines are perpendicular.

[latex]\begin{array}{ll}f\left(x\right)=\frac{1}{4}x+2\hfill & \text{negative reciprocal of}\frac{1}{4}\text{ is }-4\hfill \\ f\left(x\right)=-4x+3\hfill & \text{negative reciprocal of}-4\text{ is }\frac{1}{4}\hfill \end{array}[/latex]

The product of the slopes is –1.

[latex]-4\left(\frac{1}{4}\right)=-1[/latex]

Parallel and Perpendicular Lines

Two lines are parallel lines if they do not intersect. The slopes of the lines are the same.

[latex]f\left(x\right)={m}_{1}x\text{ }\text{ }+\text{ }\text{ }{b}_{1}\text{ and }g\left(x\right)={m}_{2}x\text{ }\text{ }+\text{ }\text{ }{b}_{2}\text{ are parallel if }{m}_{1}\text{ }\text{ }=\text{ }\text{ }{m}_{2}.[/latex]

If and only if [latex]{b}_{1}={b}_{2}[/latex] and [latex]{m}_{1}={m}_{2},[/latex] we say the lines coincide. Coincident lines are the same line.

Two lines are perpendicular lines if they intersect at right angles.

[latex]f\left(x\right)={m}_{1}x+{b}_{1}\text{ and }g\left(x\right)={m}_{2}x+{b}_{2}\text{ are perpendicular if }{m}_{1}{m}_{2}=-1,\text{ and so }{m}_{2}=-\frac{1}{{m}_{1}}.[/latex]

EXAMPLE 8: Identifying Parallel and Perpendicular Lines

Given the functions below, identify the functions whose graphs are a pair of parallel lines and a pair of perpendicular lines.

[latex]\begin{array}{lll}f\left(x\right)=2x+3\hfill & \hfill & h\left(x\right)=-2x+2\hfill \\ g\left(x\right)=\frac{1}{2}x-4\hfill & \hfill & \text{ }j\left(x\right)=2x-6\hfill \end{array}[/latex]

Analysis

A graph of the lines is shown in (Figure).

Graph of four functions where the blue line is h(x) = -2x + 2, the orange line is f(x) = 2x + 3, the green line is j(x) = 2x - 6, and the red line is g(x) = 1/2x - 4.

The graph shows that the lines [latex]f\left(x\right)=2x+3[/latex] and [latex]j\left(x\right)=2x–6[/latex] are parallel, and the lines [latex]g\left(x\right)=\frac{1}{2}x–4[/latex] and [latex]h\left(x\right)=-2x+2[/latex] are perpendicular.

Writing the Equation of a Line Parallel or Perpendicular to a Given Line

If we know the equation of a line, we can use what we know about slope to write the equation of a line that is either parallel or perpendicular to the given line.

Writing Equations of Parallel Lines

Suppose for example, we are given the following equation.

[latex]f\left(x\right)=3x+1[/latex]

We know that the slope of the line formed by the function is 3. We also know that the y-intercept is [latex]\left(0,1\right).[/latex] Any other line with a slope of 3 will be parallel to [latex]f\left(x\right).[/latex] So the lines formed by all of the following functions will be parallel to [latex]f\left(x\right).[/latex]

[latex]\begin{array}{l}g\left(x\right)=3x+6\hfill \\ h\left(x\right)=3x+1\hfill \\ p\left(x\right)=3x+\frac{2}{3}\hfill \end{array}[/latex]

Suppose then we want to write the equation of a line that is parallel to [latex]f[/latex] and passes through the point [latex]\left(1,\text{ 7}\right).[/latex] We already know that the slope is 3. We just need to determine which value for [latex]b[/latex] will give the correct line. We can begin with the point-slope form of an equation for a line, and then rewrite it in the slope-intercept form.

[latex]\begin{array}{l}y-{y}_{1}=m\left(x-{x}_{1}\right)\hfill \\ \text{ }\text{ }y-7=3\left(x-1\right)\hfill \\ \text{ }\text{ }y-7=3x-3\hfill \\ \text{ }y=3x+4\hfill \end{array}[/latex]

So [latex]g\left(x\right)=3x+4[/latex] is parallel to [latex]f\left(x\right)=3x+1[/latex] and passes through the point [latex]\left(1,\text{ 7}\right).[/latex]

How To

Given the equation of a function and a point through which its graph passes, write the equation of a line parallel to the given line that passes through the given point.

  1. Find the slope of the function.
  2. Substitute the given values into either the general point-slope equation or the slope-intercept equation for a line.
  3. Simplify.

EXAMPLE 9: Finding a Line Parallel to a Given Line

Find a line parallel to the graph of [latex]f\left(x\right)=3x+6[/latex] that passes through the point [latex]\left(3,\text{ 0}\right).[/latex]

Analysis

We can confirm that the two lines are parallel by graphing them. (Figure) shows that the two lines will never intersect.

Graph of two functions where the blue line is y = 3x + 6, and the orange line is y = 3x - 9.

Writing Equations of Perpendicular Lines

We can use a very similar process to write the equation for a line perpendicular to a given line. Instead of using the same slope, however, we use the negative reciprocal of the given slope. Suppose we are given the following function:

[latex]f\left(x\right)=2x+4[/latex]

The slope of the line is 2, and its negative reciprocal is [latex]-\frac{1}{2}.[/latex] Any function with a slope of [latex]-\frac{1}{2}[/latex] will be perpendicular to [latex]f\left(x\right).[/latex] So the lines formed by all of the following functions will be perpendicular to [latex]f\left(x\right).[/latex]

[latex]\begin{array}{l}g\left(x\right)=-\frac{1}{2}x+4\hfill \\ h\left(x\right)=-\frac{1}{2}x+2\hfill \\ p\left(x\right)=-\frac{1}{2}x-\frac{1}{2}\hfill \end{array}[/latex]

As before, we can narrow down our choices for a particular perpendicular line if we know that it passes through a given point. Suppose then we want to write the equation of a line that is perpendicular to [latex]f\left(x\right)[/latex] and passes through the point [latex]\left(4,\text{ 0}\right).[/latex] We already know that the slope is [latex]-\frac{1}{2}.[/latex] Now we can use the point to find the y-intercept by substituting the given values into the slope-intercept form of a line and solving for [latex]b.[/latex]

[latex]\begin{array}{l}g\left(x\right)=mx+b\hfill \\ \text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }0=-\frac{1}{2}\left(4\right)+b\hfill \\ \text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }0=-2+b\hfill \\ \text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }2=b\hfill \\ \text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }b=2\hfill \end{array}[/latex]

The equation for the function with a slope of [latex]-\frac{1}{2}[/latex] and a y-intercept of 2 is

[latex]g\left(x\right)=-\frac{1}{2}x+2.[/latex]

So [latex]g\left(x\right)=-\frac{1}{2}x+2[/latex] is perpendicular to [latex]f\left(x\right)=2x+4[/latex] and passes through the point [latex]\left(4,\text{ 0}\right).[/latex] Be aware that perpendicular lines may not look obviously perpendicular on a graphing calculator unless we use the square zoom feature.

Q&A

A horizontal line has a slope of zero and a vertical line has an undefined slope. These two lines are perpendicular, but the product of their slopes is not –1. Doesn’t this fact contradict the definition of perpendicular lines?

No. For two perpendicular linear functions, the product of their slopes is –1. However, a vertical line is not a function so the definition is not contradicted.

How To

Given the equation of a function and a point through which its graph passes, write the equation of a line perpendicular to the given line.

  1. Find the slope of the function.
  2. Determine the negative reciprocal of the slope.
  3. Substitute the new slope and the values for [latex]x[/latex] and [latex]y[/latex] from the coordinate pair provided into [latex]g\left(x\right)=mx+b.[/latex]
  4. Solve for [latex]b.[/latex]
  5. Write the equation for the line.

EXample 10: Finding the Equation of a Perpendicular Line

Find the equation of a line perpendicular to [latex]f\left(x\right)=3x+3[/latex] that passes through the point [latex]\left(3,\text{ 0}\right).[/latex]

Analysis

A graph of the two lines is shown in (Figure) below.

Graph of two functions where the blue line is g(x) = -1/3x + 1, and the orange line is f(x) = 3x + 6.

Try it #5

Given the function [latex]h\left(x\right)=2x-4,[/latex] write an equation for the line passing through [latex]\left(0,0\right)[/latex] that is

  1. parallel to [latex]h\left(x\right)[/latex]
  2. perpendicular to [latex]h\left(x\right)[/latex]

How To

Given two points on a line and a third point, write the equation of the perpendicular line that passes through the point.

  1. Determine the slope of the line passing through the points.
  2. Find the negative reciprocal of the slope.
  3. Use the slope-intercept form or point-slope form to write the equation by substituting the known values.
  4. Simplify.

Example 11: Finding the Equation of a Line Perpendicular to a Given Line Passing through a Point

A line passes through the points [latex]\left(-2,\text{ 6}\right)[/latex] and [latex]\left(4,5\right).[/latex] Find the equation of a perpendicular line that passes through the point [latex]\left(4,5\right).[/latex]

Try it #6

A line passes through the points, [latex]\left(-2,\text{−15}\right)[/latex] and [latex]\left(2,-3\right).[/latex] Find the equation of a perpendicular line that passes through the point, [latex]\left(6,4\right).[/latex]

Solving a System of Linear Equations Using a Graph

A system of linear equations includes two or more linear equations. The graphs of two lines will intersect at a single point if they are not parallel. Two parallel lines can also intersect if they are coincident, which means they are the same line and they intersect at every point. For two lines that are not parallel, the single point of intersection will satisfy both equations and therefore represent the solution to the system.

To find this point when the equations are given as functions, we can solve for an input value so that [latex]f\left(x\right)=g\left(x\right).[/latex] In other words, we can set the formulas for the lines equal to one another, and solve for the input that satisfies the equation.

Example 12: Finding a Point of Intersection Algebraically

Find the point of intersection of the lines [latex]h\left(t\right)=3t-4[/latex] and [latex]j\left(t\right)=5-t.[/latex]

Analysis

Looking at (Figure), this result seems reasonable.

Graph of two functions h(t) = 3t - 4 and j(t) = t +5 and their intersection at (9/4, 11/4).

Q&A

If we were asked to find the point of intersection of two distinct parallel lines, should something in the solution process alert us to the fact that there are no solutions?

Yes. After setting the two equations equal to one another, the result would be the contradiction “0 = non-zero real number”.

Try it #6

Look at the graph in (Figure) and identify the following for the function [latex]j\left(t\right):[/latex]

  1. y-intercept
  2. x-intercept(s)
  3. slope
  4. Is [latex]j\left(t\right)[/latex] parallel or perpendicular to [latex]h\left(t\right)[/latex] (or neither)?
  5. Is [latex]j\left(t\right)[/latex] an increasing or decreasing function (or neither)?
  6. Write a transformation description for [latex]j\left(t\right)[/latex] from the identity toolkit function [latex]f\left(x\right)=x.[/latex]

Example 13: Finding a Break-Even Point

A company sells sports helmets. The company incurs a one-time fixed cost for $250,000. Each helmet costs $120 to produce, and sells for $140.

  1. Find the cost function, [latex]C,[/latex] to produce [latex]x[/latex] helmets, in dollars.
  2. Find the revenue function, [latex]R,[/latex] from the sales of [latex]x[/latex] helmets, in dollars.
  3. Find the break-even point, the point of intersection of the two graphs [latex]C \text{and} R.[/latex]

  • The revenue function is the total revenue from the sale of [latex]x[/latex] helmets, [latex]R\left(x\right)=140x.[/latex]
  • The break-even point is the point of intersection of the graph of the cost and revenue functions. To find the x-coordinate of the coordinate pair of the point of intersection, set the two equations equal, and solve for [latex]x.[/latex]
    [latex]\begin{array}{l}\text{ }C\left(x\right)=R\left(x\right)\hfill \\ 250,000+120x=140x\hfill \\ \text{ }250,000=20x\hfill \\ \text{ }12,500=x\hfill \\ \text{ }x=12,500\hfill \end{array}[/latex]

    To find [latex]y,[/latex] evaluate either the revenue or the cost function at 12,500.

    [latex]\begin{array}{l}R\left(x\right)=140\left(12,500\right)\hfill \\ \text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }\text{ }=$1,750,000\hfill \end{array}[/latex]
  • The break-even point is [latex]\left(12,500,1,750,000\right).[/latex]

    Analysis

    This means if the company sells 12,500 helmets, they break even; both the sales and cost incurred equaled 1.75 million dollars. See (Figure)

    Graph of the two functions, C(x) and R(x) where it shows that below (12500, 1750000) the company loses money and above that point the company makes a profit.

    Access these online resources for additional instruction and practice with graphs of linear functions.

    Key Concepts

    • Linear functions may be graphed by plotting points or by using the y-intercept and slope. See (Figure) and (Figure).
    • Graphs of linear functions may be transformed by using shifts up, down, left, or right, as well as through stretches, compressions, and reflections. See (Figure).
    • The y-intercept and slope of a line may be used to write the equation of a line.
    • The x-intercept is the point at which the graph of a linear function crosses the x-axis. See (Figure) and (Figure).
    • Horizontal lines are written in the form, [latex]f\left(x\right)=b.[/latex] See (Figure).
    • Vertical lines are written in the form, [latex]x=b.[/latex] See (Figure).
    • Parallel lines have the same slope.
    • Perpendicular lines have negative reciprocal slopes, assuming neither is vertical. See (Figure).
    • A line parallel to another line, passing through a given point, may be found by substituting the slope value of the line and the x– and y-values of the given point into the equation, [latex]f\left(x\right)=mx+b,[/latex] and using the [latex]b[/latex] that results. Similarly, the point-slope form of an equation can also be used. See (Figure).
    • A line perpendicular to another line, passing through a given point, may be found in the same manner, with the exception of using the negative reciprocal slope. See (Figure) and (Figure).
    • A system of linear equations may be solved setting the two equations equal to one another and solving for [latex]x.[/latex] The y-value may be found by evaluating either one of the original equations using this x-value.
    • A system of linear equations may also be solved by finding the point of intersection on a graph. See (Figure) and (Figure).

    Section Exercises

    Verbal

    1. If the graphs of two linear functions are parallel, describe the relationship between the slopes and the y-intercepts.

    2. If the graphs of two linear functions are perpendicular, describe the relationship between the slopes and the y-intercepts.

    3. If a horizontal line has the equation [latex]f\left(x\right)=a[/latex] and a vertical line has the equation [latex]x=a,[/latex] what is the point of intersection? Explain why what you found is the point of intersection.

    4. Explain how to find a line parallel to a linear function that passes through a given point.

    5. Explain how to find a line perpendicular to a linear function that passes through a given point.

    Algebraic

    For the following exercises, determine whether the lines given by the equations below are parallel, perpendicular, or neither parallel nor perpendicular:

    6. [latex]\begin{array}{l}4x-7y=10\hfill \\ 7x+4y=1\hfill \end{array}[/latex]

    7. [latex]\begin{array}{c}3y+x=12\\ -y=8x+1\end{array}[/latex]

    8. [latex]\begin{array}{c}3y+4x=12\\ -6y=8x+1\end{array}[/latex]

    9. [latex]\begin{array}{c}6x-9y=10\\ 3x+2y=1\end{array}[/latex]

    10. [latex]\begin{array}{c}y=\frac{2}{3}x+1\\ 3x+2y=1\end{array}[/latex]

    11. [latex]\begin{array}{c}y=\frac{3}{4}x+1\\ -3x+4y=1\end{array}[/latex]

    For the following exercises, find the x- and y-intercepts of each equation

    12. [latex]f\left(x\right)=-x+2[/latex]

    13. [latex]g\left(x\right)=2x+4[/latex]

    14. [latex]h\left(x\right)=3x-5[/latex]

    15. [latex]k\left(x\right)=-5x+1[/latex]

    16. [latex]-2x+5y=20[/latex]

    17. [latex]7x+2y=56[/latex]

    For the following exercises, use the descriptions of each pair of lines given below to find the slopes of Line 1 and Line 2. Is each pair of lines parallel, perpendicular, or neither?

    18.

    • Line 1: Passes through [latex]\left(0,6\right)[/latex] and [latex]\left(3,-24\right)[/latex]
    • Line 2: Passes through [latex]\left(-1,19\right)[/latex] and [latex]\left(8,-71\right)[/latex]

    19.

    • Line 1: Passes through [latex]\left(-8,-55\right)[/latex] and [latex]\left(10,\text{ }89\right)[/latex]
    • Line 2: Passes through [latex]\left(9,-44\right)[/latex] and [latex]\left(4,-14\right)[/latex]

    20.

    • Line 1: Passes through [latex]\left(2,3\right)[/latex] and [latex]\left(4,-1\right)[/latex]
    • Line 2: Passes through [latex]\left(6,3\right)[/latex] and [latex]\left(8,5\right)[/latex]

    21.

    • Line 1: Passes through [latex]\left(1,7\right)[/latex] and [latex]\left(5,5\right)[/latex]
    • Line 2: Passes through [latex]\left(-1,-3\right)[/latex] and [latex]\left(1,1\right)[/latex]

    22.

    • Line 1: Passes through [latex]\left(0,5\right)[/latex] and [latex]\left(3,3\right)[/latex]
    • Line 2: Passes through [latex]\left(1,-5\right)[/latex] and [latex]\left(3,-2\right)[/latex]

    23.

    • Line 1: Passes through [latex]\left(2,5\right)[/latex] and [latex]\left(5,-1\right)[/latex]
    • Line 2: Passes through [latex]\left(-3,7\right)[/latex] and [latex]\left(3,-5\right)[/latex]

    24. Write an equation for a line parallel to [latex]f\left(x\right)=-5x-3[/latex] and passing through the point [latex]\left(2,\text{ –}12\right).[/latex]

    25. Write an equation for a line parallel to [latex]g\left(x\right)=3x-1[/latex] and passing through the point [latex]\left(4,9\right).[/latex]

    26. Write an equation for a line perpendicular to [latex]h\left(t\right)=-2t+4[/latex] and passing through the point [latex]\left(\text{-}4,\text{ –}1\right).[/latex]

    27. Write an equation for a line perpendicular to [latex]p\left(t\right)=3t+4[/latex] and passing through the point [latex]\left(3,1\right).[/latex]

    28. Find the point at which the line [latex]f\left(x\right)=-2x-1[/latex] intersects the line [latex]g\left(x\right)=-x.[/latex]

    29. Find the point at which the line [latex]f\left(x\right)=2x+5[/latex] intersects the line [latex]g\left(x\right)=-3x-5.[/latex]

    30. Use algebra to find the point at which the line [latex]f\left(x\right)= -\frac{4}{5}x +\frac{274}{25}[/latex] intersects the line [latex]h\left(x\right)=\frac{9}{4}x\text{ }\text{ }+\text{ }\text{ }\frac{73}{10}.[/latex]

    31. Use algebra to find the point at which the line [latex]f\left(x\right)=\frac{7}{4}x\text{ }\text{ }+\text{ }\text{ }\frac{457}{60}[/latex] intersects the line [latex]g\left(x\right)=\frac{4}{3}x\text{ }\text{ }+\text{ }\text{ }\frac{31}{5}.[/latex]

    Graphical

    For the following exercises, match the given linear equation with its graph in (Figure).

    32. [latex]f\left(x\right)=-x-1[/latex]

    33. [latex]f\left(x\right)=-2x-1[/latex]

    34. [latex]f\left(x\right)=-\frac{1}{2}x-1[/latex]

    35. [latex]f\left(x\right)=2[/latex]

    36. [latex]f\left(x\right)=2+x[/latex]

    37. [latex]f\left(x\right)=3x+2[/latex]

    For the following exercises, sketch a line with the given features.

    38. An x-intercept of [latex]\left(–\text{4},\text{ 0}\right)[/latex] and y-intercept of [latex]\left(0,\text{ –2}\right)[/latex]

    39. An x-intercept of [latex]\left(–\text{2},\text{ 0}\right)[/latex] and y-intercept of [latex]\left(0,\text{ 4}\right)[/latex]

    40. A y-intercept of [latex]\left(0,\text{ 7}\right)[/latex] and slope [latex]-\frac{3}{2}[/latex]

    41. A y-intercept of [latex]\left(0,\text{ 3}\right)[/latex] and slope [latex]\frac{2}{5}[/latex]

    42. Passing through the points [latex]\left(–\text{6},\text{ –2}\right)[/latex] and [latex]\left(\text{6},\text{ –6}\right)[/latex]

    43. Passing through the points [latex]\left(–\text{3},\text{ –4}\right)[/latex] and [latex]\left(\text{3},\text{ 0}\right)[/latex]

    For the following exercises, sketch the graph of each equation.

    44. [latex]f\left(x\right)=-2x-1[/latex]

    45. [latex]g\left(x\right)=-3x+2[/latex]

    46. [latex]h\left(x\right)=\frac{1}{3}x+2[/latex]

    47. [latex]k\left(x\right)=\frac{2}{3}x-3[/latex]

    48. [latex]f\left(t\right)=3+2t[/latex]

    49. [latex]p\left(t\right)=-2\text{ }+\text{ }3t[/latex]

    50. [latex]x=3[/latex]

    51. [latex]x=-2[/latex]

    52. [latex]r\left(x\right)=4[/latex]

    53. [latex]q\left(x\right)=3[/latex]

    54. [latex]4x=-9y+36[/latex]

    55. [latex]\frac{x}{3}-\frac{y}{4}=1[/latex]

    56. [latex]3x-5y=15[/latex]

    57. [latex]3x=15[/latex]

    58. [latex]3y=12[/latex]

    59. If [latex]g\left(x\right)[/latex] is the transformation of [latex]f\left(x\right)=x[/latex] after a vertical compression by [latex]\frac{3}{4},[/latex] a shift right by 2, and a shift down by 4

    1. Write an equation for [latex]g\left(x\right).[/latex]
    2. What is the slope of this line?
    3. Find the y-intercept of this line.

    60. If [latex]g\left(x\right)[/latex] is the transformation of [latex]f\left(x\right)=x[/latex] after a vertical compression by [latex]\frac{1}{3},[/latex] a shift left by 1, and a shift up by 3

    1. Write an equation for [latex]g\left(x\right).[/latex]
    2. What is the slope of this line?
    3. Find the y-intercept of this line.

    For the following exercises,, write the equation of the line shown in the graph.

    61. 

    62. 
    63. 

    64. 

    For the following exercises, find the point of intersection of each pair of lines if it exists. If it does not exist, indicate that there is no point of intersection.

    65. [latex]\begin{array}{c}y=\frac{3}{4}x+1\\ -3x+4y=12\end{array}[/latex]

    66. [latex]\begin{array}{c}2x-3y=12\\ 5y+x=30\end{array}[/latex]

    67. [latex]\begin{array}{c}2x=y-3\\ y+4x=15\end{array}[/latex]

    68. [latex]\begin{array}{c}x-2y+2=3\\ x-y=3\end{array}[/latex]

    69. [latex]\begin{array}{c}5x+3y=-65\\ x-y=-5\end{array}[/latex]

    Extensions

    70. Find the equation of the line parallel to the line [latex]g\left(x\right)=-0.\text{01}x\text{ }\text{+}\text{ }\text{2}\text{.01}[/latex] through the point [latex]\left(\text{1},\text{ 2}\right).[/latex]

    71. Find the equation of the line perpendicular to the line [latex]g\left(x\right)=-0.\text{01}x\text{+2}\text{.01}[/latex] through the point [latex]\left(\text{1},\text{ 2}\right).[/latex]

    For the following exercises, use the functions [latex]f\left(x\right)=-0.\text{1}x\text{+200 and }g\left(x\right)=20x+0.1.[/latex]

    72. Find the point of intersection of the lines [latex]f[/latex] and [latex]g.[/latex]

    73. Where is [latex]f\left(x\right)[/latex] greater than [latex]g\left(x\right)?[/latex] Where is [latex]g\left(x\right)[/latex] greater than [latex]f\left(x\right)?[/latex]

    Real-World Applications

    74. A car rental company offers two plans for renting a car.

    • Plan A: $30 per day and $0.18 per mile
    • Plan B: $50 per day with free unlimited mileage

    How many miles would you need to drive for plan B to save you money?

    75. A cell phone company offers two plans for minutes.

    • Plan A: $20 per month and $1 for every one hundred texts.
    • Plan B: $50 per month with free unlimited texts.

    How many texts would you need to send per month for plan B to save you money?

    76. A cell phone company offers two plans for minutes.

    • Plan A: $15 per month and $2 for every 300 texts.
    • Plan B: $25 per month and $0.50 for every 100 texts.

    How many texts would you need to send per month for plan B to save you money?

    Glossary

    horizontal line
    a line defined by [latex]f\left(x\right)=b,[/latex] where [latex]b[/latex] is a real number. The slope of a horizontal line is 0.
    parallel lines
    two or more lines with the same slope
    perpendicular lines
    two lines that intersect at right angles and have slopes that are negative reciprocals of each other
    vertical line
    a line defined by [latex]x=a,[/latex] where [latex]a[/latex] is a real number. The slope of a vertical line is undefined.
    x-intercept
    the point on the graph of a linear function when the output value is 0; the point at which the graph crosses the horizontal axis