(x-y)^3
=(x-y)(x-y)²
=(x-y)(x²-2xy+y²)
=x(x²-2xy+y²)-y(x²-2xy+y²)
=x³-2x²y+xy²-x²y+2xy²-y³
=x³-3x²y+3xy²-y³
(x+y)³
=(x+y)(x²+2xy+y²)
=x³+2x²y+xy²+x²y+2xy²+y³
=x³+3x²y+3xy²+y³
(x-y)^3
=(x-y)(x-y)²
=(x-y)(x²-2xy+y²)
=x(x²-2xy+y²)-y(x²-2xy+y²)
=x³-2x²y+xy²-x²y+2xy²-y³
=x³-3x²y+3xy²-y³
(x+y)³
=(x+y)(x²+2xy+y²)
=x³+2x²y+xy²+x²y+2xy²+y³
=x³+3x²y+3xy²+y³