A Physicist Turns the City Into an Equation