Equations of a straight line

About this lesson: Equations of a straight line

In short

The gradient of the line through (x₁, y₁) and (x₂, y₂) is the rise over the run. It equals tan θ, where θ is the angle the line makes with the positive x-axis.

What you'll explore

Gradient: m = (y₂ − y₁)/(x₂ − x₁)
The gradient of the line through (x₁, y₁) and (x₂, y₂) is the rise over the run. It equals tan θ, where θ is the angle the line makes with the positive x-axis.
Forms: Four useful forms
Choose the form that matches what you know: a point and a gradient, two points, the two intercepts, or the general form ax + by + c = 0.
Example: Line through two points
For A(1, 2) and B(4, 8): m = 2, so y − 2 = 2(x − 1), i.e. y = 2x, or 2x − y = 0. Check: B gives 8 = 8.
Explore: Line through a point with gradient m
The line passes through P(2, 1). Change the gradient m and watch the equation and the intercepts change.
Check yourself: Equation
y − y₁ = m(x − x₁).

Also in this lesson

  • Straight lines in detail
  • Common mistakes

Key words

Gradient
Rise over run; tan of the inclination.
Intercept
Where a line meets an axis.
General form
ax + by + c = 0.
Inclination
The angle with the positive x-axis.
Parallel
Equal gradients.
Perpendicular
m₁m₂ = −1.

Sources

  • NIE Sri Lanka, G.C.E. (A/L) Combined Mathematics syllabus, Grade 12 and 13, 2017 (competency level I 18.1–18.2).

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 5 short steps and a 30-question quiz. Free to try. Written and checked by Shalo Lab. Last updated 21 November 2026.

Two points on the same or opposite sides of a line →

All lessons in Unit 21 · The straight line · A/L Combined Maths

A/L Combined Maths past papers 2019–2025: analysis and 10 model papers with answers

මේ පිටුව සිංහලෙන් කියවන්න