I'm facing a problem which states the following:
Suppose that it is discovered that Newton's law of gravitation is incorrect and that the force $F$ on test particle of mass $m$ due to a body of mass $M$ has an additional term that does not depend on $M$, as follows:
$$F = - \frac{GmM}{r^2} + \frac{A m r}{3}$$
Where $A$ is a positive constant. Assuming that Newton's sphere theorem continues to hold, derive the appropriate form fo the Friedmann equations in this case.
How I proceeded
Consider the motion of a point like particle of mass $m$ located on the surface of a sphere of homogeneous density $\rho$ and radius $R = a r$. The acceleration this particle is subjected is
$$\ddot{R} = r \ddot{a} = \frac{-GM}{r^2} + \frac{AR}{3} = -\frac{G}{R^2}\left(\frac{4}{3}\pi R^3 \rho\right) + \frac{AR}{3} = -\frac{4}{3}\pi G\rho R + \frac{AR}{3}$$
Hence
$$\ddot{R} = r\ddot{a} = \frac{1}{3}\left[A - 4\pi\rho G\right]ra$$
$$3\frac{\ddot{a}}{\dot{a}} = A - 4\pi\rho G$$
Adding the pressure term and arranging:
$$3\frac{\ddot{a}}{\dot{a}} = A - 4\pi\rho G(\rho + 3P)$$
Is this correct?
Thank you so much!