M. Riesz's theorem for the conjugate function and applications to problems in trigonometric polynomials