Equation in the Form ax + by + c = 0
Move a straight-line equation between y = mx + c and ax + by + c = 0, and read the gradient from either form.
- 6 steps
- 4 min
- 3 syllabuses
Try a real exam question on this
WMA11/01 · Jan 2019 · Q3 · 5 marks · Solve it step by step, the way the examiner marks it.
Loading the animated solution…
See the solution as textText version of the solution
For the line 3x + 5y − 7 = 0, work out its gradient, then get the equation of the perpendicular line through (6, −2) as y = mx + c.
(a) 2 marks
Determine the slope of the line given by 3x + 5y − 7 = 0.
- Understand the question. We are given the equation of the line l one, and we must find its gradient.
- Key words. Gradient means a number that measures how steep a line is.
- Make y the subject. Use the line equation form y equals m x plus c, where m is the gradient.
- Make y the subject: 5y = −3x + 7
- Divide every term by 5. Then the number in front of x is the gradient.
- y = −(3/5)x + 7/5, so the gradient is −3/5
Answer −3/5
(b) 3 marks
Find y = mx + c for the line at right angles to l₁ passing through (6, −2).
- Understand the question. The line l two is perpendicular to l one and passes through (6, minus 2), and we must find its equation in the form y equals m x plus c.
- Key words. Perpendicular means two lines that meet at exactly 90 degrees.
- Gradient means a number that measures how steep a line is.
- Negative reciprocal means flip the fraction and change the sign.
- Find the perpendicular gradient. Use the negative reciprocal of minus three fifths, which is five thirds.
- Why does this work? Perpendicular means at 90 degrees. Turn a line through 90 degrees and its across and up steps swap round, and one of them changes sign.
- So a gradient of up over across becomes minus across over up. Multiply the two gradients and you always get minus 1.
- Perpendicular gradient: m = 5/3
- Use the point and the gradient. A line with gradient m through a point has y minus that y equal to m times (x minus that x).
- Use the point (6, −2): y + 2 = (5/3)(x − 6)
- Expand and simplify. Five thirds times minus 6 is minus 10, then take 2 from both sides.
- y = (5/3)x − 10 − 2 = (5/3)x − 12
Answer y = (5/3)x − 12
The lesson, step by step
Step 1 of 6
One Line, Two Ways to Write It
The same line can be written two ways. They give exactly the same points.
Gradient form
shows m and c
General form
everything on one side
Rule
For : every term on one side, 0 on the other, and a, b and c whole numbers.
Step 2 of 6
From y = mx + c to ax + by + c = 0
Questions often say “give your answer in the form ”. Clear any fraction first, then move everything to one side.
Worked example
- 1
— The line. The is a fraction, and the form needs whole numbers, so clear it first.
- 2
— Times every term by 3, the bottom of the fraction: and .
- 3
— Take 3y from both sides, so one side is 0. Moving the y term keeps the x term positive.
- 4
— Swap the sides. Same equation, now in the order ax + by + c = 0, with a = 2, b = −3, c = 12.
Common mistake
Multiplying only the fraction: . Every term gets multiplied, so the 4 becomes 12.
Step 3 of 6
Gradient From ax + by + c = 0
You cannot read the gradient straight from . Get y on its own first.
Worked example
- 1
— The line. y is not on its own, so the gradient is hidden.
- 2
— Take 3x from both sides, to clear the x term from the left.
- 3
— Add 8 to both sides. Now only the y term is on the left.
- 4
— Divide every term by 4, so y stands alone: .
- 5
— Read them off. The gradient is the number in front of x; the y-intercept is the number on its own.
Common mistake
Saying the gradient is 3. The 3 is only the gradient once y is on its own with nothing in front.
Step 4 of 6
When the Equation Looks Different
Exams often write the line another way, like “3y + 2x = 15”: the y term first and the number on the right. The method does not change: get y on its own.
Worked example
- 1
— The line. y is not alone, so the gradient is hidden.
- 2
— Take 2x from both sides, so only the y term is on the left.
- 3
— Reorder the right side so the x term comes first, like y = mx + c. The minus stays with the 2x.
- 4
— Divide every term by 3, so y stands alone: .
- 5
— Read them off: the gradient is in front of x, the y-intercept is the number on its own.
Key idea
Write the line before the answer. It earns a mark for working even if your final gradient is wrong.
Common mistake
Dividing only the 15 by 3 and writing . Every term is divided, so the gradient is , not −2.
Step 5 of 6
Shortcut: Gradient = −a ÷ b
Textbooks print a shortcut that reads the gradient straight from ax + by + c = 0. Use it to check your rearranging.
Formula
is the number in front of x, the number in front of y, and the number on its own. Each one keeps its sign.
Worked example
- 1
— The line. Everything is on one side with 0 on the other, so the shortcut works.
- 2
— Read the numbers with their signs. The y term is −2y, so b is −2, not 2.
- 3
— Put a and b in the formula. Keep −2 in brackets so its sign is not lost.
- 4
— The minus in front and the minus of −2 cancel: minus divided by minus is plus.
- 5
— Same formula idea for c: put c and b in.
- 6
— Minus divided by minus is plus again, and 8 ÷ 2 = 4. Check: y = 2.5x + 4 gives the same line.
Common mistake
Using the shortcut on 3y + 2x = 15. It only works with 0 on one side, so first write .
Step 6 of 6
Which Method? Read the Question
Which way are you going?
| You see | You do |
| “Give it as ax + by + c = 0” | clear fractions, all to one side |
| Gradient of ax + by + c = 0 | get y on its own |
| Two points, answer as ax + by + c = 0 | Equation of a Line Through Two Points |
| Reading m and c | The Equation y = mx + c |
Key idea
Quick check: for the gradient is . For that is .
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- 4024/12May/Jun 2026 · Q158 marksLine L is 2y + x = 19. Find its gradient and y-intercept, show that the line perpendicular to L through (−1, −5) is y = 2x − 3, and find where the two lines meet.Solve it →
- WMA11/01Jun 2025 · Q57 marksFind the perpendicular line through the origin, its intersection with x − 2y + 25 = 0, then the shortest distance from that line to the origin as a simplified surd.Solve it →
- 4PM1/02RJan 2023 · Q511 marksLine l has gradient −1/12 and goes through A(p, 10) and B(123, 0); work with l and the perpendicular line k through A to find p, equations, and the area of triangle ABC.Solve it →
- 4024/12Oct/Nov 2022 · Q153 marksUsing the line through A(0, 6) and B(p, 0) with equation 3y + 4x = 18, determine p and give the three inequalities for the interior of triangle ABC.Solve it →
- WMA11/01Jan 2022 · Q89 marksWork with line l₁: 2x − 5y + 7 = 0, point A(6, −2), perpendicular line l₂ through A, intersection M, and square ABCD with diagonals meeting at M.Solve it →
- WMA11/01Jun 2021 · Q710 marksFor line l₁ with equation 4y + 3x = 48 and point D(8, 6), find the y-intercept C, the y-intercept E of the perpendicular line l₂, the arc length BE of a 1.8 radian sector, and the area of region CBED.Solve it →
Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.