I know that the Earth (as well as the other planets) revolves around the Sun due to gravity. However, why does the Earth spin (the reason why we have day and night and not a permanent dark side and light side). On the same token the moon does not spin, it simply revolves with the Earth (and thus a permanent dark side of the moon).
Because the Earth, and the other planets, condensed from material in an accretion disk around the sun, which was itself spinning. Conservation of energy and angular momentum tells us the rest of the story.
**
This is not true. The same side always faces the earth due to its synchronous rotation, but the whole thing gets illuminated during it’s orbital cycle. During New Moon, the sun is illuminating the face we never get to see from Earth. See http://www.seds.org/nineplanets/nineplanets/luna.html .
pldennison and Crafter_Man got it right, but maybe I can help clarify it.
The solar system formed from a cloud of matter. Gravity pulled the material together. It did not come together symmetrically, so there was some overall spin that got faster as the stuff got closer together (like an ice skater who pulls in his/her arms to spin faster). Gravity pulled this material into what became the sun and planets. Since they started off with the rotation, they kept going (not enough friction in space to stop it).
The moon does spin. It just does takes the same amount of time for it to orbit the Earth as it does to spin once on its axis…so we only see one side.
[warning the following information has been pulled from deep and dark recesses of knowledge]
There is a slight braking force due to gravity, I believe. This is sometimes called “tidal effects”.
Visualize a planet orbiting the sun. The gravitational force of the sun deforms the shape of the planet into an ellipsoid rather than a sphere. (We can see this with the tides in the ocean, but it happens to a smaller degree with the land).
Now, as I understand it, the center of mass of the planet has shifted slightly sunward from the center of rotation. When the planet rotates, it takes some energy since the center of mass moves further from the sun.
But, then the planet re-deforms so that the ellipsoid again points toward the sun.
The short answer is that some of the kinetic (spin) energy of the planet is lost through friction as the planet deforms under tidal pressure.
So, for orbiting bodies in which the gravitational force pulling on it is large enough relative to its own mass, it will stabilize into a spin such that it maintains the same face to the object it is orbiting. (stops deforming and maintains a stable ellipsoid)
The moon does this around the earth, (but not the earth with respect to the moon because our mass is higher). Mercury does it around the sun.
Actually, Mercury doesn’t always show the same face to the Sun. It’s got what’s called a harmonic lock: Its rotation period is exactly 2/3 of its orbital period. The causes for this are similar to tidal lock, but slightly more complicated: It’s got a bit of a permanent deformation, and a rather eccentric orbit (as planets go, at least). With that period, the long face alternately points either directly towards or directly away from the Sun whenever it’s at perihelion (closest point to the Sun in its orbit).