Optimal dimensioning of the transmission shaft of a longitudinal gearbox