Skip to main content
Mathematics LibreTexts

2.3: Solve Equations with Variables and Constants on Both Sides

  • Page ID
    18934
  • \( \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

    By the end of this section, you will be able to:

    • Solve an equation with constants on both sides
    • Solve an equation with variables on both sides
    • Solve an equation with variables and constants on both sides
    Note

    Before you get started, take this readiness quiz.

    1. Simplify: 4y−9+9.
      If you missed this problem, review Exercise 1.10.20.

    Solve Equations with Constants on Both Sides

    In all the equations we have solved so far, all the variable terms were on only one side of the equation with the constants on the other side. This does not happen all the time—so now we will learn to solve equations in which the variable terms, or constant terms, or both are on both sides of the equation.

    Our strategy will involve choosing one side of the equation to be the “variable side”, and the other side of the equation to be the “constant side.” Then, we will use the Subtraction and Addition Properties of Equality to get all the variable terms together on one side of the equation and the constant terms together on the other side.

    By doing this, we will transform the equation that began with variables and constants on both sides into the form \(ax=b\). We already know how to solve equations of this form by using the Division or Multiplication Properties of Equality.

    Example \(\PageIndex{1}\)

    Solve: \(7x+8=−13\).

    Solution

    In this equation, the variable is found only on the left side. It makes sense to call the left side the “variable” side. Therefore, the right side will be the “constant” side. We will write the labels above the equation to help us remember what goes where.

    This figure shows the equation 7x plus 8 equals negative 13, with the left side of the equation labeled “variable”, written in red, and the right side of the equation labeled “constant”, written in red.

    Since the left side is the “xx”, or variable side, the 8 is out of place. We must “undo” adding 8 by subtracting 8, and to keep the equality we must subtract 8 from both sides.

      This figure shows the equation 7x plus 8 equals negative 13, with the left side of the equation labeled “variable”, written in red, and the right side of the equation labeled “constant”, written in red.
    Use the Subtraction Property of Equality. .
    Simplify. .
    Now all the variables are on the left and the constant on the right. The equation looks like those you learned to solve earlier.
    Use the Division Property of Equality. .
    Simplify. .
    Check: .  
    Let x=−3. .  
      .  
    Try It \(\PageIndex{2}\)

    Solve: \(3x+4=−8\).

    Answer

    \(x=−4\)

    Try It \(\PageIndex{3}\)

    Solve: \(5a+3=−37\).

    Answer

    \(a=−8\)

    Example \(\PageIndex{4}\)

    Solve: \(8y−9=31\).

    Solution

    Notice, the variable is only on the left side of the equation, so we will call this side the “variable” side, and the right side will be the “constant” side. Since the left side is the “variable” side, the 9 is out of place. It is subtracted from the 8y, so to “undo” subtraction, add 9 to both sides. Remember, whatever you do to the left, you must do to the right.

      .
    Add 9 to both sides. .
    Simplify. .
      The variables are now on one side and the constants on the other.
    We continue from here as we did earlier.
    Divide both sides by 8. .
    Simplify. .
    Check: .  
    Let y=5. .  
      .  
      .  
    Try It \(\PageIndex{5}\)

    Solve: \(5y−9=16\).

    Answer

    \(y=5\)

    Try It \(\PageIndex{6}\)

    Solve: \(3m−8=19\).

    Answer

    \(m = 9\)

    Solve Equations with Variables and Constants on Both Sides

    The next example will be the first to have variables and constants on both sides of the equation. It may take several steps to solve this equation, so we need a clear and organized strategy.

    Example \(\PageIndex{7}\)

    Solve: \(9x=8x−6\).

    Solution

    Here the variable is on both sides, but the constants only appear on the right side, so let’s make the right side the “constant” side. Then the left side will be the “variable” side.

      .
    We don’t want any x’s on the right, so subtract the 8x from both sides. .
    Simplify. .
    We succeeded in getting the variables on one side and the constants on the other, and have obtained the solution.
    Check: .  
    Let x=−6. .  
      .  
      .  
    Try It \(\PageIndex{8}\)

    Solve: \(6n=5n−10\).

    Answer

    \(n = -10\)

    Try It \(\PageIndex{9}\)

    Solve: \(-6c = -7c - 1\)

    Answer

    \(c = -1\)

    Example \(\PageIndex{10}\)

    Solve: \(5y - 9 = 8y\)

    Solution

    The only constant is on the left and the y’s are on both sides. Let’s leave the constant on the left and get the variables to the right.

      .
    Subtract 5y from both sides. .
    Simplify. .
    We have the y’s on the right and the
    constants on the left. Divide both sides by 3.
    .
    Simplify. .
    Check: .  
    Let \(y=−3\). .  
      .  
      .  
    Try It \(\PageIndex{11}\)

    Solve: \(3p−14=5p\).

    Answer

    \(p = -7\)

    Try It \(\PageIndex{12}\)

    Solve: \(8m + 9 = 5m\)

    Answer

    \(m = -3\)

    Example \(\PageIndex{13}\)

    Solve: \(12x = -x + 26\)

    Solution

    The only constant is on the right, so let the left side be the “variable” side.

      .
    Remove the −x from the right side by adding x to both sides. .
    Simplify. .
    All the x’s are on the left and the constants are on the right. Divide both sides by 13. .
    Simplify. .
    Try It \(\PageIndex{14}\)

    Solve: \(12j = -4j + 32\)

    Answer

    \(j = 2\)

    Try It \(\PageIndex{15}\)

    Solve: \(8h = -4h + 12\)

    Answer

    \(h = 1\)

    Solve Equations with Variables and Constants on Both Sides

    The next example will be the first to have variables and constants on both sides of the equation. It may take several steps to solve this equation, so we need a clear and organized strategy.

    Example \(\PageIndex{16}\): How to Solve Equations with Variables and Constants on Both Sides

    Solve: \(7x + 5 = 6x + 2\)

    Solution

    This figure is a table that has three columns and four rows. The first column is a header column, and it contains the names and numbers of each step. The second column contains further written instructions. The third column contains math. On the top row of the table, the first cell on the left reads: “Step 1. Choose which side will the “variable” side—the other side will be the “constant” side.” The text in the second cell reads: “The variable terms are 7 x and 6 x. Since 7 is greater than 6, we will make the left side the “x” side and so the right side will be the “constant” side.” The third cell contains the equation 7 x plus 5 equals 6 x plus 2, and the left side of the equation is labeled “variable” written in red, and the right side of the equation is labeled “constant” written in red. Step 2.  Bring all the x terms to the left side by subtracting the 6x from both sides. In the third row of the table, the first cell says: “Step 3. Collect all the constants to the other side of the equation, using the addition or subtraction property of equality.” In the second cell, the instructions say: “The right side is the “constant” side, so the 5 is out of place. Subtract 5 from both sides. Simplify.” The third cell contains the equation x plus 5 minus 5 equals 2 minus 5, with “minus 5” written in red on both sides. Below this is the answer to the equation: x equals negative 3. Step 4.  Since x is by itself, we have found the solution to the equation. In the fifth row of the table, the first cell says: “Step 5. Check.” The instructions in the second cell say: “Check. Let x equal negative 3. Simplify. Add.” In the third cell is the original equation again: 7 x plus 5 equals 6x plus 2. Below this is the same equation with negative 3 substituted in for x: 7 times negative 3 (in paretheses) plus 5 might equal 6 times negative 3 (in parentheses) plus 2, with the “times negative 3” written in red on both sides of the equation. Below this is the equation negative 21 plus 5 might equal negative 18 plus 2. On the last line is the equation negative 16 equals negative 16, with a check mark next to it.

    Try It \(\PageIndex{17}\)

    Solve: \(12x+8=6x+2\).

    Answer

    \(x=−1\)

    Try It \(\PageIndex{18}\)

    Solve: \(9y+4=7y+12\).

    Answer

    \(y=4\)

    ​​​​​​We’ll list the steps below so you can easily refer to them. But we’ll call this the ‘Beginning Strategy’ because we’ll be adding some steps later in this chapter.

    BEGINNING STRATEGY FOR SOLVING EQUATIONS WITH VARIABLES AND CONSTANTS ON BOTH SIDES OF THE EQUATION.
    1. Choose which side will be the “variable” side—the other side will be the “constant” side.
    2. Collect the variable terms to the “variable” side of the equation, using the Addition or Subtraction Property of Equality.
    3. Collect all the constants to the other side of the equation, using the Addition or Subtraction Property of Equality.
    4. Make the coefficient of the variable equal 1, using the Multiplication or Division Property of Equality.
    5. Check the solution by substituting it into the original equation.

    In Step 1, a helpful approach is to make the “variable” side the side that has the variable with the larger coefficient. This usually makes the arithmetic easier.

    Example \(\PageIndex{19}\)

    Solve: \(8n−4=−2n+6\).

    Solution

    In the first step, choose the variable side by comparing the coefficients of the variables on each side.

    Since \(8>−2\), make the left side the “variable” side. .
    We don’t want variable terms on the right side—add 2n to both sides to leave only constants on the right. .
    Combine like terms. .
    We don’t want any constants on the left side, so add 4 to both sides. .
    Simplify. .
    The variable term is on the left and the constant term is on the right. To get the coefficient of nn to be one, divide both sides by 10. .
    Simplify. .
    Check: .  
    Let n=1. .  
      .  
      .  
    Try It \(\PageIndex{20}\)

    Solve: \(8q - 5 = -4q + 7\)

    Answer

    \(q = 1\)

    Try It \(\PageIndex{21}\)

    Solve: \(7n - 3 = n + 3\)

    Answer

    \(n = 1\)

    Example \(\PageIndex{22}\)

    Solve: \(7a -3 = 13a + 7\)

    Solution

    In the first step, choose the variable side by comparing the coefficients of the variables on each side.

    Since 13>7, make the right side the “variable” side and the left side the “constant” side.

      .
    Subtract 7a from both sides to remove the variable term from the left. .
    Combine like terms. .
    Subtract 7 from both sides to remove the constant from the right. .
    Simplify. .
    Divide both sides by 6 to make 1 the coefficient of a. .
    Simplify. .
    Check: .  
    Let \(a=−\frac{5}{3}\). .  
      .  
      .  
    Try It \(\PageIndex{23}\)

    Solve: \(2a - 2 = 6a + 18\)

    Answer

    \(a = -5\)

    Try It \(\PageIndex{24}\)

    Solve: \(4k -1 = 7k + 17\)

    Answer

    \(k = -6\)

    In the last example, we could have made the left side the “variable” side, but it would have led to a negative coefficient on the variable term. (Try it!) While we could work with the negative, there is less chance of errors when working with positives. The strategy outlined above helps avoid the negatives!

    To solve an equation with fractions, we just follow the steps of our strategy to get the solution!

    Example \(\PageIndex{25}\)

    Solve: \(\frac{4}{5}x + 6 = \frac{1}{4}x - 2\)

    Solution

    Since \(\frac{5}{4} > \frac{1}{4}\), make the left side the “variable” side and the right side the “constant” side.

      .
    Subtract \(\frac{1}{4}x\) from both sides. .
    Combine like terms. .
    Subtract 6 from both sides. .
    Simplify. .

    Check: Let \(x = -8\)

    \(\begin{array} {ccc} {\frac{5}{4}x + 6} &{=} &{\frac{1}{4}x - 2} \\ {\frac{5}{4}(-8) + 6} &{\stackrel{?}{=}} &{\frac{1}{4}(-8) - 2} \\ {-10 + 6} &{\stackrel{?}{=}} &{-2 - 2} \\ {-4} &{=} &{-4\checkmark} \end{array}\)
    Try It \(\PageIndex{26}\)

    Solve: \(\frac{7}{8}x - 12 = -\frac{1}{8}x - 2\)

    Answer

    \(x = 10\)

    Try It \(\PageIndex{27}\)

    Solve: \(\frac{7}{6}x + 11 = \frac{1}{6}y + 8\)

    Answer

    \(y = -3\)

    We will use the same strategy to find the solution for an equation with decimals.

    Example \(\PageIndex{28}\)

    Solve: \(7.8x+4=5.4x−8\).

    Solution

    Since \(7.8>5.4\), make the left side the “variable” side and the right side the “constant” side.

      .
    Subtract 5.4x from both sides. .
    Combine like terms. .
    Subtract 4 from both sides. .
    Simplify. .
    Use the Division Property of Equality. .
    Simplify. .
    Check: .  
    Let \(x=−5\) .  
      .  
     

    .

     
    Try It \(\PageIndex{29}\)

    Solve: \(2.8x + 12 = -1.4x - 9\)

    Answer

    \(x = -5\)

    Try It \(\PageIndex{30}\)

    Solve: \(3.6y + 8 = 1.2y - 4\)

    Answer

    \(y = -5\)

    Key Concepts

    • Beginning Strategy for Solving an Equation with Variables and Constants on Both Sides of the Equation
      1. Choose which side will be the “variable” side—the other side will be the “constant” side.
      2. Collect the variable terms to the “variable” side of the equation, using the Addition or Subtraction Property of Equality.
      3. Collect all the constants to the other side of the equation, using the Addition or Subtraction Property of Equality.
      4. Make the coefficient of the variable equal 1, using the Multiplication or Division Property of Equality.
      5. Check the solution by substituting it into the original equation.

    This page titled 2.3: Solve Equations with Variables and Constants on Both Sides is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by OpenStax.