In mathematics, the Trefftz method is a method for the numerical solution of partial differential equations named after the German mathematician Erich Trefftz (1888–1937). It falls within the class of finite element methods.