Skip to main content

Coordinate Geometry

Distance and Midpoint

Distance Formula

The distance between points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2):

d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

This follows directly from the Pythagorean theorem.

Midpoint Formula

The midpoint MM of ABAB:

M=(x1+x22,  y1+y22)M = \left(\frac{x_1 + x_2}{2},\; \frac{y_1 + y_2}{2}\right)

Worked Example 1

Find the distance and midpoint of A(2,3)A(2, -3) and B(6,5)B(6, 5).

d=(62)2+(5(3))2=16+64=80=45d = \sqrt{(6 - 2)^2 + (5 - (-3))^2} = \sqrt{16 + 64} = \sqrt{80} = 4\sqrt{5}

M=(2+62,  3+52)=(4,1)M = \left(\frac{2 + 6}{2},\; \frac{-3 + 5}{2}\right) = (4, 1)

Division of a Line Segment

The point PP that divides ABAB in the ratio m:nm : n (measured from AA towards BB):

P=(nx1+mx2m+n,  ny1+my2m+n)P = \left(\frac{nx_1 + mx_2}{m + n},\; \frac{ny_1 + my_2}{m + n}\right)


Equations of Lines

Slope (Gradient)

The slope of the line through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

Various Forms

FormEquationWhen to Use
Slope-intercepty=mx+cy = mx + cSlope and yy-intercept known
Point-slopeyy1=m(xx1)y - y_1 = m(x - x_1)Slope and a point known
Two-pointyy1y2y1=xx1x2x1\dfrac{y - y_1}{y_2 - y_1} = \dfrac{x - x_1}{x_2 - x_1}Two points known
GeneralAx+By+C=0Ax + By + C = 0Standard form

Parallel and Perpendicular Lines

Two lines with slopes m1m_1 and m2m_2:

  • Parallel: m1=m2m_1 = m_2
  • Perpendicular: m1m2=1m_1 \cdot m_2 = -1

Worked Example 2

Find the equation of the line through A(1,3)A(1, 3) perpendicular to the line 2x3y+6=02x - 3y + 6 = 0.

The given line: 3y=2x+6    y=23x+23y = 2x + 6 \implies y = \frac{2}{3}x + 2. Slope: m=2/3m = 2/3.

Perpendicular slope: m=3/2m_\perp = -3/2.

y3=32(x1)    2(y3)=3(x1)    2y6=3x+3y - 3 = -\frac{3}{2}(x - 1) \implies 2(y - 3) = -3(x - 1) \implies 2y - 6 = -3x + 3

3x+2y9=03x + 2y - 9 = 0

Worked Example 3

Find the distance from the point P(3,4)P(3, 4) to the line 4x+3y10=04x + 3y - 10 = 0.

d=Ax0+By0+CA2+B2=4(3)+3(4)1016+9=12+12105=145=2.8d = \frac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}} = \frac{|4(3) + 3(4) - 10|}{\sqrt{16 + 9}} = \frac{|12 + 12 - 10|}{5} = \frac{14}{5} = 2.8


Intersection of Lines

Two lines A1x+B1y+C1=0A_1x + B_1y + C_1 = 0 and A2x+B2y+C2=0A_2x + B_2y + C_2 = 0 intersect at a unique point if they are not parallel. Solve the system of equations simultaneously.

Worked Example 4

Find the intersection of 3xy+2=03x - y + 2 = 0 and x+2y7=0x + 2y - 7 = 0.

From the first: y=3x+2y = 3x + 2. Substituting: x+2(3x+2)7=0    x+6x+47=0    7x=3x + 2(3x + 2) - 7 = 0 \implies x + 6x + 4 - 7 = 0 \implies 7x = 3.

x=3/7,y=3(3/7)+2=9/7+14/7=23/7x = 3/7, \quad y = 3(3/7) + 2 = 9/7 + 14/7 = 23/7

Intersection: (37,237)\left(\dfrac{3}{7}, \dfrac{23}{7}\right).


Equations of Circles

Standard Form

A circle with centre (a,b)(a, b) and radius rr:

(xa)2+(yb)2=r2(x - a)^2 + (y - b)^2 = r^2

General Form

Expanding: x2+y22ax2by+(a2+b2r2)=0x^2 + y^2 - 2ax - 2by + (a^2 + b^2 - r^2) = 0

x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0

Centre: (D2,E2)\left(-\dfrac{D}{2}, -\dfrac{E}{2}\right), Radius: r=D24+E24Fr = \sqrt{\dfrac{D^2}{4} + \dfrac{E^2}{4} - F}

Worked Example 5

Find the centre and radius of x2+y26x+4y12=0x^2 + y^2 - 6x + 4y - 12 = 0.

Completing the square:

x26x+y2+4y=12x^2 - 6x + y^2 + 4y = 12

(x3)29+(y+2)24=12(x - 3)^2 - 9 + (y + 2)^2 - 4 = 12

(x3)2+(y+2)2=25(x - 3)^2 + (y + 2)^2 = 25

Centre: (3,2)(3, -2), Radius: r=5r = 5.


Circle-Line Intersection

Tangent to a Circle at a Point

The tangent to (xa)2+(yb)2=r2(x - a)^2 + (y - b)^2 = r^2 at a point (x1,y1)(x_1, y_1) on the circle:

(x1a)(xa)+(y1b)(yb)=r2(x_1 - a)(x - a) + (y_1 - b)(y - b) = r^2

Equivalently, the tangent is perpendicular to the radius at the point of contact.

Finding Intersection Points

Substitute the linear equation into the circle equation to obtain a quadratic in one variable. Use the discriminant to determine the nature of the intersection:

