Differentiate Cos Squared Graph