<p>This might not be so hard after all.</p>
<p>Below I show the math for the analytical solution for a Kelperian orbit; the catch is that it's only analytical for <span class="math-container">$t(\theta)$</span> and not <span class="math-container">$\theta(t)$</span> but that shouldn't cause a problem in this case.</p>
<p><em><strong>I will not solve the problem for you</strong></em> but I'll make a recommendation how to proceed:</p>
<ul>
<li>Step 1: draw a diagram on 2D paper (the best kind!) with a unit circle for Earth and a generic conic of your choice for the comet</li>
<li>Step 2: put two dots on the comet's orbit and two corresponding dots for Earth.</li>
<li>Step 3: label the Sun-Earth-Comet angles and distances for the two time points</li>
<li>Step 4: scratch your head a bit, then have fun and solve!</li>
</ul>
<p>From <a href="https://space.stackexchange.com/a/43237/12102">this answer to <em>What is the analytical closed-form solution of the two-body problem to verify its numerical integration results?</em></a> (where you can find some python script that might help towards checking your solution numerically):</p>
<blockquote>
<p>Equation 27 in Wikipedia's <a href="https://en.wikipedia.org/wiki/Kepler_orbit#Properties_of_trajectory_equation" rel="noreferrer">Kepler orbit; Properties of trajectory equation</a> is</p>
<p><span class="math-container">$$t = a \sqrt{\frac{a}{\mu}}\left(E - e \sin E \right)$$</span></p>
<p>where <span class="math-container">$a$</span> is the semimajor axis, <span class="math-container">$\mu$</span> is the <a href="https://en.wikipedia.org/wiki/Standard_gravitational_parameter" rel="noreferrer">standard gravitational parameter</a> also known as the product <span class="math-container">$GM$</span>, <span class="math-container">$e$</span> is the eccentricity and <span class="math-container">$E$</span> is the <a href="https://en.wikipedia.org/wiki/Eccentric_anomaly" rel="noreferrer">Eccentric anomaly</a>.</p>
<p><a href="https://en.wikipedia.org/wiki/Eccentric_anomaly" rel="noreferrer">The relationship</a> between <span class="math-container">$E$</span> and the <a href="https://en.wikipedia.org/wiki/True_anomaly" rel="noreferrer">true anomaly</a> <span class="math-container">$\theta = \arctan2(y, x)$</span> is</p>
<p><span class="math-container">$$\tan \frac{\theta}{2} = \sqrt{ \frac{1+e}{1-e} } \tan \frac{E}{2}$$</span></p>
<p>and solving for <span class="math-container">$E$</span>:</p>
<p><span class="math-container">$$E(\theta) = 2 \arctan \sqrt{ \frac{1-e}{1+e} } \tan \frac{\theta}{2}.$$</span></p>
<p>plugging back in to the first equation (but not writing it all out):</p>
<p><span class="math-container">$$t(\theta) = a \sqrt{\frac{a}{\mu}}\left(E(\theta) - e \sin E(\theta) \right)$$</span></p>
</blockquote>

