Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Chapter · Coordinate Geometry

Making sense of coordinate geometry

Coordinate geometry is the chapter where algebra and shapes meet: every point becomes a pair of numbers, and every line becomes an equation. Once you see distance, midpoint and gradient as three questions about the same two points, the rest of the chapter, line equations, areas, and loci, falls into place.

What coordinate geometry is really doing

Coordinate geometry does one clever thing: it turns shapes into numbers so that you can answer geometry questions with algebra. A point stops being a dot on paper and becomes a pair (x,y)(x, y); a straight line stops being something you draw and becomes an equation you can solve.

Once that translation is in place, questions like "how far apart are these two points?" or "is this angle a right angle?"

become calculations rather than careful drawings.

Because of that, most of the chapter is built from just two points, A(x1,y1)A(x_{1}, y_{1}) and B(x2,y2)B(x_{2}, y_{2}). Almost everything you are asked is one of three questions about them: how far apart are they, where is their middle, and how steep is the line joining them?

Learn to see those three as a set, and the formulas stop feeling separate.

The building blocks: distance, midpoint, gradient

The distance between two points comes straight from Pythagoras: the horizontal gap is x2x1x_{2}-x_{1}, the vertical gap is y2y1y_{2}-y_{1}, and the straight-line distance is the hypotenuse of that right-angled triangle.

AB=(x2x1)2+(y2y1)2AB = \sqrt{(x_{2}-x_{1})^{2} + (y_{2}-y_{1})^{2}}

The midpoint is just the average of the two xx-values and the average of the two yy-values, the point exactly halfway along.

M=(x1+x22,  y1+y22)M = \left(\frac{x_{1}+x_{2}}{2},\; \frac{y_{1}+y_{2}}{2}\right)

The gradient measures steepness: how much the line rises for each step across. It is "change in yy over change in xx", and keeping the points in the same order top and bottom is what keeps the sign correct.

m=y2y1x2x1m = \frac{y_{2}-y_{1}}{x_{2}-x_{1}}

For example, with A(1,2)A(1, 2) and B(4,6)B(4, 6): the distance is 32+42=25=5\sqrt{3^{2}+4^{2}} = \sqrt{25} = 5, the midpoint is (52,4)\left(\tfrac{5}{2}, 4\right), and the gradient is 6241=43\tfrac{6-2}{4-1} = \tfrac{4}{3}. Three answers, one pair of points.

Parallel, perpendicular, and the equation of a line

Gradient is also the key to how two lines relate. Two lines are parallel when they have the same steepness, and perpendicular when the product of their gradients is 1-1, which means each is the negative reciprocal of the other.

parallel: m1=m2perpendicular: m1m2=1\text{parallel: } m_{1} = m_{2} \qquad\qquad \text{perpendicular: } m_{1}\,m_{2} = -1

Once you have a gradient mm and any point (x1,y1)(x_{1}, y_{1}) the line passes through, you can write its equation directly. This one form handles almost every "find the equation of the line" question in the chapter.

yy1=m(xx1)y - y_{1} = m\,(x - x_{1})
Q1[4 marks]

Find the equation of the straight line through A(2,3)A(2, 3) that is perpendicular to the line joining B(1,1)B(1, 1) and C(5,3)C(5, 3).

Show worked solution

First the gradient of BCBC: mBC=3151=24=12m_{BC} = \dfrac{3-1}{5-1} = \dfrac{2}{4} = \dfrac{1}{2}. Perpendicular means m1m2=1m_{1}m_{2} = -1, so the gradient we need is 2-2.

Using yy1=m(xx1)y - y_{1} = m(x - x_{1}) at A(2,3)A(2,3): y3=2(x2)y - 3 = -2(x - 2), which simplifies to y=2x+7y = -2x + 7.

Areas and loci: where the marks live

Two ideas carry a lot of the marks in this chapter. The first is the area of a polygon from its vertices.

For a triangle with corners (x1,y1)(x_{1}, y_{1}), (x2,y2)(x_{2}, y_{2}), (x3,y3)(x_{3}, y_{3}), the area is given by a formula that many students learn as a neat cross-multiplication pattern:

Area=12x1(y2y3)+x2(y3y1)+x3(y1y2)\text{Area} = \frac{1}{2}\left|\,x_{1}(y_{2}-y_{3}) + x_{2}(y_{3}-y_{1}) + x_{3}(y_{1}-y_{2})\,\right|

The vertical bars mean absolute value, area is never negative, so you take the size and drop any minus sign. The second big idea is a locus: the path traced by a point that moves according to a rule.

You describe the moving point as P(x,y)P(x, y), turn the rule into an equation, and simplify.

For instance, if PP moves so that it is always a distance 5 from the origin, then x2+y2=5\sqrt{x^{2}+y^{2}} = 5, and squaring gives x2+y2=25x^{2}+y^{2}=25, a circle. The whole method of loci is exactly this: write the condition, translate it into xx and yy, and tidy up.

Q2[3 marks]

The points A(1,2)A(1, 2), B(5,4)B(5, 4) and C(3,8)C(3, 8) are the vertices of a triangle. Find its area.

Show worked solution

Use Area=12x1(y2y3)+x2(y3y1)+x3(y1y2)\text{Area} = \frac{1}{2}\left|x_{1}(y_{2}-y_{3}) + x_{2}(y_{3}-y_{1}) + x_{3}(y_{1}-y_{2})\right|. Substituting: 121(48)+5(82)+3(24)=124+306=1220=10\frac{1}{2}\left|1(4-8) + 5(8-2) + 3(2-4)\right| = \frac{1}{2}\left|-4 + 30 - 6\right| = \frac{1}{2}\left|20\right| = 10 square units.

The mistakes that quietly cost marks

The maths here is not hard, but it is fiddly, and most lost marks come from small slips rather than deep misunderstanding. A few are worth guarding against every time.

  • Mixing up xx and yy, or subtracting them in a different order top and bottom in the gradient, keep the same point first throughout.
  • Forgetting the absolute value in the area formula and reporting a negative area.
  • Using m1=m2m_{1}=m_{2} when the question wanted perpendicular (m1m2=1m_{1}m_{2}=-1), or the reverse.
  • Dropping a square or a square root in the distance formula, or squaring only one bracket.

Why laying it out matters

Coordinate geometry appears across Paper 1 (2 hours, 80 marks) and Paper 2 (2 hours 30 minutes, 100 marks), with no Paper 3. Marking is analytic, so writing the formula, then the substitution, then the result on separate lines means each stage earns its method mark.

Even if a sign slips at the end on your non-programmable scientific calculator, the correct working still scores.

How one-to-one teaching can help

Coordinate geometry rewards neat, ordered working more than almost any other chapter, and that is exactly what a one-to-one lesson can shape. Working directly with your child, a teacher can watch how they set out a distance or gradient calculation, catch the sign error or the mixed-up coordinates before it becomes a habit, and show them how to lay out a locus so the marks are there to be claimed.

Our teachers are experienced; lessons are online and taught in English, while SPM papers are set bilingually in Bahasa Melayu and English.

If coordinate geometry is where marks keep slipping away, you are welcome to begin with a one-hour paid trial class at the teacher's own rate (from RM50 per hour, depending on experience). We won't promise a grade, but for a chapter this systematic, a little focused attention on how the working is set out often turns near-misses into full marks.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How do I know if two lines are parallel or perpendicular?

Compare their gradients. Two lines are parallel when their gradients are equal, m1=m2m_{1}=m_{2}.

They are perpendicular when the product of their gradients is 1-1, m1m2=1m_{1}m_{2}=-1, so one gradient is the negative reciprocal of the other. Working out both gradients first, before deciding, avoids the common mix-up between the two conditions.

What is a locus in coordinate geometry?

A locus is the path traced by a point that moves according to a fixed rule. You call the moving point P(x,y)P(x, y), write its condition as an equation, and simplify.

For example, a point always a distance 5 from the origin satisfies x2+y2=5\sqrt{x^{2}+y^{2}}=5, which becomes x2+y2=25x^{2}+y^{2}=25, a circle. Every locus question is that same three-step method.

Why is there an absolute value in the area formula?

Because area cannot be negative. The formula 12x1(y2y3)+x2(y3y1)+x3(y1y2)\frac{1}{2}\left|x_{1}(y_{2}-y_{3})+x_{2}(y_{3}-y_{1})+x_{3}(y_{1}-y_{2})\right| can produce a negative number depending on the order you list the vertices, so the absolute value bars keep only the size.

Forgetting them and reporting a negative area is a common, easily avoided slip.

How do I avoid careless mistakes in coordinate geometry?

Keep your working ordered and consistent: always put the same point first when subtracting in the distance and gradient formulas, write the formula before substituting numbers, and check that a negative sign hasn't gone missing. Because marking is analytic, clear line-by-line working also protects method marks even if the final number slips.

Source:SRC-FORMAT

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply