Techniques to preserve the stability of a trajectory scaling algorithm