a) \(\left(x+1\right)\left(x+2\right)\left(x-3\right)=\left(x^2+2x+x+2\right)\left(x-3\right)\)
\(=\left(x^2+3x+2\right)\left(x-3\right)\)
\(=x\left(x^2+3x+2\right)-3\left(x^2+3x+2\right)\)
\(=x^3+3x^2+2x-3x^2-9x-6\)
\(=x^3-7x-6\)
b) \(\left(2x-1\right)\left(x+2\right)\left(x+3\right)=\left(2x-1\right)\left(x^2+3x+2x+6\right)\)
\(=\left(2x-1\right)\left(x^2+5x+6\right)\)
\(=2x\left(x^2+5x+6\right)-\left(x^2+5x+6\right)\)
\(=2x^3+10x^2+12x-x^2-5x-6\)
\(=2x^3+9x^2+7x-6\)