Equations of Straight Lines: Gradient, y − y₁ = m(x − x₁) and ax + by + d = 0 | Analysis and Approaches IB Maths notes
Free preview: Equations of Straight Lines: Gradient, y − y₁ = m(x − x₁) and ax + by + d = 0
Gradient: Measuring How Steep a Line Is
Analysis and approaches and Applications and interpretation: SL and HL (common content, SL 2.1)
Let's start with a question. If I tell you a straight line passes through (1, 2), can you draw it?
- Not yet. Infinitely many lines pass through (1, 2). They spin round that point like the hands of a clock.
- But if I also tell you how steep it is, there is only one line. So a straight line is fixed by just two facts: how steep it is, and one point on it.
- The equation of a line is a rule that every point (x, y) on the line obeys, and no other point does.
- This note shows how to turn "steepness + a point" into that rule, and how to move between the different ways of writing it.
What gradient means
- The gradient tells you how much y goes up for every 1 unit you move to the right.
- Take two points on the line, and . The little numbers 1 and 2 are just labels: "first point" and "second point".
- The change in y is the rise. The change in x is the run.
- Gradient = rise ÷ run, exactly as in your earlier courses.
💡 In plain words
- Subtract the y values, subtract the x values, divide.
- Either point can go first, but take the x values in the same order as the y values.
- The letter m is the usual name for a gradient.
👀 Watch me do it: the gradient of the line through P(−2, 7) and Q(4, −5)
| What I write | Why I do it |
|---|---|
| Let and . | Label the points first, so I can't mix them up. |
| Second minus first on top, and second minus first on the bottom. Same order. | |
| Careful with the double negative: . | |
| Simplify. | |
| Check: from P to Q, x goes right 6 and y goes down 12. Down 2 for every 1 across. | A negative answer should mean the line goes downhill, and it does. |

What the picture shows
- Left: the y values are taken B minus A but the x values A minus B. That gives , and the line misses B.
- Right: both differences go the same way, 8 − 2 over 5 − 1, giving .
- Mixing the order only ever flips the sign, so a quick sketch tells you if the sign is wrong.
What the sign tells you
| Gradient | What the line does | Equation looks like |
|---|---|---|
| Positive | Goes up from left to right | , for example |
| Negative | Goes down from left to right | , for example |
| Zero | Horizontal (flat): y never changes | for some number k |
| No gradient | Vertical: x never changes | for some number k |
- Why does a vertical line have no gradient? The run is 0, and you cannot divide by 0.
- Notice the swap that catches people: the vertical line has equation x = k, and the horizontal line has equation y = k.

What the picture shows
- x = 3 is every point whose x coordinate is 3, such as (3, −2), (3, 1) and (3, 4).
- Those points stack straight up, so the line is vertical, not horizontal.
- A horizontal line keeps y fixed instead, so it is y = 3.
📝 Same order, top and bottom
- Right: (B minus A on top and bottom).
- Wrong: (B minus A on top, A minus B on the bottom).
- Brackets help with negatives: write , not .
✏️ YOUR TURN 1
Try this first:
Find the gradient of the line through each pair of points.
- (2, 3) and (6, 11)
- (−1, 4) and (3, −8)
- (5, −2) and (−3, −2)
- (4, 1) and (4, 9)
Answer:
- .
- .
- . The y values are equal, so the line is horizontal: y = −2.
- The run is , so there is no gradient. The x values are equal, so the line is vertical: x = 4.
✏️ YOUR TURN 2
Try this first:
The line through A(3, k) and B(7, 1) has gradient . Find k.
Answer:
- Gradient: .
- Set it equal to : .
- Multiply both sides by 4: , so .
- Check: from (3, 3) to (7, 1) the rise is −2 and the run is 4, giving .
The Form y = mx + c
Now we know how steep a line is. Next we need its equation. Let's look at one line closely and see the rule hiding in it.

Following the graph
- The line passes through A(1, 2) and B(5, 8).
- From A to B, x goes from 1 to 5, so the run is .
- In the same move, y goes from 2 to 8, so the rise is .
- Gradient = . So every step of 1 to the right takes the line up by 1.5.
- The line crosses the y-axis at (0, 0.5). This point is the y-intercept.
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in Straight lines and functions (SL 2.1, 2.2, 2.5)
- Equations of Straight Lines: Gradient, y − y₁ = m(x − x₁) and ax + by + d = 0
- Parallel and Perpendicular Lines, Distances, Midpoints and Intersections
- Straight-Line Models: Using y = mx + c in Real Contexts
- What Makes a Function: Domain, Range, One-One and Many-One
- Composite Functions: Finding (f∘g)(x) and Its Domain
- Inverse Functions and Their Graphs: Reflecting in y = x
What's inside for this topic
6 teacher notes, 61 practice questions, 37 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Next note: Parallel and Perpendicular Lines, Distances, Midpoints and Intersections