059Mathematics · Coordinate geometry

Circle from diameter endpoints

Circle from diameter endpoints

Circle from diameter endpoints · h,k,r,r²

  • 58 bytes
  • COMP mode
01

Worked examples

Example 1

In a Cartesian plane with equal axis scales, A(−4,1) and B(2,1) are the endpoints of a diameter. Which option is the exact equation of the circle?

  1. A.(x+1)²+(y−1)²=9
  2. B.(x−1)²+(y−1)²=9
  3. C.(x+1)²+(y−1)²=36
  4. D.(x+1)²+(y+1)²=9
Answer
A — (x+1)²+(y−1)²=9.
Standard solution (without a calculator)
  1. Find the centre: the midpoint is ((−4+2)/2,(1+1)/2)=(−1,1).
  2. Find the diameter: AB=√((2−(−4))²+(1−1)²)=6 units.
  3. Find the radius: r=6/2=3 units, so r²=9 square units.
  4. Write the equation: (x+1)²+(y−1)²=9, which is option A; no rounding is required.
Do it on the calculator

Example 2

Triangle ABC has ∠ACB=90°, A(−2,−3) and B(4,5), in a Cartesian plane with equal axis scales. Explain why AB is a diameter of its circumcircle, then find the exact centre, radius and equation of that circle.

Answer
AB is a diameter; centre (1,1), r=5 units; (x−1)²+(y−1)²=25.
Standard solution (without a calculator)
  1. Identify the diameter: a right angle subtended by AB at C means AB is a diameter of the circumcircle, by the converse of the angle-in-a-semicircle theorem.
  2. Find the centre: the midpoint of AB is ((−2+4)/2,(−3+5)/2)=(1,1).
  3. Find the diameter: AB²=(4−(−2))²+(5−(−3))²=6²+8²=100, hence AB=10 units.
  4. Find the radius and equation: r=10/2=5 units and r²=25, giving (x−1)²+(y−1)²=25 exactly.
Do it on the calculator

Example 3

On a map with coordinates in kilometres, A(−3,1) and B(2,4) are endpoints of a diameter of a circular region. Find the centre, exact radius and equation. Keep fractions and surds in the final answer.

Answer
Centre (−1/2,5/2); r=√34/2 km; (x+1/2)²+(y−5/2)²=17/2.
Standard solution (without a calculator)
  1. Find the centre: h=(−3+2)/2=−1/2 and k=(1+4)/2=5/2, so the centre is (−1/2,5/2).
  2. Find the squared diameter: AB²=(2−(−3))²+(4−1)²=5²+3²=34 km².
  3. Halve the diameter: r=√34/2 km, so r²=34/4=17/2 km².
  4. Write the equation: (x+1/2)²+(y−5/2)²=17/2, with x and y in kilometres.
  5. Retain exact values: the displayed 2.915475947 approximates √34/2; use the surd for the requested exact radius.
Do it on the calculator
02

When to use it

The centre is the midpoint of a diameter and the radius is half its length. The program applies these two facts to endpoints (x₁,y₁) and (x₂,y₂).

Enter both endpoints

  • Enter A = x₁, B = y₁, C = x₂ and D = y₂, pressing EXE after each coordinate. Both axes must use the same length unit.
  • Enter every coordinate explicitly, including 0. A blank EXE reuses a stored coordinate and does not mean an unknown.

Read the four results

  • Read h, k, r and r² in order, pressing EXE between results. Use (x−h)²+(y−k)²=r² to write the equation, then press AC after the final r².
  • Coincident endpoints deliberately give Math ERROR because they do not define a nonzero diameter.

Question types

  • Original HKDSE Mathematics Compulsory Part practice: diameter-endpoint equations, circular regions on maps and the circumcircle of a right-angled triangle.

Before you start

  • Use COMP / Deg / Norm 1 and an empty P1 with at least 58 bytes available. P1–P4 share 680 bytes. A, B, C, D, X, Y and Ans can be overwritten.
  • The inputs must be distinct endpoints of a diameter. Two arbitrary circumference points define a chord and cannot be used as though that chord were a diameter.
  • If the endpoints coincide, the equality checks deliberately divide by zero to show Math ERROR. Recheck all four coordinates.
  • If a problem gives indirect information, first establish the endpoints. For a right-angled triangle, justify that its hypotenuse is the circumcircle’s diameter.
  • The outputs are h, k, r, r², not general-equation coefficients. Derive those separately; use r² rather than a rounded r when writing the equation.
  • Coordinates, centre and radius use the same length unit; r² uses square units. Extreme coordinates or endpoints separated by a tiny distance may lose precision or exceed the numeric range.
  • Pol( overwrites X and Y with the diameter length and an unused angle. Deg matches the walkthrough; the radius does not depend on the angle unit. The LCD gives about ten significant digits.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.