Here is Canvas object wihch demonstrate the problem.


The axial force P will compress the shaft, creating a uniform normal stress given by:

σaxial=PA

where A is the cross-sectional area of the shaft.