2.2 Linear Functions and Their Graphs

Learning Objectives

  1. Graph a line by plotting points.
  2. Determine the slope of a line.
  3. Identify and graph a linear function using the slope and y-intercept.
  4. Interpret solutions to linear equations and inequalities graphically.

A Review of Graphing Lines

Recall that the set of all solutions to a linear equation can be represented on a rectangular coordinate plane using a straight line through at least two points; this line is called its graph. For example, to graph the linear equation 8x+4y=12 we would first solve for y.

8x+4y=12                 Subtract8xonbothsides.4y=8x+12       Dividebothsidesby4.y=8x+124      Simplify.y=8x4+124y=2x+3

Written in this form, we can see that y depends on x; in other words, x is the independent variableThe variable that determines the values of other variables. Usually we think of the x-value of an ordered pair (x, y) as the independent variable. and y is the dependent variableThe variable whose value is determined by the value of the independent variable. Usually we think of the y-value of an ordered pair (x, y) as the dependent variable.. Choose at least two x-values and find the corresponding y-values. It is a good practice to choose zero, some negative numbers, as well as some positive numbers. Here we will choose five x values, determine the corresponding y-values, and then form a representative set of ordered pair solutions.

x

y

y=2x+3

Solutions

−2

7

y=2(2)+3=4+3=7

(−2, 7)

−1

5

y=2(1)+3=2+3=5

(−1, 5)

0

3

y=2(0)+3=0+3=3

(0, 3)

4

−5

y=2(4)+3=8+3=5

(4, −5)

6

−9

y=2(6)+3=12+3=9

(6, −9)

Plot the points and draw a line through the points with a straightedge. Be sure to add arrows on either end to indicate that the graph extends indefinitely.

The resulting line represents all solutions to 8x+4y=12, of which there are infinitely many. The above process describes the technique for graphing known as plotting pointsA way of determining a graph using a finite number of representative ordered pair solutions.. This technique will be used to graph more complicated functions as we progress in this course.

The steepness of any incline can be measured as the ratio of the vertical change to the horizontal change. For example, a 5% incline can be written as 5100, which means that for every 100 feet forward, the height increases 5 feet.

In mathematics, we call the incline of a line the slopeThe incline of a line measured as the ratio of the vertical change to the horizontal change, often referred to as “rise over run.”, denoted by the letter m. The vertical change is called the riseThe vertical change between any two points on a line. and the horizontal change is called the runThe horizontal change between any two points on a line.. Given any two points (x1,y1) and (x2,y2), we can obtain the rise and run by subtracting the corresponding coordinates.

This leads us to the slope formulaThe slope of the line through the points (x1,y1) and (x2,y2) is given by the formula m=y2y1x2x1.. Given any two points (x1,y1) and (x2,y2), the slope is given by:

Slope    m=riserun=y2y1x2x1=ΔyΔxChangeinyChangeinx

The Greek letter delta (Δ) is often used to describe the change in a quantity. Therefore, the slope is sometimes described using the notation ΔyΔx, which represents the change in y divided by the change in x.

Example 1

Find the slope of the line passing through (−3, −5) and (2, 1).

Solution:

Given (−3, −5) and (2, 1), calculate the difference of the y-values divided by the difference of the x-values. Take care to be consistent when subtracting the coordinates:

(x1,y1)(x2,y2)(3,5)(2,1)

m=y2y1x2x1=1(5)2(3)=1+52+3=65

It does not matter which point you consider to be the first and second. However, because subtraction is not commutative, you must take care to subtract the coordinates of the first point from the coordinates of the second point in the same order. For example, we obtain the same result if we apply the slope formula with the points switched:

(x1,y1)(x2,y2)(2,1)(3,5)

m=y2y1x2x1=5132=65=65

Answer: m=65

Verify that the slope is 65 by graphing the line described in the previous example.

Certainly the graph is optional; the beauty of the slope formula is that, given any two points, we can obtain the slope using only algebra.

Example 2

Find the y-value for which the slope of the line passing through (6,3) and (9,y) is 23.

Solution:

Substitute the given information into the slope formula.

Slope(x1,y1)(x2,y2)m=23(6,3)(9,y)