CC BY-SA 4.0
2021-06-28T15:54:00.040Z
As usual, a great answer! But what do you mesan with $t (\theta)$? Does the time depend on the angle?
Deschele Schilder
CC BY-SA 4.0
2021-06-28T16:18:16.277Z
@DescheleSchilder "Below I show the math for the analytical solution for a Kelperian orbit; the catch is that it's only analytical for $t(\theta)$ and not $\theta(t)$ but that shouldn't cause a problem in this case." You need either a series approximation or a numerical technique to get the position of an object in an orbit as a function of time.
uhoh
CC BY-SA 4.0
2021-06-28T14:55:45.330Z
2021-06-28T14:55:45.330Z
uhoh
<p>For what's it worth still after the great answer above, if you know two distances, two angles, and the time elapsed between these observed values, then <em>in priciple</em> you should be able to calculate the orbit of the comet wrt to the Sun. Under the given circumstances. You can transform the angle and distance from Earth to the distance and position wrt the Sun. If you know the distance and position wrt the Sun at two given times then the orbit is fixed.</p>
<p>Knowing only the distances or the positions at two times would be insufficient. Just as it is insufficient to know the positions of an object at two dïfferent times when it moves in the gravity field of Earth. You need the two velocities also (well, one of both at least, but at the same time, that is, two different variables). For the comet you have to make <em>two</em> measurements though. You have to measure two positions (angles) and two distances, as you propose.</p>
<p>You should be able to find out if the comet is somehow accelerated on its own (by means of a rocket controled by the members of an advanced civilization who use the comet for cover). While you may not be able to calculate the ecact  orbit the knowledge of the time, positions, and distances will allow to see a divergent orbit. If they will steer in such a way to be at the same two points and the same two distances within the same time the situation would be very disturbing  be cause they can change their velocity at will. It would look as if they conformed to a cone-motion but in fact they travel on a different orbit. But since they don't know the times you make the measurements, this scenario is highly improbable (not to mention the  scenario of aliens in a rocket itself).</p>

CC BY-SA 4.0
2021-06-28T16:28:59.380Z
I think you have it almost solved! You have two legs of a triangle and the angle between them so you can get two $x, y$ points and thus two $r, \theta$ points. That's not enough to get $a, \varepsilon$ because there is an additional constant (longitude of periapsis) but with the time between the two points plus the equations in my answer I think you've got it pretty much solved.
uhoh
CC BY-SA 4.0
2021-06-28T16:40:53.743Z
Time between the two points is not enough; there are always at least two Keplerian-Newtonian orbits/trajectories that go from designated point A to designated point B in fixed time t. (Admittedly, in some cases, the other way is a superluminal hyperbolic trajectory around a point-mass sun)
notovny
CC BY-SA 4.0
2021-06-28T21:48:13.500Z
@notovny Rats! Well at least two solutions is better than an infinite number; $x^2 = 4$ has two solutions but we are happy with $\pm$2 and don't consider it unsolved nor unsolvable.
uhoh
CC BY-SA 4.0
2021-06-28T22:30:51.733Z
@notovny What is  the other orbit for the comet in this csse? The other way round? Or maybe back in time? Maybe an intermediate observation must be made.
Deschele Schilder
CC BY-SA 4.0
2021-06-28T16:18:06.063Z
2021-06-28T18:18:49.230Z
2021-06-28T18:18:49.230Z
Deschele Schilder
<p>The time of observation after the first observation (in years), the distance between the earth and the comet (in AU) and the angle between the sun and the comet (in radians) is given.</p>
<p>How to find whether the comet is moving in an elliptical or hyperbolic orbit around the sun, and what the time period is (if elliptic) or the distance of closest approach to the sun (if hyperbolic). First of all, we have to find the eccentricity.</p>
<p>For this problem, let us make the following three simplifying assumptions:</p>
<ol>
<li><p>The orbit of the earth is perfectly circular with radius = 1AU and time period = 1 year</p>
</li>
<li><p>The orbit of the comet is coplanar to the orbit of the earth</p>
</li>
<li><p>Gravitational effects of the earth on the comet can be neglected</p>
</li>
</ol>

