A shaft transmits power and rotational motion. Machine elements like gears and pulleys are mounted on shafts using press fits, keys, or splines. Shafts experience shear stresses from torque and bending stresses from forces on machine elements. Shafts are designed based on strength to withstand torque only, bending only, or combined loads. Their dimensions are determined using formulas relating stress to torque or bending moment based on the shaft's moment of inertia. Combined loads require considering maximum shear or normal stresses.