📗 SS 2🔢 Mathematics📅 First Term

Gradient of a Straight Line

Hello SS2 learners! Today we will discover how to find the gradient (or slope) of a straight line. The gradient tells us how steep the line is and whether it rises or falls. It is a simple idea that you will use in many maths topics and even in everyday life, like calculating speed.

💡 What is Gradient?

The gradient of a line is the ratio of the vertical change (rise) to the horizontal change (run) between any two points on the line. It is written as m = rise/run. If the line goes up as you move right, the gradient is positive; if it goes down, the gradient is negative.

🧠 How to Calculate the Gradient

Choose two points on the line, say (x1, y1) and (x2, y2). Compute the difference in y‑coordinates (y2 – y1) and the difference in x‑coordinates (x2 – x1). Then m = (y2 – y1) / (x2 – x1). Remember to simplify the fraction if possible.

🔍 Gradient and the Equation of a Line

When the gradient is known, the equation of a straight line can be written in the form y = mx + c, where c is the y‑intercept (the point where the line meets the y‑axis). Knowing m helps you plot the line quickly.

📌 Special Cases

If the line is horizontal, the rise is zero, so the gradient is 0. If the line is vertical, the run is zero and the gradient is undefined (we say it is infinite).

✏️ Worked examples

Example 1: Find the gradient of the line passing through the points (2, 5) and (6, 13).
Solution: Rise = 13 – 5 = 8. Run = 6 – 2 = 4. Gradient m = 8/4 = 2.
Example 2: A road in Lagos falls from a height of 30 m at point A (x = 0) to a height of 10 m at point B (x = 5 km). What is the gradient of the road?
Solution: Rise = 10 – 30 = –20 m (the road falls). Run = 5 km = 5000 m. Gradient m = –20/5000 = –0.004. The road is gently descending.
Example 3: The line y = –3x + 7 intersects the y‑axis at (0, 7). Verify the gradient from two points on the line: (0,7) and (2,1).
Solution: Rise = 1 – 7 = –6. Run = 2 – 0 = 2. Gradient m = –6/2 = –3, which matches the coefficient of x in the equation.
Example 4: What is the gradient of a horizontal line passing through (4, –2) and (10, –2)?
Solution: Rise = –2 – (–2) = 0. Run = 10 – 4 = 6. Gradient m = 0/6 = 0. The line is flat.

⭐ Remember

  • Gradient = rise ÷ run = (y2 – y1)/(x2 – x1).
  • Positive gradient = line rises to the right; negative gradient = line falls to the right.
  • Horizontal line → gradient 0; vertical line → gradient undefined.
  • In y = mx + c, m is the gradient and c is the y‑intercept.
  • Always simplify the gradient fraction.

🙌 Try this

Find the gradient of the line that passes through the points (–3, 4) and (5, –2).

Sign up free to take the exam and save progress

✍️ Sign up free

10 questions · pass mark 50% · Have an account? Log in to take the exam

✨ Lesson written by AI from the Nigerian curriculum. Please tell us if you spot a mistake.