Xét VP : \(\left(a+b\right)^3-3ab\left(a+b\right)=a^3+3a^2b+3ab^2+b^3-3a^2b-3ab^2=a^3+b^3\)
vậy VT=VP
=> \(a^3+b^3=\left(-5\right)^3-30.\left(-5\right)=25\)
Xét VP: \(\left(a-b\right)^3+3ab\left(a-b\right)=a^3-3a^2b+3ab^2-b^2+3a^2b-3ab^2=a^3-b^3\)
=> VT=VP