# How do you differentiate x(x-2)^2?

Use the Product Rule and the Chain Rule to deal with ${\left(\right)}^{2}$:
y´=1(x-2)^2+2x(x-2)=
$= {x}^{2} - 4 x + 4 + 2 {x}^{2} - 4 x = 3 {x}^{2} - 8 x + 4$