Begin by drawing a picture, showing the star and planet, and their positions.
Figure: A star and planet.
To calculate the gravitational force on the planet, we need the relative position of the planet (i.e. the position of the planet relative to the star). This is the position vector from the star to the planet.
Figure: The relative position vector of the planet.
The gravitational force on the planet is given by Newton's Law of Gravitation.
where is the relative position of the planet. The relative position of the planet in this case is
Note that the relative position vector points to the right and downward which matches the picture, giving us confidence that our calculation is correct. Find the magnitude of and its unit vector.
Now, substitute the given quantities and solve for the gravitational force on the planet.
Note that the gravitational force points to the left and upward. This is the direction from the planet toward the star, which is consistent with the fact that gravitational force is attractive. A picture of the gravitational force on the planet is shown below. Note that the direction of the gravitational force on the planet is to the left and upward, which is consistent with our calculation.
Figure: The gravitational force by the star on the planet.
