Section 3.2 and 3.3 in Matter and Interactions (4th edition)
Gravitational Acceleration
Earlier, you read about Newton's Universal Law of Gravitation or, rather, the model we use to describe the gravitational interaction between two objects with mass. In these notes, you will read about how the gravitational acceleration of system depends only on the system that attracts it and the relative position of the systems.
The Gravitational Force and the Momentum Principle
As you read earlier, the gravitational force between two objects with mass is given by the vector expression:
$$\vec{F}_{grav} = -G\dfrac{m_1 m_2}{|\vec{r}|^2}\hat{r}$$
where object 1 has mass, $m_1$, and object 2 has mass, $m_2$. If the separation vector ($\vec{r}$) describes the relative position of object 2 with respect to object 1 (as shown in the figure to the right):
$$\vec{r} = \vec{r}_2 - \vec{r}_1$$
then the force expression above describes the force that object 1 exerts on object 2. You can use The Momentum Principle to determine the acceleration of object 2 as a result of the gravitational force exerted by object 11).
$$\vec{F}_{net,2} = \dfrac{\Delta \vec{p}_2}{\Delta t} = \vec{F}_{grav,2}$$
Using the formula for each force, we find:
$$\dfrac{\Delta \vec{p}_2}{\Delta t} = m_2\dfrac{\Delta \vec{v}_2}{\Delta t} = m_2 \vec{a}_2 = -G\dfrac{m_1 m_2}{|\vec{r}|^2}\hat{r}$$
We then divide the mass of the object 2 out ($m_2$):
$$\vec{a}_2 = -G\dfrac{m_1}{|\vec{r}|^2}\hat{r}$$
The resulting expression is the acceleration that object 2 experiences due to it's gravitational interaction with object 1. Notice that the acceleration of object 2 depends only on the mass of object 1 ($m_1$), and relative position of object 2 with respect to object 1 ($\vec{r}$). It also points towards object 1, which indicates that the object 2 is attracted (and will thus experience an acceleration along the line between object 1 and 2).
So, in general:
$$\vec{a} = -G\dfrac{m}{|\vec{r}|^2}\hat{r}$$
Sometimes, it's useful to think of this acceleration occurring in a single dimension (e.g., along the line that connects object 1 and object 2). Let's take that line to line in the $x$-direction. In that case, the expression for the magnitude of the acceleration in $x$-direction is given by:
$$a_x = -G\dfrac{m}{x^2}$$
where the object with mass $m$ is the one that exerts the force on the mass in question (i.e., the object experiencing the acceleration) and $x$ is the distance between the objects.
The Local Gravitational Acceleration revisited
Earlier you read that the local gravitational acceleration was given by $\vec{g} \approx \langle 0,-9.81,0\rangle m/s$ or, rather that the magnitude of the acceleration was $g \approx 9.81 m/s.$ It turns out this value can be predicted by Newton's model for gravitational interactions, which demonstrates that the force that keeps us grounded on Earth is the very same force that hold planets in orbit and is responsible for the formation of stars.
For simplicity, let's take the downward vertical direction to be positive. Let's compute the acceleration due gravity at the surface of the Earth. Here the mass of the Earth is roughly $5.97\times10^{24} kg$ and the radius of the Earth is $6.38\times10^6 m$.
$$a_y=G\dfrac{M_{Earth}}{R^2_{Earth}} = \left(6.67384 \times 10^{-11} \dfrac{m^3}{kg\:s^2}\right)\left(\dfrac{5.97\times10^{24}\:kg}{(6.38\times10^6\:m)^2}\right) = 9.80 \dfrac{m}{s^2}$$
which is pretty close to the value we often use. In fact, the gravitational acceleration fluctuates a few percent over the surface of the Earth due to gravitaitonal anomalies. The variations in the Earth's crust that are primarily responsible for these anomalies were mapped by the GRACE Experiment.