Level 3 — ProductionCoordinate Geometry

Coordinate Geometry

45 minutes60 marksprintable — key stays hidden on paper

Level: 3 — Production (from-scratch derivations, explain-out-loud, code-from-memory) Time limit: 45 minutes Total marks: 60

Instructions: Show all working. Where a derivation is requested, build it from first principles — quoting the final formula without justification earns no credit. Diagrams encouraged.


Question 1. [10 marks] Starting from the Pythagorean theorem applied to the Cartesian plane, derive from scratch the distance formula for the distance dd between two points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2). (a) Draw/describe the right triangle you construct and label the legs. [4] (b) Complete the derivation to obtain d=(x2x1)2+(y2y1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}. [3] (c) Explain out loud (in words) why squaring the coordinate differences makes the formula independent of the order of the two points. [3]


Question 2. [12 marks] The section formula divides a segment joining A(x1,y1)A(x_1,y_1) and B(x2,y2)B(x_2,y_2) in ratio m:nm:n. (a) Derive the internal section formula point P=(mx2+nx1m+n,my2+ny1m+n)P = \left(\dfrac{mx_2+nx_1}{m+n}, \dfrac{my_2+ny_1}{m+n}\right) using similar triangles. [5] (b) State how the formula changes for external division, and explain why the sign flips. [3] (c) Find the point that divides the segment from A(2,3)A(-2,3) to B(6,5)B(6,-5) internally in ratio 3:13:1. [4]


Question 3. [10 marks] (a) Derive from scratch the formula for the distance from a point P(x0,y0)P(x_0,y_0) to the line ax+by+c=0ax+by+c=0. You may use the foot-of-perpendicular / projection approach; justify each step. [6] (b) Use your formula to find the distance from (3,4)(3,-4) to the line 5x12y+2=05x - 12y + 2 = 0. [4]


Question 4. [10 marks] The general equation of a circle is x2+y2+2gx+2fy+c=0x^2 + y^2 + 2gx + 2fy + c = 0. (a) By completing the square, derive the centre and radius in terms of g,f,cg, f, c. [5] (b) Given the circle x2+y26x+8y11=0x^2 + y^2 - 6x + 8y - 11 = 0, find its centre and radius. [3] (c) State the condition on g,f,cg,f,c for the equation to represent a real circle, and explain why. [2]


Question 5. [10 marks] Consider points A(1,2)A(1,2), B(4,6)B(4,6), C(7,10)C(7,10). (a) Using the coordinate area-of-triangle formula, determine whether A,B,CA,B,C are collinear. Show the formula and the computation. [4] (b) Explain out loud the geometric reason why zero area implies collinearity. [2] (c) Find the equation of the line through AA and BB in standard form ax+by+c=0ax+by+c=0, and verify CC satisfies it. [4]


Question 6. [8 marks] (Code-from-memory) Write, from memory, a short function (pseudocode or Python) named line_through(p1, p2) that:

  • takes two points as tuples,
  • returns the coefficients (a,b,c)(a,b,c) of the line ax+by+c=0ax+by+c=0 through them,
  • and includes a helper that tests whether a third point is on that line. Comment each step explaining the coordinate-geometry reasoning. [8]

End of paper.

Answer keyMark scheme & solutions

Question 1 [10]

(a) [4] Plot A(x1,y1)A(x_1,y_1), B(x2,y2)B(x_2,y_2). Drop perpendiculars to form right triangle with third vertex C(x2,y1)C(x_2, y_1). Horizontal leg AC=x2x1AC = |x_2 - x_1| [2]; vertical leg BC=y2y1BC = |y_2 - y_1| [2].

(b) [3] By Pythagoras, AB2=AC2+BC2AB^2 = AC^2 + BC^2 [1] =(x2x1)2+(y2y1)2= (x_2-x_1)^2 + (y_2-y_1)^2 (absolute values squared drop) [1]. Hence d=(x2x1)2+(y2y1)2d = \sqrt{(x_2-x_1)^2+(y_2-y_1)^2} [1].

(c) [3] Because (x2x1)2=(x1x2)2(x_2-x_1)^2 = (x_1-x_2)^2 [1] (a real number squared equals its negative squared) [1], swapping the labels of the two points leaves each squared term unchanged, so d(A,B)=d(B,A)d(A,B)=d(B,A) — distance is symmetric [1].


Question 2 [12]

(a) [5] Let P(x,y)P(x,y) divide ABAB with AP:PB=m:nAP:PB = m:n. Drop perpendiculars to x-axis; similar triangles give APPB=xx1x2x=mn\dfrac{AP}{PB} = \dfrac{x - x_1}{x_2 - x} = \dfrac{m}{n} [2]. Cross-multiply: n(xx1)=m(x2x)n(x-x_1) = m(x_2-x) [1] x(m+n)=mx2+nx1x=mx2+nx1m+n\Rightarrow x(m+n) = mx_2 + nx_1 \Rightarrow x = \dfrac{mx_2+nx_1}{m+n} [1]. Same with y-coordinates gives y=my2+ny1m+ny = \dfrac{my_2+ny_1}{m+n} [1].

(b) [3] External division: replace nn by n-n, giving P=(mx2nx1mn,my2ny1mn)P=\left(\dfrac{mx_2-nx_1}{m-n}, \dfrac{my_2-ny_1}{m-n}\right) [1]. Sign flips because PP lies outside the segment, so the directed ratio AP:PBAP:PB is negative (the vectors point the same way rather than opposite) [2].