m=y2y1x2x123=y(3)9623=y+315

After substituting in the given information, the only variable left is y. Solve.

15(23)=15(y+315)10=y+37=y

Answer: y = 7

There are four geometric cases for the value of the slope.

Reading the graph from left to right, lines with an upward incline have positive slopes and lines with a downward incline have negative slopes. The other two cases involve horizontal and vertical lines. Recall that if k is a real number we have

y=kHorizontalLinex=kVerticalLine

For example, if we graph y=2 we obtain a horizontal line, and if we graph x=4 we obtain a vertical line.

From the graphs we can determine two points and calculate the slope using the slope formula.

Horizontal Line

Vertical Line

(x1,y1)(x2,y2)(3,2)(3,2)

m=y2y1x2x1=2(2)3(3)=223+3=06=0

(x1,y1)(x2,y2)(4,1)(4,1)

m=y2y1x2x1=1(1)4(4)=1+14+4=20Undefined

Notice that the points on the horizontal line share the same y-values. Therefore, the rise is zero and hence the slope is zero. The points on the vertical line share the same x-values. Consequently, the run is zero, leading to an undefined slope. In general,

Linear Functions

Given any linear equation in standard formAny nonvertical line can be written in the standard form ax+by=c., ax+by=c, we can solve for y to obtain slope-intercept formAny nonvertical line can be written in the form y=mx+b, where m is the slope and (0, b) is the y-intercept., y=mx+b. For example,

3x4y=8                    StandardForm4y=3x+8y=3x+84y=3x4+84y=34x2          Slope-InterceptForm

Where x=0, we can see that y=2 and thus (0,2) is an ordered pair solution. This is the point where the graph intersects the y-axis and is called the y-interceptThe point (or points) where a graph intersects the y-axis, expressed as an ordered pair (0, y).. We can use this point and the slope as a means to quickly graph a line. For example, to graph y=34x2, start at the y-intercept (0,2) and mark off the slope to find a second point. Then use these points to graph the line as follows:

The vertical line test indicates that this graph represents a function. Furthermore, the domain and range consists of all real numbers.

In general, a linear functionAny function that can be written in the form f(x)=mx+b is a function that can be written in the form f(x)=mx+bLinearFunction where the slope m and b represent any real numbers. Because y=f(x), we can use y and f(x) interchangeably, and ordered pair solutions on the graph (x,y) can be written in the form (x,f(x)).

(x,y)(x,f(x))

We know that any y-intercept will have an x-value equal to zero. Therefore, the y-intercept can be expressed as the ordered pair (0,f(0)). For linear functions,

f(0)=m(0)+b=b

Hence, the y-intercept of any linear function is (0,b). To find the x-interceptThe point (or points) where a graph intersects the x-axis, expressed as an ordered pair (x, 0)., the point where the function intersects the x-axis, we find x where y=0 or f(x)=0.

Example 3

Graph the linear function f(x)=53x+6 and label the x-intercept.

Solution:

From the function, we see that f(0)=6 (or b=6) and thus the y-intercept is (0, 6). Also, we can see that the slope m=53=53=riserun. Starting from the y-intercept, mark a second point down 5 units and right 3 units. Draw the line passing through these two points with a straightedge.

To determine the x-intercept, find the x-value where the function is equal to zero. In other words, determine x where f(x)=0.

f(x)=53x+60=53x+653x=6(35)53x=(35)6x=185=335

Therefore, the x-intercept is (185,0). The general rule is to label all important points that cannot be clearly read from the graph.

Answer:

Example 4

Determine a linear function that defines the given graph and find the x-intercept.

Solution:

We begin by reading the slope from the graph. In this case, two points are given and we can see that,

m=riserun=23

In addition, the y-intercept is (0, 3) and thus b=3. We can substitute into the equation for any linear function.

g(x)=mx+bg(x)=23x+3

To find the x-intercept, we set g(x)=0 and solve for x.

g(x)=23x+30=23x+323x=3(32)23x=(32)3x=92=412

Answer: g(x)=23x+3; x-intercept: (92,0)

Next, consider horizontal and vertical lines. Use the vertical line test to see that any horizontal line represents a function, and that a vertical line does not.

