Expand the expression \(a\left(1-\frac{ax}2\right)^2\).
\( a^2-ax+2a^2 x\)
\( 4a-4a^2 x+a^3 x^2\)
\(a-a^2x+a^3x^2\)
\( a^2-4a^2 x+a^3 x^2\)