A weight of a mass M is attached to an oscillating spring.
What forces act on the weight, and how do they depend on the vertical position of the weight?
Two forces act on a weight suspended to an oscillating spring: the force of gravity Mg and the force of elasticity of a spring N. The net force F acts to return the weight to an equilibrium.
Oscillations of the weight precisely correspond to the circular motion of a point rotating on a circle of radius R and period T. The net "returning" force F is directly proportional to the displacement Y from the point of equilibrium:
                  F = -k * Y
The coefficient k is called spring constant.
Initial Values of Parameters
Mass of the body (M) 3 kg
Spring constant (k) 4.0