Given any horizontal line, the vertical line test shows that every x-value in the domain corresponds to exactly one y-value in the range; it is a function. A vertical line, on the other hand, fails the vertical line test; it is not a function. A vertical line represents a set of ordered pairs where all of the elements in the domain are the same. This violates the requirement that functions must associate exactly one element in the range to each element in the domain. We summarize as follows:

 

Horizontal Line

Vertical Line

Equation:

y=2

x=3

x-intercept:

None

(3,0)

y-intercept:

(0,2)

None

Domain:

(,)

{3}

Range:

{2}

(,)

Function:

Yes

No

A horizontal line is often called a constant function. Given any real number c,

f(x)=cConstantFunction

Example 5

Graph the constant function g(x)=2 and state the domain and range.

Solution:

Here we are given a constant function that is equivalent to y=2. This defines a horizontal line through (0,2).

Answer: Domain: ; range: {2}

Try this! Graph f(x)=3x2 and label the x-intercept.

Answer:

Linear Equations and Inequalities: A Graphical Interpretation

We can use the ideas in this section to develop a geometric understanding of what it means to solve equations of the form f(x)=g(x), where f and g are linear functions. Using algebra, we can solve the linear equation 12x+1=3 as follows:

12x+1=312x=2(2)12x=(2)2x=4

The solution to this equation is x = 4. Geometrically, this is the x-value of the intersection of the two graphs f(x)=12x+1 and g(x)=3. The idea is to graph the linear functions on either side of the equation and determine where the graphs coincide.

Example 6

Graph f(x)=12x+1 and g(x)=3 on the same set of axes and determine where f(x)=g(x).

Solution:

Here f is a linear function with slope 12 and y-intercept (0,1). The function g is a constant function and represents a horizontal line. Graph both of these functions on the same set of axes.

From the graph we can see that f(x)=g(x) where x=4. In other words, 12x+1=3 where x=4.

Answer: x = 4

We can extend the geometric interpretation a bit further to solve inequalities. For example, we can solve the linear inequality 12x+13, using algebra, as follows:

12x+1312x2(2)12x(2)2x4

The solution set consists of all real numbers greater than or equal to 4. Geometrically, these are the x-values for which the graph f(x)=12x+1 lies above the graph of g(x)=3.

Example 7

Graph f(x)=12x+1 and g(x)=3 on the same set of axes and determine where f(x)g(x).

Solution:

On the graph we can see this shaded.

From the graph we can see that f(x)g(x) or 12x+13 where x4.

Answer: The x-values that solve the inequality, in interval notation, are [4,).

Key Takeaways

  • We can graph lines by plotting points. Choose a few values for x, find the corresponding y-values, and then plot the resulting ordered pair solutions. Draw a line through the points with a straightedge to complete the graph.
  • Given any two points on a line, we can calculate the slope algebraically using the slope formula, m=riserun=y2y1x2x1=ΔyΔx.
  • Use slope-intercept form y=mx+b to quickly sketch the graph of a line. From the y-intercept (0,b), mark off the slope to determine a second point. Since two points determine a line, draw a line through these two points with a straightedge to complete the graph.
  • Linear functions have the form f(x)=mx+b, where the slope m and b are real numbers. To find the x-intercept, if one exists, set f(x)=0 and solve for x.
  • Since y=f(x) we can use y and f(x) interchangeably. Any point on the graph of a function can be expressed using function notation (x,f(x)).

