This question has puzzled me for quite some time. The following image is meant to be an illustration of how gravity can be modelled as a warp in spacetime, but isn't it completely backwards? In other words, it shows space being warped AWAY from the center of gravity, but shouldn't it actually show space being warped TOWARD the center of gravity?
Here a relatively (pardon the the pun) mathematically friendly explanation.
The diagram is not an accurate depiction of how gravity works or how space-time curves due to gravity (it does not).
(1) The diagram shows a 2D plane and balls embedded in 3D space.
(2) It incorrectly depicts gravity as a real force as the small ball is “falling” towards the large ball.
(3) The diagram does not show the orbital plane can rotate which is known as precession.
In GR (General Relativity) gravity is depicted as a fictitious not a real force.
Gravity is only real in GR when defined as a tidal force such as when moon is too close to a planet and breaks up, or an object undergoes spaghettification when too close to a black hole.
We feel fictitious forces when we drive a car, when the car accelerates, we are pushed into the seat, or when decelerating we are pushed out of the seat.
Einstein visualized this using an elevator, a person inside an elevator cannot tell if the elevator is stationary in the Earth’s gravitational field or is being accelerated in space at g in the opposite direction to dropping a ball inside the elevator.
This is known as the equivalence principle and was a precursor to GR as a theory for gravity.
The geometry of space-time is determined by a metric ds² which is an interval when summed (∫ds) over all the intervals defines the straightest possible path between two points.
If an object follows this trajectory it is known to be on a geodesic.
In 3D flat space the metric is ds² = dx² + dy² + dz² which is Pythagoras’s theorem in 3D.
For a planetary orbit in 4D spacetime is the Schwarzschild metric for a massive central body of mass M around which space-time curves in a spherical symmetry. G is the gravitational constant, c the speed of light while r, θ and φ are parameters describing spherical space.
ds² = (1-2MG/c²r)c²dt² - dr² /(1-2MG/c²r) - r²(dθ² + sin²θdφ²)
A planet or satellite moving on this geodesic will be in an orbit and also in free fall as an accelerometer will read zero as there is no proper gravitational force acting on it, while the plane of the orbit can undergo precession which the metric predicts and Newtonian gravity cannot fully explain.