Ohm's own studies prepared him for his doctorate which he received from the University of Erlangen on October 25, 1811. He immediately joined the faculty there as a lecturer in mathematics but left after three semesters because of unpromising prospects. He could not survive on his salary as a lecturer. The Bavarian government offered him a post as a teacher of mathematics and physics at a poor quality school in Bamberg which Ohm accepted in January 1813. Unhappy with his job, Georg began writing an elementary textbook on geometry as a way to prove his abilities. That school was closed in February 1816. The Bavarian government then sent Ohm to an overcrowded school in Bamberg to help out with the teaching of mathematics.