How to find the position on ellipse (or hyperbola) arc

zergingk8l

zergingk8l

Answered question

2022-04-21

How to find the position on ellipse (or hyperbola) arc if we know it's euclidean distance from given point and direction of movement?

Answer & Explanation

botassaiby

botassaiby

Beginner2022-04-22Added 16 answers

Suppose you have the ellipse
x2a2+y2b2=1      (1)
Let (x1,y1) be on that ellipse. Now you want to find the point (x,y) such the Euclidean distance between the two points is a given value. Therefore,
(xx1)2+(yy1)2=R2      (2)
where R is the given chord length. Equation (2) is an equation of a circle whose center is (x1,y1) and radius R.
We have to intersect equations (1) and (2), and this will result in up to 4 points (x,y), one being in a counter clockwise direction from (x1,y1) and one in a clockwise direction from this point.
The parametric equation of the ellipse is
(x,y)=(acost,bsint)      (3)
So that (x1,y1)=(acost1,bsint1)
where t1=ATAN2(x1a,y1b)
Substitute (3) into (2)
(acostx1)2+(bsinty1)2=R2
Expanding results in
a2cos2t+b2sin2t2ax1cost2bsinty1+x12+y12R2=0      (4)
To solve equation (4) use the following substitution: z=tant2.
Then z2+1=sec2t2=21+cost from which it follows that
cost=1+2z2+1=1z2z2+1      (5)
Now sin2t=1cos2t=1(1z2)2(1+z2)2
From which it follows that sint=2zz2+1      (6)
Using (5),(6) equation (4) becomes of the form f(z)=0 where f is a quartic polynomial in z.
Solving for its real roots zi, the values of ti is found using
ti=2tan1zi
There will be up to four solutions, and one can determine which ti corresponds to a motion direction that is counter clockwise or clockwise.
Finally, if you replace the ellipse with a hyperbola, then you're looking at
x2a2y2b2=1
whose parametric form is (x,y)=(asect,btant)
Plugging these into the circle equation, then multiplying through by cos2t results in an equation in cost,sint,cos2t,sin2t and the same method of solution outlined above applies.

Cloplerotly1gu

Cloplerotly1gu

Beginner2022-04-23Added 11 answers

You need an equation for the ellipse, and the coordinates of your given point (p,q) on the ellipse. Then one can form the equation for the circle of radius L centered at (p,q) namely (xp)2+(yq)2=L2. You now have two quadratic equations in x, y, namely the ellipse and the circle. In general their intersection (found by solving both equations simultaneously) can be up to four different points.
Then depending on which way the ellipse is oriented you have to decide which point you want. It may be the first point that a point travelling on the ellipse in your chosen direction reaches after passing through the given point (p,q). But keep in mind the orbiting point will go through all the intersections found earlier, and it's up to you to decide which one you want.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?