Δ\DeltaIntersection
Δ>0\Delta \gt 0Two distinct points (secant)
Δ=0\Delta = 0One point (tangent)
Δ<0\Delta \lt 0No intersection

Worked Example 6

Find the equation of the tangent to x2+y2=25x^2 + y^2 = 25 at the point (3,4)(3, 4).

Using the tangent formula: x1x+y1y=r2x_1 x + y_1 y = r^2:

3x+4y=253x + 4y = 25

Alternatively, the radius has slope 4/34/3, so the tangent has slope 3/4-3/4:

y4=34(x3)    4(y4)=3(x3)    4y16=3x+9    3x+4y25=0y - 4 = -\frac{3}{4}(x - 3) \implies 4(y - 4) = -3(x - 3) \implies 4y - 16 = -3x + 9 \implies 3x + 4y - 25 = 0


Areas

Area of a Triangle (Coordinate Formula)

Given vertices A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2), C(x3,y3)C(x_3, y_3):

Area=12x1(y2y3)+x2(y3y1)+x3(y1y2)\mathrm{Area} = \frac{1}{2}|x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)|

Area of a Polygon

For a polygon with vertices (x1,y1),(x2,y2),,(xn,yn)(x_1, y_1), (x_2, y_2), \ldots, (x_n, y_n) listed in order (clockwise or counterclockwise):

Area=12i=1n(xiyi+1xi+1yi)\mathrm{Area} = \frac{1}{2}\left|\sum_{i=1}^{n} (x_i y_{i+1} - x_{i+1} y_i)\right|

where (xn+1,yn+1)=(x1,y1)(x_{n+1}, y_{n+1}) = (x_1, y_1).

Worked Example 7

Find the area of the triangle with vertices A(1,2)A(1, 2), B(5,6)B(5, 6), C(3,1)C(3, -1).

Area=121(6(1))+5((1)2)+3(26)=127+(15)+(12)=1220=10\mathrm{Area} = \frac{1}{2}|1(6 - (-1)) + 5((-1) - 2) + 3(2 - 6)| = \frac{1}{2}|7 + (-15) + (-12)| = \frac{1}{2}|-20| = 10


Common Pitfalls

  • Forgetting the absolute value in the distance-from-point-to-line formula.
  • Confusing the perpendicular slope formula: m1m2=1m_1 m_2 = -1, not m1m2=1m_1 m_2 = 1.
  • When finding the centre from the general circle equation, forgetting the negative signs: centre is (D/2,E/2)(-D/2, -E/2), not (D/2,E/2)(D/2, E/2).
  • Forgetting to check that r2>0r^2 \gt 0 when converting the general form to the standard form. If r2<0r^2 \lt 0, the equation does not represent a real circle.
  • Arithmetic errors when completing the square for circle equations. Always double-check.

Summary Table

| Topic | Key Formula | | ----------------------- | ------------------------------------------------------------- | ------------------------------------------------ | -------------------- | | Distance | d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} | | | | Midpoint | M=(x1+x22,y1+y22)M = \left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right) | | | | Point to line | d=Ax0+By0+CA2+B2d = \dfrac{ | Ax_0 + By_0 + C | }{\sqrt{A^2 + B^2}} | | Circle (standard) | (xa)2+(yb)2=r2(x - a)^2 + (y - b)^2 = r^2 | | | | Tangent at (x1,y1)(x_1, y_1) | x1x+y1y=r2x_1 x + y_1 y = r^2 (for circle at origin) | | | | Triangle area | 12x1(y2y3)+x2(y3y1)+x3(y1y2)\dfrac{1}{2} | x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2) | |


Wrap-up Questions
  1. Question: Find the equation of the perpendicular bisector of ABAB where A(2,1)A(2, 1) and B(6,7)B(6, 7).

Midpoint: M=(4,4)M = (4, 4). Slope of ABAB: m=(71)/(62)=6/4=3/2m = (7 - 1)/(6 - 2) = 6/4 = 3/2.

Perpendicular slope: m=2/3m_\perp = -2/3.

y4=23(x4)    3(y4)=2(x4)    3y12=2x+8    2x+3y20=0y - 4 = -\frac{2}{3}(x - 4) \implies 3(y - 4) = -2(x - 4) \implies 3y - 12 = -2x + 8 \implies 2x + 3y - 20 = 0

  1. Question: Find the equation of the circle passing through (1,2)(1, 2), (3,4)(3, 4), and (5,2)(5, 2).

General form: x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0.

Substituting the three points:

(1,2)(1, 2): 1+4+D+2E+F=0    D+2E+F=5(1)1 + 4 + D + 2E + F = 0 \implies D + 2E + F = -5 \quad (1)

(3,4)(3, 4): 9+16+3D+4E+F=0    3D+4E+F=25(2)9 + 16 + 3D + 4E + F = 0 \implies 3D + 4E + F = -25 \quad (2)

(5,2)(5, 2): 25+4+5D+2E+F=0    5D+2E+F=29(3)25 + 4 + 5D + 2E + F = 0 \implies 5D + 2E + F = -29 \quad (3)

(2)(1)(2) - (1): 2D+2E=20    D+E=10(4)2D + 2E = -20 \implies D + E = -10 \quad (4)

(3)(1)(3) - (1): 4D=24    D=64D = -24 \implies D = -6

From (4): E=4E = -4. From (1): 68+F=5    F=9-6 - 8 + F = -5 \implies F = 9.

Equation: x2+y26x4y+9=0x^2 + y^2 - 6x - 4y + 9 = 0, i.e., (x3)2+(y2)2=4(x - 3)^2 + (y - 2)^2 = 4.

Centre: (3,2)(3, 2), radius: 22.

  1. Question: Show that the line y=x+1y = x + 1 is a tangent to the circle x2+y2=2x^2 + y^2 = 2 and find the point of contact.

