Berlin (1826–1855)
As soon as he came to Berlin, Dirichlet applied to lecture at the University of Berlin, and the Education Minister approved the transfer and in 1831 assigned him to the faculty of philosophy. The faculty required him to undertake a renewed habilitation qualification, and although Dirichlet wrote a Habilitationsschrift as needed, he postponed giving the mandatory lecture in Latin for another 20 years, until 1851. As he had not completed this formal requirement, he remained attached to the faculty with less than full rights, including restricted emoluments, forcing him to keep in parallel his teaching position at the Military School. In 1832 Dirichlet became a member of the Prussian Academy of Sciences, the youngest member at only 27 years old.
Dirichlet had a good reputation with students for the clarity of his explanations and enjoyed teaching, especially as his University lectures tended to be on the more advanced topics in which he was doing research: number theory (he was the first German professor to give lectures on number theory), analysis and mathematical physics. He advised the doctoral theses of several important German mathematicians, as Gotthold Eisenstein, Leopold Kronecker, Rudolf Lipschitz and Carl Wilhelm Borchardt, while being influential in the mathematical formation of many other scientists, including Elwin Bruno Christoffel, Wilhelm Weber, Eduard Heine, Ludwig von Seidel and Julius Weingarten. At the Military Academy, Dirichlet managed to introduce differential and integral calculus in the curriculum, raising the level of scientific education there. However, he gradually started feeling that his double teaching load, at the Military academy and at the university, was limiting the time available for his research.
While in Berlin, Dirichlet kept in contact with other mathematicians. In 1829, during a trip, he met Carl Jacobi, at the time professor of mathematics at Königsberg University. Over the years they kept meeting and corresponding on research matters, in time becoming close friends. In 1839, during a visit to Paris, Dirichlet met Joseph Liouville, the two mathematicians becoming friends, keeping in contact and even visiting each other with the families a few years later. In 1839, Jacobi sent Dirichlet a paper by Ernst Kummer, at the time a schoolteacher. Realizing Kummer's potential, they helped him get elected in the Berlin Academy and, in 1842, obtained for him a full professor position at the University of Breslau. In 1840 Kummer married Ottilie Mendelssohn, a cousin of Rebecka's.
In 1843, when Jacobi fell ill, Dirichlet traveled to Königsberg to help him, then obtained for him the assistance of King Friedrich Wilhelm IV's personal physician. When the physician recommended that Jacobi spend some time in Italy, Dirichlet joined him on the trip together with his family. They were accompanied to Italy by Ludwig Schläfli, who came as a translator; as he was strongly interested in mathematics, both Dirichlet and Jacobi lectured to him during the trip, and he later became an important mathematician himself. The Dirichlet family extended their stay in Italy to 1845, their daughter Flora being born there. In 1844, Jacobi moved to Berlin as a royal pensioner, their friendship becoming even closer. In 1846, when the Heidelberg University tried to recruit Dirichlet, Jacobi provided von Humboldt the needed support to obtain a doubling of Dirichlet's pay at the university in order to keep him in Berlin; however, even then he was not paid a full professor wage and could not leave the Military Academy.
Holding liberal views, Dirichlet and his family supported the 1848 revolution; he even guarded with a rifle the palace of the Prince of Prussia. After the revolution failed, the Military Academy closed temporarily, causing him a large loss of income. When it reopened, the environment became more hostile to him, as officers he was teaching were expected to be loyal to the constituted government. Some of the press who had not sided with the revolution pointed him out, as well as Jacobi and other liberal professors, as "the red contingent of the staff".
In 1849 Dirichlet participated, together with his friend Jacobi, in the jubilee of Gauss's doctorate.