a: \(A=\left(2x-5\right)^2-4x\left(x-5\right)\)
\(=4x^2-20x+25-4x^2+20x\)
=25
b: \(B=\left(4-3x\right)\left(4+3x\right)+\left(3x+1\right)^2\)
\(=16-9x^2+9x^2+6x+1\)
=6x+17
c: \(C=\left(x+1\right)^3-x\left(x^2+3x+3\right)\)
\(=x^3+3x^2+3x+1-x^3-3x^2-3x\)
=1
d: \(D=\left(2021x-2020\right)^2-2\left(2021x-2020\right)\left(2020x-2021\right)+\left(2020x-2021\right)^2\)
\(=\left(2021x-2020-2020x+2021\right)^2\)
\(=\left(x+1\right)^2\)
\(=x^2+2x+1\)