The spectral projection decomposition method for elliptic equations in two dimensions