# Linear equations

A **linear equation**
is an equation whose sides are both linear expressions.
Similarly, a **linear inequality**
is an equality shose sides are both linear expressions.
Linear equations and inequalities in one variable
can always be solved using this method:

- Simplify both sides (if necessary).
- If there is a variable term on the right side,
then subtract this term from both sides (and simplify).
- If there is a constant term on the left side,
then subtract this term from both sides (and simplify).
- If there is now a negative sign on the left side,
then take the opposite of both sides (and simplify).
- If there is now a coefficient on the variable on the left side,
then divide both sides by that coefficient (and simplify).

At this point, you should have the answer,
with the variable equal to (or less than, whatever) a constant.
Failing that, you might have a constant statement (with no variable in it),
which will be either true or false;
then *that* (‘True’ or ‘False’)
is your answer.
## Examples

Here is a straightforward example:
- 5
*x* + 2 = 3*x* + 6 —
original equation;
- 2
*x* + 2 = 6 —
subtract 3*x* from both sides;
- 2
*x* = 4 — subtract 2 from both sides;
*x* = 2 — divide both sides by 2.

In other words, the solution set for *x* is {2}.
I'll check this solution too:
5(2) + 2 = 12, and 3(2) + 6 = 12,
so this checks.
The next example needs to be simplified first:

- 3(2
*a* + 4) =
2*a* + 2(*a* + 9) —
original equation;
- 6
*a* + 12 = 4*a* + 18 —
simplify both sides;
- 2
*a* + 12 = 18 —
subtract 2*a* from both sides;
- 2
*a* + 12 = 18 —
subtract 2*a* from both sides;
- 2
*a* = 6 — subtract 12 from both sides;
*a* = 3 — divide both sides by 2.

Checking, 3(2(3) + 4) = 3(10) = 30,
and 2(3) + 2(3 + 9) = 6 + 2(12) = 30,
so this checks;
the solution set for *a* is {3}.
Here's an example with some negative numbers:

- 2
*t* − 8 = 5*t* − 5 —
original equation;
- −3
*t* − 8 = −5 —
subtract 5*t* from both sides;
- −3
*t* = 3 —
add 8 (same as subtracting −8) from both sides;
- 3
*t* = −3 —
take the opposite of both sides;
*t* = −1 — divide both sides by 3.

Checking, 2(−1) −8 = −10,
and 5(−1) − 5 = −10,
so this checks;
the solution set for *t* is {−1}.
Here's an example where you can skip a step:

- 4
*x* = 2*x* + 6 —
original equation;
- 2
*x* = 6 —
subtract 2*x* from both sides;
*x* = 3 — divide both sides by 2.

To check, 4(3) = 12, and 2(3) + 6 = 12, so this checks;
the solution set for *x* is {3}.
## Degenerate cases

Sometimes, when you subtract a variable term,
you'll find that the variable disappears after you simplify.
(Actually, it could disappear even earlier,
when you first simplify the original expressions.)
In this case, there is not much point in continuing with the remaining steps;
you will have a statement that is simply either true or false.
Here is an example of a false statement:

- 2
*n* + 4 = 2(*n* + 4) —
original expression;
- 2
*n* + 4 = 2*n* + 8 —
simplify both sides;
- 4 = 8 — subtract 2
*n* from both sides;
- False — 4 < 8 in fact.

So this equation is never true; it has no solutions.
In other words, the solution set for *n* is {}, the empty set.
Here is an example of a true statement:

- 3
*p* + 6 = 3(*p* + 2) —
original expression;
- 3
*p* + 6 = 3*p* + 6 —
simplify both sides;
- 6 = 6 — subtract 3
*p* from both sides;
- True — 6 = 6 in fact.

So this equation is always true;
every real number is a solution for *p*.
(Actually, you could see this
immediately after the expressions were simplified;
since then both sides are exactly the same!)
In other words, the solution set for *p*
is **R**, the set of all real numbers.

Go back to the course homepage.

This web page was written in 2007 and 2008 by Toby Bartels.
Toby reserves no legal rights to it.
The permanent URI of this web page
is
`http://tobybartels.name/MATH-0950/2008WN/linear/`

.