“…The number of terms in the infinite series is related to the order of the polynomial: a higher-order polynomial approximation will be more accurate. There are many papers that cover the detailed mathematics of orthogonal polynomials [26,44,4,33,58,28] and their use in trajectory optimization [29,62,18,30,19,53,3,57,23,24,15,21]. Here we will focus on the practical implementation details and on gaining a qualitative understanding of how orthogonal collocation works.…”