Detailed description

Two diagrams of the same spring. The one to the left is not extended and the one to the right extended by a distance x. The mass on the string is m. The downwards direction is indicated as positive.