HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Loci in the Coordinate Plane
  1. 1The equation of a locus
  2. 2Loci with a moving parameter
  3. 3Circles of Apollonius and other classic loci
  1. Mathematics
  2. /Loci in the Coordinate Plane
  3. /The equation of a locus

Course 32.1·Lesson 1 of 3

The equation of a locus

A locus is the set of all points that keep one rule. To find its equation, call the moving point P(h,k)P(h, k)P(h,k), write the rule in hhh and kkk, simplify, and then write xxx and yyy for hhh

about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Lesson 1 of 3Show all lessonsHide
Loci in the Coordinate Plane
  1. 1The equation of a locus
  2. 2Loci with a moving parameter
  3. 3Circles of Apollonius and other classic loci

Try the code and the simulations beside the lesson.

What you will be able to do

  • turn a rule about a moving point into the equation of its locus;
  • find the loci of a fixed sum and a fixed difference of squared distances;
  • check that every point of a curve keeps the rule, and find the points to leave out.

A goat on a rope

A goat is tied to a post by a rope 5 m5\ \text{m}5 m long. It walks with the rope tight. Where can it be? Every point 5 m5\ \text{m}5 m from the post, and no other point. That set of points is a circle. We call it the locus of the goat. The word is Latin for "place", and its plural is loci.

The equation of a locus is an equation that every point of the locus satisfies, and that no other point satisfies. Both halves matter. You met the method for straight lines in the chapter on straight lines. Here we use it for any rule.

The method in four steps

  1. Name the moving point. Call it P(h,k)P(h, k)P(h,k). Fixed points keep their own coordinates.
  2. Write the rule. Turn the words into an equation in hhh and kkk. Square a distance to remove its root.
  3. Remove everything else that moves. The final equation must hold only hhh, kkk and fixed numbers.
  4. Rename. Write xxx for hhh and yyy for kkk, and say what the curve is.

Then check both ways. Is every point of the curve really on the locus? A slope, a ratio or a triangle may not exist at some point. Those points are left out.

Sums and differences of squared distances

Put A(−d,0)A(-d, 0)A(−d,0) and B(d,0)B(d, 0)B(d,0) on the xxx-axis, so that AB=2dAB = 2dAB=2d. Then

PA2=(h+d)2+k2,\displaystyle PA^2 = (h + d)^2 + k^2,PA2=(h+d)2+k2,
PB2=(h−d)2+k2.\displaystyle PB^2 = (h - d)^2 + k^2.PB2=(h−d)2+k2.

A fixed sum. Adding gives PA2+PB2=2h2+2k2+2d2PA^2 + PB^2 = 2h^2 + 2k^2 + 2d^2PA2+PB2=2h2+2k2+2d2. So the rule PA2+PB2=sPA^2 + PB^2 = sPA2+PB2=s becomes

x2+y2=s2−d2.\displaystyle x^2 + y^2 = \dfrac{s}{2} - d^2.x2+y2=2s​−d2.

This is a circle about the midpoint MMM of ABABAB, when s>2d2s > 2d^2s>2d2. In any position of the axes it reads PA2+PB2=2PM2+12AB2PA^2 + PB^2 = 2PM^2 + \tfrac{1}{2}AB^2PA2+PB2=2PM2+21​AB2. You may know this as Apollonius' theorem for the median PMPMPM.

A fixed difference. Subtracting gives PA2−PB2=4dhPA^2 - PB^2 = 4dhPA2−PB2=4dh. So the rule PA2−PB2=sPA^2 - PB^2 = sPA2−PB2=s becomes the line

x=s4d.\displaystyle x = \dfrac{s}{4d}.x=4ds​.

It is perpendicular to ABABAB. When s=0s = 0s=0 it is the perpendicular bisector.

Three or more points. Let GGG be the centroid of A1A_1A1​, A2A_2A2​, A3A_3A3​. Write p⃗\vec pp​ and a⃗i\vec a_iai​ for position vectors from GGG, so a⃗1+a⃗2+a⃗3=0⃗\vec a_1 + \vec a_2 + \vec a_3 = \vec 0a1​+a2​+a3​=0. Then

∑∣p⃗−a⃗i∣2\displaystyle \sum |\vec p - \vec a_i|^2∑∣p​−ai​∣2
=3∣p⃗∣2+∑∣a⃗i∣2,\displaystyle \qquad = 3|\vec p|^2 + \sum |\vec a_i|^2,=3∣p​∣2+∑∣ai​∣2,

because the cross terms add to −2 p⃗⋅∑a⃗i=0-2\,\vec p \cdot \sum \vec a_i = 0−2p​⋅∑ai​=0. So PA12+PA22+PA32=3PG2+(a fixed number)PA_1^2 + PA_2^2 + PA_3^2 = 3PG^2 + (\text{a fixed number})PA12​+PA22​+PA32​=3PG2+(a fixed number). A fixed sum gives a circle about the centroid.

Two panels. On the left, two fixed points A and B with their midpoint M, and a blue circle about M: every point P on it has the same value of PA squared plus PB squared. On the right, the same two points and a red straight line crossing AB at right angles: every point on it has the same value of PA squared minus PB squared.

