Equation for galaxy