Orthogonal Polynomials for the Analysis of Trend