New Collocation Integrator for Solving Dynamic Problems. I. Theoretical Background