Hello, magentarita!
The orbit of a planet about the Sun is an ellipse, with the Sun at one focus.
The aphelion of a planet is its greatest distance from the Sun
. . and the perihelion is the shortest distance.
The mean distance of a planet from the Sun
. . is the length of the semimajor axis of the orbit.
The mean distance of Mars from the Sun is 142 million miles.
If the perihelion of Mars is 128.5 million miles, what is the aphelion? Code:
* * *
*  *
*  *
*  *

*  13.5 *
B *       *   o    * A
* 142 O S 128.5 *

*  *
*  *
*  *
* * *
The sun is at
The center of the ellipse is
All measurements are in millions of miles.
The mean distance is 142
. .
The perihelion is 128.5
. .
The aphelion is: .
Write an equation for the orbit of Mars about the Sun. I assume that the center of the ellipse is at the origin.
The equation of an ellipse is: .
We have: .
. . where: .
Hence: .
Therefore, the equation is: .