Chalk−1

Math · College algebra · Concept

Solving linear equations

To solve a linear equation, do the same operation to both sides until the variable stands alone. Clear any fractions, expand brackets, collect the variable terms on one side and divide by the coefficient.

Try one — Chalk checks each line

A concrete case

Undo the steps in reverse

A taxi charges $3 to start the meter and $2 for every mile. One ride cost $17. How many miles was it?

The fare was built in two steps. The meter took the miles and doubled them, then added the $3 starting charge. To find the miles, undo those steps in the opposite order. Take away the $3 first, which leaves 17−3=14 dollars for the miles. Then undo the doubling, 14÷2=7. The ride was 7 miles.

Check it forward. Seven miles cost 2×7=14 dollars, and the starting charge brings the fare to 14+3=17 dollars. That matches the receipt.

With m for the number of miles, the receipt says 3+2⁢m=17. Taking away 3 and halving are exactly the moves that solve this equation. Each one is done to both sides, so the two sides stay equal.

3+2⁢m=17⟹2⁢m=14⟹m=7
3+2⁢m=172⁢m=14m=7
Guessing the miles works, but undoing the steps is faster
Miles, mFare, 3+2⁢mMatches $17?
513No, too low
615No, too low
717Yes
819No, too high

The rule

Equivalent equations

An equation claims that two expressions have the same value. A solution is a number that makes the claim true when it replaces the variable. Two equations are equivalent when they have exactly the same solutions.

Two moves always produce an equivalent equation. You may add or subtract the same quantity on both sides. You may multiply or divide both sides by the same number, as long as that number is not zero. In the display, a, b and c stand for any expressions and k for any number other than 0.

A linear equation is one in which the variable appears only to the first power, multiplied by numbers. There is no x2, no x under a root and no x in a denominator. Every linear equation can be rearranged to a⁢x+b=0. When a is not 0, it has exactly one solution, x=−b⁢/⁢a.

a=ba+c=b+c,a=bka=k⁢b  (k≠0)
a=ba+c=b+ca=bka=k⁢b  (k≠0)

Why it works

Why both sides stay balanced

Picture a balance with equal weights in its two pans. Adding 5 grams to both pans keeps it level, and so does doubling what is in each pan. Changing one pan alone tips it.

The balance shows why a solution survives each move. The moves are also reversible, and that is what makes them safe. Subtracting 3 from both sides is undone by adding 3 back, and dividing by 2 is undone by multiplying by 2. A number that solves the new equation therefore solves the old one too. No solution is gained and none is lost.

Multiplying by zero is the one move that cannot be undone. Multiply x+1=3 by 0 and you get 0=0, which every number satisfies. The information in the equation is gone, and there is no way back to x=2.

x+1=3→×00=0

The method

The method, step by step

Most linear equations need the same steps in the same order. The table works through x⁢/2+3⁢(x−1)=11.

Not every equation needs every step. If there are no fractions, start with the brackets. If x appears on one side only, skip the collecting step.

When x appears on both sides, subtract the smaller x term from both sides. The x coefficient that remains is then positive, which removes a common sign slip.

x2+3⁢(x−1)=11⟹x+6⁢(x−1)=22⟹x=4
x2+3⁢(x−1)=11x+6⁢(x−1)=22x=4
Six steps on x⁢/2 +3⁢(x−1) =11
StepWhat to doFor x⁢/2+3⁢(x−1) =11
1Clear fractions by multiplying every term by the LCDLCD 2: x+6⁢(x−1) =22
2Expand bracketsx+6⁢x−6 =22
3Combine like terms on each side7⁢x−6 =22
4Move the constants to the other side7⁢x=28
5Divide by the coefficient of xx=4
6Check in the original equation4⁢/2+3⁢(3) =2+9 =11

Clearing fractions and decimals

The least common denominator (LCD) is the smallest number that every denominator divides into. Multiply every term on both sides by it, including any whole-number terms. Each denominator then divides out and leaves whole numbers.

Put brackets around a numerator with two terms before you multiply. A minus sign in front of a fraction belongs to the whole numerator, so −(x−1)⁢/4 becomes −3⁢(x−1) after multiplying by 12.

Decimals clear the same way. Multiply every term by 10 for one decimal place or by 100 for two. 0.05⁢x+0.3=0.8 becomes 5⁢x+30=80, so 5⁢x=50 and x=10.

x3−x−14=2⟹4⁢x−3⁢(x−1)=24
x3−x−14=2⟹4⁢x−3⁢(x−1)=24

Where it breaks

Where it breaks

Sometimes the x terms cancel. What is left decides the answer. A false statement, such as 6=5, means no number makes the equation true, and there is no solution. A true statement, such as 6=6, means every real number is a solution, and the equation is an identity. Neither one means x=0.

The method is for linear equations only. x⁢/3=6 is linear, and x=18. 3⁢/⁢x=6 looks almost the same, but x is in a denominator. Its answer x=1⁢/2 comes with the condition x≠0, which a rational equation always carries.

Never divide both sides by an expression that contains x. In x2=4⁢x, dividing by x gives x=4 and loses x=0, because dividing by x assumes x is not 0. That equation is quadratic, and factoring x⁢(x−4)=0 finds both solutions.

