Skip to main content
Mathematics LibreTexts

4.3.4: Solving Systems of Equations

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

    Lesson

    Let's solve systems of equations.

    Exercise \(\PageIndex{1}\): True or False: Two Lines

    clipboard_e95deaeeae86c267975aefa550fdd46a9.png
    Figure \(\PageIndex{1}\): Graph of 2 lines, origin O. Horizontal axis, scale negative 25 to 25, by 5’s. Vertical axis, scale negative 20 to 20, by 5’s. A line is labeled y equals negative x plus 10. Another line is labeled y equals 2 x plus 4. The lines intersect at the point 2 comma 8.

    Use the lines to decide whether each statement is true or false. Be prepared to explain your reasoning using the lines.

    1. A solution to \(8=-x+10\) is 2.
    2. A solution to \(2=2x+4\) is 8.
    3. A solution to \(-x+10=2x+4\) is 8.
    4. A solution to \(-x+10=2x+4\) is 2.
    5. There are no values of \(x\) and \(y\) that make \(y=-x+10\) and \(y=2x+4\) true at the same time.

    Exercise \(\PageIndex{2}\): Matching Graphs to Systems

    Here are three systems of equations graphed on a coordinate plane:

    clipboard_e69809836db8a306cc07f2878837c8879.png
    Figure \(\PageIndex{2}\): Three graphs, with two lines each, in the x y plane, origin O. All graphs have a scale of negative 25 to 25 on both the x and y axis. Graph A. One line slants downward and right. It crosses the x axis at 10 and the y axis at 20. Another line slants upward and right. It crosses the y axis at 5. It crosses the x axis to the left of the origin. Graph B. One line slants upward and right. It crosses the y axis between 25 and 30. It crosses the x axis between negative 10 and negative 15. Another line slants upward and right. It crosses the y axis between 10 and 15. It crosses the x axis between negative 20 and negative 25. Graph C. One line slants upward and right. It crosses the x axis between 0 and 5. It crosses the y axis between 0 and negative 5. Another line slants upward and right. It crosses the x axis at 5 and the y axis at negative 10.
    1. Match each figure to one of the systems of equations shown here.
      1. \(\left\{\begin{array}{l}{y=3x+5}\\{y=-2x+20}\end{array}\right.\)
      2. \(\left\{\begin{array}{l}{y=2x-10}\\{y=4x-1}\end{array}\right.\)
      3. \(\left\{\begin{array}{l}{y=0.5x+12}\\{y=2x+27}\end{array}\right.\)
    2. Find the solution to each system and then check that your solution is reasonable on the graph.
    • Notice that the sliders set the values of the coefficient and the constant term in each equation.
    • Change the sliders to the values of the coefficient and the constant term in the next pair of equations.
    • Click on the spot where the lines intersect and a labeled point should appear.

    Exercise \(\PageIndex{3}\): Different Types of Systems

    Your teacher will give you a page with 6 systems of equations.

    1. Graph each system of equations by typing each pair of the equations in the applet, one at a time.
    2. Describe what the graph of a system of equations looks like when it has . . .
      1. 1 solution
      2. 0 solutions
      3. infinitely many solutions

    Use the applet to confirm your answer to question 2.

    Are you ready for more?

    The graphs of the equations \(Ax+By=15\) and \(Ax-By=9\) intersect at \((2,1)\). Find \(A\) and \(B\). Show or explain your reasoning.

    Summary

    Sometimes it is easier to solve a system of equations without having to graph the equations and look for an intersection point. In general, whenever we are solving a system of equations written as

    \[\left\{\begin{array}{l}{y=\text{[some stuff]}}\\{y=\text{[some other stuff]}}\end{array}\right.\nonumber\]

    we know that we are looking for a pair of values \((x,y)\) that makes both equations true. In particular, we know that the value for \(y\) will be the same in both equations. That means that

    \[\text{[some stuff]}=\text{[some other stuff]}\nonumber\]

    For example, look at this system of equations:

    \[\left\{\begin{array}{l}{y=2x+6}\\{y=-3x-4}\end{array}\right.\nonumber\]

    Since the \(y\) value of the solution is the same in both equations, then we know \(2x+6=-3x-4\)

    We can solve this equation for \(x\):

    \[\begin{aligned} 2x+6&=-3x-4 \\ 5x+6&=-4 &\text{add 3x to each side} \\ 5x&=-10 &\text{subtract 6 from each side} \\ x&=-2 &\text{divide each side by 5}\end{aligned}\nonumber\]

    But this is only half of what we are looking for: we know the value for \(x\), but we need the corresponding value for \(y\). Since both equations have the same \(y\) value, we can use either equation to find the \(y\)-value:

    \(y=2(-2)+6\)

    Or

    \(y=-3(-2)-4\)

    In both cases, we find that \(y=2\). So the solution to the system is \((-2,2)\). We can verify this by graphing both equations in the coordinate plane.

    clipboard_e92b623cca976c54bce8bcf25a0bedd07.png
    Figure \(\PageIndex{3}\): Graph of two lines line, origin O, with grid. Horizontal axis, x, scale negative 4 to 1, by 1s. Vertical axis, y, scale negative 1 to 4, by 1’s. The lines intersect at the point negative 2 comma 2.

    In general, a system of linear equations can have:

    • No solutions. In this case, the lines that correspond to each equation never intersect.
    • Exactly one solution. The lines that correspond to each equation intersect in exactly one point.
    • An infinite number of solutions. The graphs of the two equations are the same line!

    Glossary Entries

    Definition: System of Equations

    A system of equations is a set of two or more equations. Each equation contains two or more variables. We want to find values for the variables that make all the equations true.

    These equations make up a system of equations:

    \[\left\{\begin{array}{l}{x+y=-2}\\{x-y=12}\end{array}\right.\nonumber\]

    The solution to this system is \(x=5\) and \(y=-7\) because when these values are substituted for \(x\) and \(y\), each equation is true: \(5+(-7)=-2\) and \(5-(-7)=12\).

    Practice

    Exercise \(\PageIndex{4}\)

    1. Write equations for the lines shown.

    clipboard_efe9490a33f5d04424da71d52621926d5.png
    Figure \(\PageIndex{4}\): Graph of two intersecting lines in the xy-plane. Scale negative 8 through 8 on both axes. The first line slants upward and right, crosses the y axis at 2, and passes through the point 1 comma 5. The second line slants downward and to the right, crosses the y axis at 8, and passes through the point 1 comma 5.

    2. Describe how to find the solution to the corresponding system by looking at the graph.

    3. Describe how to find the solution to the corresponding system by using the equations.

    Exercise \(\PageIndex{5}\)

    The solution to a system of equations is \((5,-19)\). Choose two equations that might make up the system.

    1. \(y=-3x-6\)
    2. \(y=2x-23\)
    3. \(y=-7x+16\)
    4. \(y=x-17\)
    5. \(y=-2x-9\)

    Exercise \(\PageIndex{6}\)

    Solve the system of equations:

    \[\left\{\begin{array}{l}{y=4x-3}\\{y=-2x+9}\end{array}\right.\nonumber\]

    Exercise \(\PageIndex{7}\)

    Solve the system of equations:

    \[\left\{\begin{array}{l}{y=\frac{5}{4}x-2}\\{y=-\frac{1}{4}x+19}\end{array}\right.\nonumber\]

    Exercise \(\PageIndex{8}\)

    Here is an equation: \(\frac{15(x-3)}{5}=3(2x-3)\)

    1. Solve the equation by using the distributive property first.
    2. Solve the equation without using the distributive property.
    3. Check your solution.

    (From Unit 4.2.5)


    This page titled 4.3.4: Solving Systems of Equations is shared under a CC BY license and was authored, remixed, and/or curated by Illustrative Mathematics.

    • Was this article helpful?