Unit 1: Tools of Algebra; Unit 2 Solving Equations; Unit 3 Solving Inequalities; Unit 4 Exponents; Unit 5 Graph and Functions; Unit 6 Linear Equations; RC Geometry. Design Resources; RC Geometry Welcome; Unit 1: Basic Geometry; Unit 10: Area, Surface Area, and Volume; Unit 2: Reasoning, Parallel Lines and Perpendicular Lines; Unit 3: Congruent. Unit 6 Videos - NLESD.

Learning Outcomes

  • Graph a linear function by plotting points
  • Graph a linear function using the slope and y-intercept
  • Graph a linear function using transformations

We previously 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.

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. The third is applying transformations to the identity function [latex]fleft(xright)=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 of the function. For example, given the function [latex]fleft(xright)=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 (1, 2). Evaluating the function for an input value of 2 yields an output value of 4 which is represented by the point (2, 4). 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: Graphing by Plotting Points

Graph [latex]fleft(xright)=-frac{2}{3}x+5[/latex] by plotting points.

Show Solution

Begin by choosing input values. This function includes a fraction with a denominator of 3 so let’s choose multiples of 3 as input values. We will choose 0, 3, and 6.

Evaluate the function at each input value and use the output value to identify coordinate pairs.

[latex]begin{array}{llllll}x=0& & fleft(0right)=-frac{2}{3}left(0right)+5=5Rightarrow left(0,5right) x=3& & fleft(3right)=-frac{2}{3}left(3right)+5=3Rightarrow left(3,3right) x=6& & fleft(6right)=-frac{2}{3}left(6right)+5=1Rightarrow left(6,1right)end{array}[/latex]

Business fundamentalsmr.s learning website. Plot the coordinate pairs and draw a line through the points. The graph below is of the function [latex]fleft(xright)=-frac{2}{3}x+5[/latex].

Analysis of the Solution

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

Graph [latex]fleft(xright)=-frac{3}{4}x+6[/latex] by plotting points.

Show Solution

Graphing a Linear 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, m, which is a measure of its steepness. Recall that the slope is the rate of change of the function. The slope of a linear 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, between any two points by the horizontal difference, or run. The slope of a linear function will be the same between any two points. We encountered both the y-intercept and the slope in Linear Functions.

Let’s consider the following function.

[latex]fleft(xright)=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 x = 0. The graph crosses the y-axis at (0, 1). Now we know the slope and the y-intercept. We can begin graphing by plotting the point (0, 1) 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. Starting from our y-intercept (0, 1), we can rise 1 and then run 2 or run 2 and then rise 1. We repeat until we have multiple points, and then we draw a line through the points as shown below.

A General Note: Graphical Interpretation of a Linear Function

Writing And Graphing Linear Equations

In the equation [latex]fleft(xright)=mx+b[/latex]

  • b is the y-intercept of the graph and indicates the point (0, b) at which the graph crosses the y-axis.
  • m 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{Delta y}{Delta 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. Keep in mind that a vertical line is the only line that 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.
  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. Draw a line which passes through the points.

Example: Graphing by Using the y-intercept and Slope

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

Show Solution

Evaluate the function at x = 0 to find the y-intercept. The output value when x = 0 is 5, so the graph will cross the y-axis at (0, 5).

How to run vbs file from cmd. According to the equation for the function, the slope of the line is [latex]-frac{2}{3}[/latex]. This tells us that for each vertical decrease in the “rise” of [latex]–2[/latex] units, the “run” increases by 3 units in the horizontal direction. We can now graph the function by first plotting the y-intercept. From the initial value (0, 5) we move down 2 units and to the right 3 units. We can extend the line to the left and right by repeating, and then draw a line through the points.

Analysis of the Solution

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

Try It

Find a point on the graph we drew in Example: Graphing by Using the y-intercept and Slope that has a negative x-value.

Show Solution

Possible answers include [latex]left(-3,7right)[/latex], [latex]left(-6,9right)[/latex], or [latex]left(-9,11right)[/latex].

Graphing a Linear Function Using Transformations

Another option for graphing is to use transformations on the identity function [latex]fleft(xright)=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]fleft(xright)=mx[/latex], the m is acting as the vertical stretch or compression of the identity function. When m is negative, there is also a vertical reflection of the graph. Notice that multiplying the equation [latex]fleft(xright)=x[/latex] by m stretches the graph of f by a factor of m units if m > 1 and compresses the graph of f by a factor of m units if 0 < m < 1. This means the larger the absolute value of m, the steeper the slope.

Vertical stretches and compressions and reflections on the function [latex]fleft(xright)=x[/latex].

Vertical Shift

Unit

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

This graph illustrates vertical shifts of the function [latex]fleft(xright)=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]fleft(xright)=mx+b[/latex].

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

Example: Graphing by Using Transformations

Graph [latex]fleft(xright)=frac{1}{2}x - 3[/latex] using transformations.

Show Solution

The equation for the function shows that [latex]m=frac{1}{2}[/latex] so the identity function is vertically compressed by [latex]frac{1}{2}[/latex]. The equation for the function also shows that [latex]b=-3[/latex], so the identity function is vertically shifted down 3 units.

First, graph the identity function, and show the vertical compression.

The function [latex]y=x[/latex] compressed by a factor of [latex]frac{1}{2}[/latex].

Then, show the vertical shift.

The function [latex]y=frac{1}{2}x[/latex] shifted down 3 units.

Try It

Graph [latex]fleft(xright)=4+2x[/latex], using transformations.

Show Solution


Q & A

Linear Equations And Graphing Worksheet

In Example: Graphing by Using Transformations, 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 order of operations, let the input be 2.

Graphing Linear Equations

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

Contribute!

Did you have an idea for improving this content? We’d love your input.

Solving Linear Equations And Graphing

  • Expressions and Equations

    7.EE.B.4.B— Solve word problems leading to inequalities of the form px + q > r or px + q < r, where p, q, and r are specific rational numbers. Graph the solution set of the inequality and interpret it in the context of the problem.For example: As a salesperson, you are paid $50 per week plus $3 per sale. This week you want your pay to be at least $100. Write an inequality for the number of sales you need to make, and describe the solutions.

  • 8.EE.B.5

    Expressions and Equations

    8.EE.B.5— Graph proportional relationships, interpreting the unit rate as the slope of the graph. Compare two different proportional relationships represented in different ways.For example, compare a distance-time graph to a distance-time equation to determine which of two moving objects has greater speed.

  • 8.EE.B.6

    Expressions and Equations

    8.EE.B.6— Use similar triangles to explain why the slope m is the same between any two distinct points on a non-vertical line in the coordinate plane; derive the equation y = mx for a line through the origin and the equation y = mx + b for a line intercepting the vertical axis at b.