He lectured at the Royal Frederick University in Christiania from 1826. In 1827 he joined an expedition to Bjørnøya and Svalbard. At Svalbard, the mountain of Keilhaufjellet and the glacier of Mathiasbreen are named after him.