Engineers rely on high-fidelity simulations to predict how the rocket will behave before it ever leaves the ground. If you download a technical PDF on this subject, you will typically see these modeling techniques:
Effects of Structural Flexibility on Launch Vehicle Control Systems
: The book provides a multi-axis treatment of launch vehicle dynamics, delivering state equations designed for direct coding into simulation environments. Mass Matrix Variations