Circle from diameter endpoints
Circle from diameter endpoints
Circle from diameter endpoints · h,k,r,r²
- 58 bytes
- COMP mode
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?
Answer
Standard solution (without a calculator)
- Find the centre: the midpoint is ((−4+2)/2,(1+1)/2)=(−1,1).
- Find the diameter: AB=√((2−(−4))²+(1−1)²)=6 units.
- Find the radius: r=6/2=3 units, so r²=9 square units.
- Write the equation: (x+1)²+(y−1)²=9, which is option A; no rounding is required.
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
Standard solution (without a calculator)
- 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.
- Find the centre: the midpoint of AB is ((−2+4)/2,(−3+5)/2)=(1,1).
- Find the diameter: AB²=(4−(−2))²+(5−(−3))²=6²+8²=100, hence AB=10 units.
- Find the radius and equation: r=10/2=5 units and r²=25, giving (x−1)²+(y−1)²=25 exactly.
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
Standard solution (without a calculator)
- Find the centre: h=(−3+2)/2=−1/2 and k=(1+4)/2=5/2, so the centre is (−1/2,5/2).
- Find the squared diameter: AB²=(2−(−3))²+(4−1)²=5²+3²=34 km².
- Halve the diameter: r=√34/2 km, so r²=34/4=17/2 km².
- Write the equation: (x+1/2)²+(y−5/2)²=17/2, with x and y in kilometres.
- Retain exact values: the displayed 2.915475947 approximates √34/2; use the surd for the requested exact radius.
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.
Checking access…