Discuss the theoretical underpinnings of chaos theory in mechanical systems, particularly in the context of nonlinear dynamics and its implications for system predictability and control.