Inertia of the shaft is generally negligible

Kinetic Energy


Using Equivalent Mass and Inertia we can see what inertia the shaft feels:

where x’^2 is (R)theta’

Modelling the System Dynamics


Where T is torque. You can also put it in terms of x”