Skip to main content
Mathematics LibreTexts

2.2: Linear Equations in One Variable with Applications

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

    After completing this section, you should be able to:

    1. Solve linear equations in one variable using properties of equations.
    2. Construct a linear equation to solve applications.
    3. Solve a formula for a given variable.
    A man is lifting weights at a gym.
    Figure 2.2.1: Most gyms have a monthly membership fee. (credit: modification of work "Morning PT after the Holidays 2021" by Fort Drum & 10th Mountain Division (LI)/Flickr, Public Domain Mark 1.0)

    In this section, we will study linear equations in one variable. There are several real-world scenarios that can be represented by linear equations: taxi rentals with a flat fee and a rate per mile; cell phone bills that charge a monthly fee plus a separate rate per text; gym memberships with a monthly fee plus a rate per class taken; etc. For example, if you join your local gym at $10 per month and pay $5 per class, how many classes can you take if your gym budget is $75 per month?

    Linear Equations and Applications

    Solving any equation is like discovering the answer to a puzzle. The purpose of solving an equation is to find the value or values of the variable that makes the equation a true statement. Any value of the variable that makes the equation true is called a solution to the equation. It is the answer to the puzzle! There are many types of equations that we will learn to solve. In this section, we will focus on a linear equation, which is an equation in one variable that can be written as

    ax+b=0

    where aa and bb are real numbers and a0a0, such that aa is the coefficient of xx and bb is the constant.

    To solve a linear equation, it is a good idea to have an overall strategy that can be used to solve any linear equation. We will follow the steps below in examples 2.2.1 and 2.2.2.

    How To

    Solve a Linear Equation

    1. Simplify each side of the equation as much as possible.
    2. Collect all variable terms on one side of the equation.
    3. Collect constant terms on the other side of the equation.
    4. Make the coefficient of the variable term equal to 1.
    5. Check the solution.

    Example 2.2.1

    Solving a Linear Equation Using a General Strategy

    Solve 7(n3)8=157(n3)8=15

    Answer
    Step 1: Simplify each side of the equation as much as possible. Use the Distributive Property. Notice that each side of the equation is now simplified as much as possible.

    7 (n - 3) - 8 = -15

    7n - 21 - 8 = -15

    7n - 29 = -15

    Step 2: Collect all variable terms on one side of the equation. Nothing to do; all nn-terms are on the left side. 7n - 29 = -15
    Step 3: Collect constant terms on the other side of the equation.

    To get constants only on the right, add 29 to each side.

    Simplify.

    7n - 29 +29 = -15 +29

    7n = 14

    Step 4: Make the coefficient of the variable term equal to 1.

    Divide each side by 7.

    Simplify.

    7n7=147

    n = 2

    Step 5: Check the solution.

    Let n=2n=2

    Subtract.

    Check:

    7(n3)8=157(23)8=?157(1)8=?1578=?1515=−15

    Your Turn 2.2.1

    Solve 2 (x + 1) - 3 = 5

    In Example 2.2.1, we used both the addition and division property of equations. All the properties of equations are summarized in table below. Basically, what you do to one side of the equation, you must do to the other side of the equation to preserve equality.

    Operation Property Example
    Addition

    If a=ba=b

    Then a+c=b+ca+c=b+c

    2=22+3=2+35=52=22+3=2+35=5
    Subtraction

    If a=ba=b

    Then ac=bcac=bc

    5=552=5 23=35=552=5 23=3
    Multiplication

    If a=ba=b

    Then ac=bcac=bc

    3=334=3412=123=334=3412=12
    Division

    If a=ba=b

    Then a÷c=b÷ca÷c=b÷c for c0c0

    8=88÷2=8÷24=48=88÷2=8÷24=4

    Example 2.2.2

    Solving a Linear Equation Using Properties of Equations

    Solve 9 (y - 2) - y = 16 + 7y.

    Answer

    Step 1: Simplify each side.

    9 (y - 2) - y = 16 + 7y

    9y - 18 - y = 16 + 7y

    8y - 18 = 16 +7y

    Step 2: Collect all variables on one side by subtracting 7y from both sides.

    8y - 18 - 7y = 16 + 7y - 7y

    y - 18 = 16

    Step 3: Collect constant terms on one side by adding 18 to both sides.

    y - 18 + 18 = 16 + 18

    y = 34

    Step 4: Make the coefficient of the variable 1. Already done!

    Step 5: Check.

    9 ( 34 ) 18 ( 34 ) = ? 16 + 7 ( 34 ) 306 18 34 = ? 16 + 238 288 34 = ? 254 254 = 254 9 ( 34 ) 18 ( 34 ) = ? 16 + 7 ( 34 ) 306 18 34 = ? 16 + 238 288 34 = ? 254 254 = 254

    Your Turn 2.2.2

    Solve 6 (y - 2) - 5y = 4 (y +3) - 4 (y - 1).

    Who Knew?

    Who Invented the Symbol for Equals ?

    Before the creation of a symbol for equality, it was usually expressed with a word that meant equals, such as aequales (Latin), esgale (French), or gleich (German). Welsh mathematician and physician Robert Recorde is given credit for inventing the modern sign. It first appears in writing in The Whetstone of Witte, a book Recorde wrote about algebra, which was published in 1557. In this book, Recorde states, "I will set as I do often in work use, a pair of parallels, or Gemowe (twin) lines of one length, thus: ===, because no two things can be more equal." Although his version of the sign was a bit longer than the one we use today, his idea stuck and "=" is used throughout the world to indicate equality in mathematics.

    Working with percents in Sections 1.5 and 1.6, you translated an English sentence into an equation. In this section, we take that one step further and translate an English paragraph into an equation, and then we solve the equation. We can go back to the opening question in this section: If you join your local gym at $10 per month and pay $5 per class, how many classes can you take if your gym budget is $75 per month? We can create an equation for this scenario and then solve the equation (see Example 2.2.4).

    Example 2.2.3

    Constructing a Linear Equation to Solve an Application

    The Beaudrie family has two cats, Basil and Max. Together, they weigh 23 pounds. Basil weighs 16 pounds. How much does Max weigh?

    Answer

    Steps 1 and 2:

    Let bb = Basil’s weight and mm = Max’s weight.

    b + m = 23 b + m = 23

    We also know that Basil weighs 16 pounds so replace b with 16 in the equation.

    16+m=2316+m=23

    Step 3: Since both sides are simplified and the variable is on one side of the equation, we start solving the equation by collecting the constants on one side.

    16 + m 16 = 23 16 m = 7 16 + m 16 = 23 16 m = 7

    Step 4: is already done, so we go to Step 5.

    Step 5:

    16 + 7 = ? 23 23 = 23 16 + 7 = ? 23 23 = 23

    Basil weighs 16 pounds and Max weighs 7 pounds.

    Your Turn 2.2.3

    Sam and Henry are roommates. Together, they have 68 books. Sam has 26 books. How many books does Henry have?

    Example 2.2.4

    Constructing a Linear Equation to Solve Another Application

    If you join your local gym at $10 per month and pay $5 per class, how many classes can you take if your gym budget is $75 per month?

    Answer

    If we let x = number of classes, the expression 5x+10 would represent what you pay per month if each class is $5 and there’s a $10 monthly fee per class. $10 is your constant. If you want to know how many classes you can take if you have a $75 monthly gym budget, set the equation equal to 75. Then solve the equation 5x+10=75 for x.

    Steps 1 and 2:

    5 x + 10 = 75 5 x + 10 = 75

    Step 3:

    5 x + 10 10 = 75 10 5 x = 65 5 x + 10 10 = 75 10 5 x = 65

    Step 4:

    5 x 5 = 65 5 x = 13 5 x 5 = 65 5 x = 13

    Step 5:

    5 ( 13 ) + 10 = ? 75 65 + 10 = ? 75 75 = 75 5 ( 13 ) + 10 = ? 75 65 + 10 = ? 75 75 = 75

    The solution is 13 classes. You can take 13 classes on a $75 monthly gym budget.

    Your Turn 2.2.4

    On June 7, 2021, the national average price for regular gasoline was $3.053 per gallon. If Aiko fills up his car with 16 gallons, how much is the total cost? Round to the nearest cent.

    Example 2.2.5

    Constructing an Application from a Linear Equation

    Write an application that can be solved using the equation 50x+35=185. Then solve your application.

    Answer

    Answers will vary. Let’s say you want to rent a snowblower for a huge winter storm coming up. If x = the number of days you rent a snowblower, then the expression 50x+35 represents what you pay if, for each day, it costs $50 to rent the snowblower and there is a $35 flat rental fee. $35 is the constant. To find out how many days you can rent a snowblower for $185, set the expression equal to 185. Then solve the equation 50x+35=185 for xx.

    Steps 1 and 2:

    50 x + 35 = 185 50 x + 35 = 185

    Step 3:

    50 x + 35 35 = 185 35 50 x = 150 50 x + 35 35 = 185 35 50 x = 150

    Step 4:

    50 x 50 = 150 50 x = 3 50 x 50 = 150 50 x = 3

    Step 5:

    50 ( 3 ) + 35 = ? 185 150 + 35 = ? 185 185 = 185 50 ( 3 ) + 35 = ? 185 150 + 35 = ? 185 185 = 185

    The equation is 50x+35=185 and the solution is 3 days. You can rent a snowblower for 3 days on a $185 budget.

    Your Turn 2.2.5

    Write an application that can be solved using the equation 25x + 75 = 200. Then solve your application.

    Solving a Formula for a Given Variable

    You are probably familiar with some geometry formulas. A formula is a mathematical description of the relationship between variables. Formulas are also used in the sciences, such as chemistry, physics, and biology. In medicine, they are used for calculations for dispensing medicine or determining body mass index. Spreadsheet programs rely on formulas to make calculations. It is important to be able to manipulate formulas and solve for specific variables.

    To solve a formula for a specific variable means to isolate that variable on one side of the equal sign with a coefficient of 1. All other variables and constants are on the other side of the equal sign. To see how to solve a formula for a specific variable, we will start with the distance, rate, and time formula.

    Example 2.2.6

    Solving for a Given Variable with Distance, Rate, and Time

    Solve the formula d=rt for t. This is the distance formula where d stands for distance, r stands for rate, and t stands for time.

    Answer

    Divide both sides by rr: d/r=rt/rd/r=rt/r

    Simplify. d / r = t d / r = t

    Your Turn 2.2.6

    Solve the formula I=Prt. This formula is used to calculate simple interest I, for a principal P, invested at a rate r, for t years.

    Video

    Solving for a Variable in an Equation

    Example 2.2.7

    Solving for a Given Variable in the Area Formula for a Triangle

    Solve the formula A=12bh for hh. This is the area formula of a triangle where AA = area, bb = base, and hh = height.

    Answer

    Step 1: Multiply both sides by 2.

    2 A = 2 ( ½ b h ) 2 A = b h 2 A = 2 ( ½ b h ) 2 A = b h

    Step 2: Divide both sides by bb.

    2 A b = b h b 2 A b = h

    Your Turn 2.2.7

    Solve the formula V=13πr2h for h. This formula is used to calculate the volume V of a right circular cone with radius r and height h.

    This page titled 2.2: Linear Equations in One Variable with Applications 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.