What makes a shaft different
A shaft is a rotating bar that carries torque from one place to another and, almost always, bending on the way. It is the most ordinary machine element there is — and the one that fails most instructively, because a shaft almost never fails the way a beam does.
Three things at once
A shaft is loaded by torsion (the useful part), bending (the unavoidable consequence of the gears, pulleys and couplings hanging off it) and sometimes an axial force (helical gears, thrust). None of these can be designed in isolation, because they all act at the same cross-section.
It is a fatigue problem
Here is the part people get wrong. A shaft under a constant bending moment does not have a constant stress. As the shaft turns, a given fibre on the surface travels from the tension side to the compression side and back once per revolution. A perfectly steady load therefore produces a fully reversed stress cycle. At 1500 rpm that is 2.16 million cycles a day.
Meanwhile the torque, if it is steady, produces a genuinely steady shear stress. So the typical shaft has a fully reversed bending component and a steady torsional component — which is exactly the loading the design equations in chapter 6 are built for.
And it is a notch problem
Every useful feature on a shaft is a stress raiser: shoulders, keyways, ring grooves, cross holes, press fits. In fatigue, a notch does not just raise the stress locally, it eats into the fatigue strength itself. In practice the question is never "is the shaft strong enough" but "which notch will it break at", and the answer is rarely the section with the biggest bending moment.
A gearbox countershaft with two gears, two bearings, two keyways and two retaining-ring grooves. Look at where the safety factor bottoms out — and compare that with where the bending moment peaks.