2⁢(x+3)=2⁢x+5⇒6=52⁢(x+3)=2⁢x+6⇒6=6
What the last line tells you
Last lineMeaningLines y= left side and y= right side
x=10⁢/3One solutionCross once
6=5 (false)No solutionParallel, never meet
6=6 (true)Every real number is a solutionThe same line

Check your answer

Check your answer

Your answer is one number, so it is quick to test.

Substitute into the original equation. Work out the left side and the right side separately with your answer in place of x. They must give the same number. Use the original equation, not a later line, because a slip in an early line carries into every line after it and still looks consistent there.

Draw each side as its own line, y= left side and y= right side. The two lines cross at one point, and its x-coordinate is the solution.

Ask whether the size and sign make sense. A taxi ride cannot be −7 miles long. An answer that solves the equation but not the question means the equation was set up wrong.

To have Chalk check the work, write it in a Math box with the equation on the first row and each new equation on its own row below. The Checker marks a row ✓ “Same solutions.” when it is equivalent to the row above. A slip reads ✗. In the worked example below, the slip 8⁢x−4−3⁢x+6=2⁢x on row 3 reads ✗ “Different solutions from row 2.” on exactly the line where the slip happened.

A last line with no x is marked too. A false one such as 6=5 reads ✓ “Same solutions: none, so the equation has no solution.” as long as the steps were right. A true one such as 0=0 reads ✓ “Same solutions: every value works, so the equation is an identity.” when nothing was lost on the way.

Is multiplying both sides of x−5=2⁢x by x a safe move?

No. Multiplying by x is undone by dividing by x, which fails when x=0. The new equation, x2−5⁢x=2x2, is true at x=0, but the original is not, since −5≠0. A safe move multiplies by a number that is not zero, never by an expression that can be zero.

One solution, and solving for a letter

Why does a linear equation with a≠0 have exactly one solution? The left side of a⁢x+b=0 is a line with slope a. A line that is not flat passes through each height exactly once, including height 0. When a=0 the line is flat, and it either sits on the x-axis (every x works) or misses it (none does).

The same moves solve a formula for one of its letters. To turn Fahrenheit into Celsius, start from F=(9⁢/5)⁢C+32. Subtract 32 from both sides, then multiply both sides by 5⁢/9, to get C=(5⁢/9)⁢(F−32). At 77 °⁢F this gives (5⁢/9)⁢(45)=25 °⁢C. Dividing by a letter needs the same care as dividing by x. It is allowed only where that letter is not zero.

One linear equation pins down one unknown. Two unknowns need two equations, which is the next step, systems of linear equations. An inequality uses the same moves with one change, since multiplying by a negative number reverses its direction.

F=95C+32C=59⁢(F−32)

Common mistakes

  • Multiplying only the fractions by the LCD. In x⁢/2+3=5, multiplying by 2 gives x+6=10, not x+3=10, because every term on both sides must be multiplied to keep the sides equal.
  • Distributing a minus sign to only the first term. −3⁢(x+2) is −3⁢x−6, not −3⁢x+6, because the −3 multiplies every term inside the bracket.
  • Moving a term across the equals sign without changing its sign. From 3⁢x+5=20 the next line is 3⁢x=15, not 3⁢x=25, because subtracting 5 from both sides removes the +5.
  • Dividing only part of a side by the coefficient. From 3⁢x=12+6, the answer is x=18⁢/3=6, not x=4+6, because the whole right side is divided by 3.
  • Reading 0=0 as “x=0”. When the x terms cancel and a true statement remains, every real number is a solution, so the answer is all real numbers.
  • Dividing both sides by an expression that contains x. In x2=4⁢x, dividing by x gives only x=4 and loses x=0, because division by x assumes x is not 0.

Key terms

Linear equation
An equation in which the variable appears only to the first power: not squared, not under a root and not in a denominator. In one variable it has one solution, no solution, or every real number as a solution.
Equivalent equations
Equations with exactly the same solution set. Adding the same quantity to both sides, or multiplying both sides by the same nonzero number, produces an equivalent equation.
Least common denominator
The smallest expression that every denominator in a problem divides into evenly. Multiplying an equation by it clears the fractions, and for rational expressions it is built from the factored denominators.
Solution set
All the allowed values that make an equation or inequality true, such as {−2,3}. Equivalent equations have the same solution set.
Mathematical identity
An equation that is true for every allowed value of the variable, such as (x+1)2=x2+2⁢x+1. Testing a few numbers can disprove an identity but can’t prove one.
Coefficient
The number or constant multiplying the variable part of a term, such as 5 in 5x2. The leading coefficient multiplies a polynomial’s highest-degree term.

Work through an example

Solve (2⁢x−1)⁢/3−(x+2)⁢/4 =x⁢/6, then check the answer.

Solve a linear equation with fractions →

Solve a linear equation whose x terms cancel →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check each step in Math Graph both sides in Graph Study the 6 key terms Open worked example on a board Isolating a variable in Math Reference

Your existing work stays on this device. Examples open as editable copies.