A Unified Approach to the Finite Element Method and Error Analysis Procedures