CC BY-SA 4.0
2021-06-28T12:39:25.560Z
What do you mean by the time of observation after the first observation? Also, the people here really appreciate if you give what have you done and your research.
User123
CC BY-SA 4.0
2021-06-28T12:48:51.533Z
If it's moving on a hyperbolic orbit, it means it's not bound, i.e. it's extrasolar. The quickest way to know whether an extrasolar object has visited us, is to check the media for interviews with Avi Loeb about aliens…
pela
CC BY-SA 4.0
2021-06-28T12:50:58.067Z
The net energy on the hyperbolic orbit is positive, and on the elliptic orbit is negative.
User123
CC BY-SA 4.0
2021-06-28T13:25:00.420Z
So there are 2 observations on the distance and angle done? As must be?
Deschele Schilder
CC BY-SA 4.0
2021-06-28T18:07:20.393Z
@User123 that would mean taking the first observation as t=0 and in during that time, the comet covered the theta angle
Haris Ansari
CC BY-SA 4.0
2021-06-28T22:56:25.743Z
How do you know the distance to the comet? Usually, everything about the orbit (which includes the distance) is unknown, and N observations give the 2D position in the sky. The observations are used to determine the orbit (including the distance).
JohnHoltz
CC BY-SA 4.0
2021-06-29T00:25:21.770Z
What does "the angle between the sun and the comet (in radians) is given" mean? Is it the angular distance between the comet and the sun as seen from the Earth?
Acccumulation
CC BY-SA 4.0
2021-06-29T01:48:09.243Z
The question is clear and mathematically solvable, there are no "details or clarity" necessary here as is evident by the two answers and associated comments, so the close votes seem spurious and counter-productive. Voting to **leave open!**
uhoh
<comets><kepler><planetary-science>
Whether the comet is moving in an elliptical or hyperbolic orbit around the sun?
Haris Ansari
# Whether the comet is moving in an elliptical or hyperbolic orbit around the sun?

(Asked by: username_0 on 2021-06-28)

The time of observation after the first observation (in years), the distance between the earth and the comet (in AU) and the angle between the sun and the comet (in radians) is given.

How to find whether the comet is moving in an elliptical or hyperbolic orbit around the sun, and what the time period is (if elliptic) or the distance of closest approach to the sun (if hyperbolic). First of all, we have to find the eccentricity.

For this problem, let us make the following three simplifying assumptions:

1. The orbit of the earth is perfectly circular with radius = 1AU and time period = 1 year
2. The orbit of the comet is coplanar to the orbit of the earth
3. Gravitational effects of the earth on the comet can be neglected

**Tags:** comets, kepler, planetary-science
> **Comments:**
> **username_1**: What do you mean by the time of observation after the first observation? Also, the people here really appreciate if you give what have you done and your research.  
> **username_2**: If it's moving on a hyperbolic orbit, it means it's not bound, i.e. it's extrasolar. The quickest way to know whether an extrasolar object has visited us, is to check the media for interviews with Avi Loeb about aliens…  
> **username_1**: The net energy on the hyperbolic orbit is positive, and on the elliptic orbit is negative.  
> **username_3**: So there are 2 observations on the distance and angle done? As must be?  
> **username_0**: @User123 that would mean taking the first observation as t=0 and in during that time, the comet covered the theta angle  
> **username_4**: How do you know the distance to the comet? Usually, everything about the orbit (which includes the distance) is unknown, and N observations give the 2D position in the sky. The observations are used to determine the orbit (including the distance).  
> **username_5**: What does "the angle between the sun and the comet (in radians) is given" mean? Is it the angular distance between the comet and the sun as seen from the Earth?  
> **username_6**: The question is clear and mathematically solvable, there are no "details or clarity" necessary here as is evident by the two answers and associated comments, so the close votes seem spurious and counter-productive. Voting to **leave open!**  

---

## 2 answers

### Answer by username_6 on 2021-06-28. Score: 5

This might not be so hard after all.

Below I show the math for the analytical solution for a Kelperian orbit; the catch is that it's only analytical for $t(\theta)$ and not $\theta(t)$ but that shouldn't cause a problem in this case.

***I will not solve the problem for you*** but I'll make a recommendation how to proceed:

* Step 1: draw a diagram on 2D paper (the best kind!) with a unit circle for Earth and a generic conic of your choice for the comet
* Step 2: put two dots on the comet's orbit and two corresponding dots for Earth.
* Step 3: label the Sun-Earth-Comet angles and distances for the two time points
* Step 4: scratch your head a bit, then have fun and solve!

