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:
- Clear fractions by multiplying both sides by the least common denominator.
- Remove brackets with the distributive property.
- Collect the variable terms on one side and the numbers on the other.
- Divide by the coefficient of x.
- 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
- Subtract 1x from both sides: 2x − 4 = 6
- Add 4 on both sides: 2x = 10
- Divide by 2: x = 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.
| Form | Equation | Best for |
|---|---|---|
| Slope-intercept | y = mx + b | Reading the slope m and y-intercept b at a glance |
| Point-slope | y − y₁ = m(x − x₁) | Writing a line from a point and a slope |
| Standard | Ax + By = C | Finding intercepts quickly |
| Horizontal | y = c | Slope 0 |
| Vertical | x = c | Undefined 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
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
Key terms
Say the meaning to yourself, then tap a card to check.
Quiz score: 0 of 5
Practice sets mastered: 0 of 3
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.