public double Derivative(double x) { double y = alpha * x; if (y <= range.Min || y >= range.Max) return 0; return alpha; }