Short Answer

We would end up at the other side of the Earth in around 3737 minutes.

How does gravity work inside of Earth?

Earth is more or less spherical and its density is more or less spherically symmetric. That's why we can model its density and gravitational field in function of the distance from the center rr only.

Let's define:

Now, we can apply Gauss's law for gravity to a sphere of radius rr inside Earth and we can use the fact that the surface of a sphere of radius rr is 4πr24 \pi r^2:

B(r)g(r)dA=4πGM(r)    4πr2g(r)=4πGM(r)    g(r)=GM(r)r2\begin{aligned} \oiint_{\partial B(r)} \vec{g(r)} \cdot d\vec{A} & = -4 \pi GM(r) \\ \implies 4 \pi r^2 g(r) & = -4 \pi GM(r) \\ \implies g(r) & = - \frac{GM(r)}{r^2} \end{aligned}

So now if we want to compute the gravitational field for a certain radius, we need to know the amount of mass contained in the sphere of this radius. For this, we can use the density data from the Preliminary Reference Earth Model (PREM)

Loading...

Mass

M(r)=B(r)ρ(r)dr=0R4πr2ρ(r)dr=4π0Rr2ρ(r)dr\begin{aligned} M(r) & = \oiiint_{B(r)} \rho(r) d\vec{r} \\ & = \int_0^R 4 \pi r^2 \rho(r) dr \\ & = 4 \pi \int_0^R r^2 \rho(r) dr \end{aligned}

To estimate this integral, we are going to consider consecutive values of rr and ρ\rho. Let's call them rnr_n, rn+1r_{n+1}, ρn\rho_n and ρn+1\rho_{n+1}.
We compute the average value of r2r^2 between rnr_n, rn+1r_{n+1}:

r2=1rn+1rnrnrn+1x2dx=1rn+1rn[x33]rnrn+1=13rn+13rn3rn+1rn\begin{aligned} \overline{r^2} & = \frac{1}{r_{n+1}-r_n} \int_{r_n}^{r_{n+1}} x^2 dx \\ & = \frac{1}{r_{n+1}-r_n} \left[ \frac{x^3}{3} \right]_{r_n}^{r_{n+1}} \\ & = \frac{1}{3} \frac{r_{n+1}^3-r_n^3}{r_{n+1}-r_n} \end{aligned}

With this value, we can now integrate between rnr_n and rn+1r_{n+1} by adding r2ρ(rn+1rn)\overline{r^2} * \overline{\rho} * \left( r_{n+1} - r_n \right).

Loading...

Here we take a moment to verify that our approximation is good enough.
The current estimate of Earth's mass by science is (5.9722±0.0006)1024(5.9722 \pm 0.0006) \cdot 10^{24}.
The way I computed the integral gives me 5.973210245.9732 \cdot 10^{24} which is only 0.000410240.0004 \cdot 10^{24} away from the confidence interval.

Gravitational Field

Now that finally have the mass, we can compute the gravitational field g(r)=GM(r)r2|g(r)| = \frac{GM(r)}{r^2}

Loading...

Note that the Earth core is so dense compared to the mantle and crust that the gravitational field actually peaks at the interface between the two.

Motion

Now that we finally have our gravitational field figured out, we can compute the motion:

a(t)=g(r(t))v(t)=0ta(x)dxr(t)=0tv(x)dx+R\begin{aligned} a(t) & = g(r(t)) \\ v(t) & = \int_0^t a(x) dx \\ r(t) & = \int_0^t v(x) dx + R \end{aligned}
Loading... Loading...

For making those graphs, I've integrated the motion equations every 0.80.8 seconds for 1200012000 steps. I then saved a datapoint every 2020 intervals.
There are some interesting stuff happening here (which was expected from the shape of the gravitational field).
In Earth's crust and mantle the acceleration that we feel is pretty much constant. Then, once we traverse the denser core, the force of gravity inverts itself.
We can see that from the acceleration graph, which almost looks like a square signal. As a result, the speed looks like the integral of a square signal: a triangle signal. Then, the displacement is almost the integral of a triangle signal, so a piece-wise quadratic function. It repeats around every 45754575 seconds, so it takes around 11 hour and 1515 minutes to complete a full cycle. That's 3737 minutes to go to the other side of the Earth.