Skip to main content
SingaporeMathsSyllabus dot point

How do we work with the equation of a straight line in the coordinate plane?

Find the equation of a straight line from given conditions, and use gradients to test for parallel and perpendicular lines

A focused answer to the O-Level E-Maths outcome on the straight line in coordinate geometry. Finding a line's equation from points or a point and gradient, and the gradient conditions for parallel and perpendicular lines.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to find the equation of a straight line from given conditions in the coordinate plane, and to use gradients to decide whether two lines are parallel or perpendicular. This applies the straight-line ideas from the graphs strand to coordinate geometry problems.

The answer

The equation of a line

A straight line has equation y=mx+cy = mx + c, with gradient mm and yy-intercept cc. To determine it you need either two points, or one point and the gradient. From two points, compute the gradient, then substitute one point to find cc.

Using a point and a gradient

Given a gradient mm and a point (x1,y1)(x_1, y_1), substitute directly into y=mx+cy = mx + c to find cc, or use the point-gradient relationship yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1) and rearrange into the required form. Both routes give the same equation.

Parallel lines

Two lines are parallel exactly when their gradients are equal. So a line parallel to y=3xβˆ’1y = 3x - 1 has gradient 33, differing only in its intercept. Comparing gradients is the test for parallelism.

Perpendicular lines

Two lines are perpendicular when the product of their gradients is βˆ’1-1:

m1Γ—m2=βˆ’1m_1 \times m_2 = -1

So the gradient of a perpendicular line is the negative reciprocal of the original gradient. A line perpendicular to one of gradient 23\dfrac{2}{3} has gradient βˆ’32-\dfrac{3}{2}.

Finding where two lines intersect

A natural follow-on is finding the point where two lines cross, which you do by solving their equations simultaneously. Set the two expressions for yy equal (or use elimination), solve for xx, then substitute back to get yy. The intersection of y=2x+1y = 2x + 1 and y=βˆ’x+7y = -x + 7 comes from 2x+1=βˆ’x+72x + 1 = -x + 7, so 3x=63x = 6, x=2x = 2, and y=5y = 5, giving the point (2,5)(2, 5). This single skill underlies many coordinate-geometry tasks, such as finding the foot of a perpendicular or the vertex of a shape, because those points are always intersections of two lines you can write down.

Reading the gradient from the general form

E-Maths sometimes gives a line as ax+by=cax + by = c rather than y=mx+cy = mx + c, and you cannot read the gradient off it directly. Rearrange to make yy the subject first: from 3x+2y=123x + 2y = 12, you get y=βˆ’32x+6y = -\tfrac{3}{2}x + 6, so the gradient is βˆ’32-\tfrac{3}{2}. Only after this rearrangement can you apply the parallel or perpendicular tests. Converting any line into gradient-intercept form before comparing gradients is a small but essential habit, since a sign error during rearrangement would flip every later conclusion about parallel or perpendicular.

Examples in context

Example 1. The perpendicular from a point. Finding the shortest path from a point to a line means constructing the perpendicular line through the point, which uses the negative-reciprocal gradient. This is the basis of finding a perpendicular distance.

Example 2. Sides of a rectangle. In a rectangle drawn on coordinate axes, adjacent sides are perpendicular and opposite sides are parallel. Checking gradients confirms the shape, a common coordinate-geometry verification.

Try this

Q1. State the gradient of a line perpendicular to y=4xβˆ’3y = 4x - 3. [1 mark]

  • Cue. Negative reciprocal of 44 is βˆ’14-\dfrac{1}{4}.

Q2. Find the equation of the line with gradient βˆ’3-3 through (2,1)(2, 1). [2 marks]

  • Cue. 1=βˆ’3(2)+c1 = -3(2) + c, so c=7c = 7, giving y=βˆ’3x+7y = -3x + 7.

Q3. Are the lines y=2x+1y = 2x + 1 and y=2xβˆ’5y = 2x - 5 parallel, perpendicular or neither? [1 mark]

  • Cue. Equal gradients of 22, so they are parallel.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original4 marksA line passes through the point (2,3)(2, 3) and is perpendicular to the line y=12x+4y = \dfrac{1}{2}x + 4. Find the equation of this line.
Show worked answer β†’

The given line has gradient 12\dfrac{1}{2}. A perpendicular line has gradient equal to the negative reciprocal: βˆ’1(1/2)=βˆ’2-\dfrac{1}{(1/2)} = -2.

Use y=βˆ’2x+cy = -2x + c through (2,3)(2, 3): 3=βˆ’2(2)+c3 = -2(2) + c, so 3=βˆ’4+c3 = -4 + c and c=7c = 7.

The equation is y=βˆ’2x+7y = -2x + 7.

Markers reward the negative reciprocal for the perpendicular gradient, substituting the point to find cc, and the final equation.

Original3 marksThe points A(1,2)A(1, 2) and B(5,10)B(5, 10) are given. Find the equation of the line ABAB in the form y=mx+cy = mx + c.
Show worked answer β†’

Gradient of ABAB: m=10βˆ’25βˆ’1=84=2m = \dfrac{10 - 2}{5 - 1} = \dfrac{8}{4} = 2.

Use y=2x+cy = 2x + c with A(1,2)A(1, 2): 2=2(1)+c2 = 2(1) + c, so c=0c = 0.

The equation is y=2xy = 2x.

Markers reward the gradient calculation, substituting a point to find cc, and the equation.

Related dot points