function F = f(x,r)
% m-file for general function
F = r*x.*(1-x);