In summary, the internal torques in shafts and are:
Note: While we are primarily interested in the magnitude of shear stresses in the shafts, the calculation of rotation angles in the system is a little easier if we use a consistent sign convention for the internal torques.