A new nite element method for elliptic problems with locally periodic microstructure of length " > 0 is developed and analyzed. It is shown that the method converges, as " ! 0, to the solution of the homogenized problem with optimal order in " and exponentially in the number of degrees of freedom independent of " > 0. The computational work of the method is bounded independently of ". Numerical...