A Petrov–Galerkin spectral method for fourth‐order problems