Module 2 · Equations and inequalities · Lesson 9 of 84

Linear equations in one variable and lines

Solving linear and rational equations, slope, and the equations of lines.

In this lesson · about 22 minutes

  • Solve linear equations, including ones with fractions
  • Solve a rational equation and check for excluded values
  • Find the slope of a line from two points
  • Write a line in slope-intercept, point-slope and standard form
  • Recognise parallel and perpendicular lines

A linear equation in one variable can be written as ax + b = 0. Solving it means finding the value of x that makes it true. The golden rule: whatever you do to one side, do to the other, so the two sides stay balanced.

A general strategy:

  1. Clear fractions by multiplying both sides by the least common denominator.
  2. Remove brackets with the distributive property.
  3. Collect the variable terms on one side and the numbers on the other.
  4. Divide by the coefficient of x.
  5. Check by substituting back into the original equation.

Most linear equations have exactly one solution. Some have none (they simplify to something false, like 3 = 5, and are called inconsistent), and some are true for every x (they simplify to something like 0 = 0 and are called identities).

Try it · interactive

Solve a linear equation step by step

Change the coefficients and watch the solution steps update. Each side is drawn as a line, and the solution is where they cross.

3x − 4 = x + 6

  1. Subtract 1x from both sides: 2x − 4 = 6
  2. Add 4 on both sides: 2x = 10
  3. Divide by 2: x = 5
−8−6−4−22468−8−6−4−22468x = 5

Each side is a line. The solution is the x where the lines cross. Parallel lines (same slope) never meet, so there is no solution.

Loading practice…

Loading practice…

Rational equations

A rational equation has a variable in a denominator, such as 5/(x − 2) = 3/(x + 1). Multiply both sides by the LCD to clear the fractions, solve, then check that your answer is not an excluded value. A solution that makes a denominator zero must be thrown out; it is called an extraneous solution.

Slope and the equations of lines

The slope of a line measures its steepness: how much y changes for each step in x.

m = (y₂ − y₁) / (x₂ − x₁) = rise / run

A positive slope rises from left to right, a negative slope falls, a horizontal line has slope 0, and a vertical line has an undefined slope.

FormEquationBest for
Slope-intercepty = mx + bReading the slope m and y-intercept b at a glance
Point-slopey − y₁ = m(x − x₁)Writing a line from a point and a slope
StandardAx + By = CFinding intercepts quickly
Horizontaly = cSlope 0
Verticalx = cUndefined slope

Parallel lines have equal slopes. Perpendicular lines have slopes that are negative reciprocals: if one slope is 2/3, the other is −3/2 (their product is −1).

Whiteboard · watch and try

Writing the equation of a line through two points

5 steps
Press Play and the tutor will talk you through it while writing on the board. Pause any time to write on the board yourself.

Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.

Loading practice…

Check your understanding0 of 5 correct

Question 1

1.Solve 4(x − 2) = 2x + 6.

Question 2

2.What happens when you solve 3x + 5 = 3(x + 2)?

Question 3

3.Solving 2/(x − 1) = x/(x − 1) gives x = 2 and…

Question 4

4.What is the slope of 6x − 2y = 8?

Question 5

5.A line is perpendicular to y = −4x + 1. What is its slope?

Key terms

Say the meaning to yourself, then tap a card to check.

Quiz score: 0 of 5

Practice sets mastered: 0 of 3

Tip: answer every quiz question correctly first.

Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.