find the variation of tension in the string as a function of the distance measured from the mass M (bottom of the string).