Analysis of a Finite Element Method