CSEC Mathematics · relations, functions and graphs
Equation of a Straight Line
Before you start
Recall that the gradient measures steepness as m=x2−x1y2−y1, and the y-intercept is the value c where a line cuts the y-axis at (0,c).
Builds on: Drawing Straight-Line Graphs, Intercepts of Linear Functions, Gradient of a Straight Line
1. The Gradient-Intercept Form: y=mx+c
Every non-vertical straight line can be written in the slope-intercept form:
- m is the gradient (slope) of the line.
- c is the **y-intercept** (the value of y when x=0).
If you are given the gradient m and any point (x1,y1) on the line, you find the equation by substituting the point's coordinates into y=mx+c to solve for c, or by using the point-gradient formula:
Lines parallel to the x-axis have a gradient of zero, giving equations of the form y=c. Vertical lines parallel to the y-axis have an undefined gradient and are written as x=k.
Worked example
A straight line has a gradient of 3 and passes through the point (2,11). Determine the equation of the line in the form y=mx+c.
- Identify the given values: m=3, x=2, and y=11.
- Substitute these into the equation y=mx+c: 11=3(2)+c.
- Multiply to simplify: 11=6+c.
- Solve for c: c=11−6=5.
- Write the final equation using m=3 and c=5: y=3x+5.
Answer: y=3x+5
Quick check
What is the equation of the line with gradient 31 that passes through the point (0,2)?
2. Finding the Equation Given Two Points
When you are given two points (x1,y1) and (x2,y2) on a line, you follow two steps:
1. Calculate the gradient using:
2. Substitute the calculated gradient m and either of the two points into y=mx+c to calculate c.
It does not matter which point you substitute to find c; both give the exact same value.
Worked example
Determine the equation of the line passing through the points P(2,−1) and Q(6,7).
- Calculate the gradient m: m=6−27−(−1)=47+1=48=2.
- Use m=2 and point Q(6,7) in the equation y=mx+c: 7=2(6)+c.
- Simplify and solve for c: 7=12+c⟹c=7−12=−5.
- Write the equation: y=2x−5.
Answer: y=2x−5
Quick check
Find the equation of the straight line passing through (1,4) and (3,10). Give your answer in the form y=mx+c.
3. Parallel and Perpendicular Lines
The relationship between two straight lines depends directly on their gradients:
- Parallel lines run in the same direction and never intersect. They have equal gradients:
- Perpendicular lines intersect at a right angle (90∘). Their gradients are negative reciprocals of each other, meaning their product is −1:
To find the gradient of a given equation, always rearrange it into the form y=mx+c first so you can read off the coefficient of x.
Worked example
The line L1 has equation 2x+y=7. Find the equation of the line L2 which is perpendicular to L1 and passes through the point (4,1).
- Rearrange L1 to the form y=mx+c: y=−2x+7.
- Identify the gradient of L1: m1=−2.
- Find the perpendicular gradient m2: m2=−−21=21.
- Substitute m2=21 and point (4,1) into y=mx+c: 1=21(4)+c.
- Simplify: 1=2+c⟹c=1−2=−1.
- State the equation of L2: y=21x−1 (or x−2y=2).
Answer: y=21x−1
Quick check
Line A has equation y=−4x+3. Which of the following is the gradient of a line perpendicular to line A?
4. The Perpendicular Bisector
The perpendicular bisector of a line segment AB is a line that divides AB into two equal halves at a 90∘ angle.
To find its equation:
1. Find the midpoint M of segment AB:
2. Find the gradient of segment AB (mAB).
3. Find the perpendicular gradient: m⟂=−mAB1.
4. Use the perpendicular gradient m⟂ and the midpoint M to find the equation of the bisector.
Worked example
The points A(−1,4) and B(3,2) are the endpoints of segment AB. Determine the equation of the perpendicular bisector of AB.
- Find the midpoint M of AB: M=(2−1+3,24+2)=(22,26)=(1,3).
- Calculate the gradient of AB: mAB=3−(−1)2−4=4−2=−21.
- Find the perpendicular gradient m⟂: m⟂=−−211=2.
- Substitute m=2 and midpoint (1,3) into y=mx+c: 3=2(1)+c.
- Solve for c: 3=2+c⟹c=1.
- Write the equation: y=2x+1.
Answer: y=2x+1
Quick check
Segment CD joins C(2,5) and D(8,11). What is the y-intercept (c) of its perpendicular bisector?
Common mistakes
- Taking the coefficient of x as the gradient before rearranging into y=mx+c. For example, in 3x+2y=8, the gradient is not 3; you must first rewrite it as y=−23x+4 to get m=−23.
- Forgetting to flip AND negate when finding the perpendicular gradient. The negative reciprocal of 32 is −23, not 23 or −32.
- Using one of the segment endpoints instead of the midpoint when finding the perpendicular bisector equation. The perpendicular bisector must pass through the midpoint.
In the exam
- CSEC awards method marks for writing down the gradient formula and showing substitution; do not compute gradients purely in your head.
- Unless a specific form such as ax+by+c=0 is requested, leaving your answer as y=mx+c with fractional or integer values for m and c earns full marks.
- Always check your final equation by plugging the coordinates of the given point back in to verify that both sides balance.
Key terms
- Gradient (m)
- The measure of steepness of a line, calculated as vertical change divided by horizontal change: x2−x1y2−y1.
- y-intercept (c)
- The value of y at the point where the line cuts the y-axis, having coordinates (0,c).
- Parallel lines
- Lines in the same plane that never meet and have identical gradients (m1=m2).
- Perpendicular lines
- Lines that intersect at right angles (90∘), whose gradients multiply to give −1 (m1×m2=−1).
- Perpendicular bisector
- A line that cuts a given line segment into two equal parts at a 90∘ angle, passing through the midpoint.
Practice
Easier to harder. Use paper for your working.
Practice 1
Which of the following represents a line parallel to y=5x−2 passing through (0,7)?
Practice 2
Line segment GH connects G(1,2) and H(5,10). Find the equation of the line perpendicular to GH that passes through the point (4,1).
Practice 3
A line L1 passes through (12,0) and (0,6). Line L2 is perpendicular to L1 and passes through (0,1). Determine the equation of line L2.
Now try real past-paper questions
3 Paper 2 questions and 3 Paper 1 multiple-choice on this topic. Quelpr marks your working point by point, like an examiner.
- Mathematics Q4 4(b)(ii) · 2 marksA graph shows two straight lines, l₁ and l₂. Line l₁ intercepts the y-axis at (0, 1). Line l₂ intercepts the x and y axes at (12, 0) and (0, 6) respectively. Determine the…
- Mathematics Q4 4(b)(iii) · 3 marksA (-1, 4) and B (3, 2) are the end points of a line segment AB. Determine the equation of the perpendicular bisector of AB.
- Mathematics Q4 4(c)(ii) · 3 marksAnother line segment, JK, is perpendicular to GH and passes through the point (4, 1). Determine the equation of the line JK.
Finished the lesson?
0 of 7 checks right on this device.
Read more
- Collins - Concise Revision Course for CSEC Mathematics, pp. 353, 354
- Mathematics for CSEC, pp. 127, 138
- CSEC Maths Study Guide - Maths Crash Course, pp. 192, 193, 220
- CSEC Maths Study Guide (Revised 2016), p. 44
- CXC Mathematics CSEC Notes Study Guide, p. 44