Câu a:
Xét tử số:
\(x^3-y^3+z^3+3xyz=(x-y)^3+3xy(x-y)+z^3+3xyz\)
\(=(x-y)^3+z^3+3xy(x-y+z)\)
\(=(x-y+z)[(x-y)^2-z(x-y)+z^2]+3xy(x-y+z)\)
\(=(x-y+z)(x^2+y^2+z^2-2xy-xz+yz)+3xy(x-y+z)\)
\(=(x-y+z)(x^2+y^2+z^2+xy+yz-xz)\)
Xét mẫu số:
\((x+y)^2+(y+z)^2+(z-x)^2\)
\(x^2+2xy+y^2+y^2+2yz+z^2+z^2-2zx+x^2\)
\(2(x^2+y^2+z^2+xy+yz-xz)\)
Do đó: \(\frac{x^3-y^3+z^3+3xyz}{(x+y)^2+(y+z)^2+(z-x)^2}=\frac{x-y+z}{2}\)
Câu b:
Xét tử số:
\((x^2-y)(y+1)+x^2y^2-1\)
\(=x^2y+x^2-y^2-y+x^2y^2-1\)
\(=(x^2y-y)+(x^2-1)+(x^2y^2-y^2)\)
\(=y(x^2-1)+(x^2-1)+y^2(x^2-1)=(x^2-1)(y^2+y+1)\)
Xét mẫu số:
\((x^2+y)(y+1)+x^2y^2+1\)
\(=x^2y+x^2+y^2+y+x^2y^2+1\)
\(=(x^2y+y)+(x^2+1)+(x^2y^2+y^2)\)
\(=y(x^2+1)+(x^2+1)+y^2(x^2+1)\)
\(=(x^2+1)(y+1+y^2)\)
Do đó:
\(\frac{(x^2-y)(y+1)+x^2y^2-1}{(x^2+y)(y+1)+x^2y^2+1}=\frac{(x^2-1)(y^2+y+1)}{(x^2+1)(y^2+y+1)}=\frac{x^2-1}{x^2+1}\)