Precalculus / Algebra 2

Linear Equations & Slope

Slope-intercept form, point-slope form, parallel and perpendicular lines, linear inequalities, and real-world applications — the complete precalculus foundation.

Three Standard Forms of a Line

Slope-Intercept Form

y = mx + b

m is slope, b is y-intercept. Best for graphing and identifying slope immediately.

Point-Slope Form

y − y₁ = m(x − x₁)

Use when you know the slope and one point. Fastest route to the equation of a line.

Standard Form

Ax + By = C

A, B, C are integers with A ≥ 0. Preferred in some textbooks and for finding intercepts quickly.

Converting Between Forms

Slope-Intercept → Standard

  1. Start: y = mx + b
  2. Move mx to left: −mx + y = b
  3. Multiply through by −1 if needed so A ≥ 0: mx − y = −b
  4. Clear fractions by multiplying by the LCD if m or b are fractions
y = (2/3)x − 4 → Multiply by 3: 3y = 2x − 12 → 2x − 3y = 12

Standard → Slope-Intercept

  1. Start: Ax + By = C
  2. Subtract Ax from both sides: By = −Ax + C
  3. Divide by B: y = (−A/B)x + C/B
  4. Identify slope m = −A/B and y-intercept b = C/B
3x + 4y = 12 → 4y = −3x + 12 → y = −(3/4)x + 3

Point-Slope → Slope-Intercept

  1. Start: y − y₁ = m(x − x₁)
  2. Distribute m: y − y₁ = mx − mx₁
  3. Add y₁ to both sides: y = mx − mx₁ + y₁
  4. Combine constants: b = y₁ − mx₁
y − 3 = 2(x − 1) → y − 3 = 2x − 2 → y = 2x + 1

Slope: Rise Over Run

Slope measures the steepness and direction of a line. Given two points (x₁, y₁) and (x₂, y₂):

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

Positive Slope

Line rises from left to right. The larger the value of m, the steeper the rise. Example: m = 3 is steeper than m = 1.

Negative Slope

Line falls from left to right. The more negative m, the steeper the fall. Example: m = −4 is steeper than m = −1.

Zero Slope

Horizontal line — no rise. m = 0. Equation is y = k. Example: y = 5 is a horizontal line at height 5.

Undefined Slope

Vertical line — the run is 0, so division by zero makes slope undefined. Equation is x = h. Example: x = −2 is a vertical line.

Parallel and Perpendicular Lines

Parallel Lines

Parallel lines never intersect. They have equal slopes and different y-intercepts.

m₁ = m₂   and   b₁ ≠ b₂

Example: y = 4x + 7 ∥ y = 4x − 3 (both slope 4, different intercepts)

Perpendicular Lines

Perpendicular lines intersect at a 90° angle. Their slopes are negative reciprocals.

m₁ · m₂ = −1   →   m₂ = −1/m₁

Example: slope 3/4 is perpendicular to slope −4/3. Product: (3/4)(−4/3) = −1 ✓

Quick Reference: Slope Relationships

Given SlopeParallel SlopePerpendicular Slope
m = 2m = 2m = −1/2
m = −3/4m = −3/4m = 4/3
m = 5m = 5m = −1/5
m = 0 (horizontal)m = 0undefined (vertical)

Finding the Equation of a Line

Given: Slope + One Point

Use point-slope form directly — it was built for this scenario.

  1. Substitute slope m and point (x₁, y₁) into y − y₁ = m(x − x₁)
  2. Distribute and solve for y to get slope-intercept form
  3. Or rearrange to Ax + By = C for standard form
m = −2, point (3, 7): y − 7 = −2(x − 3) → y = −2x + 13

Given: Two Points

Calculate slope first, then apply point-slope form.

  1. Calculate m = (y₂ − y₁) / (x₂ − x₁)
  2. Substitute m and either point into y − y₁ = m(x − x₁)
  3. Simplify to desired form
(1, 4) and (3, 10): m = (10−4)/(3−1) = 3 → y − 4 = 3(x − 1) → y = 3x + 1

Given: A Graph

Read key features directly off the graph.

  1. Identify the y-intercept (where line crosses y-axis) — this is b
  2. Pick two clear lattice points on the line and count rise over run for m
  3. Write y = mx + b using the values you read
  4. Verify by plugging a third point from the graph into the equation

Horizontal and Vertical Lines

Horizontal Lines: y = k

Every point has the same y-coordinate. Slope = 0. Passes through (0, k) and is parallel to the x-axis.

y = 3   → horizontal at height 3

y = −5  → horizontal at height −5

y = 0   → the x-axis itself

Vertical Lines: x = h

Every point has the same x-coordinate. Slope = undefined. Not a function — fails the vertical line test on its own axis.

x = 4   → vertical at x = 4

x = −2  → vertical at x = −2

x = 0   → the y-axis itself

Linear Inequalities

A linear inequality describes a half-plane — all points on one side of a boundary line.

1

Graph the boundary line

Replace the inequality symbol with = and graph the line. Use a dashed line for strict inequalities (< or >) and a solid line for ≤ or ≥.

2

Choose a test point

Pick any point not on the boundary line. The origin (0, 0) is easiest when the line doesn't pass through it.

3

Substitute and evaluate

Plug the test point into the original inequality. If the inequality is true, shade the region containing the test point. If false, shade the other side.

4

Shade the correct region

For y > mx + b: shade above the dashed line. For y < mx + b: shade below. For y ≥ mx + b: shade above including the solid boundary.

Dashed vs. Solid Boundary

Dashed: points on the line are NOT solutions (< or >). Solid: points on the line ARE solutions (≤ or ≥).

Flipping the Inequality

When multiplying or dividing both sides by a negative number, reverse the inequality symbol: −2x > 6 → x < −3.

