5.2 Equations of Straight Lines
A-level Maths Year 1 (AS) · Edexcel 9MA0 · Chapter 5: Straight Line Graphs
A free A-level Maths Year 1 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: the point-gradient form, lines through two points and where lines meet. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Find the equation of a line from its gradient and one point, using y − y₁ = m(x − x₁)
- Find the equation of a line through two given points
- Give answers in the form y = mx + c or ax + by + c = 0 as asked
- Find the point where two lines intersect
- Solve problems involving midpoints and lines in shapes
Key words
- Point form: y − y₁ = m(x − x₁): the line with gradient m through the point (x₁, y₁).
- Midpoint: The point halfway between (x₁, y₁) and (x₂, y₂): ((x₁ + x₂)/2, (y₁ + y₂)/2).
- Intersection: The point where two lines cross. It satisfies both equations.
- Median: In a triangle, the line from a vertex to the midpoint of the opposite side.
One point and the gradient
Every point (x, y) on the line makes the same gradient m with the fixed point (x₁, y₁). Multiplying up gives the key formula.
Key formula: (y − y₁)/(x − x₁) = m, so y − y₁ = m(x − x₁)
Worked example: using the formula
Find the equation of the line with gradient 3 through (2, −5)
y − (−5) = 3(x − 2), so y + 5 = 3x − 6
Answer: y = 3x − 11
Worked example: a fractional gradient
Find the line with gradient −2/5 through (3, 1), in the form ax + by + c = 0
y − 1 = −(2/5)(x − 3). Multiply by 5: 5y − 5 = −2x + 6
Answer: 2x + 5y − 11 = 0
A line through two points
First find the gradient from the two points, then use either point in y − y₁ = m(x − x₁). Check with the other point.
Worked example: two points
Find the equation of the line through (−2, 7) and (4, −2)
m = (−2 − 7)/(4 − (−2)) = (−9)/6 = −3/2
y − 7 = −(3/2)(x + 2), so y = −(3/2)x − 3 + 7 = −(3/2)x + 4
Check (4, −2): −(3/2)(4) + 4 = −2 ✓
Answer: y = −(3/2)x + 4, or 3x + 2y − 8 = 0
Where two lines meet
Solve the two equations simultaneously. Substitution is usually quickest when one equation is already y = …
Worked example: intersection
Find where y = 2x − 1 meets x + 3y = 11
Substitute: x + 3(2x − 1) = 11, so 7x − 3 = 11 and x = 2
y = 2(2) − 1 = 3
Answer: (2, 3)
Lines in shapes
Many questions combine these skills with midpoints. Draw a quick sketch first so you can see which points you need.
Worked example: a median
Triangle ABC has A(1, 4), B(3, −2) and C(7, 6). Find the equation of the median from A.
Midpoint of BC: M = ((3 + 7)/2, (−2 + 6)/2) = (5, 2)
m_(AM) = (2 − 4)/(5 − 1) = −1/2
y − 4 = −(1/2)(x − 1). Multiply by 2: 2y − 8 = −x + 1
Answer: x + 2y − 9 = 0
Common mistakes
- Swapping x₁ and y₁: through (2, 5) the formula is y − 5 = m(x − 2), not y − 2 = m(x − 5).
- Sign slips with negative coordinates: through (−3, 4) it is y − 4 = m(x + 3).
- Forgetting to multiply every term when clearing a fraction.
- Finding only x at an intersection. The answer is a point, so find y too.
- Not checking the equation with the second point.
Revision questions
Try these, then check your answers below each one.
Question 1. Which is the equation of the line with gradient 3 through (2, −1)? (Choose from: y = 3x − 7; y = 3x − 5; y = 3x + 7; y = 3x + 5.)
Answer: y = 3x − 7
Working: y + 1 = 3(x − 2), so y = 3x − 7.
Question 2. Is y − 4 = 2(x + 1) the same line as y = 2x + 6?
Answer: Yes
Working: y = 2x + 2 + 4 = 2x + 6. Yes.
Question 3. A line has gradient −2 and passes through (0, 4). It also passes through (3, k). Find k.
Answer: -2
Working: k = −2(3) + 4 = −2.
Related lessons
- Previous lesson: 5.1 y = mx + c
- Next lesson: 5.3 Parallel and Perpendicular Lines
- In this chapter: 5.4 Length and Area
- In this chapter: 5.5 Modelling with Straight Lines
Continue in the full course
This lesson is section 5.2 of our free A-level Maths Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 1 (AS) course.