\(\left(2x-1\right)^2-\left(4x+1\right)\left(x-2\right)\\ =\left[\left(2x\right)^2-2\cdot2x\cdot1+1^2\right]-\left(4x^2-8x+x-2\right)\\ =4x^2-4x+1-4x^2+8x-x+2\\ =3x+3\)
\(\left(x-3\right)^3-\left(x+1\right)\left(x^2-x+1\right)\\ =\left(x^3-3\cdot x^2\cdot3+3\cdot x\cdot3^2-3^3\right)-\left(x^3-x^2+x+x^2-x+1\right)\\ =x^3-9x^2+27x-27-x^3+x^2-x-x^2+x-1\\ =-10x^2+27x-28\)