sai đề rồi nhé , đề phải là :
\(\frac{x^3-y^3+z^3+3xyz}{\left(x+y\right)^2+\left(y+z\right)^2+\left(z-x\right)^2}\)
\(=\frac{\left(x-y\right)^3+3xy.\left(x-y\right)+z^3+3xyz}{x^2+2xy+y^2+y^2+2yz+z^2+z^2-2xz+x^2}\)
\(=\frac{\left(x-y+z\right).\left[\left(x-y\right)^2-\left(x-y\right).z+z^2\right]+3xy.\left(x-y+z\right)}{2x^2+2y^2+2z^2+2xy+2yz-2xz}\)
\(=\frac{\left(x-y+z\right).\left(x^2-2xy+y^2-xz+yz+z^2+3xy\right)}{2.\left(x^2+y^2+z^2+xy+yz-xz\right)}\)
\(=\frac{\left(x-y+z\right).\left(x^2+y^2+z^2+xy+yz-xz\right)}{2.\left(x^2+y^2+z^2+xy+yz-xz\right)}\)
\(=\frac{x-y+z}{2}\)