For the bar subjected to the linear varying axial load shown in Figure, determine the nodal displacements and axial stress distribution using (a) two equal-length elements and (b) four equal-length elements. Let A = 2 in.2 and E = 30 106 psi.
Compare the finite element solution with an exact solution.