\(A=a^2\left(a+1\right)-b^2\left(b-1\right)+ab-3ab\left(a-b+1\right)\)
\(A=a^3+a^2-b^3+b^2+ab-3a^2b+3ab^2-3ab\)
\(A=\left(a^3-3a^2b+3ab^2-b^3\right)+\left(a^2-2ab+b^2\right)\)
\(A=\left(a-b\right)^3+\left(a-b\right)^2\)
Thay a - b = 1 vào A
\(A=1+1\)
\(A=2\)