Self-taught mathematician Mary Somerville writes a bestselling guide to celestial mechanics, becoming the first woman admitted to the Royal Astronomical Society.