Contracted Derivatives for Multibody Dynamics: Analysis and Optimization
Researchers develop analytical algorithms for contracted first- and second-order multibody inverse- and forward-dynamics derivatives.
Article text · Original source
arXiv:2612.03114v1 Announce Type: new Abstract: We develop analytical algorithms for contracted first- and second-order multibody inverse- and forward-dynamics derivatives. We embed contractions in rigid-body derivative recursions, using spatial-algebra identities to avoid costly intermediates. We derive a reverse-mode algorithm for contracted first-order inverse dynamics, extend it to second order, and obtain two complementary formulations for contracted second-order forward dynamics. We compare with automatic differentiation (AD) via computational-graph instruction counts on multibody systems of increasing size. Analytical methods consistently require fewer instructions. Graph optimization narrows the gap with most AD methods by removing redundancy, but analytical methods retain an advantage, especially at second order, by avoiding intermediate derivative objects that graph optimization cannot eliminate. These results distinguish complementary levels of derivative optimization---differentiation strategy, analytical reformulation, and computational-graph optimization---and highlight the importance of analytical derivatives and their ability to exploit multibody structure beyond general-purpose AD and graph optimization.