function fp = dlogistdx(lambda, x)
    fp = lambda*(1-2*x);
end