A worked example

Take A(1,2)A(1, 2)A(1,2) and B(5,−2)B(5, -2)B(5,−2). A point PPP moves so that PA2+PB2=50PA^2 + PB^2 = 50PA2+PB2=50. Find its locus.

  1. The rule. (h−1)2+(k−2)2+(h−5)2+(k+2)2=50(h - 1)^2 + (k - 2)^2 + (h - 5)^2 + (k + 2)^2 = 50(h−1)2+(k−2)2+(h−5)2+(k+2)2=50.
  2. Expand. 2h2+2k2−12h+34=502h^2 + 2k^2 - 12h + 34 = 502h2+2k2−12h+34=50, so h2+k2−6h−8=0h^2 + k^2 - 6h - 8 = 0h2+k2−6h−8=0.
  3. Rename and read. (x−3)2+y2=17(x - 3)^2 + y^2 = 17(x−3)2+y2=17. It is the circle with centre (3,0)(3, 0)(3,0) and radius 17\sqrt{17}17​.
  4. Check with the midpoint rule. M=(3,0)M = (3, 0)M=(3,0) and AB2=32AB^2 = 32AB2=32. Then 2PM2+16=502PM^2 + 16 = 502PM2+16=50 gives PM2=17PM^2 = 17PM2=17. The two methods agree.

A point and a line

A point PPP moves so that its distance from a fixed point SSS is eee times its distance from a fixed line. The locus is a conic: an ellipse when e<1e < 1e<1, a parabola when e=1e = 1e=1 and a hyperbola when e>1e > 1e>1. You study these curves in the chapter on conic sections. Here is one locus of this kind.

PPP is always as far from (0,2)(0, 2)(0,2) as from the xxx-axis. Then h2+(k−2)2=k2h^2 + (k - 2)^2 = k^2h2+(k−2)2=k2, so h2=4k−4h^2 = 4k - 4h2=4k−4. The locus is the parabola x2=4(y−1)x^2 = 4(y - 1)x2=4(y−1).

Practise with new numbers

Try it in Python

The program finds the circle for a fixed sum of squared distances. It then walks round the circle and checks the rule at eight points.

Read it first. Then run it. Is the sum the same at every point?

1. Change s = 50 to s = 10, and then to s = 16. What does the program say each time, and why?

2. Move B to (5, 6). Predict the new centre before you run it.

Common mistakes

  • Keeping a moving quantity. The final equation must hold only xxx, yyy and fixed numbers.
  • Losing half of an absolute value. A distance from a line has modulus signs. Removing them gives two cases.
  • Forgetting the check. Points where the rule has no meaning are not on the locus.
  • A circle with no points. x2+y2=−3x^2 + y^2 = -3x2+y2=−3 has no real points. Say so; do not call it a circle.

Remember these

  • Method: P(h,k)P(h, k)P(h,k), the rule, eliminate, rename, check.
  • PA2+PB2=sPA^2 + PB^2 = sPA2+PB2=s: a circle about the midpoint of ABABAB.
  • PA2−PB2=sPA^2 - PB^2 = sPA2−PB2=s: a line perpendicular to ABABAB.
  • A sum over three points: a circle about their centroid.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A point PPP moves so that PA2+PB2=40PA^2 + PB^2 = 40PA2+PB2=40, with A(−1,3)A(-1, 3)A(−1,3) and B(3,−1)B(3, -1)B(3,−1). Find the centre and the radius of its locus.
  1. With A(−3,0)A(-3, 0)A(−3,0) and B(3,0)B(3, 0)B(3,0), a point moves so that PA2−PB2=24PA^2 - PB^2 = 24PA2−PB2=24. What is its locus?
  1. A point is always as far from (4,0)(4, 0)(4,0) as from the line x=−4x = -4x=−4. Find its locus.
  1. A point is always as far from the xxx-axis as from the yyy-axis. A student writes the locus as y=xy = xy=x. Is that complete?
  1. A point stays 222 units from the line 3x+4y=53x + 4y = 53x+4y=5. Another student gives the locus as 3x+4y=153x + 4y = 153x+4y=15. What is missing?

References

  • S. L. Loney, The Elements of Coordinate Geometry, Part I, the chapter on the locus and its equation.

Enroll free in Loci in the Coordinate Plane

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

Two radio beacons stand at A(1, -1) and B(7, 7) on a flat field, with coordinates in km…Hard · High School (11–12) · by StemPy Lab
Let A and B be two different fixed points, with position vectors a and b, and let s be a fixed…Advanced · High School (11–12) · by StemPy Lab
A small moon moves so that its distance from a fixed point F(3, 0) is always half of its distance…Hard · High School (11–12) · by StemPy Lab
Next: lesson 2Loci with a moving parameter
← Loci in the Coordinate Plane
← PreviousLoci with a moving parameter →

Discussion (0)

Log in to join the discussion.

Loading…

and
kkk
. A fixed sum of squared distances from two points gives a circle about their midpoint. A fixed difference gives a line perpendicular to the segment. A fixed ratio of distances to a point and a line gives a conic.

Python Labs (1)

Loci of squared distancesPython Lab · by StemPy Lab