The Mathematics of the Finite Element Method