Reading history

The Equation of a Straight Line: Slope and Forms

4 min read 3 views

Find slopes, write lines in slope-intercept, point-slope, two-point and intercept forms, and handle parallel and perpendicular lines and intersections.

Every straight line on a graph can be described by an equation such as y = 2x + 3. From that equation you can tell how steep the line is, where it crosses the axes, whether two lines are parallel or perpendicular, and where they meet. This lesson builds the main forms of the equation of a straight line used in SSC Higher Mathematics and HSC, starting from the idea of slope.

In this lesson you will learn

  • The slope (gradient) of a line
  • Slope-intercept, point-slope, two-point and intercept forms
  • The general form ax + by + c = 0
  • Conditions for parallel and perpendicular lines
  • Intersection points and the distance from a point to a line

You should know distance and section formulas and simultaneous equations.

Slope

Slope of the line through (x₁, y₁) and (x₂, y₂)

m = (y₂ − y₁) / (x₂ − x₁) = rise ÷ run = tan θ, where θ is the angle the line makes with the positive x-axis.

Through (1, 2) and (4, 8):    m = (8 − 2)/(4 − 1) = 6/3 = 2
Through (−2, 5) and (4, −7):  m = (−7 − 5)/(4 + 2) = −12/6 = −2

m > 0  line rises from left to right
m < 0  line falls
m = 0  horizontal line (y = constant)
vertical line (x = constant): slope undefined, because the run is 0

Forms of the Equation

FormEquationUse when you know
Slope-intercepty = mx + cSlope m and y-intercept c
Point-slopey − y₁ = m(x − x₁)Slope and one point
Two-point(y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁)Two points
Interceptx/a + y/b = 1x-intercept a and y-intercept b
Generalax + by + c = 0Final answers; slope = −a/b
1. Through (1, 2) and (4, 8): slope 2, so y − 2 = 2(x − 1)  →  y = 2x
2. Through (2, −1) with slope −3: y + 1 = −3(x − 2)  →  y = −3x + 5
3. Cutting the axes at 4 and 6: x/4 + y/6 = 1  →  3x + 2y = 12
4. Reading 3x + 4y − 12 = 0:  4y = −3x + 12  →  y = −(3/4)x + 3
   slope −3/4, y-intercept 3, x-intercept 4 (put y = 0)

Parallel and Perpendicular Lines

For lines with slopes m₁ and m₂

  • Parallel: m₁ = m₂
  • Perpendicular: m₁ × m₂ = −1, so each slope is the negative reciprocal of the other
Line perpendicular to y = 2x + 1 through (4, 1):
slope = −1/2,  y − 1 = −½(x − 4)  →  y = −½x + 3  →  x + 2y − 6 = 0

Line parallel to 2x − y + 5 = 0 through (3, 4):
slope = 2,  y − 4 = 2(x − 3)  →  2x − y − 2 = 0

Three points are collinear when the slope between the first two equals the slope between the last two. For (1, 3), (2, 5) and (4, 9), both slopes are 2.

Where Lines Meet

The intersection point satisfies both equations, so solve them simultaneously:

y = 2x  and  x + 2y = 6
x + 2(2x) = 6  →  5x = 6  →  x = 6/5,  y = 12/5
The lines meet at (6/5, 12/5).

Distance from a point (x₁, y₁) to the line ax + by + c = 0

d = |a·x₁ + b·y₁ + c| / √(a² + b²)

From (1, 2) to 3x + 4y − 12 = 0:
d = |3 + 8 − 12| / √(9 + 16) = 1/5 units

Common Mistakes

  1. Mixing the order of subtraction: (y₂ − y₁)/(x₁ − x₂) gives the wrong sign.
  2. Reading the slope of ax + by + c = 0 as a. Rearrange first: the slope is −a/b.
  3. Taking the perpendicular slope as just the reciprocal and forgetting the minus sign.
  4. Calling a vertical line’s slope 0. Zero slope is horizontal; vertical is undefined.

Practice Exercises

Exercise 1. Find the equation of the line through (−1, 4) and (3, −4) in general form.

Show answer

Slope = (−4 − 4)/(3 + 1) = −2. y − 4 = −2(x + 1), so y = −2x + 2, or 2x + y − 2 = 0.

Exercise 2. Find k if the lines 2x + 3y = 7 and kx − 6y = 1 are perpendicular.

Show answer

Slopes −2/3 and k/6. (−2/3)(k/6) = −1 gives −2k/18 = −1, so k = 9.

Exercise 3. Find the x- and y-intercepts of 5x − 2y + 10 = 0.

Show answer

y = 0 gives x = −2; x = 0 gives y = 5. Intercepts −2 and 5.

Frequently Asked Questions

What does the slope mean in real life?

It is a rate of change. On a distance–time graph, the slope is the speed; on a cost graph, it is the cost per item; on a road, it is how many metres you climb for each metre forward.

How do I find the angle between two lines?

Use tan θ = |(m₁ − m₂)/(1 + m₁m₂)|. When m₁m₂ = −1 the denominator is zero, which matches the lines being at 90°.

Summary

  • Slope m = rise ÷ run = (y₂ − y₁)/(x₂ − x₁) = tan θ.
  • Use y = mx + c, y − y₁ = m(x − x₁) or x/a + y/b = 1, then tidy into ax + by + c = 0.
  • Parallel lines have equal slopes; perpendicular slopes multiply to −1.
  • Solve simultaneously for intersections; d = |ax₁ + by₁ + c|/√(a² + b²) gives point-to-line distance.

Next: Radian Measure and Trigonometric Ratios of Any Angle.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *