I integrated $(1-2x)^2$ by expanding the expression first, that is $1 - 4 x + 4 x^2$ and I get $$x - 2 x^2 + \frac{4 x^3}{3} +C$$
When I integrate by substitution I get $$\frac{-(1-2x)^3}{6} + C$$
Expanding $(-(1-2x)^3)/6 +C$ get $$-\frac{1}{6} + x - 2 x^2 + \frac{4 x^3}{3} +C$$
Why the difference in the two answers?