The energy due to confinement of one-dimensional cylindrical quantum wire