structural:scholar_edition, linguistic:paraphrasing, linguistic:translation
Final years and death

Boltzmann spent a great deal of effort in his final years defending his theories. He did not get along with some of his colleagues in Vienna, particularly Ernst Mach, who became a professor of philosophy and history of sciences in 1895. That same year Georg Helm and Wilhelm Ostwald presented their position on energetics at a meeting in Lübeck. They saw energy, and not matter, as the chief component of the universe. Boltzmann's position carried the day among other physicists who supported his atomic theories in the debate. In 1900, Boltzmann went to the University of Leipzig, on the invitation of Wilhelm Ostwald. Ostwald offered Boltzmann the professorial chair in physics, which became vacant when Gustav Heinrich Wiedemann died. After Mach retired due to bad health, Boltzmann returned to Vienna in 1902. In 1903, Boltzmann, together with Gustav von Escherich and Emil Müller, founded the Austrian Mathematical Society. His students included Karl Přibram, Paul Ehrenfest and Lise Meitner.

In Vienna, Boltzmann taught physics and also lectured on philosophy. Boltzmann's lectures on natural philosophy were very popular and received considerable attention. His first lecture was an enormous success. Even though the largest lecture hall had been chosen for it, the people stood all the way down the staircase. Because of the great successes of Boltzmann's philosophical lectures, the Emperor invited him for a reception at the Palace.

In 1905, he gave an invited course of lectures in the summer session at the University of California in Berkeley, which he described in a popular essay A German professor's trip to El Dorado.

In May 1906, Boltzmann's deteriorating mental condition described in a letter by the Dean as "a serious form of neurasthenia " forced him to resign his position, and his symptoms indicate he experienced what would today be diagnosed as bipolar disorder. Four months later he died by suicide on 5 September 1906, by hanging himself while on vacation with his wife and daughter in Duino, near Trieste (then Austria). He is buried in the Viennese Zentralfriedhof. His tombstone bears the inscription of Boltzmann's entropy formula: S = k ⋅ log W {\displaystyle S=k\cdot \log W}.