Substitute y=x+1y = x + 1: x2+(x+1)2=2    x2+x2+2x+12=0    2x2+2x1=0x^2 + (x + 1)^2 = 2 \implies x^2 + x^2 + 2x + 1 - 2 = 0 \implies 2x^2 + 2x - 1 = 0.

Δ=4+8=12>0\Delta = 4 + 8 = 12 \gt 0. This is not a tangent -- there are two intersection points. Let me re-check. Actually Δ=44(2)(1)=4+8=120\Delta = 4 - 4(2)(-1) = 4 + 8 = 12 \neq 0, so the line is not a tangent to this circle. Let me try the circle x2+y2=1x^2 + y^2 = 1 instead:

x2+(x+1)2=1    2x2+2x=0    2x(x+1)=0x^2 + (x+1)^2 = 1 \implies 2x^2 + 2x = 0 \implies 2x(x + 1) = 0. Δ=40=4>0\Delta = 4 - 0 = 4 \gt 0. Still not tangent.

For x2+y2=1/2x^2 + y^2 = 1/2: x2+(x+1)2=1/2    2x2+2x+1/2=0    Δ=44=0x^2 + (x+1)^2 = 1/2 \implies 2x^2 + 2x + 1/2 = 0 \implies \Delta = 4 - 4 = 0. Tangent. Point of contact: x=1/2x = -1/2, y=1/2y = 1/2. Point: (1/2,1/2)(-1/2, 1/2).

  1. Question: Find the distance between the parallel lines 3x+4y5=03x + 4y - 5 = 0 and 3x+4y+11=03x + 4y + 11 = 0.

Distance =C2C1A2+B2=11(5)9+16=165=3.2= \dfrac{|C_2 - C_1|}{\sqrt{A^2 + B^2}} = \dfrac{|11 - (-5)|}{\sqrt{9 + 16}} = \dfrac{16}{5} = 3.2.

  1. Question: The points A(1,3)A(-1, 3), B(2,k)B(2, k), and C(5,1)C(5, -1) are collinear. Find kk.

For collinearity, the slope of ABAB equals the slope of BCBC:

k32(1)=1k52    k33=1k3\frac{k - 3}{2 - (-1)} = \frac{-1 - k}{5 - 2} \implies \frac{k - 3}{3} = \frac{-1 - k}{3}

k3=1k    2k=2    k=1k - 3 = -1 - k \implies 2k = 2 \implies k = 1

  1. Question: Find the area of the quadrilateral with vertices (0,0)(0, 0), (4,0)(4, 0), (5,3)(5, 3), and (1,4)(1, 4).

Using the shoelace formula with vertices in order:

Area=12(0040)+(4350)+(5413)+(1004)\mathrm{Area} = \frac{1}{2}|(0 \cdot 0 - 4 \cdot 0) + (4 \cdot 3 - 5 \cdot 0) + (5 \cdot 4 - 1 \cdot 3) + (1 \cdot 0 - 0 \cdot 4)|

=120+12+17+0=12(29)=14.5= \frac{1}{2}|0 + 12 + 17 + 0| = \frac{1}{2}(29) = 14.5

  1. Question: A circle has centre (2,1)(2, -1) and passes through the point (5,3)(5, 3). Find its equation.

r=(52)2+(3(1))2=9+16=5r = \sqrt{(5 - 2)^2 + (3 - (-1))^2} = \sqrt{9 + 16} = 5.

Equation: (x2)2+(y+1)2=25(x - 2)^2 + (y + 1)^2 = 25.

  1. Question: Find the angle between the lines y=2x+1y = 2x + 1 and y=3x+4y = -3x + 4.

tanθ=m2m11+m1m2=321+(6)=55=1\tan\theta = \left|\dfrac{m_2 - m_1}{1 + m_1 m_2}\right| = \left|\dfrac{-3 - 2}{1 + (-6)}\right| = \left|\dfrac{-5}{-5}\right| = 1

θ=45\theta = 45^\circ.


Additional Worked Examples

Worked Example 8: Circle with centre on a given line

Find the equation of the circle whose centre lies on 2xy+3=02x - y + 3 = 0 and which passes through A(1,2)A(1, 2) and B(5,6)B(5, 6).

Solution

Let the centre be C(h,k)C(h, k). Since CC lies on 2xy+3=02x - y + 3 = 0:

2hk+3=0    k=2h+3(1)2h - k + 3 = 0 \implies k = 2h + 3 \quad (1)

Since CA=CBCA = CB (both equal the radius):

(h1)2+(k2)2=(h5)2+(k6)2(h-1)^2 + (k-2)^2 = (h-5)^2 + (k-6)^2

Expanding and simplifying: h22h+1+k24k+4=h210h+25+k212k+36h^2 - 2h + 1 + k^2 - 4k + 4 = h^2 - 10h + 25 + k^2 - 12k + 36

2h4k+5=10h12k+61-2h - 4k + 5 = -10h - 12k + 61

8h+8k=56    h+k=7(2)8h + 8k = 56 \implies h + k = 7 \quad (2)

Substituting (1) into (2): h+2h+3=7    3h=4    h=43h + 2h + 3 = 7 \implies 3h = 4 \implies h = \dfrac{4}{3}.

k=243+3=173k = 2 \cdot \dfrac{4}{3} + 3 = \dfrac{17}{3}.

r2=(431)2+(1732)2=19+1219=1229r^2 = \left(\frac{4}{3} - 1\right)^2 + \left(\frac{17}{3} - 2\right)^2 = \frac{1}{9} + \frac{121}{9} = \frac{122}{9}

