Skip to content
Tutorials Center
My learning

Topics

Lesson 2 of 38 ยท Getting Started

Linear Equations and Inequalities

Review solving linear equations and inequalities, including variables on both sides, fractions, compound inequalities and interval notation.

Almost every advanced technique in algebra ends by solving a linear equation. Before you meet polynomials and logarithms, make sure the core skill is solid: isolate the variable by undoing operations in reverse order.

A linear equation in one variable can be written ax + b = c with a โ‰  0. It has exactly one solution. An inequality such as ax + b < c has infinitely many solutions, which form an interval on the number line.

Solving linear equations

The method has four moves. Clear fractions by multiplying by the common denominator. Expand brackets. Collect variable terms on one side and numbers on the other. Divide by the coefficient.

Example 1. Solve 3(x - 2) + 4 = 2x + 7.

  1. Expand: 3x - 6 + 4 = 2x + 7, so 3x - 2 = 2x + 7.
  2. Subtract 2x: x - 2 = 7.
  3. Add 2: x = 9.

Check: left side 3(9 - 2) + 4 = 25; right side 2(9) + 7 = 25.

Example 2 (fractions). Solve x/3 + 1/2 = 5/6. The common denominator is 6, so multiply every term by 6: 2x + 3 = 5. Then 2x = 2 and x = 1.

Two special cases appear. If the variable cancels and you get a true statement like 4 = 4, the equation is an identity: every real number is a solution. If you get a false statement like 4 = 9, there is no solution.

Python Solve linear equations exactly

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Solving linear inequalities

Solve an inequality exactly like an equation, with one important exception.

When you multiply or divide both sides by a negative number, reverse the direction of the inequality sign.

Example 3. Solve -2x + 5 > 11.

  1. Subtract 5: -2x > 6.
  2. Divide by -2 and flip the sign: x < -3.

Check with a value from the answer, x = -4: -2(-4) + 5 = 13, and 13 > 11 is true. Check a value outside, x = 0: 5 > 11 is false. Good.

Why does the sign flip? On the number line, multiplying by -1 reflects every number across zero, so the order reverses: 2 < 3 becomes -2 > -3.

Interval notation

Solution sets are written compactly with interval notation. Round brackets exclude an endpoint; square brackets include it. Infinity always gets a round bracket.

Inequality Interval Meaning
x < -3 (-โˆž, -3) all numbers below -3
x โ‰ฅ 2 [2, โˆž) 2 and everything above
-1 < x โ‰ค 4 (-1, 4] between -1 and 4, including 4

Compound inequalities

A compound inequality joins two conditions. With and, a number must satisfy both (the solution is the overlap). With or, it needs to satisfy at least one (the solution is the union).

Example 4. Solve -3 < 2x - 1 โ‰ค 7. Do the same step to all three parts. Add 1: -2 < 2x โ‰ค 8. Divide by 2: -1 < x โ‰ค 4. In interval notation, (-1, 4].

Example 5. Solve x + 2 < 1 or 3x โ‰ฅ 12. The first gives x < -1, the second x โ‰ฅ 4. The solution is (-โˆž, -1) โˆช [4, โˆž). The symbol โˆช means union.

Python Test candidate solutions

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Boundaries are the usual trap: x = -1 fails the "or" case because -1 + 2 < 1 is false (1 is not less than 1), and x = 4 passes because 3(4) โ‰ฅ 12 is true.

Word problems

Translate carefully. "At least" means โ‰ฅ; "no more than" means โ‰ค; "more than" means >.

Example 6. A phone plan costs 12 dollars per month plus 0.05 dollars per text. How many texts can you send if you want to spend no more than 20 dollars? Write 12 + 0.05t โ‰ค 20. Subtract 12: 0.05t โ‰ค 8. Divide: t โ‰ค 160. Since you cannot send a negative number of texts, the realistic answer is 0 โ‰ค t โ‰ค 160.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Solve 2x - 7 = 5x + 8.

    Subtract 5x: -3x - 7 = 8. Add 7: -3x = 15. So x = -5.
  2. 2. Solve -4x < 20.

    Dividing by -4 reverses the sign: x > -5.
  3. 3. Which interval is -1 < x โ‰ค 4?

    -1 is excluded (round bracket) and 4 is included (square bracket).
  4. 4. What does 3x + 1 = 3x + 4 have?

    The x terms cancel and leave 1 = 4, which is false for every x.

Summary

  • Solve linear equations by clearing fractions, expanding, collecting terms and dividing.
  • A false result like 1 = 4 means no solution; a true result like 4 = 4 means identity.
  • Flip the inequality sign when multiplying or dividing by a negative number.
  • Interval notation uses round brackets for excluded endpoints and square brackets for included ones.
  • "And" gives an overlap; "or" gives a union.

Next: Absolute Value Equations and Inequalities