Skip to main content
Mathematics LibreTexts

5.6: Graphing Linear Equations and Inequalities

  • Page ID
    129557
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    A sign at a gas station shows the following prices: $3.99 for Unleaded; 4.09 for mid-grade; and 4.19 for Premium.
    Figure 5.19 How much would it cost to fill up your gas tank? (credit: "Gas Under 4 Bucks" by Mark Turnauckas, Flickr/CC BY 2.0)

    Learning Objectives

    After completing this section, you should be able to:

    1. Graph linear equations and inequalities in two variables.
    2. Solve applications of linear equations and inequalities.

    In this section, we will learn how to graph linear equations and inequalities. There are several real-world scenarios that can be represented by graphs of linear inequalities. Think of filling your car up with gasoline. If gasoline is $3.99 per gallon and you put 10 gallons in your car, you will pay $39.90. Your friend buys 15 gallons of gasoline and pays $59.85. You can plot these points on a coordinate system and connect the points with a line to create the graph of a line. You'll learn to do both in this section.

    Plotting Points on a Rectangular Coordinate System

    Just like maps use a grid system to identify locations, a grid system is used in algebra to show a relationship between two variables in a rectangular coordinate system. The rectangular coordinate system is also called the xxyy-plane or the “coordinate plane.”

    The rectangular coordinate system is formed by two intersecting number lines, one horizontal and one vertical. The horizontal number line is called the xFigure 5.20.

    A coordinate plane. The horizontal and vertical axes range from negative 7 to 7, in increments of 1. The top right quadrant is labeled I, the top left quadrant is labeled II, the bottom left quadrant is labeled III, and the bottom right quadrant is labeled IV.
    Figure 5.20 Quadrants on the Coordinate Plane

    In the rectangular coordinate system, every point is represented by an ordered pair (Figure 5.21). The first number in the ordered pair is the xx-coordinate of the point, and the second number is the yy-coordinate of the point. The phrase "ordered pair" means that the order is important. At the point where the axes cross and where both coordinates are zero, the ordered pair is (0,0)(0,0). The point (0,0)(0,0) has a special name. It is called the origin.

    An ordered pair, (x, y); where x is the x-coordinate and y is the y-coordinate.
    Figure 5.21 Ordered Pair

    We use the coordinates to locate a point on the xyFigure 5.22.

    A point is marked on a coordinate plane. The horizontal and vertical axes range from negative 6 to 6, in increments of 1. The point is plotted at the coordinates (1, 3). A vertical dashed line represents x equals 1. A horizontal dashed line represents y equals 3.
    Figure 5.22 Point (1,3)(1,3) Plotted on the Coordinate Plane

    Notice that the vertical line through x=1Figure 5.23, the point (0,4)(0,4) is on the yy-axis and the point (−2, 0) is on the xx-axis.

    Two points are marked on a coordinate plane. The horizontal and vertical axes range from negative 6 to 6, in increments of 1. The points are plotted at the following coordinates: (negative 2, 0) and (0, 4).
    Figure 5.23 Points (2,0)(2,0) and (0,4)(0,4) Plotted on the Coordinate Plane

    Example 5.39

    Plotting Points on a Coordinate System

    Plot the following points in the rectangular coordinate system and identify the quadrant in which the point is located:

    1. (5,4)(5,4)
    2. (3,4)(3,4)
    3. (2,3)(2,3)
    4. (0,1)(0,1)
    5. (3,52)(3,52)
    Answer

    The first number of the coordinate pair is the xFigure 5.24). Their intersection is the point.

    1. Since x=5x=5, the point is to the left of the yy-axis. Also, since y=4y=4, the point is above the xx-axis. The point (5,4)(5,4) is in quadrant II.
    2. Since x=3x=3, the point is to the left of the yy-axis. Also, since y=4y=4, the point is below the xx-axis. The point (3,4)(3,4) is in quadrant III.
    3. Since x=2x=2, the point is to the right of the yy-axis. Since y=3y=3, the point is below the xx-axis. The point (2,3)(2,3) is in quadrant IV.
    4. Since x=0x=0, the point whose coordinates are (0,1)(0,1) is on the yy-axis.
    5. Since x=3x=3, the point is to the right of the yy-axis. Since y=52y=52, which is equal to 2.5, the point is above the xx-axis. The point (3,52)(3,52) is in quadrant I.
    Five points are marked on a coordinate plane. The horizontal and vertical axes range from negative 6 to 6, in increments of 1. The points are plotted at the following coordinates: (negative 5, 4), (negative 3, negative 4), (0, negative 1), (2, negative 3), and (3, 2.5).
    Figure 5.24

    Your Turn 5.39

    1.
    Plot the following points in the rectangular coordinate system and identify the quadrant in which the point is located:
    1. /**/\left( { - 4,2} \right)/**/
    2. /**/ (–1, –2)/**/
    3. /**/ (3, –5)/**/
    4. /**/\left(–3,0 \right)/**/
    5. /**/ (\frac{5}{3},2)/**/

    Graphing Linear Equations in Two Variables

    Up to now, all the equations you have solved were equations with just one variable. In almost every case, when you solved the equation, you got exactly one solution. But equations can have more than one variable. Equations with two variables may be of the form Ax+By=CAx+By=C. An equation of this form, where AA and BB are both not zero, is called a linear equation in two variables. Here is an example of a linear equation in two variables, xx and yy.

    Ax+By=CA+4y=8A=1,B=4,C=8Ax+By=CA+4y=8A=1,B=4,C=8

    The equation y=3x+5y=3x+5 is also a linear equation. But it does not appear to be in the form Ax+By=CAx+By=C. We can use the addition property of equality and rewrite it in Ax+By=CAx+By=C form.

    Step 1: Add 3x3x to both sides. y+3x=3x+5+3xy+3x=3x+5+3x

    Step 2: Simplify. y+3x=5y+3x=5

    Step 3: Put it in Ax+By=CAx+By=C form. 3x+y=53x+y=5

    By rewriting y=3x+5y=3x+5 as 3x+y=53x+y=5, we can easily see that it is a linear equation in two variables because it is of the form Ax+By=CAx+By=C. When an equation is in the form Ax+By=CAx+By=C, we say it is in standard form of a linear equation. Most people prefer to have AA, BB, and CC be integers and A0A0 when writing a linear equation in standard form, although it is not strictly necessary.

    Linear equations have infinitely many solutions. For every number that is substituted for xx there is a corresponding yy value. This pair of values is a solution to the linear equation and is represented by the ordered pair (xx,yy). When we substitute these values of xx and yy into the equation, the result is a true statement, because the value on the left side is equal to the value on the right side.

    We can plot these solutions in the rectangular coordinate system. The points will line up perfectly in a straight line. We connect the points with a straight line to get the graph of the linear equation. We put arrows on the ends of each side of the line to indicate that the line continues in both directions.

    A graph is a visual representation of all the solutions of a linear equation. The line shows you all the solutions to that linear equation. Every point on the line is a solution of that linear equation. And every solution of the linear equation is on this line. This line is called the graph of the equation. Points not on the line are not solutions! The graph of a linear equation Ax+By=CAx+By=C is a straight line.

    • Every point on the line is a solution of the equation.
    • Every solution of this equation is a point on this line.

    Example 5.40

    Determining Points on a Line

    Figure 5.25 is the graph of y=2x3y=2x3.

    A line is plotted on an x y coordinate plane. The x and y axes range from negative 6 to 6, in increments of 1. The line representing y equals 2 x minus 3 passes through the following points, (negative 1, negative 5), (1, negative 1), (2, 1), (3, 3), and (4, 5). Note: all values are approximate.
    Figure 5.25 Graph of y=2x3y=2x3

    For each ordered pair, decide:

    1. Is the ordered pair a solution to the equation?
    2. Is the point on the line?

    A:(0,3)B:(3,3)C:(2,3)D:(1,5)A:(0,3)B:(3,3)C:(2,3)D:(1,5)

    Answer

    Substitute the xx- and yy-values into the equation to check if the ordered pair is a solution to the equation.

    1. A:(0,3)y=2x33=?2(0)33=3(0,3)is a solution.B:(3,3)y=2x33=?2(3)33=3(3,3)is a solution.C:(2,3) y = 2x3 3 =? 2(2)3 3 1 (2,3)is not a solution.D:(1,5) y = 2x3 5 =? 2(1)3 5 = 5 (1,5)is a solution.A:(0,3)y=2x33=?2(0)33=3(0,3)is a solution.B:(3,3)y=2x33=?2(3)33=3(3,3)is a solution.C:(2,3) y = 2x3 3 =? 2(2)3 3 1 (2,3)is not a solution.D:(1,5) y = 2x3 5 =? 2(1)3 5 = 5 (1,5)is a solution.

    2. Plot the points (0,-3)(0,-3), (3,3)(3,3), (2,-3)(2,-3), and (-1,-5)(-1,-5).
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 1. The line representing y equals 2 x minus 3 passes through the following points, (negative 1, negative 5), (0, negative 3), and (3, 3). A point is marked at (2, negative 3).
    Figure 5.26

    In Figure 5.26, the points (0,3)(0,3), (3,-3)(3,-3), and (1,5)(1,5) are on the line y=2x3y=2x3, and the point (2,3)(2,3) is not on the line. The points that are solutions to y=2x3y=2x3 are on the line, but the point that is not a solution is not on the line.

    Your Turn 5.40

    The given figure is the graph of /**/y = x + 2/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 1. The line passes through the following points, (negative 7, negative 5), (negative 2, 0), (0, 2), and (5, 7).
    Figure 5.27 Graph of /**/y = x + 2/**/
    For each ordered pair below, decide:
    1. Is the ordered pair a solution to the equation?
    2. Is the point on the line?
    1.
    /**/(0, 2)/**/
    2.
    /**/(1, 2)/**/
    3.
    /**/( - 1,1)/**/
    4.
    /**/(–3, –1)/**/

    The steps to take when graphing a linear equation by plotting points are:

    Step 1: Find three points whose coordinates are solutions to the equation. Organize them in a table.

    Step 2: Plot the points in a rectangular coordinate system. Check that the points line up. If they do not, carefully check your work.

    Step 3: Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line.

    It is true that it only takes two points to determine a line, but it is a good habit to use three points. If you only plot two points and one of them is incorrect, you can still draw a line, but it will not represent the solutions to the equation. It will be the wrong line. If you use three points, and one is incorrect, the points will not line up. This tells you something is wrong, and you need to check your work.

    Example 5.41

    Graphing a Line by Plotting Points

    Graph the equation: y=12x+3y=12x+3.

    Answer

    Find three points that are solutions to the equation. Since this equation has the fraction 1212 as a coefficient of xx, we will choose values of xx carefully. We will use zero as one choice and multiples of 2 for the other choices. Why are multiples of two a good choice for values of xx? By choosing multiples of 2, the multiplication by 1212 simplifies to a whole number.

    x = 0 x = 2 x = 4 y = 1 2 x + 3 y = 1 2 x + 3 y = 1 2 x + 3 y = 1 2 ( 0 ) + 3 y = 1 2 ( 2 ) + 3 y = 1 2 ( 4 ) + 3 y = 0 + 3 y = 1 + 3 y = 2 + 3 y = 3 y = 4 y = 5 x = 0 x = 2 x = 4 y = 1 2 x + 3 y = 1 2 x + 3 y = 1 2 x + 3 y = 1 2 ( 0 ) + 3 y = 1 2 ( 2 ) + 3 y = 1 2 ( 4 ) + 3 y = 0 + 3 y = 1 + 3 y = 2 + 3 y = 3 y = 4 y = 5

    xx yy (xx, yy)
    0 3 (0,3)(0,3)
    2 4 (2,4)(2,4)
    4 5 (4,5)(4,5)

    Plot the points, check that they line up, and draw the line (Figure 5.28).

    A line is plotted on an x y coordinate plane. The x and y axes range from negative 7 to 7, in increments of 1. The line representing y equals one half x plus 3 passes through the following points, (0, 3), (2, 4), (4, 5).
    Figure 5.28

    Your Turn 5.41

    1.
    Graph the equation /**/y = 3x - 1/**/ by plotting points.

    Solving Applications Using Linear Equations in Two Variables

    Many fields use linear equalities to model a problem. While our examples may be about simple situations, they give us an opportunity to build our skills and to get a feel for how they might be used.

    Example 5.42

    Pumping Gas

    Gasoline costs $3.53 per gallon. You put 10 gallons of gasoline in your car, and pay $35.30. Your friend puts 15 gallons of gasoline in their car and pays $52.95. Your neighbor needs 5 gallons of gasoline, how much will they pay?

    Answer

    Let x=the number of gallons of gasolineFigure 5.29).

    A line is plotted on a coordinate plane. The horizontal axis ranges from 0 to 20, in increments of 5. The vertical axis ranges from 0 to 60, in increments of 5. The line passes through the following points: (0, 0), (5, 17.65), (10, 35.3), and (15, 52.95).
    Figure 5.29

    We can see the point at x=5x=5. The yy-value is found by multiplying 5 by $3.53 to get $17.65. Your neighbor will pay $17.65.

    Your Turn 5.42

    1.
    If a stamp costs $0.55 and you buy a book of 20 stamps, then you pay $11. If you want to mail 100 letters, you can buy a roll of stamps for $55. Your friend only needs 3 stamps, how much will they pay?

    People in Mathematics

    René Descartes

    A portrait of Rene Descartes.
    Figure 5.30 René Descartes (credit: Flickr, Public Domain)

    René Descartes was born in 1596 in La Haye, France. He was sickly as a child, so much so that he was allowed to stay in bed until 11:00 AM rather than get up at 5:00 AM like the other school children. He kept this habit of rising late for most of the rest of his life.

    After his primary schooling, Descartes attended the University of Poitiers, receiving a law degree in 1616. He then embarked on a myriad of journeys, joining two different militaries (one in the Netherlands, the other in Bavaria) and generally travelling around Europe until 1628, when he settled in the Netherlands. It was here that he began to delve deeply into his ideas of science, mathematics, and philosophy.

    In 1637, at the urging of his friends, Descartes published Discourse on the Method for Conducting One's Reason Well and Seeking the Truth in the Sciences. The book had three appendices: La Dioptrique, a work on optics; Les Météores, which pertained to meteorology; and La Géométrie, a work on mathematics. It was in this appendix that he proposed a geometric way of representing many different algebraic expressions and equations. It is this system of representation that almost all mathematical textbooks use today.

    These publications (along with several others) brought much fame to Descartes. So renowned was his reputation that late in 1649, Queen Christina of Sweden asked Descartes to come to Sweden to tutor her. However, she wished to do her studies at 5:00 in the morning; Descartes had to break his lifelong habit of sleeping in late. A few months later, in February 1650, Descartes died of pneumonia.

    Graphing Linear Inequalities

    Previously we learned to solve inequalities with only one variable. We will now learn about inequalities containing two variables that can be written in one of the following forms: Ax+ByCAx+ByC, Ax+By>CAx+By>C, Ax+ByCAx+ByC, and Ax+By<CAx+By<C where AA and BB are not both zero. We will look at linear inequalities in two variables, which are very similar to linear equations in two variables.

    Like linear equations, linear inequalities in two variables have many solutions. Any ordered pair (xx, yy) that makes an inequality true when we substitute in the values is a solution to a linear inequality.

    Example 5.43

    Determining Solutions to an Inequality

    Determine whether each ordered pair is a solution to the inequality y>x+4y>x+4:

    1. (0,0)(0,0)
    2. (1,6)(1,6)
    3. (2,6)(2,6)
    4. (5,15)(5,15)
    5. (8,12)(8,12)
    Answer


    1. (0,0)y>x+4Substitute 0 for xand 0 fory0>?0+4Simplify.0>4(0,0)is not a solution toy>x+4.(0,0)y>x+4Substitute 0 for xand 0 fory0>?0+4Simplify.0>4(0,0)is not a solution toy>x+4.

    2. (1,6)y>x+4Substitute1forxand6fory6>?1+4Simplify.6>5(1,6)is not a solution toy>x+4.(1,6)y>x+4Substitute1forxand6fory6>?1+4Simplify.6>5(1,6)is not a solution toy>x+4.

    3. (2,6)y>x+4Substitute2forxand6fory6>?2+4Simplify.6>6(2,6)is not a solution toy>x+4.(2,6)y>x+4Substitute2forxand6fory6>?2+4Simplify.6>6(2,6)is not a solution toy>x+4.

    4. (5,15)y>x+4Substitute5forxand15fory15>?5+4Simplify.15>1So,(5,15)is not a solution toy>x+4.(5,15)y>x+4Substitute5forxand15fory15>?5+4Simplify.15>1So,(5,15)is not a solution toy>x+4.

    5. (8,12)y>x+4Substitute8forxand12fory12>?8+4Simplify.12>4So,(8,12)is a solution toy>x+4.(8,12)y>x+4Substitute8forxand12fory12>?8+4Simplify.12>4So,(8,12)is a solution toy>x+4.

    Your Turn 5.43

    Determine whether each ordered pair is a solution to the inequality x - 1{:}" class=" math-rendered">/**/y > x - 1{:}/**/
    1.
    /**/(0,1)/**/
    2.
    /**/( - 4, - 1)/**/
    3.
    /**/(4,2)/**/
    4.
    /**/(3,0)/**/
    5.
    /**/( - 2, - 3)/**/

    Let us think about x>3Figure 5.31.

    A number line ranges from negative 5 to 5, in increments of 1. An open parenthesis is marked at 3. The region to the right of the parenthesis is shaded on the number line. A right arrow above the number line ranges from 3 to the end of the number line. It is labeled numbers greater than 3. A left arrow above the number line ranges from 3 to 0. It is labeled numbers less than 3.
    Figure 5.31 Solution to x>3x>3 on a Number Line

    Similarly, the line y=x+4y=x+4 separates the plane into two regions. On one side of the line are points with y<x+4y<x+4. On the other side of the line are the points with y>x+4y>x+4. We call the line y=x+4y=x+4 a boundary line.

    For an inequality in one variable, the endpoint is shown with a parenthesis (Figure 5.32) or a bracket (Figure 5.33) depending on whether or not aa is included in the solution:

    A line with a close parenthesis at a. The region to the left of the parenthesis is shaded. Text reads, x is less than a.
    Figure 5.32 Endpoint with Parenthesis
    A line with a close bracket at a. The region to the left of the bracket is shaded. Text reads, x is less than or equal to a.
    Figure 5.33 Endpoint with Bracket

    Similarly, for an inequality in two variables, the boundary line is shown with a solid or dashed line to show whether or not it the line is included in the solution.

    Ax+By<CAx+By<C Ax+ByCAx+ByC
    Ax+By>CAx+By>C Ax+ByCAx+ByC
    Boundary line is Ax+By=CAx+By=C Boundary line is Ax+By=CAx+By=C
    Boundary line is not included in solution. Boundary line is included in solution.
    Boundary line is dashed. Boundary line is solid.

    Now, let us take a look at what we found in Example 5.43. We will start by graphing the line y=x+4Figure 5.34. We found that some of the points were solutions to the inequality y>x+4y>x+4 and some were not. Which of the points we plotted are solutions to the inequality y>x+4y>x+4? The points (1,6)(1,6) and (8,12)(8,12) are solutions to the inequality y>x+4y>x+4. Notice that they are both on the same side of the boundary line y=x+4y=x+4. The two points (0,0)(0,0) and (5,15)(5,15) are on the other side of the boundary line y=x+4y=x+4, and they are not solutions to the inequality y>x+4y>x+4. For those two points, y<x+4y<x+4. What about the point (2,6)(2,6)? Because 6=2+46=2+4, the point is a solution to the equation y=x+4y=x+4, but not a solution to the inequality y>x+4y>x+4. So, the point (2,6)(2,6) is on the boundary line.

    Five points and a line are plotted on an x y coordinate plane. The x and y axes range from negative 16 to 16, in increments of 1. The points are plotted at the following coordinates: (negative 8, 12), (1, 6), (2, 6), (0, 0), and (negative 5, negative 15). The line passes through the following points: (negative 14, negative 10), (negative 4, 0), (0, 4), (2, 6), and (12, 16).
    Figure 5.34 Graph of y=x+4y=x+4

    Let us take another point above the boundary line and test whether or not it is a solution to the inequality y>x+4y>x+4. The point (0,10)(0,10) clearly looks to be above the boundary line, doesn’t it? Is it a solution to the inequality?

    y>x+410>?0+410>4y>x+410>?0+410>4

    Yes, (0,10)Figure 5.35.

    Six points and a line are plotted on an x y coordinate plane. The x and y axes range from negative 16 to 16, in increments of 1. The points are plotted at the following coordinates: (negative 8, 12), (1, 6), (2, 6), (0, 0), (0, 10), and (negative 5, negative 15). The line passes through the following points: (negative 14, negative 10), (negative 4, 0), (0, 4), (2, 6), and (12, 16). The region to the left of the line represents y greater than x plus 4. The region to the right of the line represents y lesser than x plus 4.
    Figure 5.35 Graph of y=x+4y=x+4, with y>x+4y>x+4 Above the Boundary Line and y<x+4y<x+4 Below the Boundary Line

    The graph of the inequality y>x+4Figure 5.36. The line y=x+4y=x+4 divides the plane into two regions. The shaded side shows the solutions to the inequality y>x+4y>x+4. The points on the boundary line, those where y=x+4y=x+4, are not solutions to the inequality y>x+4y>x+4, so the line itself is not part of the solution. We show that by making the boundary line dashed, not solid.

    A dashed line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 1. The line passes through the following points, (negative 8, negative 4), (negative 4, 0), (0, 4), and (4, 8). The region above the line is shaded.
    Figure 5.36 Graph of y>x+4y>x+4

    Example 5.44

    Writing a Linear Inequality Shown by a Graph

    The boundary line shown in this graph is y=2x1Figure 5.37.

    A dashed line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 2. The line passes through the following points, (negative 3, negative 7), (0, negative 1, (1, 1), and (4, 7). The region to the left of the line is shaded.
    Figure 5.37
    Answer

    The line y=2x1y=2x1 is the boundary line. On one side of the line are the points with y>2x1y>2x1 and on the other side of the line are the points with y<2x1y<2x1. Let us test the point (0,0)(0,0) and see which inequality describes its position relative to the boundary line. At (0,0)(0,0), which inequality is true: y>2x1y>2x1 or y<2x1y<2x1?

    0>2(0)-10>2(0)-1 0<2(0)-10<2(0)-1
    0>0-10>0-1 0<0-10<0-1
    0>-10>-1 0<10<1
    True False

    Since y>2x1y>2x1 is true, the side of the line with (0,0)(0,0), is the solution. The shaded region shows the solution of the inequality y>2x1y>2x1. Since the boundary line is graphed with a dashed line, the inequality does not include the equal sign. The graph shows the inequality y>2x1y>2x1.

    We could use an yy point as a test point, provided it is not on the line. Why did we choose (0,0)(0,0)? Because it is the easiest to evaluate. You may want to pick a point on the other side of the boundary line and check that y<2x1y<2x1.

    Your Turn 5.44

    1.
    Write the inequality shown by the graph with the boundary line /**/y = -2x + 3/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 1. The line passes through the following points, (negative 2, 7), (0, 3), (1.5, 0), and (5, negative 7). The region to the right of the line is shaded. Note: all values are approximate.

    Example 5.45

    Graphing a Linear Inequality

    Graph the linear inequality y34x2y34x2.

    Answer

    Step 1. Identify and graph the boundary line (Figure 5.38).

    • If the inequality is ≤ or ≥, the boundary line is solid.
    • If the inequality is < or >, the boundary line is dashed.

    Replace the inequality sign with an equal sign to find the boundary line.

    Graph the boundary line y=34x2y=34x2.

    The inequality sign is ≥, so we draw a solid line.

    A line is plotted on an x y coordinate plane. The x and y axes range from negative 6 to 6, in increments of 1. The line passes through the following points, (negative 4, negative 5), (0, negative 2), (4, 1), and (5, 1.8). Note: all values are approximate.
    Figure 5.38
    Step 2. Test a point that is not on the boundary line. Is it a solution of the inequality?

    We’ll test (0,0)(0,0).

    Is it a solution of the inequality?

    At (0,0)(0,0), is y34x2y34x2?

    0?34(0)2020?34(0)202

    So, (0,0)(0,0) is a solution.

    Step 3. Shade in one side of the boundary line (Figure 5.39).

    • If the test point is a solution, shade in the side that includes the point.
    • If the test point is not a solution, shade in the opposite side.
    The test point (0,0)(0,0) is a solution to y34x2y34x2. So we shade in that side.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 6 to 6, in increments of 1. The line passes through the following points, (negative 4, negative 5), (0, negative 2), (4, 1), and (5, 1.8). The region above the line is shaded. Note: all values are approximate.
    Figure 5.39

    All points in the shaded region and on the boundary line represent the solution to y34x2y34x2.

    Your Turn 5.45

    1.
    Graph the linear inequality: \,\frac{2x}{3} - 1" class=" math-rendered">/**/y\, > \,\frac{2x}{3} - 1/**/.

    Video

    Graphing Linear Inequalities in Two Variables

    Solving Applications Using Linear Inequalities in Two Variables

    Many fields use linear inequalities to model a problem. While our examples may be about simple situations, they give us an opportunity to build our skills and to get a feel for how they might be used.

    Example 5.46

    Working Multiple Jobs

    Hilaria works two part time jobs to earn enough money to meet her obligations of at least $240 a week. Her job in food service pays $10 an hour and her tutoring job on campus pays $15 an hour. How many hours does Hilaria need to work at each job to earn at least $240?

    1. Let xx be the number of hours she works at the job in food service and let yy be the number of hours she works tutoring. Write an inequality that would model this situation.
    2. Graph the inequality.
    3. Find three ordered pairs (x,yx,y) that would be solutions to the inequality. Then, explain what that means for Hilaria.
    Answer

    1. Let xx be the number of hours she works at the job in food service and let yy be the number of hours she works tutoring. She earns $10 per hour at the job in food service and $15 an hour tutoring. At each job, the number of hours multiplied by the hourly wage will give the amount earned at that job.

      Amount earned at the food service job10 x plus+the amount earned tutoring15yis at least240Amount earned at the food service job10 x plus+the amount earned tutoring15yis at least240

    2. Graph the inequality:

      Step 1: Graph the boundary line 10x+15y=24010x+15y=240

      Create a table of values

      xx yy
      0 10(0)+15y=240>y=1610(0)+15y=240>y=16
      6 10(6)+15y=240>y=1210(6)+15y=240>y=12
      12 10(12)+15y=240>y=810(12)+15y=240>y=8

      Step 2: Pick a test point. Let us pick (0,0)(0,0) again:

      10(0)+15(0)24010(0)+15(0)240?

      0240Figure 5.40).

      A line is plotted on an x y coordinate plane. The x-axis ranges from 0 to 30, in increments of 2. The y-axis ranges from 0 to 30, in increments of 2. The line passes through the following points, (0, 16), (6, 12), (12, 8), (18, 4), and (24, 0). The region above the line is shaded.
      Figure 5.40
  • From the graph, we see that the ordered pairs (15,10)(15,10), (0,16)(0,16), (24,0)(24,0) represent three of infinitely many solutions. Check the values in the inequality.

    (15,10)10x+15y24010(15)+15(10)?240300240True (0,16)10x+15y24010(0)+15(16)?240240240True (24,0)10x+15y24010(24)+15(0)?240240240True (15,10)10x+15y24010(15)+15(10)?240300240True (0,16)10x+15y24010(0)+15(16)?240240240True (24,0)10x+15y24010(24)+15(0)?240240240True

  • For Hilaria, it means that to earn at least $240, she can work 15 hours tutoring and 10 hours at her food service job, earn all her money tutoring for 16 hours, or earn all her money while working 24 hours at the job in food service.

    Your Turn 5.46

    Harrison works two part time jobs. One at a gas station that pays $11 an hour and the other is as an IT consultant for $16.50 an hour. Between the two jobs, Harrison wants to earn at least $330 a week. How many hours does Harrison need to work at each job to earn at least $330?
    1.
    Let /**/x/**/ be the number of hours he works at the gas station and let /**/y/**/ be the number of hours he works as an IT consultant. Write an inequality that would model this situation.
    2.
    Graph the inequality.
    3.
    Find three ordered pairs (/**/x/**/, /**/y/**/) that would be solutions to the inequality. Then, explain what that means for Harrison.

    Check Your Understanding

    43.
    Choose the correct solution to the equation /**/6y + 10 = 12y/**/.
    1. /**/y = 5/**/
    2. /**/y = -1/**/
    3. /**/y = \frac{1}{2}/**/
    4. /**/y = \frac{5}{3}/**/
    44.
    Choose the correct graph for /**/y = 3x + 5/**/.
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (negative 5, negative 10) and (0, 5).
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (0, negative 5) and (5, 10).
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (0, negative 3.5) and (2, 5). Note: all values are approximate.
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (negative 2, negative 5) and (0, 2.5). Note: all values are approximate.
    45.
    Choose the correct equation for the graph shown:
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (negative 8, 0) and (0, 4).
    1. /**/y = 2x + 4/**/
    2. /**/y = \frac{1}{2}x + 4/**/
    3. /**/y = - 2x + 4/**/
    4. /**/y = \frac{1}{2}x + 4/**/
    46.
    Choose the correct graph for 3x + 5" class=" math-rendered">/**/y > 3x + 5/**/.
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (negative 2, negative 5) and (0, 2.5). The region to the right of the line is shaded. Note: all values are approximate.
    A dashed line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (negative 2, negative 5) and (0, 2.5). The region to the right of the line is shaded. Note: all values are approximate.
    CS_Figure_05_05_034.png
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (negative 2, negative 5) and (0, 2.5). The region to the left of the line is shaded. Note: all values are approximate.
    47.
    Choose the correct inequality for the graph shown.
    A line is plotted on a coordinate plane. The horizontal and vertical axes range from negative 10 to 10, in increments of 5. The line passes through the points, (0, 5) and (4, negative 3). The region to the left of the line is shaded.
    1. /**/y = -2x + 5/**/
    2. /**/y \leq -2x + 5/**/
    3. /**/y \geq -2x + 5/**/
    4. /**/y < -2x + 5/**/

    Section 5.5 Exercises

    1.
    Plot each point in a rectangular coordinate system and identify the quadrant in which the point is located.
    1. /**/(3, -1)/**/
    2. /**/(-3, 1)/**/
    3. /**/(-2, 0)/**/
    4. /**/(-4, -3)/**/
    5. /**/(1,\frac14{5})/**/
    For each ordered pair below, decide:
    1. Is the ordered pair a solution to the equation?
    2. Is the point on the line in the given graph?
    /**/y = \frac{1}{2}x - 3/**/
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 1. The line passes through the points, (negative 6, negative 6), (0, negative 3), and (6, 0).
    2.
    /**/\left( {0,-3} \right)/**/
    3.
    /**/\left( {2,-2} \right)/**/
    4.
    /**/\left( {-2,-4} \right)/**/
    5.
    /**/\left( {4,1} \right)/**/
    For each ordered pair below, decide:
    1. Is the ordered pair a solution to the equation?
    2. Is the point on the line in the given graph?
    /**/y = x - 4/**/
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 1. The line passes through the points, (negative 3, negative 7), (0, negative 4), (4, 0), and (7, 3).
    6.
    /**/\left( {0,-4} \right)/**/
    7.
    /**/\left( {3,-1} \right)/**/
    8.
    /**/\left( {2,2} \right)/**/
    9.
    /**/\left( {1,-5} \right)/**/
    For each ordered pair below, decide:
    1. Is the ordered pair a solution to the equation?
    2. Is the point on the line in the given graph?
    /**/y = \frac{1}{3}x + 2/**/
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 8 to 8, in increments of 1. The line passes through the points, (negative 6, 0), (0, 2), and (6, 4).
    10.
    /**/\left( {0,2} \right)/**/
    11.
    /**/\left( {3,3} \right)/**/
    12.
    /**/\left( {-3,2} \right)/**/
    13.
    /**/\left( {-6,0} \right)/**/
    For the following exercises, graph by plotting points.
    14.
    /**/y = 3x - 1/**/
    15.
    /**/y = -x - 3/**/
    16.
    /**/y = 2x/**/
    17.
    /**/y = \frac{1}{2}x + 2/**/
    18.
    /**/y = \frac{4}{3}x - 5/**/
    19.
    /**/y = \frac{2}{5}x + 1/**/
    20.
    /**/y = \frac{3}{2}x + 2/**/
    For the following exercises, determine whether each ordered pair is a solution to the inequality.
    21.
    x-3" class=" math-rendered">/**/y > x-3/**/
    /**/{\text{A: (0, 0)}}\quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[26]/div[2]/div/span[2]/span[1], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[26]/div[2]/div/span[2]/span[2], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[26]/div[2]/div/span[2]/span[3], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[26]/div[2]/div/span[2]/span[4], line 1, column 1
    
    /**/
    22.
    /**/y < 3x + 2/**/
    /**/{\text{A: (0, 3)}}\quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[27]/div/span[2]/span[1], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[27]/div/span[2]/span[2], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[27]/div/span[2]/span[3], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[27]/div/span[2]/span[4], line 1, column 1
    
    /**/
    23.
    /**/y < -2x + 5/**/
    /**/{\text{A: (-3, 0)}}\quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[28]/div/span[2]/span[1], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[28]/div/span[2]/span[2], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[28]/div/span[2]/span[3], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[28]/div/span[2]/span[4], line 1, column 1
    
    /**/
    24.
    4" class=" math-rendered">/**/3x - 4y > 4/**/
    /**/{\text{A: (5, 1)}}\quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[29]/div/span[2]/span[1], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[29]/div/span[2]/span[2], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[29]/div/span[2]/span[3], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[29]/div/span[2]/span[4], line 1, column 1
    
    /**/
    25.
    2" class=" math-rendered">/**/2x + 3y > 2/**/
    /**/{\text{A: (1, 1)}}\quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[30]/div/span[2]/span[1], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[30]/div/span[2]/span[2], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[30]/div/span[2]/span[3], line 1, column 1
    
    \quad\quad
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/05:__Algebra/5.06:__Graphing_Linear_Equations_and_Inequalities), /content/body/div[5]/div[5]/div/div[12]/div[3]/div[30]/div/span[2]/span[4], line 1, column 1
    
    /**/
    26.
    Write the inequality shown by the graph with the boundary line /**/y = 3x - 4/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (0, negative 5), (2.5, 2.5), and (5, 10). The region to the right of the line is shaded. Note: all values are approximate.
    27.
    Write the inequality shown by the graph with the boundary line /**/y = 2x - 4/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (0, negative 5), (2.5, 0), and (5, 5). The region to the right of the line is shaded. Note: all values are approximate.
    28.
    Write the inequality shown by the graph with the boundary line /**/y = \frac{1}{2}x + 1/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (negative 7.5, negative 2.5), (0, 1), and (7.5, 5). The region below the line is shaded. Note: all values are approximate.
    29.
    Write the inequality shown by the graph with the boundary line /**/y = - \frac{1}{3}x - 2/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (negative 10, 1), (negative 5, 0), (0, negative 2.3), and (10, negative 5). The region below the line is shaded. Note: all values are approximate.
    30.
    Write the inequality shown by the shaded region in the graph with the boundary line /**/\;x + y = 5/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (negative 5, 10), (0, 5), (5, 0), and (10, negative 5). The region above the line is shaded. Note: all values are approximate.
    31.
    Write the inequality shown by the shaded region in the graph with the boundary line /**/x + y = 3/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (negative 5, 7.5), (0, 3), (2.5, 0), and (10, negative 7). The region above the line is shaded. Note: all values are approximate.
    32.
    Write the inequality shown by the shaded region in the graph with the boundary line /**/3x - y = 6/**/.
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (negative 1, negative 10), (2.3, 0), and (5, 10). The region to the left of the line is shaded. Note: all values are approximate.
    33.
    Write the inequality shown by the shaded region in the graph with the boundary line /**/2x - y = 4/**/ .
    A line is plotted on an x y coordinate plane. The x and y axes range from negative 10 to 10, in increments of 2.5. The line passes through the points, (negative 2.5, negative 10), (2.5, 0), and (7, 10). The region to the left of the line is shaded. Note: all values are approximate.
    For the following exercises, graph the linear inequality.
    34.
    /**/y < \frac{3}{5}x + 2/**/
    35.
    /**/y \leq - \frac{1}{2}x + 4/**/
    36.
    /**/y \geq - \frac{1}{3}x - 2/**/
    37.
    /**/x - y \leq 3/**/
    38.
    /**/x - y \geq - 2/**/
    39.
    - 4" class=" math-rendered">/**/4x + y > - 4/**/
    40.
    /**/x + 5y < - 5/**/
    41.
    /**/3x + 2y \geq - 6/**/
    42.
    /**/4x + 2y \geq - 8/**/
    43.
    4x" class=" math-rendered">/**/y > 4x/**/
    44.
    /**/y \leq - 3x/**/

    This page titled 5.6: Graphing Linear Equations and Inequalities is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.