\(A=\left(x+y\right)^3-\left(x-y\right)^3.\)
\(=x^3+3x^2y+3xy^2+y^3-\left(x^3-3x^2y+3xy^2-y^2\right)\)
\(=x^3+3x^2y+3xy^2+y^3-x^3+3x^2y-3xy^2+y^3\)
\(=6x^2y+2y^3\)
\(=2y\left(y^2+3x^2\right)\)
A=(x+y)3-(x-y)3
=[(x+y)-(x-y)][(x+y)2+(x+y)(x-y)+(x-y)2]
=(x+y-x+y)[x2+2xy+y2+x2-y2+x2-2xy+y2]
=2y(3x2+y2)=B
Đpcm