Efficient spectral element methods for partial differential equations