Shafts must be designed to have sufficient rigidity to transmit torque effectively without undue deflection or failure. Factors that determine the required rigidity of a shaft include the torque transmitted, speed of rotation, and type of loading. Shaft design aims to optimize rigidity and weight based on calculations of shear stress and deflection under working loads.