After studying at the University of Munich, he went to the Friedrich Wilhelms University in Berlin for a year of study with physicists Hermann von Helmholtz and Gustav Kirchhoff and mathematician Karl Weierstrass, and in October 1878 Planck passed his qualifying exams .