# Your code goes here def f(x, r): return x*r*(1 -x)