Bài 1:
a: \(C=\left(x-3\right)\left(x+3\right)-\left(x+5\right)\left(x-1\right)\)
\(=x^2-9-\left(x^2+4x-5\right)\)
\(=x^2-9-x^2-4x+5=-4x-4\)
b: \(D=\left(3x-2\right)^2+2\left(x+1\right)\left(3x-2\right)+\left(x+1\right)^2\)
\(=\left(3x-2+x+1\right)^2=\left(4x-1\right)^2=16x^2-8x+1\)