Equation: (x43)2+(y173)2=1229\left(x - \dfrac{4}{3}\right)^2 + \left(y - \dfrac{17}{3}\right)^2 = \dfrac{122}{9}.

Worked Example 9: Tangents from an external point

Find the equations of the tangents from P(4,0)P(4, 0) to the circle x2+y2=8x^2 + y^2 = 8.

Solution

A line through P(4,0)P(4, 0) with slope mm: y=m(x4)y = m(x - 4).

Substituting into x2+y2=8x^2 + y^2 = 8:

(1+m2)x28m2x+16m28=0(1 + m^2)x^2 - 8m^2 x + 16m^2 - 8 = 0

For tangency, Δ=0\Delta = 0:

Δ=64m44(1+m2)(16m28)=0\Delta = 64m^4 - 4(1 + m^2)(16m^2 - 8) = 0

Expanding the second factor: 16m28+16m48m2=16m4+8m2816m^2 - 8 + 16m^4 - 8m^2 = 16m^4 + 8m^2 - 8.

Δ=64m464m432m2+32=32m2+32=0\Delta = 64m^4 - 64m^4 - 32m^2 + 32 = -32m^2 + 32 = 0

m2=1    m=±1m^2 = 1 \implies m = \pm 1

Tangent 1: y=x4y = x - 4, i.e. xy4=0x - y - 4 = 0.

Tangent 2: y=x+4y = -x + 4, i.e. x+y4=0x + y - 4 = 0.

Verification: distance from (0,0)(0,0) to xy4=0x - y - 4 = 0 is 42=22=8\dfrac{4}{\sqrt{2}} = 2\sqrt{2} = \sqrt{8}. Correct.

Worked Example 10: Triangle formed by three lines

Find the area of the triangle formed by 1:x+y=6\ell_1: x + y = 6, 2:xy=2\ell_2: x - y = 2, and 3:2x+y=9\ell_3: 2x + y = 9.

Solution

Find the three vertices by pairwise intersection.

12\ell_1 \cap \ell_2: Adding the equations gives 2x=8    x=42x = 8 \implies x = 4, y=2y = 2. Vertex A(4,2)A(4, 2).

13\ell_1 \cap \ell_3: Subtracting 1\ell_1 from 3\ell_3 gives x=3x = 3, y=3y = 3. Vertex B(3,3)B(3, 3).

23\ell_2 \cap \ell_3: Adding the equations gives 3x=11    x=1133x = 11 \implies x = \dfrac{11}{3}, y=53y = \dfrac{5}{3}. Vertex C ⁣(113,53)C\!\left(\dfrac{11}{3}, \dfrac{5}{3}\right).

Using the area formula:

Area=124 ⁣(353)+3 ⁣(532)+113(23)\mathrm{Area} = \frac{1}{2}\left|4\!\left(3 - \frac{5}{3}\right) + 3\!\left(\frac{5}{3} - 2\right) + \frac{11}{3}(2 - 3)\right|

=12443+3(13)+113(1)= \frac{1}{2}\left|4 \cdot \frac{4}{3} + 3 \cdot \left(-\frac{1}{3}\right) + \frac{11}{3} \cdot (-1)\right|

=12163113=1223=13= \frac{1}{2}\left|\frac{16 - 3 - 11}{3}\right| = \frac{1}{2} \cdot \frac{2}{3} = \frac{1}{3}

Worked Example 11: Reflection of a point in a line

Find the reflection of P(1,5)P(1, 5) in the line 3xy+1=03x - y + 1 = 0.

Solution

Let the reflected point be P(a,b)P'(a, b). The midpoint M ⁣(1+a2,5+b2)M\!\left(\dfrac{1+a}{2}, \dfrac{5+b}{2}\right) lies on the line:

3 ⁣(1+a2)5+b2+1=03\!\left(\frac{1+a}{2}\right) - \frac{5+b}{2} + 1 = 0

3(1+a)(5+b)+2=0    3ab=0(1)3(1+a) - (5+b) + 2 = 0 \implies 3a - b = 0 \quad (1)

The slope of PPPP' is perpendicular to the line (slope 33):

b5a13=1    3b15=(a1)    a+3b=16(2)\frac{b - 5}{a - 1} \cdot 3 = -1 \implies 3b - 15 = -(a - 1) \implies a + 3b = 16 \quad (2)

From (1): b=3ab = 3a. Substituting into (2): a+9a=16    a=85a + 9a = 16 \implies a = \dfrac{8}{5}.

b=385=245b = 3 \cdot \frac{8}{5} = \frac{24}{5}

Reflection: P ⁣(85,245)P'\!\left(\dfrac{8}{5}, \dfrac{24}{5}\right).

Worked Example 12: Circle through three points

Find the equation of the circle through P(0,1)P(0, 1), Q(2,3)Q(2, 3), and R(4,1)R(4, 1).

Solution

P(0,1)P(0, 1) and R(4,1)R(4, 1) share the same yy-coordinate, so the centre lies on their perpendicular bisector x=2x = 2.

P(0,1)P(0, 1) and Q(2,3)Q(2, 3) have midpoint (1,2)(1, 2) and segment slope 11. Their perpendicular bisector has slope 1-1 through (1,2)(1, 2): y2=(x1)    y=x+3y - 2 = -(x - 1) \implies y = -x + 3.

Intersecting with x=2x = 2: y=1y = 1. Centre: (2,1)(2, 1).

r2=(20)2+(11)2=4r^2 = (2-0)^2 + (1-1)^2 = 4

Equation: (x2)2+(y1)2=4(x - 2)^2 + (y - 1)^2 = 4, or x2+y24x2y+1=0x^2 + y^2 - 4x - 2y + 1 = 0.

