Let be a polynomial of degree and positive when . The Bernstein–Szegő polynomials , , are orthogonal on with respect to three types of weight function: , , . In consequence, can be given explicitly in terms of and sines and cosines, provided that in the first case, in the second case, and in the third case. See Szegő (1975, §2.6).