The Chain Rule,Local maxima and minim and its geometric representation,Generalized Mean Value theorem