Due to internal pressure, the cylinder tries to expand longitudinally. However, in this case, the ends are rigidly stayed, which means that the ends exert axial compressive force on cylinder, so that the axial strain in cylinder becomes zero. Due to internal pressure