Topic Exercises

    Part A: Graphing Lines by Plotting Points

      Find five ordered pair solutions and graph.

    1. y=3x6

    2. y=2x4

    3. y=5x+15

    4. y=3x+18

    5. y=12x+8

    6. y=23x+2

    7. y=35x+1

    8. y=32x+4

    9. y=14x

    10. y=25x

    11. y=10

    12. x=1

    13. 6x+3y=18

    14. 8x2y=16

    15. 2x+4y=8

    16. x+3y=18

    17. 12x15y=1

    18. 16x23y=2

    19. x+y=0

    20. x+y=0

      Find the slope of the line passing through the given points.

    1. (2,4) and (1,1)

    2. (3,0) and (3,4)

    3. (52,14) and (12,54)

    4. (4,3) and (2,3)

    5. (9,5) and (9,6)

    6. (12,1) and (1,32)

      Find the y-value for which the slope of the line passing through given points has the given slope.

    1. m=32;   (6,10), (4,y)

    2. m=13;   (6,4), (9,y)

    3. m=4;   (2,5), (1,y)

    4. m=3;   (1,2), (2,y)

    5. m=15;   (1,y), (6,15)

    6. m=34;   (1,y), (4,5)

      Given the graph, determine the slope.

    Part B: Linear Functions

      Find the x- and y-intercepts and use them to graph the following functions.

    1. 6x3y=18

    2. 8x2y=8

    3. x+12y=6

    4. 2x6y=8

    5. x2y=5

    6. x+3y=1

    7. 2x+3y=2

    8. 5x4y=2

    9. 9x4y=30

    10. 8x+3y=28

    11. 13x+12y=3

    12. 14x13y=3

    13. 79x23y=143

    14. 18x16y=32

    15. 16x+29y=43

    16. 215x+16y=43

    17. y=14x+12

    18. y=38x32

    19. y=23x+12

    20. y=45x+1

      Graph the linear function and label the x-intercept.

    1. f(x)=5x+15

    2. f(x)=2x+6

    3. f(x)=x2

    4. f(x)=x+3

    5. f(x)=13x+2

    6. f(x)=52x+10

    7. f(x)=53x+2

    8. f(x)=25x3

    9. f(x)=56x+2

    10. f(x)=43x+3

    11. f(x)=2x

    12. f(x)=3

      Determine the linear function that defines the given graph and find the x-intercept.

    Part C: A Graphical Interpretation of Linear Equations and Inequalities

      Graph the functions f and g on the same set of axes and determine where f(x)=g(x). Verify your answer algebraically.

    1. f(x)=12x3, g(x)=1

    2. f(x)=13x+2, g(x)=1

    3. f(x)=3x2, g(x)=5

    4. f(x)=x+2, g(x)=3

    5. f(x)=23x+4, g(x)=2

    6. f(x)=52x+6, g(x)=1

    7. f(x)=3x2, g(x)=2x+3

    8. f(x)=x+6, g(x)=x+2

    9. f(x)=13x, g(x)=23x+1

    10. f(x)=23x1, g(x)=43x3

      Graph the functions f and g on the same set of axes and determine where f(x)g(x). Verify your answer algebraically.

    1. f(x)=3x+7, g(x)=1

    2. f(x)=5x3, g(x)=2

    3. f(x)=23x3, g(x)=3

    4. f(x)=34x+2, g(x)=1

    5. f(x)=x+1, g(x)=3

    6. f(x)=4x+4, g(x)=8

    7. f(x)=x2, g(x)=x+4

    8. f(x)=4x5, g(x)=x+1

      Graph the functions f and g on the same set of axes and determine where f(x)<g(x). Verify your answer algebraically.

    1. f(x)=x+5, g(x)=1

    2. f(x)=3x3, g(x)=6

    3. f(x)=45x, g(x)=8

    4. f(x)=32x+6, g(x)=3

    5. f(x)=14x+1, g(x)=0

    6. f(x)=35x6, g(x)=0

    7. f(x)=13x+2, g(x)=13x

    8. f(x)=32x+3, g(x)=32x3

    Part D: Discussion Board

    1. Do all linear functions have y-intercepts? Do all linear functions have x-intercepts? Explain.

    2. Can a function have more than one y-intercept? Explain.

    3. How does the vertical line test show that a vertical line is not a function?

Answers

  1. 1

  2. 12

  3. Undefined

  4. y=5

  5. y=1

  6. y=45

  7. m=13

  8. m=73

  9. m=43

  10. m=0

  1. f(x)=x+1;   (1,0)

  2. f(x)=32x;   (0,0)

  3. f(x)=9;   none

  4. f(x)=13x+1; (3,0)

  1. x=8

  2. x=1

  3. x=3

  4. x=1

  5. x=3

  6. [2,)

  7. [0,)

  8. (,4]

  9. [3,)

  10. (,6)

  11. (10,)

  12. (,4)

  13. (,3)

  1. Answer may vary

  2. Answer may vary