Deciphering Trajectory-Aided LLM Reasoning: An Optimization Perspective | Synapse