DSolve[D[p[x],x]==p[x]*(1-p[x]),p[x],x]