Verification: (42)2+(11)2=4=r2(4-2)^2 + (1-1)^2 = 4 = r^2. Correct.


Additional Common Pitfalls

  1. Sign error in the section formula. The point dividing ABAB in ratio m:nm:n (from AA towards BB) has xx-coordinate nx1+mx2m+n\dfrac{nx_1 + mx_2}{m+n}, not mx1+nx2m+n\dfrac{mx_1 + nx_2}{m+n}. The weight of AA is nn, not mm.

  2. Dropping the absolute value in point-to-line distance. The formula Ax0+By0+CA2+B2\dfrac{|Ax_0 + By_0 + C|}{\sqrt{A^2 + B^2}} always yields a non-negative result. Omitting the absolute value can produce a negative "distance".

  3. Failing to normalise parallel lines. Before using the distance-between-parallel-lines formula d=C2C1A2+B2d = \dfrac{|C_2 - C_1|}{\sqrt{A^2 + B^2}}, ensure both equations have identical AA and BB coefficients. If one equation is a scalar multiple of the other, rescale first.

  4. Assuming two circles always intersect. Two circles with centres O1O_1, O2O_2 and radii r1r_1, r2r_2 intersect at two points only when r1r2<d<r1+r2|r_1 - r_2| \lt d \lt r_1 + r_2, where dd is the distance between centres.

  5. Undefined slope of vertical lines. The line x=ax = a has no defined slope. Never assign a numerical value such as \infty to it; state that the slope is undefined.

  6. Stopping at the midpoint for perpendicular bisectors. The perpendicular bisector of ABAB requires both the midpoint and the perpendicular slope. A common mistake is to find the midpoint and stop.

  7. Confusing the tangent formula for circles not at the origin. The shortcut x1x+y1y=r2x_1 x + y_1 y = r^2 only applies when the circle is x2+y2=r2x^2 + y^2 = r^2. For (xa)2+(yb)2=r2(x-a)^2 + (y-b)^2 = r^2, use the general formula (x1a)(xa)+(y1b)(yb)=r2(x_1-a)(x-a) + (y_1-b)(y-b) = r^2.

  8. Arithmetic errors in the shoelace formula. Always list vertices in consistent order (clockwise or anticlockwise). Mixing the order gives the wrong area or its negative.


Exam-Style Problems

Problem 1. The points A(2,3)A(-2, 3), B(4,7)B(4, 7), and C(k,1)C(k, -1) form a triangle with area 3030. Find the possible values of kk.

Solution

12(2)(7(1))+4((1)3)+k(37)=30\frac{1}{2}\left|(-2)(7 - (-1)) + 4((-1) - 3) + k(3 - 7)\right| = 30

1216164k=30    324k=60\frac{1}{2}|-16 - 16 - 4k| = 30 \implies |-32 - 4k| = 60

Case 1: 324k=60    4k=92    k=23-32 - 4k = 60 \implies 4k = -92 \implies k = -23.

Case 2: 324k=60    4k=28    k=7-32 - 4k = -60 \implies 4k = 28 \implies k = 7.

Answer: k=23k = -23 or k=7k = 7.

Problem 2. The line y=34x+cy = \dfrac{3}{4}x + c is tangent to (x1)2+(y2)2=25(x - 1)^2 + (y - 2)^2 = 25. Find cc.

Solution

Rewrite the line as 3x4y+4c=03x - 4y + 4c = 0. The distance from the centre (1,2)(1, 2) to this line equals the radius 55:

3(1)4(2)+4c9+16=5    4c55=5    4c5=25\frac{|3(1) - 4(2) + 4c|}{\sqrt{9 + 16}} = 5 \implies \frac{|4c - 5|}{5} = 5 \implies |4c - 5| = 25

Case 1: 4c5=25    c=7.54c - 5 = 25 \implies c = 7.5.

Case 2: 4c5=25    c=54c - 5 = -25 \implies c = -5.

Answer: c=7.5c = 7.5 or c=5c = -5.

Problem 3. Find the equation of the circle passing through A(2,3)A(2, 3) and B(6,1)B(6, 1) with its centre on the xx-axis.

Solution

Let the centre be C(h,0)C(h, 0). Then CA2=CB2CA^2 = CB^2:

(h2)2+9=(h6)2+1(h-2)^2 + 9 = (h-6)^2 + 1

h24h+13=h212h+37    8h=24    h=3h^2 - 4h + 13 = h^2 - 12h + 37 \implies 8h = 24 \implies h = 3

r2=(32)2+(03)2=1+9=10r^2 = (3-2)^2 + (0-3)^2 = 1 + 9 = 10

Equation: (x3)2+y2=10(x - 3)^2 + y^2 = 10.

Problem 4. The line 3x+4y12=03x + 4y - 12 = 0 cuts the coordinate axes at AA and BB. Find the equation of the circle with ABAB as diameter.

Solution

AA: set y=0y = 0, giving x=4x = 4. So A(4,0)A(4, 0).

BB: set x=0x = 0, giving y=3y = 3. So B(0,3)B(0, 3).

Centre (midpoint of ABAB): (4+02,0+32)=(2,  1.5)\left(\dfrac{4+0}{2}, \dfrac{0+3}{2}\right) = (2,\; 1.5).

r=AB2=16+92=52r = \frac{AB}{2} = \frac{\sqrt{16 + 9}}{2} = \frac{5}{2}

Equation: (x2)2+ ⁣(y32)2=254(x - 2)^2 + \!\left(y - \dfrac{3}{2}\right)^2 = \dfrac{25}{4}.

Expanding: x2+y24x3y=0x^2 + y^2 - 4x - 3y = 0.

Problem 5. Determine whether the triangle with vertices P(1,2)P(1, 2), Q(5,5)Q(5, 5), and R(8,1)R(8, 1) is right-angled.