(c) [4] m:n=3:1m:n=3:1, A(2,3)A(-2,3), B(6,5)B(6,-5). x=3(6)+1(2)4=164=4x = \dfrac{3(6)+1(-2)}{4} = \dfrac{16}{4}=4 [2]; y=3(5)+1(3)4=124=3y = \dfrac{3(-5)+1(3)}{4} = \dfrac{-12}{4}=-3 [1]. Point =(4,3)= (4,-3) [1].


Question 3 [10]

(a) [6] Line ax+by+c=0ax+by+c=0 has normal vector n=(a,b)\mathbf{n}=(a,b) [1]. Foot of perpendicular Q=P+tnQ = P + t\mathbf{n} [1]. Since QQ on line: a(x0+ta)+b(y0+tb)+c=0t=ax0+by0+ca2+b2a(x_0+ta)+b(y_0+tb)+c=0 \Rightarrow t = -\dfrac{ax_0+by_0+c}{a^2+b^2} [2]. Distance =tn=ta2+b2= |t|\,|\mathbf{n}| = |t|\sqrt{a^2+b^2} [1] =ax0+by0+ca2+b2= \dfrac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}} [1].

(b) [4] a=5,b=12,c=2a=5,b=-12,c=2; point (3,4)(3,-4). Numerator =5(3)12(4)+2=15+48+2=65=|5(3)-12(-4)+2| = |15+48+2| = 65 [2]. Denominator =25+144=169=13=\sqrt{25+144}=\sqrt{169}=13 [1]. Distance =65/13=5=65/13 = 5 [1].


Question 4 [10]

(a) [5] x2+2gx+y2+2fy=cx^2+2gx + y^2+2fy = -c. Complete squares: (x+g)2g2+(y+f)2f2=c(x+g)^2 - g^2 + (y+f)^2 - f^2 = -c [2] (x+g)2+(y+f)2=g2+f2c\Rightarrow (x+g)^2+(y+f)^2 = g^2+f^2-c [1]. Centre (g,f)(-g,-f) [1], radius g2+f2c\sqrt{g^2+f^2-c} [1].

(b) [3] 2g=6g=32g=-6\Rightarrow g=-3; 2f=8f=42f=8\Rightarrow f=4; c=11c=-11. Centre (3,4)(3,-4) [1]. Radius =9+16(11)=36=6=\sqrt{9+16-(-11)}=\sqrt{36}=6 [2].

(c) [2] Need g2+f2c>0g^2+f^2-c>0 [1] so that r2>0r^2>0 and rr is real/positive; otherwise it's a point (=0=0) or imaginary (<0<0) [1].


Question 5 [10]

(a) [4] Area =12x1(y2y3)+x2(y3y1)+x3(y1y2)=\tfrac12|x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)| [1]. =121(610)+4(102)+7(26)=124+3228=12(0)=0=\tfrac12|1(6-10)+4(10-2)+7(2-6)| = \tfrac12|-4+32-28| = \tfrac12(0)=0 [2]. Area =0=0\Rightarrow collinear [1].

(b) [2] Zero area means the "triangle" is degenerate — the three points cannot enclose any region [1], so they must all lie on a single straight line [1].

(c) [4] Slope AB=6241=43AB = \dfrac{6-2}{4-1}=\dfrac{4}{3} [1]. Line: y2=43(x1)3y6=4x44x3y+2=0y-2=\tfrac43(x-1)\Rightarrow 3y-6=4x-4 \Rightarrow 4x-3y+2=0 [2]. Check C(7,10)C(7,10): 4(7)3(10)+2=2830+2=04(7)-3(10)+2=28-30+2=0[1].


Question 6 [8]

Model answer:

def line_through(p1, p2):
    x1, y1 = p1
    x2, y2 = p2
    # Direction (dx,dy); normal to line is (dy,-dx) => a=dy, b=-dx
    a = y2 - y1          # coefficient of x
    b = x1 - x2          # coefficient of y
    c = -(a*x1 + b*y1)   # force line to pass through p1
    return (a, b, c)
 
def on_line(coeffs, p):
    a, b, c = coeffs
    x, y = p
    return a*x + b*y + c == 0   # point satisfies ax+by+c=0

Mark scheme: correct a,ba,b from coordinate differences [3]; correct cc via substitution [2]; working on_line test [2]; meaningful comments [1].

[
  {"claim":"Section formula point A(-2,3),B(6,-5) ratio 3:1 is (4,-3)","code":"m,n=3,1; x=(m*6+n*(-2))/(m+n); y=(m*(-5)+n*3)/(m+n); result=(x==4 and y==-3)"},
  {"claim":"Distance from (3,-4) to 5x-12y+2=0 is 5","code":"d=abs(5*3-12*(-4)+2)/sqrt(5**2+12**2); result=simplify(d-5)==0"},
  {"claim":"Circle x^2+y^2-6x+8y-11=0 has centre (3,-4), radius 6","code":"g,f,c=-3,4,-11; centre=(-g,-f); r=sqrt(g**2+f**2-c); result=(centre==(3,-4) and r==6)"},
  {"claim":"A(1,2),B(4,6),C(7,10) are collinear (zero area)","code":"area=Rational(1,2)*abs(1*(6-10)+4*(10-2)+7*(2-6)); result=area==0"}
]