Cae, Finite Element Analysis, Structural Engineering, Mechanics, Simulation.
1D problem at hand, it is in fact possible to obtain an exact analytical solution. But, first we need to establish the governing differential equation by applying the force equilibrium conditions on an infinitesimally small domain of length dx, as shown in fig. 3 below. Fig. 3 — Force equilibrium