056Mathematics · Coordinate geometry

Equidistant point on a line

Equidistant point on a line

Equidistant point on a line · x,y / status

  • 146 bytes
  • COMP mode
01

Worked examples

Example 1

On a coordinate map, stations A(0,0) and B(4,0) are fixed. A meeting point P lies on y = 3x − 1 and is equally far from A and B. Find the exact y-coordinate of P; coordinates use the same unit on both axes.

  1. A.1
  2. B.3
  3. C.5
  4. D.7
Answer
C — y = 5; P = (2,5).
Standard solution (without a calculator)
  1. Form the distance equation: For P = (x,y), PA² = PB² gives x² + y² = (x − 4)² + y².
  2. Find the locus: Cancelling x² and y² gives 0 = −8x + 16, hence x = 2. This is the perpendicular bisector of AB.
  3. Use the given line: y = 3(2) − 1 = 5, so P = (2,5). Both squared distances are 2² + 5² = 29 square units.
  4. Choose the answer: The requested y-coordinate is exactly 5, so choose C.
Do it on the calculator

Example 2

Two fixed points are A(1,1) and B(3,5) on a coordinate grid with equal scales. Point P is on the x-axis and satisfies PA = PB. Find its exact x-coordinate.

  1. A.2
  2. B.5
  3. C.8
  4. D.10
Answer
C — x = 8; P = (8,0).
Standard solution (without a calculator)
  1. Express equal distances: (x − 1)² + (y − 1)² = (x − 3)² + (y − 5)².
  2. Expand and simplify: x² + y² − 2x − 2y + 2 = x² + y² − 6x − 10y + 34, so 4x + 8y = 32, or x + 2y = 8.
  3. Apply the axis condition: On the x-axis y = 0, hence x = 8 and P = (8,0). The squared distances are 7² + (−1)² = 50 and 5² + (−5)² = 50.
  4. Choose the answer: The exact x-coordinate is 8, so choose C.
Do it on the calculator

Example 3

On an equal-scale coordinate grid, A(−2,1) and B(6,3) are fixed. Find the locus of points equidistant from A and B, then find the point P on that locus with x = 4. Verify both squared distances and give all answers exactly.

Answer
4x + y = 10; P = (4,−6); PA² = PB² = 85 square units.
Standard solution (without a calculator)
  1. Set up the locus: (x + 2)² + (y − 1)² = (x − 6)² + (y − 3)². Expanding gives x² + y² + 4x − 2y + 5 = x² + y² − 12x − 6y + 45.
  2. Simplify: 16x + 4y = 40, so the perpendicular bisector is 4x + y = 10.
  3. Intersect with x = 4: 4(4) + y = 10 gives y = −6, hence P = (4,−6).
  4. Check each distance: PA² = (4 + 2)² + (−6 − 1)² = 36 + 49 = 85; PB² = (4 − 6)² + (−6 − 3)² = 4 + 81 = 85 square units. Thus PA = PB.
Do it on the calculator
02

When to use it

For distinct fixed points Q(x₁,y₁) and R(x₂,y₂), PQ = PR describes the perpendicular bisector of QR. The required point is its intersection with the given line ax + by + c = 0.

Enter the coordinates and line

  • At A?, B?, C?, D?, enter x₁, y₁, x₂, y₂ respectively. At X?, Y?, M?, enter a, b, c in that order. Use the same coordinate scale on both axes.
  • Rearrange the line with zero on the right: y = 3x − 1 becomes (a,b,c) = (3,−1,−1). For y = k use (0,1,−k); for x = k use (1,0,−k). Enter every value explicitly, including zero.

Read the intersection or status

  • A unique solution gives x first with Disp, then y after EXE. A single final −1 means no solution, −2 means infinitely many solutions, and −3 means a = b = 0. A negative coordinate is valid when two coordinate results are shown.

Question types

  • Original HKDSE Mathematics Compulsory Part practice on equidistant loci, perpendicular bisectors, coordinate axes and simultaneous linear equations. These are distances to two points, not perpendicular distances to two lines.

Before you start

  • Use COMP / Deg / Norm 1 and P1 with 146 bytes free; P1–P4 share 680 bytes. The program overwrites A, B, C, D, X, Y and M.
  • The supplied restriction must be a valid line: a and b cannot both be zero. The program returns −3 before testing the fixed points when a = b = 0.
  • Coincident fixed points make every point on a valid restriction line equidistant, so the result is −2. A coincident perpendicular bisector and restriction line also give −2; distinct parallel lines give −1.
  • Only a unique intersection gives two coordinates. Do not treat a lone status code as an x-coordinate or stop after the first coordinate.
  • Inputs are not cleared first. Blank EXE retains a stored value; it does not mean unknown or zero. Enter missing coefficients as 0.
  • Use ordinary rational or moderate integer data. Very large, very small or nearly parallel data can lose precision and make the exact-zero tests unreliable; check the original equations exactly in such cases.

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.