Strong formulation for elastostatics in 1D