Application of Weighted Residual Methods to Dynamic Economic Models, Finite Element Methods