Real-World Applications

Rate of Change

Slope equals the rate of change. If temperature rises 3°F per hour, the linear model is T = 3t + T₀ where T₀ is the starting temperature. The slope of 3 is the rate of change.

Cost & Revenue

A business model: Cost C = mx + b where b is the fixed cost and m is cost per unit. Revenue R = px where p is price. Profit = R − C. Break-even occurs when C = R.

Distance, Speed & Time

d = rt (distance = rate × time) is linear when rate is constant. If a car travels at 60 mph starting 20 miles out, its position is d = 60t + 20. Slope is speed; y-intercept is starting position.

Worked Examples

Example 1 — Graph y = −(2/3)x + 4

y = −(2/3)x + 4   →   m = −2/3, b = 4

Step 1: Plot y-intercept at (0, 4)

Step 2: From (0, 4), apply slope −2/3: go down 2, right 3 → point (3, 2)

Step 3: Apply again: go down 2, right 3 → point (6, 0)

Step 4: Draw line through (0, 4), (3, 2), (6, 0)

Line falls from left to right (negative slope). x-intercept at (6, 0).

Example 2 — Find the Equation Through (−1, 5) and (3, −3)

Points: (−1, 5) and (3, −3)

Step 1: Slope = (−3 − 5) / (3 − (−1)) = −8 / 4 = −2

Step 2: Point-slope using (−1, 5): y − 5 = −2(x − (−1))

Step 3: Expand: y − 5 = −2x − 2

Step 4: Solve for y: y = −2x + 3

Equation: y = −2x + 3

Verify: f(3) = −2(3) + 3 = −3 ✓    f(−1) = −2(−1) + 3 = 5 ✓

Example 3 — Write Equations of Parallel and Perpendicular Lines Through (2, 1)

Reference line: y = 3x − 7   →   slope = 3

Parallel line (same slope, through (2, 1)):

y − 1 = 3(x − 2) → y − 1 = 3x − 6 → y = 3x − 5

Perpendicular line (slope = −1/3, through (2, 1)):

y − 1 = −(1/3)(x − 2) → y = −(1/3)x + 2/3 + 1 → y = −(1/3)x + 5/3

Parallel: y = 3x − 5   |   Perpendicular: y = −(1/3)x + 5/3

Example 4 — Graph the Inequality 2x − y ≤ 4

2x − y ≤ 4

Step 1: Rewrite boundary: 2x − y = 4 → y = 2x − 4. Solid line (≤).

Step 2: Test (0, 0): 2(0) − 0 ≤ 4 → 0 ≤ 4. TRUE.

Step 3: Shade the region containing (0, 0) — above the line y = 2x − 4.

Graph: solid line y = 2x − 4, shaded above (includes the line).

Example 5 — Cost/Revenue Application

A company has fixed costs of $1,200/month and variable costs of $8 per unit.

Each unit sells for $20.

Cost and Revenue models:

C(x) = 8x + 1200   (cost)

R(x) = 20x         (revenue)

Break-even point (C = R):

8x + 1200 = 20x

1200 = 12x

x = 100 units

Break-even at 100 units. Sell more than 100 to profit; fewer to incur a loss.

Profit model: P(x) = R(x) − C(x) = 12x − 1200. Slope 12 = profit per additional unit.

Frequently Asked Questions

What is slope-intercept form and how do you use it?

Slope-intercept form is y = mx + b, where m is the slope (rise over run) and b is the y-intercept (where the line crosses the y-axis). To graph a line in this form: plot the y-intercept at (0, b), then use the slope m = rise/run to find a second point — move up by the numerator and right by the denominator. Draw a line through both points. Example: y = 3x − 2 has slope 3 and y-intercept −2. Plot (0, −2), move up 3 and right 1 to get (1, 1), and draw the line.

How do you find the equation of a line given two points?

Given two points (x₁, y₁) and (x₂, y₂): Step 1 — calculate the slope m = (y₂ − y₁) / (x₂ − x₁). Step 2 — substitute m and one point into point-slope form: y − y₁ = m(x − x₁). Step 3 — simplify to slope-intercept form y = mx + b by solving for y. Example: given (2, 5) and (4, 9), slope = (9 − 5)/(4 − 2) = 4/2 = 2. Point-slope: y − 5 = 2(x − 2) → y = 2x + 1.

What makes lines parallel or perpendicular?

Parallel lines have equal slopes and different y-intercepts — they never intersect. For example, y = 3x + 1 and y = 3x − 5 are parallel because both have slope 3. Perpendicular lines have slopes that are negative reciprocals of each other — their slopes multiply to −1. If one line has slope m, any perpendicular line has slope −1/m. Example: a line with slope 2/3 is perpendicular to a line with slope −3/2, because (2/3)(−3/2) = −1.

What is the slope of a horizontal line and a vertical line?

A horizontal line has slope 0 — it has no rise regardless of the run. Its equation is y = k for some constant k. For example, y = 4 is a horizontal line through every point with y-coordinate 4. A vertical line has undefined slope — you cannot divide by zero because the run is 0. Its equation is x = h for some constant h. For example, x = −3 is a vertical line through every point with x-coordinate −3. Vertical lines are not functions.

How do you graph a linear inequality?

To graph a linear inequality like y > 2x − 1: Step 1 — graph the boundary line y = 2x − 1. Use a dashed line for strict inequalities (> or <) and a solid line for ≥ or ≤. Step 2 — pick a test point not on the line, such as (0, 0). Substitute: 0 > 2(0) − 1 → 0 > −1, which is true. Step 3 — shade the region containing the test point (above the line in this case). If the test point makes the inequality false, shade the other side.

Related Topics

Practice Linear Equations

Interactive problems with step-by-step solutions and private tutoring — free to try.

Start Practicing Free