\(\left(x-1\right)^2-2\left(x-1\right)\left(x-3\right)+\left(x-3\right)^2=\left(x-1-x+3\right)^2=2^2=4\)
\(\left(2x+3\right)^2+\left(2x+3\right)\left(2x-6\right)+\left(x-3\right)^2=\left(2x+3\right)^2+2\left(2x+3\right)\left(x-3\right)+\left(x-3\right)^2=\left(2x+3+x-3\right)^2=\left(3x\right)^2=9x^2\)