A transmission shaft is almost never in pure torsion. It carries the torque it was put there for, and it carries bending from the gear or pulley loads that deliver that torque — and the two combine into a stress state neither one predicts on its own.
This is a solid round shaft in a gearbox: 40 mm diameter, S355, carrying 800 N·m of torque with 500 N·m of bending at the section being checked.
Four significant figures: a stress is not known to six.
Bending is largest at the surface, and so is torsional shear, and on a round section they are largest at the same place — which is why the combination has to be taken at a point rather than averaged.
Distortion energy (von Mises) is the usual choice for a ductile steel and matches test data best. Maximum shear (Tresca) is the more conservative, by about 15% in pure shear, and some codes require it.
The factor of safety against first yield, on each theory.
Rearranged rather than iterated: the equivalent stress is proportional to 1/d³, so the diameter for a chosen factor comes out in one line — and the cube root divides the dimension, which is what a length is doing inside a cubed quantity in the first place.
Bending and torsion at a point are a plane stress state, and its principal stresses are the eigenvalues of the tensor that holds it. They are what the two failure theories above are written in terms of — von Mises is a distance between them and Tresca is the largest difference — so computing them says the same thing a third way and shows where the numbers come from.
Largest first, which is how a stress table is read: σ₁ is tension, σ₂ is compression, and the third principal stress of a plane state is zero.
Tresca is the largest difference between any two of the three, and the third one here is zero — so it is σ₁ − σ₂, and it agrees with the formula above.
First yield at a plain section, and nothing else. A shaft fails at its shoulders, keyways and cross-holes, where the stress concentration factor multiplies these numbers by two or more, and it fails in fatigue rather than by yielding — the torque is steady but the bending is fully reversed once per revolution. Both belong in a design check and neither is here.