Solution

Calculate the slopes of the three sides:

mPQ=5251=34,mQR=1585=43m_{PQ} = \frac{5-2}{5-1} = \frac{3}{4}, \quad m_{QR} = \frac{1-5}{8-5} = -\frac{4}{3}

mPQmQR=34(43)=1m_{PQ} \cdot m_{QR} = \frac{3}{4} \cdot \left(-\frac{4}{3}\right) = -1

Since the product is 1-1, PQQRPQ \perp QR. The triangle is right-angled at QQ.

Verification by Pythagoras: PQ2=25PQ^2 = 25, QR2=25QR^2 = 25, PR2=49+1=50PR^2 = 49 + 1 = 50. Indeed 25+25=5025 + 25 = 50.

Problem 6. Find the equation of the perpendicular bisector of the segment joining (1,5)(-1, 5) and (3,1)(3, -1), and verify that (1,2)(1, 2) lies on it.

Solution

Midpoint: (1+32,5+(1)2)=(1,2)\left(\dfrac{-1+3}{2}, \dfrac{5+(-1)}{2}\right) = (1, 2).

Slope of segment: 153(1)=64=32\dfrac{-1-5}{3-(-1)} = \dfrac{-6}{4} = -\dfrac{3}{2}.

Perpendicular slope: 23\dfrac{2}{3}.

Equation through (1,2)(1, 2): y2=23(x1)    3y6=2x2    2x3y+4=0y - 2 = \dfrac{2}{3}(x - 1) \implies 3y - 6 = 2x - 2 \implies 2x - 3y + 4 = 0.

Verification: 2(1)3(2)+4=26+4=02(1) - 3(2) + 4 = 2 - 6 + 4 = 0. Confirmed.

Problem 7. A point PP moves so that its distance from A(3,1)A(3, 1) is always twice its distance from B(1,4)B(-1, 4). Find the equation of the locus of PP.

Solution

Let P=(x,y)P = (x, y). Then PA=2PBPA = 2 \cdot PB:

(x3)2+(y1)2=2(x+1)2+(y4)2\sqrt{(x-3)^2 + (y-1)^2} = 2\sqrt{(x+1)^2 + (y-4)^2}

Squaring both sides:

(x3)2+(y1)2=4 ⁣[(x+1)2+(y4)2](x-3)^2 + (y-1)^2 = 4\!\left[(x+1)^2 + (y-4)^2\right]

x26x+9+y22y+1=4(x2+2x+1+y28y+16)x^2 - 6x + 9 + y^2 - 2y + 1 = 4(x^2 + 2x + 1 + y^2 - 8y + 16)

x26x+y22y+10=4x2+8x+4y232y+68x^2 - 6x + y^2 - 2y + 10 = 4x^2 + 8x + 4y^2 - 32y + 68

3x2+3y2+14x30y+58=03x^2 + 3y^2 + 14x - 30y + 58 = 0

Dividing by 33: x2+y2+143x10y+583=0x^2 + y^2 + \dfrac{14}{3}x - 10y + \dfrac{58}{3} = 0.

This is the equation of a circle (Apollonius circle).

Problem 8. Two circles C1:x2+y2+4x6y+9=0C_1: x^2 + y^2 + 4x - 6y + 9 = 0 and C2:x2+y22x+2y14=0C_2: x^2 + y^2 - 2x + 2y - 14 = 0 intersect at AA and BB. Find the equation of their common chord ABAB.

Solution

The common chord is found by subtracting the two circle equations:

(x2+y2+4x6y+9)(x2+y22x+2y14)=0(x^2 + y^2 + 4x - 6y + 9) - (x^2 + y^2 - 2x + 2y - 14) = 0

6x8y+23=06x - 8y + 23 = 0

The equation of the common chord is 6x8y+23=06x - 8y + 23 = 0.


Cross-References

  • Quadratics: The discriminant is used to determine the nature of circle-line intersections. See quadratics.md).
  • Functions: Transformations of graphs apply equally to circles and lines. See functions-advanced.md).
  • Trigonometry: The angle between two lines uses the tangent formula, which connects to trigonometric identities.

For the A-Level treatment of this topic, see Coordinates and Geometry.


tip

tip Ready to test your understanding of Coordinate Geometry? The diagnostic test contains the hardest questions within the DSE specification for this topic, each with a full worked solution.

Unit tests probe edge cases and common misconceptions. Integration tests combine Coordinate Geometry with other DSE mathematics topics to test synthesis under exam conditions.

See Diagnostic Guide for instructions on self-marking and building a personal test matrix.


DSE Exam Technique

Showing Working

For coordinate geometry problems in DSE Paper 1:

  1. Write the formula before substituting (e.g., distance formula, midpoint formula, gradient formula).
  2. For circle equations, show the completing-the-square steps.
  3. For intersection problems, show the substitution and the resulting quadratic.
  4. When finding tangents, state that the tangent is perpendicular to the radius.
  5. For locus problems, start with "Let P=(x,y)P = (x, y)" and derive the equation step by step.

Significant Figures

Length and distance answers to 3 significant figures unless exact forms are possible. Coordinate values involving square roots should be left in exact form.

Common DSE Question Types

  1. Finding equations of circles from given conditions (centre and radius, three points, diameter).
  2. Circle-line intersection (tangent condition using discriminant or distance formula).
  3. Locus problems (equidistant from points, ratio of distances).
  4. Area of triangle using coordinate formula or shoelace formula.
  5. Perpendicular bisector and reflection problems.

Additional Worked Examples

Worked Example 13: Equation of a circle tangent to both axes

Find the equation of the circle in the first quadrant that is tangent to both coordinate axes and has radius 33.

