Skip to main content
Mathematics LibreTexts

14.1.2: Graphing Systems of Inequalities

  • Page ID
    71368
  • \( \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}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

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

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

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

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

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

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives
    • Solve a system of linear inequalities by graphing.
    • Determine whether an ordered pair is a solution of a system of inequalities.
    • Solve application problems by graphing a system of inequalities.

    Introduction

    A solution of a system of linear equalities is any ordered pair that is true for all of the equations in the system. Likewise, a solution of a system of linear inequalities is any ordered pair that is a solution for all of the inequalities in the system.

    Graphs are used to show all of the values that are solutions for a system of linear inequalities.

    Graphing a System of Two Inequalities

    The graph of a single linear inequality splits the coordinate plane into two regions. On one side lie all the solutions to the inequality. On the other side, there are no solutions. Consider the graph of the inequality \(\ y<2 x+5\).

    Screen Shot 2021-06-29 at 12.13.47 AM.png

    The dashed line is \(\ y=2 x+5\). Every ordered pair in the colored area below the line is a solution to \(\ y<2 x+5\), as all of the points below the line will make the inequality true. If you doubt that, try substituting the \(\ x\) and \(\ y\) coordinates of points A and B into the inequality—you’ll see that they work. So, the shaded area shows all of the solutions for this inequality.

    The boundary line divides the plane into two half planes. In this case, it is shown as a dashed line, as the points on the line don’t satisfy the inequality. If the inequality had been \(\ y \leq 2 x+5\), then the boundary line would have been solid.

    Let’s graph another inequality: \(\ y>-x\) You can check a couple of points to determine which side of the boundary line to shade. Checking points M and N yields true statements. So, we shade the area above the line. The line is dashed, as points on the line don't satisfy the inequality.

    Screen Shot 2021-06-29 at 10.24.53 AM.png

    To create a system of inequalities, you need to graph two or more inequalities together. Let’s use \(\ y<2 x+5\) and \(\ y>-x\) since we have already graphed each of them.

    Screen Shot 2021-06-29 at 10.29.18 AM.png

    The purple area shows where the solutions of the two inequalities overlap. This area is the solution to the system of inequalities. Any point within this purple region will be true for both \(\ y>-x\) and \(\ y<2 x+5\).

    On the graph, you can see that the points B and N are solutions for the system because their coordinates will make both inequalities true statements.

    In contrast, points M and A both lie outside the solution region (purple). While point M is a solution for the inequality \(\ y>-x\) and point A is a solution for the inequality \(\ y<2 x+5\), neither point is a solution for the system.

    Example

    Is the point \(\ (2,1)\) a solution of the system \(\ x+y>1\) and \(\ 2 x+y<8\)?

    Solution

    \(\ \begin{array}{r}
    x+y>1 \\
    2+1>1 \\
    3>1
    \end{array}\)
    \(\ \begin{array}{r}
    2 x+y<8 \\
    2(2)+1<8 \\
    4+1<8 \\
    5<8
    \end{array}\)
    TRUE TRUE
    \(\ (2,1)\) is a solution for \(\ x+y>1\). \(\ (2,1)\) is a solution for \(\ 2 x+y<8\).
    Check the point with each of the inequalities. Substitute 2 for \(\ x\) and 1 for \(\ y\). Is the point a solution of both inequalities?
    The point \(\ (2,1)\) is a solution of the system \(\ x+y>1\) and \(\ 2 x+y<8\) Since \(\ (2,1)\) is a solution of each inequality, it is also a solution of the system.

    Here is a graph of the system in the example above. Notice that \(\ (2,1)\) lies in the purple area, which is the overlapping area for the two inequalities.

    Screen Shot 2021-06-29 at 10.40.32 AM.png

    Example

    Is the point \(\ (2,1)\) a solution of the system \(\ x+y>1\) and \(\ 3 x+y<4\)?

    Solution

    \(\ \begin{array}{r}
    x+y>1 \\
    2+1>1 \\
    3>1
    \end{array}\)
    \(\ \begin{array}{r}
    3 x+y<4 \\
    3(2)+1<4 \\
    6+1<4 \\
    7<4
    \end{array}\)
    TRUE FALSE
    \(\ (2,1)\) is a solution for \(\ x+y>1\). \(\ (2,1)\) is not a solution for \(\ 3 x+y<4\).
    Check the point with each of the inequalities. Substitute 2 for \(\ x\) and 1 for \(\ y\). Is the point a solution of both inequalities?

    The point \(\ (2,1)\) is not a solution of the system.

    \(\ x+y>1\) and \(\ 3 x+y<4\).

    Since \(\ (2,1)\) is not a solution of one of the inequalities, it is not a solution of the system.

    Here is a graph of this system. Notice that \(\ (2,1)\) is not in the purple area, which is the overlapping area; it is a solution for one inequality (the red region), but it is not a solution for the second inequality (the blue region).

    Screen Shot 2021-06-29 at 10.46.28 AM.png

    Exercise

    Which of the points listed below are solutions for the system?

    \(\ \begin{array}{l}
    y>x \\
    x-2<0
    \end{array}\)

    1. \(\ (1,1)\)
    2. \(\ (-5,9)\)
    3. \(\ (0,7)\)
    1. I and II
    2. II and III
    3. I and III
    4. II only
    Answer
    1. Incorrect. \(\ (-5,9)\) is a solution to this system, but \(\ (1,1)\) is not, because it is not a solution to the first inequality. The correct answer is B, \(\ (-5,9)\) and \(\ (0,7)\) are solutions to the system.
    2. Correct. The points \(\ (-5,9)\) and \(\ (0,7)\) are both solutions for both inequalities in the system.
    3. Incorrect. \(\ (1,1)\) is a valid solution for the inequality \(\ x-2<0\), but it is not a solution for \(\ y>x\); consequently, it is not a solution for the system. The correct answer is B, \(\ (-5,9)\) and \(\ (0,7)\) are solutions to the system.
    4. Incorrect. \(\ (-5,9)\) is a valid solution for the system, but so is \(\ (0,7)\). The correct answer is B, \(\ (-5,9)\) and \(\ (0,7)\) are solutions to the system.

    Solving Systems of Inequalities by Graphing

    As shown above, finding the solutions of a system of inequalities can be done by graphing each inequality and identifying the region they share.

    Example

    Find the solution to the system \(\ x+y \geq 1\) and \(\ y-x \geq 5\).

    Solution

    Screen Shot 2021-06-29 at 10.56.18 AM.png

    Graph one inequality. First, graph the boundary line using a table of values, intercepts, or any other method you prefer. The boundary line for \(\ x+y \geq 1\) is \(\ x+y=1\), or \(\ y=-x+1\).

    Since the equal sign is included with the greater than sign, the boundary line is solid.

    \(\ \begin{array}{r}
    \text { Test } 1:(-3,0) \\
    x+y \geq 1 \\
    -3+0 \geq 1 \\
    -3 \geq 1
    \end{array}\)
    \(\ \begin{array}{r}
    \text { Test } 2:(4,1) \\
    x+y \geq 1 \\
    4+1 \geq 1 \\
    5 \geq 1
    \end{array}\)
    FALSE TRUE
    Find an ordered pair on either side of the boundary line. Insert the x- and y-values into the inequality \(\ x+y \geq 1\) and see which ordered pair results in a true statement.
    Screen Shot 2021-06-29 at 11.00.23 AM.png Since \(\ (4,1)\) results in a true statement, the region that includes \(\ (4,1)\) should be shaded.
    Screen Shot 2021-06-29 at 11.02.19 AM.png Do the same with the second inequality. Graph the boundary line, then test points to find which region is the solution to the inequality. In this case, the boundary line is \(\ y-x=5\) (or \(\ y=x+5\)) and is solid. Test point \(\ (-3,0)\) is not a solution of \(\ y-x \geq 5\), and test point \(\ (0,6)\) is a solution.

    The purple region in this graph shows the set of all solutions of the system.

    Screen Shot 2021-06-29 at 11.19.40 AM.png

    Example

    Find the solution to the system \(\ 3 x+2 y<12\) and \(\ -1 \leq y \leq 5\).

    Solution

    Screen Shot 2021-06-29 at 11.22.57 AM.png

    Graph one inequality. First, graph the boundary line, then test points.

    Remember, because the inequality \(\ 3 x+2 y<12\) does not include the equal sign, draw a dashed border line.

    Testing a point such as \(\ (0,0)\) will show that the area below the line is the solution to this inequality.

    Screen Shot 2021-06-29 at 11.26.59 AM.png

    The inequality \(\ -1 \leq y \leq 5\) is actually two inequalities: \(\ -1 \leq y\), and \(\ y \leq 5\). Another way to think of this is that \(\ y\) must be between -1 and 5. The border lines for both are horizontal. The region between those two lines contains the solutions of \(\ -1 \leq y \leq 5\). We make the lines solid because we also want to include \(\ y=-1\) and \(\ y=5\).

    Graph this region on the same axes as the other inequality.

    The purple region in this graph shows the set of all solutions of the system.

    Screen Shot 2021-06-29 at 11.32.19 AM.png

    Exercise

    In which of the following is the purple region the solution for the system?

    \(\ \begin{array}{l}
    y>x \\
    y<-3 x+6
    \end{array}\)

    1. Screen Shot 2021-06-29 at 11.34.33 AM.png
    2. Screen Shot 2021-06-29 at 11.34.55 AM.png
    3. Screen Shot 2021-06-29 at 11.35.16 AM.png
    4. Screen Shot 2021-06-29 at 11.35.38 AM.png
    Answer

    Graphing a system of inequalities can help you solve real-life situations.

    Example

    Cathy is selling ice cream cones at a school fundraiser. She is selling two sizes: small (which has 1 scoop) and large (which has 2 scoops). She knows that she can get a maximum of 70 scoops of ice cream out of her supply. She charges $3 for a small cone and $5 for a large cone.

    Cathy wants to earn at least $120 to give back to the school. Write and graph a system of inequalities that models this situation.

    Solution

    \(\ \begin{aligned}
    s&=\text { small cone } \\
    l&=\text { large cone }
    \end{aligned}\)
    First, identify the variables. There are two variables: the number of small cones and the number of large cones.
    \(\ s+2 l \leq 70\) Write the first equation: the maximum number of scoops she can give out. The scoops she has available (70) must be greater than or equal to the number of scoops for the small cones \(\ (s)\) and the large cones \(\ (2 l)\) she sells.
    \(\ 3 s+5 l \geq 120\) Write the second equation: the amount of money she raises. She wants the total amount of money earned from small cones \(\ (3 s)\) and large cones \(\ (5 l)\) to be at least $120.
    \(\ \begin{aligned}
    s+2 l& \leq 70 \\
    3 s+5 l& \geq 120
    \end{aligned}\)
    Write the system.

    Now graph the system. The variables \(\ x\) and \(\ y\) have been replaced by \(\ s\) and \(\ l\); graph \(\ s\) along the x-axis, and \(\ l\) along the y-axis.

    First, graph the region \(\ s+2 l \leq 70\). Graph the boundary line and then test individual points to see which region to shade. The graph is shown below.

    Screen Shot 2021-06-29 at 11.56.34 AM.png

    Now, graph the region \(\ 3 s+5 l \geq 120\). Graph the boundary line and then test individual points to see which region to shade. The graph is shown below.

    Screen Shot 2021-06-29 at 12.00.41 PM.png

    Graphing the regions together, you find the following:

    Screen Shot 2021-06-29 at 12.03.59 PM.png

    And represented just as the overlapping region, you have:

    Screen Shot 2021-06-29 at 12.05.07 PM.png

    The region in purple is the solution. As long as the combination of small cones and large cones that Cathy sells can be mapped in the purple region, she will have earned at least $120 and not used more than 70 scoops of ice cream.

    Summary

    Systems of inequalities can be graphed on a coordinate plane. The solution set for a system of inequalities is not a single point, but rather an entire region defined by the overlapping areas of each individual inequality in the system. Every point within this region is a solution to both inequalities and thus a solution for the whole system.


    This page titled 14.1.2: Graphing Systems of Inequalities is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform.