Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Worked examples · Coordinate Geometry

Coordinate Geometry, Worked Examples (medium)

These medium Coordinate Geometry examples put gradients to work: finding the equation of a perpendicular line through a point, using the parallel condition to find an unknown coordinate, and calculating the area of a triangle straight from its vertices. Try each on paper first, then check every line against our full solution.

What these examples cover

These medium Coordinate Geometry examples take the basics one clear step further. You already know how to read a gradient; now you use it to decide when two lines are perpendicular or parallel and to build a line's equation from that condition, and you turn a set of vertices straight into an area.

Each question uses small, exact numbers so the method stays visible, but the working has more moving parts than the easy set, a reciprocal gradient here, a run of signs to track there. Attempt each fully on paper before reading the solution, and when you check, look closely at the join between steps: that is where medium questions are usually won or lost.

Worked examples

Work through all three. Attempt each fully before reading the matching solution, and notice how a single reliable habit, write the condition first, then substitute one value at a time, carries you through perpendicular lines, parallel lines and an area alike.

Q1[3 marks]

A straight line L1L_{1} has equation y=3x4y=3x-4. The line L2L_{2} is perpendicular to L1L_{1} and passes through the point (6,1)(6, 1).

Find the equation of L2L_{2} in the form y=mx+cy=mx+c.

Show worked solution

Read the gradient of L1L_{1} straight from its equation: in y=3x4y=3x-4 the coefficient of xx is the gradient, so m1=3m_{1}=3.

Perpendicular gradients multiply to 1-1, so the gradient of L2L_{2} is the negative reciprocal of 33:

m1m2=1    m2=1m1=13m_{1}\,m_{2}=-1 \;\Rightarrow\; m_{2}=-\frac{1}{m_{1}}=-\frac{1}{3}

Now use the point–gradient form yy1=m(xx1)y-y_{1}=m(x-x_{1}) with m2=13m_{2}=-\tfrac{1}{3} and the point (6,1)(6, 1):

y1=13(x6)y-1=-\frac{1}{3}(x-6)

Expand the bracket, note that 13×(6)=+2-\tfrac{1}{3}\times(-6)=+2, and make yy the subject:

y1=13x+2    y=13x+3y-1=-\frac{1}{3}x+2 \;\Rightarrow\; y=-\frac{1}{3}x+3

Answer

The line is y=13x+3y=-\tfrac{1}{3}x+3. Two quick checks: the gradients satisfy 3×(13)=13\times(-\tfrac{1}{3})=-1, so the lines are perpendicular; and at x=6x=6, y=13(6)+3=2+3=1y=-\tfrac{1}{3}(6)+3=-2+3=1, so L2L_{2} passes through (6,1)(6, 1).

Q2[3 marks]

The straight line joining P(2,k)P(2, k) and Q(6,11)Q(6, 11) is parallel to the straight line joining R(1,0)R(1, 0) and S(3,4)S(3, 4). Find the value of kk.

Show worked solution

Parallel lines have equal gradients, so the plan is to write both gradients and set them equal. Start with the line RSRS, where both endpoints are fully known:

mRS=4031=42=2m_{RS}=\frac{4-0}{3-1}=\frac{4}{2}=2

Now write the gradient of PQPQ in terms of kk, subtracting in the same order top and bottom:

mPQ=11k62=11k4m_{PQ}=\frac{11-k}{6-2}=\frac{11-k}{4}

Set the two gradients equal because the lines are parallel, then solve the resulting equation for kk:

11k4=2    11k=8    k=3\frac{11-k}{4}=2 \;\Rightarrow\; 11-k=8 \;\Rightarrow\; k=3

Answer

k=3k=3. Check by substituting back: with k=3k=3, mPQ=1134=84=2m_{PQ}=\dfrac{11-3}{4}=\dfrac{8}{4}=2, which equals mRSm_{RS}, so PQPQ is parallel to RSRS as required.

Q3[3 marks]

The vertices of a triangle are A(1,1)A(1, 1), B(5,2)B(5, 2) and C(3,6)C(3, 6). Find the area of triangle ABCABC.

Show worked solution

Use the formula that reads the area straight from the vertices. List the coordinates in order around the triangle and apply the 'multiply across, then subtract' pattern:

Area=12xA(yByC)+xB(yCyA)+xC(yAyB)\text{Area}=\frac{1}{2}\bigl|\,x_{A}(y_{B}-y_{C})+x_{B}(y_{C}-y_{A})+x_{C}(y_{A}-y_{B})\,\bigr|

Substitute A(1,1)A(1, 1), B(5,2)B(5, 2) and C(3,6)C(3, 6), taking care with each difference inside the brackets:

Area=121(26)+5(61)+3(12)\text{Area}=\frac{1}{2}\bigl|\,1(2-6)+5(6-1)+3(1-2)\,\bigr|

Work out the brackets, then the products, then add inside the modulus:

Area=124+253=12(18)=9\text{Area}=\frac{1}{2}\bigl|\,-4+25-3\,\bigr|=\frac{1}{2}\,(18)=9

Answer

The area is 99 square units. Check by a second route using edge vectors from AA: AB=(4,1)\vec{AB}=(4, 1) and AC=(2,5)\vec{AC}=(2, 5), so the area is 124×51×2=12202=9\tfrac{1}{2}\,|4\times5-1\times2|=\tfrac{1}{2}\,|20-2|=9, which agrees.

Q4[3 marks]

The distance between the points A(1,2)A(1, 2) and B(4,k)B(4, k) is 55 units. Find the possible values of kk.

Show worked solution

Use the distance formula AB=(x2x1)2+(y2y1)2AB=\sqrt{(x_{2}-x_{1})^{2}+(y_{2}-y_{1})^{2}}, substitute the coordinates of AA and BB, and square both sides to remove the root.

(41)2+(k2)2=52(4-1)^{2}+(k-2)^{2}=5^{2}

Simplify the left side, then isolate the squared term.

9+(k2)2=25    (k2)2=169+(k-2)^{2}=25 \;\Rightarrow\; (k-2)^{2}=16

Take the square root of both sides, keeping both the positive and negative root.

k2=±4    k=6 or k=2k-2=\pm4 \;\Rightarrow\; k=6 \text{ or } k=-2

Answer

k=6k=6 or k=2k=-2. Check: with k=6k=6, B(4,6)B(4,6) gives AB2=(41)2+(62)2=9+16=25AB^{2}=(4-1)^{2}+(6-2)^{2}=9+16=25, so AB=5AB=5; the same check works for k=2k=-2 since (22)2=16(-2-2)^{2}=16 too.

Q5[4 marks]

The point PP divides the line segment joining A(2,3)A(2, 3) and B(8,15)B(8, 15) such that AP:PB=1:2AP:PB=1:2. Find the coordinates of PP.

Show worked solution

Use the formula for a point dividing a line segment in a given ratio. If PP divides ABAB so that AP:PB=m:nAP:PB=m:n, then P=(mx2+nx1m+n, my2+ny1m+n)P=\left(\dfrac{mx_{2}+nx_{1}}{m+n},\ \dfrac{my_{2}+ny_{1}}{m+n}\right).

Here m=1m=1, n=2n=2, A(2,3)A(2,3) and B(8,15)B(8,15).

P=(1(8)+2(2)1+2, 1(15)+2(3)1+2)P=\left(\frac{1(8)+2(2)}{1+2},\ \frac{1(15)+2(3)}{1+2}\right)

Work out each numerator, then divide by 33.

P=(8+43, 15+63)=(123, 213)=(4,7)P=\left(\frac{8+4}{3},\ \frac{15+6}{3}\right)=\left(\frac{12}{3},\ \frac{21}{3}\right)=(4, 7)

Answer

P=(4,7)P=(4, 7). Check: AP=(42)2+(73)2=20AP=\sqrt{(4-2)^{2}+(7-3)^{2}}=\sqrt{20} and PB=(84)2+(157)2=80=220PB=\sqrt{(8-4)^{2}+(15-7)^{2}}=\sqrt{80}=2\sqrt{20}, so AP:PB=1:2AP:PB=1:2 as required.

Q6[3 marks]

Find the coordinates of the point of intersection of the straight lines y=2x1y=2x-1 and x+y=8x+y=8.

Show worked solution

The point of intersection lies on both lines, so substitute y=2x1y=2x-1 into x+y=8x+y=8 and solve for xx.

x+(2x1)=8    3x1=8    x=3x+(2x-1)=8 \;\Rightarrow\; 3x-1=8 \;\Rightarrow\; x=3

Substitute x=3x=3 into y=2x1y=2x-1 to find the matching yy-value.

y=2(3)1=5y=2(3)-1=5

Answer

The lines meet at (3,5)(3, 5). Check: substituting into the second equation gives x+y=3+5=8x+y=3+5=8, which is correct.

Q7[4 marks]

A point P(x,y)P(x, y) moves such that its distance from the fixed point A(3,2)A(3, -2) is always 55 units. Find the equation of the locus of PP, giving your answer in the form x2+y2+px+qy+r=0x^{2}+y^{2}+px+qy+r=0.

Show worked solution

Write the distance PAPA using the distance formula and set it equal to 55, then square both sides to clear the root.

(x3)2+(y(2))2=52    (x3)2+(y+2)2=25(x-3)^{2}+(y-(-2))^{2}=5^{2} \;\Rightarrow\; (x-3)^{2}+(y+2)^{2}=25

Expand both squared brackets.

x26x+9+y2+4y+4=25x^{2}-6x+9+y^{2}+4y+4=25

Collect like terms and move the constant across so the equation equals zero.

x2+y26x+4y+1325=0    x2+y26x+4y12=0x^{2}+y^{2}-6x+4y+13-25=0 \;\Rightarrow\; x^{2}+y^{2}-6x+4y-12=0

Answer

The locus is x2+y26x+4y12=0x^{2}+y^{2}-6x+4y-12=0. Check: completing the square returns (x3)2+(y+2)2=25(x-3)^{2}+(y+2)^{2}=25, a circle of radius 55 centred at A(3,2)A(3, -2), which matches PA=5PA=5.

Q8[3 marks]

The points A(1,2)A(1, 2), B(3,6)B(3, 6) and C(k,14)C(k, 14) are collinear. Find the value of kk.

Show worked solution

Collinear points lie on the same straight line, so the gradient of ABAB must equal the gradient of BCBC. Find mABm_{AB} first.

mAB=6231=42=2m_{AB}=\frac{6-2}{3-1}=\frac{4}{2}=2

Write mBCm_{BC} in terms of kk and set it equal to mABm_{AB}.

mBC=146k3=8k3=2m_{BC}=\frac{14-6}{k-3}=\frac{8}{k-3}=2

Solve the resulting equation for kk.

8=2(k3)    8=2k6    2k=14    k=78=2(k-3) \;\Rightarrow\; 8=2k-6 \;\Rightarrow\; 2k=14 \;\Rightarrow\; k=7

Answer

k=7k=7. Check: with C(7,14)C(7, 14), mAC=14271=126=2m_{AC}=\frac{14-2}{7-1}=\frac{12}{6}=2, equal to mABm_{AB}, confirming the three points are collinear.

Across these three, the pattern is the same: name the relationship first, perpendicular, parallel, or an area from vertices, write the matching formula, and only then substitute the numbers. Deciding the method before touching the arithmetic is exactly what keeps medium questions from turning into guesswork, and it is a habit worth rehearsing until it becomes automatic.

Key method points

These three examples rehearse the gradient and area tools that sit at the centre of Coordinate Geometry. Keep the following points in mind as you practise more.

  • Read a gradient straight from y=mx+cy=mx+c: it is the coefficient of xx.
  • Parallel lines have equal gradients (m1=m2m_{1}=m_{2}); perpendicular lines have gradients whose product is 1-1, so m2=1m1m_{2}=-\tfrac{1}{m_{1}}, the negative reciprocal.
  • To find an unknown coordinate, write the gradient in terms of the unknown, set it equal to the known gradient, and solve.
  • The area of a triangle from its vertices is 12xA(yByC)+xB(yCyA)+xC(yAyB)\tfrac{1}{2}\left|x_{A}(y_{B}-y_{C})+x_{B}(y_{C}-y_{A})+x_{C}(y_{A}-y_{B})\right|; the modulus keeps the area positive whatever order you list the points.
  • Always finish an equation-of-a-line answer by checking that the given point satisfies it.
  • Because marking is analytic, a correct condition or area formula with the right substitution earns method marks even if a later step slips.

How a teacher helps

At medium level the marks usually turn on a single decision, is the relationship parallel or perpendicular, and which gradient goes where. In a one-to-one lesson our teacher makes that decision explicit, so you name the condition before you reach for a formula, and slips like forgetting the negative reciprocal simply stop happening.

Because our teachers are experienced, you work with someone who can show two routes to the same area and let you pick the one you trust. Lessons are taught in English, while SPM papers are set in both Malay and English, so the notation reads the same to you either way.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How do I find a perpendicular gradient quickly?

Take the negative reciprocal: flip the fraction and change the sign. So 33 becomes 13-\tfrac{1}{3}, and 25-\tfrac{2}{5} becomes +52+\tfrac{5}{2}.

A fast check is that the two gradients must multiply to 1-1.

Does the order of the vertices matter in the area formula?

The modulus makes the final area positive whichever way you go round, so the answer is the same. What does matter is being consistent, use the same going-around order for all three terms, or a difference can end up with the wrong sign.

How do I know whether to set gradients equal or make their product 1-1?

Read the relationship in the question. Parallel means equal gradients; perpendicular means the product of the gradients is 1-1.

Naming which one applies before you start is half the work.

What if the area is negative before I take the modulus?

That is normal. The sign only records the direction you listed the points (clockwise or anticlockwise); it is not part of the area.

Take the absolute value and the area is the positive result.

Source:SRC-DSKP-EN

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