Determining the monotonicity of the function