I intend to use analytic derivatives for solving a low thrust trajectory optimization problem via indirect optimal control. Finite difference derivatives are not accurate enough to achieve convergence. In literature, it is mentioned that state transition matrix can be used with chain rule to obtain required analytic partial derivatives. But implementation details are missing.
I am looking for some examples, where it is in action. Any relevant pointers are highly appreciable.