a) \(\left(2a-3\right)\left(a+1\right)-\left(a^2+6a+9\right):\left(a+3\right)\)
\(=\left(2a^2+2a-3a-3\right)-\left(a+3\right)^2:\left(a+3\right)\)
\(=2a^2-a-3-\left(a+3\right)\)
\(=2a^2-a-3-a-3\)
\(=2a^2-2a-6\)
b) \(\left(3x-5y\right)\left(-xy\right)^2-3x^2y^2+4x^2y^3\)
\(=\left(3x-5y\right)\cdot x^2y^2-3x^2y^2+4x^2y^3\)
\(=3x^3y^2-5x^2y^3-3x^2y^2+4x^2y^3\)
\(=3x^3y^2-x^2y^3-3x^2y^2\)
c) \(x\left(x-2\right)^2-\left(x+2\right)\left(x^2-2x+4\right)+4x^2\)
\(=x\left(x^2-4x+4\right)-\left(x^3+8\right)+4x^2\)
\(=x^3-4x^2+4x-x^3-8+4x^2\)
\(=\left(x^3-x^3\right)+\left(-4x^2+4x^2\right)+4x-8\)
\(=4x-8\)