 He worked as a math teacher and was a professor of mathematics at the University of Graz, but still found time to study astronomy.He left Graz for Prague when Lutherans were banned from the city.Ludwig Boltzmann was Professor for Mathematical Physics from 1869 to 1890.