Solution

Since the circle is in the first quadrant and tangent to both axes, the centre is at (r,r)=(3,3)(r, r) = (3, 3).

Equation: (x3)2+(y3)2=9(x - 3)^2 + (y - 3)^2 = 9.

Expanding: x2+y26x6y+9=0x^2 + y^2 - 6x - 6y + 9 = 0.

Worked Example 14: Intersection of two circles

Find the points of intersection of x2+y2=5x^2 + y^2 = 5 and x2+y24x2y+1=0x^2 + y^2 - 4x - 2y + 1 = 0.

Solution

Subtract the second equation from the first:

5(4x2y+1)=0    4x+2y6=0    2x+y=3    y=32x5 - (-4x - 2y + 1) = 0 \implies 4x + 2y - 6 = 0 \implies 2x + y = 3 \implies y = 3 - 2x

Substituting into x2+y2=5x^2 + y^2 = 5:

x2+(32x)2=5    x2+912x+4x2=5    5x212x+4=0x^2 + (3 - 2x)^2 = 5 \implies x^2 + 9 - 12x + 4x^2 = 5 \implies 5x^2 - 12x + 4 = 0

(5x2)(x2)=0    x=25  or  x=2(5x - 2)(x - 2) = 0 \implies x = \frac{2}{5} \;\text{or}\; x = 2

x=25    y=345=115x = \dfrac{2}{5} \implies y = 3 - \dfrac{4}{5} = \dfrac{11}{5}. Point: (25,115)\left(\dfrac{2}{5}, \dfrac{11}{5}\right).

x=2    y=34=1x = 2 \implies y = 3 - 4 = -1. Point: (2,1)(2, -1).

Worked Example 15: Shortest distance from a point to a circle

Find the shortest distance from P(5,3)P(5, 3) to the circle x2+y24x+2y4=0x^2 + y^2 - 4x + 2y - 4 = 0.

Solution

Centre: (2,1)(2, -1), r2=4+1+4=9    r=3r^2 = 4 + 1 + 4 = 9 \implies r = 3.

Distance from PP to centre: d=(52)2+(3(1))2=9+16=5d = \sqrt{(5-2)^2 + (3-(-1))^2} = \sqrt{9 + 16} = 5.

Shortest distance from PP to the circle: dr=53=2d - r = 5 - 3 = 2.

Worked Example 16: Locus - equidistant from two points

Find the equation of the locus of points equidistant from A(1,3)A(1, 3) and B(5,7)B(5, 7).

Solution

Let P=(x,y)P = (x, y). Then PA=PBPA = PB:

(x1)2+(y3)2=(x5)2+(y7)2\sqrt{(x-1)^2 + (y-3)^2} = \sqrt{(x-5)^2 + (y-7)^2}

Squaring:

(x1)2+(y3)2=(x5)2+(y7)2(x-1)^2 + (y-3)^2 = (x-5)^2 + (y-7)^2

x22x+1+y26y+9=x210x+25+y214y+49x^2 - 2x + 1 + y^2 - 6y + 9 = x^2 - 10x + 25 + y^2 - 14y + 49

8x+8y=64    x+y=88x + 8y = 64 \implies x + y = 8

This is the perpendicular bisector of ABAB, as expected.


DSE Exam-Style Questions

DSE Practice 1. The line y=mx+1y = mx + 1 is tangent to the circle x2+y2=4x^2 + y^2 = 4. Find the possible values of mm.

Solution

Substitute y=mx+1y = mx + 1 into x2+y2=4x^2 + y^2 = 4:

x2+(mx+1)2=4    (1+m2)x2+2mx3=0x^2 + (mx + 1)^2 = 4 \implies (1 + m^2)x^2 + 2mx - 3 = 0

For tangency: Δ=0\Delta = 0:

4m2+12(1+m2)=0    4m2+12+12m2=0    16m2+12=04m^2 + 12(1 + m^2) = 0 \implies 4m^2 + 12 + 12m^2 = 0 \implies 16m^2 + 12 = 0

m2=1216=34<0m^2 = -\dfrac{12}{16} = -\dfrac{3}{4} < 0.

No real values of mm satisfy this condition. The line y=mx+1y = mx + 1 is never tangent to x2+y2=4x^2 + y^2 = 4.

Wait -- let me recheck. Δ=(2m)24(1+m2)(3)=4m2+12(1+m2)=4m2+12+12m2=16m2+12>0\Delta = (2m)^2 - 4(1 + m^2)(-3) = 4m^2 + 12(1 + m^2) = 4m^2 + 12 + 12m^2 = 16m^2 + 12 > 0 for all real mm. This means the line always intersects the circle at two points, never tangent.

Actually, the distance from the centre (0,0)(0,0) to the line mxy+1=0mx - y + 1 = 0 is:

d=1m2+1=1m2+1d = \frac{|1|}{\sqrt{m^2 + 1}} = \frac{1}{\sqrt{m^2 + 1}}

For tangency: d=r=2d = r = 2, i.e., 1m2+1=2    m2+1=12    m2+1=14    m2=34\dfrac{1}{\sqrt{m^2 + 1}} = 2 \implies \sqrt{m^2 + 1} = \dfrac{1}{2} \implies m^2 + 1 = \dfrac{1}{4} \implies m^2 = -\dfrac{3}{4}.

No real solution. Confirmed: the line is never tangent to the circle.

DSE Practice 2. A circle touches the yy-axis at (0,3)(0, 3) and passes through (2,1)(2, 1). Find its equation.

Solution

Since the circle touches the yy-axis at (0,3)(0, 3), the centre lies on the horizontal line y=3y = 3, so the centre is C(r,3)C(r, 3) where rr is the radius.

