Introduction to Differential Equations: Background You’ll Need 2

  • Use graphing, substitution, and addition methods to solve systems of equations with two variables.

Solving Systems of Equations by Graphing

There are multiple methods of solving systems of linear equations. For a system of linear equations in two variables, we can determine both the type of system and the solution by graphing the system of equations on the same set of axes.

How to: Solve a system of linear equations by graphing

  1. Graph the first equation.
  2. Graph the second equation on the same rectangular coordinate system.
  3. Determine whether the lines intersect, are parallel, or are the same line.
  4. Identify the solution to the system.
  5. Check the solution in both equations.
Making a quick sketch of any mathematical situation is often a good idea to help you visualize it. Recall the techniques for graphing linear equations include using the y-intercept and slope to plot two points as well as using the intercepts. With practice, you’ll get a feel for which technique to use in a given situation.
Solve the following system of equations by graphing. Identify the type of system.

[latex]\begin{align}2x+y&=-8\\ x-y&=-1\end{align}[/latex]

Graph of two lines, y = -2x - 8 and y = x + 1, intersecting at (-3, -2).
Graph of two lines intersecting at the point (-3,-2)

To find the solution, we want to graph both equations on the same set of axes:

  • Solve the first equation for [latex]y[/latex].

[latex]\begin{align}2x+y&=-8\\ y&=-2x-8\end{align}[/latex]

  • Solve the second equation for [latex]y[/latex].

[latex]\begin{align}x-y&=-1\\ y&=x+1\end{align}[/latex]

The lines appear to intersect at the point [latex]\left(-3,-2\right)[/latex].

You can check to make sure that this is the solution to the system by substituting the ordered pair into both equations.

[latex]\begin{align*} 2(-3) + (-2) &= -8 & \text{} \\ -8 &= -8 & \text{True} \\ (-3) - (-2) &= -1 & \text{} \\ -1 &= -1 & \text{True} \end{align*}[/latex]

The solution to the system is the ordered pair [latex]\left(-3,-2\right)[/latex], so the system is independent.

Solving Systems of Equations by Substitution

Solving a linear system in two variables by graphing works well when the solution consists of integer values, but if our solution contains decimals or fractions, it is not the most precise method. We will consider two more methods of solving a system of linear equations that are more precise than graphing.

One such method is solving a system of equations by the substitution method, in which we solve one of the equations for one variable and then substitute the result into the second equation to solve for the second variable. Recall that we can solve for only one variable at a time, which is the reason the substitution method is both valuable and practical.

How To: Given a system of two equations in two variables, solve using the substitution method.

  1. Solve one of the two equations for one of the variables in terms of the other.
  2. Substitute the expression for this variable into the second equation, then solve for the remaining variable.
  3. Substitute that solution into either of the original equations to find the value of the first variable. If possible, write the solution as an ordered pair.
  4. Check the solution in both equations.
Solve the following system of equations by substitution.

[latex]\begin{align}-x+y&=-5 \\ 2x-5y&=1 \end{align}[/latex]

Solve the following system of equations.

[latex]\begin{gathered}&x=9 - 2y \\ &x+2y=13 \end{gathered}[/latex]

Solving Systems of Equations by the Addition Method

A third method of solving systems of linear equations is the addition method, this method is also called the elimination method.  In this method, we add two terms with the same variable, but opposite coefficients, so that the sum is zero. Of course, not all systems are set up with the two terms of one variable having opposite coefficients. Often we must adjust one or both of the equations by multiplication so that one variable will be eliminated by addition.

How To: Given a system of equations, solve using the addition method.

  1. Write both equations with [latex]x[/latex]– and [latex]y[/latex]-variables on the left side of the equal sign and constants on the right.
  2. Write one equation above the other, lining up corresponding variables.
    • If one of the variables in the top equation has the opposite coefficient of the same variable in the bottom equation, add the equations together, eliminating one variable.
    • If not, use multiplication by a nonzero number so that one of the variables in the top equation has the opposite coefficient of the same variable in the bottom equation, then add the equations to eliminate the variable.
  3. Solve the resulting equation for the remaining variable.
  4. Substitute that value into one of the original equations and solve for the second variable.
  5. Check the solution by substituting the values into the other equation.
Solve the given system of equations by addition.

[latex]\begin{align}x+2y&=-1 \\ -x+y&=3 \end{align}[/latex]

Solve the given system of equations by the addition method.

[latex]\begin{align}3x+5y&=-11 \\ x - 2y&=11 \end{align}[/latex]