\(\left(\frac{1}{2}x+2y\right)^3\)=\(\left(\frac{1}{2}x\right)^3+3\cdot\left(\frac{1}{2}x\right)^2\cdot2y+3\cdot\frac{1}{2}x\cdot\left(2y\right)^2+\left(2y\right)^3\)
=\(\frac{1}{8}x^3+\frac{3}{2}x^2y+6xy^2+8y^3\)
\(\left(3x^2-2y\right)^3=\left(3x^2\right)^3-3\cdot\left(3x^2\right)^2\cdot2y+3\cdot3x^2\left(2y\right)^2-\left(2y\right)^3\)
\(=\)\(27x^6-54x^4y+36x^2y^2-8y^3\)