According to Kepler's laws of planetary motion and the conservation of energy, a planet in an elliptical orbit moves faster when it is closer to the sun and slower when it is farther away. Kinetic energy is directly proportional to the square of the speed ($KE = \frac{1}{2}mv^2$).