Example: Modeling an Inverted Pendulum in Simulink Problem setup and design requirements Force analysis and system equation setup Building the model Open-loop response Extracting…