Writing Linear Equations

Slope-intercept form and point-slope form

Writing Linear Equations

Slope-Intercept Form

y=mx+by = mx + b

  • mm = slope
  • bb = y-intercept

Use when: You know the slope and y-intercept

Point-Slope Form

yy1=m(xx1)y - y_1 = m(x - x_1)

Use when: You know the slope and one point (x1,y1)(x_1, y_1)

Finding Equation from Two Points

Steps:

  1. Find the slope: m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}
  2. Use point-slope form with either point
  3. Simplify to slope-intercept form

Special Lines

Horizontal line: y=ky = k (slope = 0) Vertical line: x=hx = h (undefined slope)

Parallel and Perpendicular Lines

Parallel: Same slope

  • y=2x+3y = 2x + 3 and y=2x1y = 2x - 1 are parallel

Perpendicular: Slopes are negative reciprocals

  • y=2x+3y = 2x + 3 and y=12x+1y = -\frac{1}{2}x + 1 are perpendicular

📚 Practice Problems

1Problem 1easy

Question:

Write an equation for a line with slope 3 and y-intercept -2

💡 Show Solution

Use slope-intercept form: y=mx+by = mx + b

Given: m=3m = 3 and b=2b = -2

Substitute: y=3x+(2)y = 3x + (-2) y=3x2y = 3x - 2

Answer: y=3x2y = 3x - 2

2Problem 2medium

Question:

Write an equation for the line passing through (2,5)(2, 5) with slope 4-4

💡 Show Solution

Use point-slope form: yy1=m(xx1)y - y_1 = m(x - x_1)

Given: (x1,y1)=(2,5)(x_1, y_1) = (2, 5) and m=4m = -4

Substitute: y5=4(x2)y - 5 = -4(x - 2)

Expand: y5=4x+8y - 5 = -4x + 8

Add 5 to both sides: y=4x+13y = -4x + 13

Answer: y=4x+13y = -4x + 13

3Problem 3hard

Question:

Write an equation for the line passing through (1,3)(1, 3) and (4,9)(4, 9)

💡 Show Solution

Step 1: Find the slope m=y2y1x2x1=9341=63=2m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{9 - 3}{4 - 1} = \frac{6}{3} = 2

Step 2: Use point-slope form with (1,3)(1, 3) y3=2(x1)y - 3 = 2(x - 1)

Step 3: Simplify to slope-intercept form y3=2x2y - 3 = 2x - 2 y=2x+1y = 2x + 1

Answer: y=2x+1y = 2x + 1