Loading…
Solve linear equations with variables on both sides
Learn step-by-step with practice exercises built right in.
Linear equations are the foundation of algebra! They represent straight-line relationships and appear everywhere in the real world. Understanding how to write, graph, and use linear equations opens doors to advanced mathematics and practical problem-solving.
A linear equation is an equation whose graph is a straight line.
General form: Ax + By = C (where A, B, C are constants)
Most common form: y = mx + b (slope-intercept form)
Characteristics:
Examples of linear equations:
NOT linear equations:
Write an equation in slope-intercept form with slope m = 3 and y-intercept b = -2.
Use the slope-intercept form: y = mx + b
Substitute m = 3 and b = -2:
y = 3x + (-2)
y = 3x - 2
Answer: y = 3x - 2
Review key concepts with our flashcard system
Explore more Grade 8 Math topics
y = mx + b
Where:
This is the most useful form for graphing and understanding lines!
Example 1: y = 3x + 2
Example 2: y = -2x + 5
Example 3: y = (1/2)x - 3
Goal: Solve for y to get y = mx + b
Example 1: Convert 2x + y = 8 to slope-intercept form
Solution: 2x + y = 8 Subtract 2x from both sides: y = -2x + 8
Answer: y = -2x + 8
Example 2: Convert 3x - 2y = 6 to slope-intercept form
Solution: 3x - 2y = 6 Subtract 3x: -2y = -3x + 6 Divide by -2: y = (3/2)x - 3
Answer: y = (3/2)x - 3
Example 3: Convert 4x + 2y = 10 to slope-intercept form
Solution: 4x + 2y = 10 -2y = -4x + 10 y = 2x - 5
Answer: y = 2x - 5
Method 1: Using Slope and Y-Intercept
Steps:
Example: Graph y = 2x + 1
Step 1: Y-intercept = 1, plot (0, 1)
Step 2: Slope = 2 = 2/1 (rise 2, run 1) From (0, 1): go up 2, right 1 → (1, 3)
Step 3: Draw line through (0, 1) and (1, 3)
Method 2: Using Two Points (Table of Values)
Steps:
Example: Graph y = -x + 4
| x | y = -x + 4 | Point |
|---|---|---|
| 0 | -0 + 4 = 4 | (0, 4) |
| 2 | -2 + 4 = 2 | (2, 2) |
| 4 | -4 + 4 = 0 | (4, 0) |
Plot points and draw line through them.
Method 3: Using Intercepts
Steps:
Example: Graph 2x + 3y = 6
X-intercept: Set y = 0 2x + 3(0) = 6 2x = 6 x = 3 → Point (3, 0)
Y-intercept: Set x = 0 2(0) + 3y = 6 3y = 6 y = 2 → Point (0, 2)
Plot (3, 0) and (0, 2), draw line.
Given slope and y-intercept:
Simply plug into y = mx + b!
Example: Write equation with slope 4 and y-intercept -3
Answer: y = 4x - 3
Given slope and a point:
Use point-slope form: y - y₁ = m(x - x₁)
Example: Write equation with slope 2 passing through (3, 5)
Solution: y - 5 = 2(x - 3) y - 5 = 2x - 6 y = 2x - 1
Answer: y = 2x - 1
Given two points:
Step 1: Find slope using m = (y₂ - y₁)/(x₂ - x₁) Step 2: Use point-slope form with either point
Example: Write equation through (1, 3) and (4, 9)
Solution:
Step 1: Find slope m = (9 - 3)/(4 - 1) = 6/3 = 2
Step 2: Use point-slope form with (1, 3) y - 3 = 2(x - 1) y - 3 = 2x - 2 y = 2x + 1
Answer: y = 2x + 1
Horizontal Lines: y = k (constant)
Vertical Lines: x = k (constant)
Lines through Origin: y = mx
Parallel Lines:
Example: y = 2x + 3 and y = 2x - 5 are parallel (both have slope = 2)
Perpendicular Lines:
Example: y = 3x + 1 and y = (-1/3)x + 4 are perpendicular
Finding Parallel Line:
Example: Write equation parallel to y = 2x + 5 passing through (1, 4)
Solution: Same slope: m = 2 Use point-slope: y - 4 = 2(x - 1) y = 2x + 2
Answer: y = 2x + 2
Finding Perpendicular Line:
Example: Write equation perpendicular to y = 4x - 1 passing through (2, 3)
Solution: Original slope: 4 Perpendicular slope: -1/4 Use point-slope: y - 3 = (-1/4)(x - 2) y - 3 = (-1/4)x + 1/2 y = (-1/4)x + 7/2
Answer: y = (-1/4)x + 3.5
y - y₁ = m(x - x₁)
Where:
Useful when you know:
Example: Write equation with slope -3 through point (2, 5)
Solution: y - 5 = -3(x - 2)
Can leave in this form or convert to slope-intercept: y - 5 = -3x + 6 y = -3x + 11
Ax + By = C
Where A, B, C are integers (A should be positive)
Converting from slope-intercept to standard form:
Example: Convert y = 2x + 3 to standard form
Solution: y = 2x + 3 Subtract 2x from both sides: -2x + y = 3 Multiply by -1 to make A positive: 2x - y = -3
Answer: 2x - y = -3
Note: Standard form is useful for finding intercepts quickly!
Cost Equations:
Problem: A taxi charges 2 per mile. Write an equation for total cost.
Solution: Let x = miles traveled, y = total cost Fixed charge: 2 (slope)
Equation: y = 2x + 3
Temperature Conversion:
Celsius to Fahrenheit: F = (9/5)C + 32
Savings:
Problem: You have 10 per week. Write equation for savings.
Solution: Starting amount: 10 (slope)
Equation: y = 10x + 50 (where x = weeks, y = total)
Phone Plans:
Plan A: 0.10 per text Equation: y = 0.10x + 20
Plan B: $30/month, unlimited texts Equation: y = 30 (horizontal line!)
Example: A plant is 6 cm tall and grows 2 cm per day.
a) Write equation for height
h = 2d + 6 (where d = days, h = height)
b) How tall after 10 days?
h = 2(10) + 6 = 26 cm
c) When will it be 20 cm tall?
20 = 2d + 6 14 = 2d d = 7 days
Linear (constant rate of change):
NOT Linear:
Check a table:
| x | y | Change |
|---|---|---|
| 1 | 5 | - |
| 2 | 7 | +2 |
| 3 | 9 | +2 |
| 4 | 11 | +2 |
Constant change = LINEAR! ✓
❌ Mistake 1: Confusing slope and y-intercept
❌ Mistake 2: Sign errors when converting
❌ Mistake 3: Thinking vertical lines are y = k
❌ Mistake 4: Forgetting negative reciprocal for perpendicular
❌ Mistake 5: Not simplifying slope
For graphing:
For writing equations:
For applications:
Forms of Linear Equations:
Slope-Intercept: y = mx + b
Point-Slope: y - y₁ = m(x - x₁)
Standard Form: Ax + By = C
Slope Formula: m = (y₂ - y₁)/(x₂ - x₁)
Special Lines:
Parallel Lines: Same slope
Perpendicular Lines: Slopes multiply to -1
Tip 1: Always identify m and b first
Tip 2: Check your graph
Tip 3: Use (0, 0) to check
Tip 4: Verify with a third point
Linear equations represent straight-line relationships:
Key forms:
Important concepts:
Graphing methods:
Real-world applications:
Linear equations are fundamental to algebra and appear constantly in mathematics, science, business, and everyday life!
Convert to slope-intercept form: 2x + 4y = 12
Solve for y:
2x + 4y = 12
4y = -2x + 12
y = -2x/4 + 12/4
y = -1/2 x + 3
Answer: y = -1/2 x + 3
Write an equation in slope-intercept form for a line passing through (2, 5) with slope m = 4.
Use point-slope form first: y - y₁ = m(x - x₁)
y - 5 = 4(x - 2)
y - 5 = 4x - 8
y = 4x - 8 + 5
y = 4x - 3
Answer: y = 4x - 3
Find the equation of a line passing through points (1, 3) and (4, 12).
Step 1: Find slope m = (12 - 3)/(4 - 1) = 9/3 = 3
Step 2: Use point-slope form with point (1, 3) y - 3 = 3(x - 1)
y - 3 = 3x - 3
y = 3x
Answer: y = 3x
Write an equation for a line perpendicular to y = 2x + 5 passing through (4, 1).
Step 1: Find perpendicular slope Original slope m = 2 Perpendicular slope = -1/2
Step 2: Use point-slope form with (4, 1) y - 1 = -1/2(x - 4)
y - 1 = -1/2 x + 2
y = -1/2 x + 3
Answer: y = -1/2 x + 3