From [this answer to *What is the analytical closed-form solution of the two-body problem to verify its numerical integration results?*](https://space.stackexchange.com/a/43237/12102) (where you can find some python script that might help towards checking your solution numerically):

> Equation 27 in Wikipedia's [Kepler orbit; Properties of trajectory equation](https://en.wikipedia.org/wiki/Kepler_orbit#Properties_of_trajectory_equation) is
>
> $$t = a \sqrt{\frac{a}{\mu}}\left(E - e \sin E \right)$$
>
> where $a$ is the semimajor axis, $\mu$ is the [standard gravitational parameter](https://en.wikipedia.org/wiki/Standard_gravitational_parameter) also known as the product $GM$, $e$ is the eccentricity and $E$ is the [Eccentric anomaly](https://en.wikipedia.org/wiki/Eccentric_anomaly).
>
> [The relationship](https://en.wikipedia.org/wiki/Eccentric_anomaly) between $E$ and the [true anomaly](https://en.wikipedia.org/wiki/True_anomaly) $\theta = \arctan2(y, x)$ is
>
> $$\tan \frac{\theta}{2} = \sqrt{ \frac{1+e}{1-e} } \tan \frac{E}{2}$$
>
> and solving for $E$:
>
> $$E(\theta) = 2 \arctan \sqrt{ \frac{1-e}{1+e} } \tan \frac{\theta}{2}.$$
>
> plugging back in to the first equation (but not writing it all out):
>
> $$t(\theta) = a \sqrt{\frac{a}{\mu}}\left(E(\theta) - e \sin E(\theta) \right)$$

> **Comments:**
> **username_3**: As usual, a great answer! But what do you mesan with $t (\theta)$? Does the time depend on the angle?  
> **username_6**: @DescheleSchilder "Below I show the math for the analytical solution for a Kelperian orbit; the catch is that it's only analytical for $t(\theta)$ and not $\theta(t)$ but that shouldn't cause a problem in this case." You need either a series approximation or a numerical technique to get the position of an object in an orbit as a function of time.  

---

### Answer by username_3 on 2021-06-28. Score: 4

For what's it worth still after the great answer above, if you know two distances, two angles, and the time elapsed between these observed values, then *in priciple* you should be able to calculate the orbit of the comet wrt to the Sun. Under the given circumstances. You can transform the angle and distance from Earth to the distance and position wrt the Sun. If you know the distance and position wrt the Sun at two given times then the orbit is fixed.

Knowing only the distances or the positions at two times would be insufficient. Just as it is insufficient to know the positions of an object at two dïfferent times when it moves in the gravity field of Earth. You need the two velocities also (well, one of both at least, but at the same time, that is, two different variables). For the comet you have to make *two* measurements though. You have to measure two positions (angles) and two distances, as you propose.

You should be able to find out if the comet is somehow accelerated on its own (by means of a rocket controled by the members of an advanced civilization who use the comet for cover). While you may not be able to calculate the ecact orbit the knowledge of the time, positions, and distances will allow to see a divergent orbit. If they will steer in such a way to be at the same two points and the same two distances within the same time the situation would be very disturbing be cause they can change their velocity at will. It would look as if they conformed to a cone-motion but in fact they travel on a different orbit. But since they don't know the times you make the measurements, this scenario is highly improbable (not to mention the scenario of aliens in a rocket itself).

> **Comments:**
> **username_6**: I think you have it almost solved! You have two legs of a triangle and the angle between them so you can get two $x, y$ points and thus two $r, \theta$ points. That's not enough to get $a, \varepsilon$ because there is an additional constant (longitude of periapsis) but with the time between the two points plus the equations in my answer I think you've got it pretty much solved.  
> **username_7**: Time between the two points is not enough; there are always at least two Keplerian-Newtonian orbits/trajectories that go from designated point A to designated point B in fixed time t. (Admittedly, in some cases, the other way is a superluminal hyperbolic trajectory around a point-mass sun)  
> **username_6**: @notovny Rats! Well at least two solutions is better than an infinite number; $x^2 = 4$ has two solutions but we are happy with $\pm$2 and don't consider it unsolved nor unsolvable.  
> **username_3**: @notovny What is  the other orbit for the comet in this csse? The other way round? Or maybe back in time? Maybe an intermediate observation must be made.  

---

