Historically, Kepler came up with his first law using the triangulation method on Mars's orbit (here is a video of Terence Tao referencing the same: https://www.youtube.com/watch?v=7ne0GArfeMs&t=2367s).
Mars has an orbital period of 687 days. Suppose that the geocentric longitude (angle between fixed reference and Mars as viewed from Earth) and heliocentric longitude (angle between fixed reference and Earth as viewed from Sun) are measured at a particular time. Then, 687 days later, Mars would return to the same position but Earth wouldn't (it would be 43 days behind its original position). Now, we can plot two different lines from Earth to Mars. Their intersection is the position of Mars.
This process can be repeated several times, to obtain different positions of Mars throughout a year. To try to show this, I used the following data I found online:
Date | Heliocentric longitude of Earth ($\theta$) | Geocentric longitude of Mars ($\phi$) |
---|---|---|
Feb 17th 1585 | 159 | 135 |
Jan 5th 1587 | 115 | 182 |
Sept 19th 1591 | 005 | 284 |
Aug 6th 1593 | 323 | 346 |
Dec 7th 1593 | 086 | 003 |
Oct 25th 1595 | 042 | 050 |
Mar 28th 1587 | 197 | 168 |
Feb 12th 1589 | 154 | 219 |
Mar 10th 1585 | 180 | 132 |
Jan 26th 1587 | 136 | 185 |
My assumptions are that Earth has a perfectly circular orbit around the Sun and that the orbit of Earth is on the same plane as that of Mars. I use the first row. Now, for Feb 17th 1585 and Jan 5th 1587, the two lines are:
$$y - sin(159) = tan(135)(x - cos(159))$$ $$y - sin(115) = tan(182)(x - cos(115))$$
The gradient of the line from Earth to Mars is $tan(\phi)$. Additionally, a point on the line is the position of Earth, which is $(cos(\theta),sin(\theta))$ (radius = 1 AU). Solving the above equations gives the single point (-1.45,0.87).
Doing this for all five pairs of lines yields the following graph on Desmos:
Clearly, this looks nothing like an ellipse (unless you argue that I need significantly more points and only then will it start to resemble an ellipse). So, I have the following questions after doing all of these calculations:
(1) Is my method of calculation correct
(2) Is the data/method of calculation too imprecise to give an ellipse?
(3) If the answer to (2) is yes, then how exactly did Kepler deduce the elliptical nature of Mars's orbit? What numerical calculations did he do to come to this conclusion? Can these calculations be replicated?