f'(x)=g-a*f(x)^2