Equation: (xr)2+(y3)2=r2(x - r)^2 + (y - 3)^2 = r^2.

Substituting (2,1)(2, 1): (2r)2+(13)2=r2    44r+r2+4=r2    84r=0    r=2(2 - r)^2 + (1 - 3)^2 = r^2 \implies 4 - 4r + r^2 + 4 = r^2 \implies 8 - 4r = 0 \implies r = 2.

Centre: (2,3)(2, 3), radius: 22.

Equation: (x2)2+(y3)2=4(x - 2)^2 + (y - 3)^2 = 4, or x2+y24x6y+9=0x^2 + y^2 - 4x - 6y + 9 = 0.

DSE Practice 3. Find the equation of the circle passing through (1,0)(1, 0), (0,1)(0, 1), and (1,0)(-1, 0).

Solution

General form: x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0.

(1,0)(1, 0): 1+D+F=0(i)1 + D + F = 0 \quad \text{(i)}.

(0,1)(0, 1): 1+E+F=0(ii)1 + E + F = 0 \quad \text{(ii)}.

(1,0)(-1, 0): 1D+F=0(iii)1 - D + F = 0 \quad \text{(iii)}.

(i) - (iii): 2D=0    D=02D = 0 \implies D = 0.

From (i): F=1F = -1.

From (ii): E=0E = 0.

Equation: x2+y21=0x^2 + y^2 - 1 = 0, i.e., x2+y2=1x^2 + y^2 = 1 (the unit circle).

DSE Practice 4. The line \ell passes through A(2,1)A(2, 1) and B(6,k)B(6, k). If the distance from the origin to \ell is 655\dfrac{6\sqrt{5}}{5}, find kk.

Solution

Gradient of \ell: m=k14m = \dfrac{k - 1}{4}.

Equation: y1=k14(x2)    (k1)x4y+(42k+4)=0    (k1)x4y+(82k)=0y - 1 = \dfrac{k-1}{4}(x - 2) \implies (k-1)x - 4y + (4 - 2k + 4) = 0 \implies (k-1)x - 4y + (8 - 2k) = 0.

Distance from (0,0)(0, 0) to \ell:

82k(k1)2+16=655\frac{|8 - 2k|}{\sqrt{(k-1)^2 + 16}} = \frac{6\sqrt{5}}{5}

Squaring:

(82k)2k22k+17=365\frac{(8 - 2k)^2}{k^2 - 2k + 17} = \frac{36}{5}

5(4k)2=36(k22k+17)5(4 - k)^2 = 36(k^2 - 2k + 17)

5(k28k+16)=36k272k+6125(k^2 - 8k + 16) = 36k^2 - 72k + 612

5k240k+80=36k272k+6125k^2 - 40k + 80 = 36k^2 - 72k + 612

31k232k+532=031k^2 - 32k + 532 = 0

Δ=10244(31)(532)=102465968<0\Delta = 1024 - 4(31)(532) = 1024 - 65968 < 0.

No real solution for kk. Let me recheck the algebra.

Actually, let me recompute. The line through (2,1)(2,1) and (6,k)(6,k): using the two-point form:

y1k1=x24    4(y1)=(k1)(x2)\frac{y - 1}{k - 1} = \frac{x - 2}{4} \implies 4(y - 1) = (k - 1)(x - 2)

(k1)x4y2(k1)+4=0    (k1)x4y2k+6=0(k-1)x - 4y - 2(k-1) + 4 = 0 \implies (k-1)x - 4y - 2k + 6 = 0

Distance from (0,0)(0,0):

62k(k1)2+16=655\frac{|6 - 2k|}{\sqrt{(k-1)^2 + 16}} = \frac{6\sqrt{5}}{5}

25(62k)2=36(k22k+17)25(6 - 2k)^2 = 36(k^2 - 2k + 17)

25(4k224k+36)=36k272k+61225(4k^2 - 24k + 36) = 36k^2 - 72k + 612

100k2600k+900=36k272k+612100k^2 - 600k + 900 = 36k^2 - 72k + 612

64k2528k+288=0    8k266k+36=0    4k233k+18=064k^2 - 528k + 288 = 0 \implies 8k^2 - 66k + 36 = 0 \implies 4k^2 - 33k + 18 = 0

(4k3)(k6)=0    k=34  or  k=6(4k - 3)(k - 6) = 0 \implies k = \frac{3}{4} \;\text{or}\; k = 6

DSE Practice 5. Find the coordinates of the points on the circle x2+y2=13x^2 + y^2 = 13 where the tangent is parallel to the line 2x+3y=72x + 3y = 7.

Solution

The gradient of 2x+3y=72x + 3y = 7 is m=23m = -\dfrac{2}{3}.

The tangent at (x1,y1)(x_1, y_1) on x2+y2=13x^2 + y^2 = 13 is x1x+y1y=13x_1 x + y_1 y = 13, with gradient m=x1y1m = -\dfrac{x_1}{y_1}.

Setting equal: x1y1=23    3x1=2y1    y1=32x1-\dfrac{x_1}{y_1} = -\dfrac{2}{3} \implies 3x_1 = 2y_1 \implies y_1 = \dfrac{3}{2}x_1.

Substituting into x12+y12=13x_1^2 + y_1^2 = 13:

x12+94x12=13    134x12=13    x12=4    x1=±2x_1^2 + \frac{9}{4}x_1^2 = 13 \implies \frac{13}{4}x_1^2 = 13 \implies x_1^2 = 4 \implies x_1 = \pm 2

x1=2    y1=3x_1 = 2 \implies y_1 = 3. x1=2    y1=3x_1 = -2 \implies y_1 = -3.

Points: (2,3)(2, 3) and (2,3)(-2, -3).