Lời giải:
Đặt $xy=a; x+y=b$ thì theo đề ta có:
$a+b=-1$ và $ab=-12$
Ta cần tính: $A=(x+y)^3-3xy(x+y)=b^3-3ab=b^3-3(-12)=b^3+36$
Từ $a+b=-1\Rightarrow a=-b-1$. Thay vào $ab=-12$
$\Rightarrow (-b-1)b=-12$
$\Leftrightarrow (b+1)b=12$
$\Leftrightarrow b^2+b-12=0$
$\Leftrightarrow (b-3)(b+4)=0$
$\Leftrightarrow b=3$ hoặc $b=-4$
Nếu $b=3$ thì $A=3^3+36=63$
Nếu $b=-4$ thì $A=(-4)^3+36=-28$