Newtonian geodesic deviation

imagine to throw two masses through a homogeneous gravitational field (i.e. a field with a constant gravitational acceleration): please show that the relative distance between the two objects depends quadratically on time. could you explain this result using relativity as well?