\(\left(x^3-x^2-5x-3\right):\left(x-3\right)\\ =\left[\left(x^3-3x^2\right)+\left(2x^2-6x\right)+\left(x-3\right)\right]:\left(x-3\right)\\ =\left[x^2\left(x-3\right)+2x\left(x-3\right)+\left(x-3\right)\right]:\left(x-3\right)\\ =\left[\left(x-3\right)\left(x^2+2x+1\right)\right]:\left(x-3\right)\\ =x^2+2x+1\)