Necessary conditions for weighted mean convergence of Fourier series in orthogonal polynomials