Exact hybrid jacobian computation for optimal trajectory generation via dual number theory | Synapse