Cho biểu thức:
\(C=\left(x-\dfrac{4xy}{x+y}+y\right):\left(\dfrac{x}{x+y}+\dfrac{y}{y-x}+\dfrac{2xy}{x^2-y^2}\right)\left(x\ne\pm y\right)\)
1. Rút gọn biểu thức \(C\) ;
2. Khi cho \(\left(x^2-y^2\right)\cdot C=-8\), hãy tính giá trị của biểu thức:
\(M=x^2\left(x+1\right)-y^2\left(y-1\right)-3xy\left(x-y+1\right)+xy\).
1: \(C=\left(x-\dfrac{4xy}{x+y}+y\right):\left(\dfrac{x}{x+y}+\dfrac{y}{y-x}+\dfrac{2xy}{x^2-y^2}\right)\)
\(=\dfrac{\left(x+y\right)^2-4xy}{x+y}:\left(\dfrac{x}{x+y}-\dfrac{y}{x-y}+\dfrac{2xy}{\left(x-y\right)\left(x+y\right)}\right)\)
\(=\dfrac{x^2+2xy+y^2-4xy}{x+y}:\dfrac{x\left(x-y\right)-y\left(x+y\right)+2xy}{\left(x+y\right)\left(x-y\right)}\)
\(=\dfrac{x^2-2xy+y^2}{x+y}:\dfrac{x^2-xy-xy-y^2+2xy}{\left(x+y\right)\left(x-y\right)}\)
\(=\dfrac{\left(x-y\right)^2}{x+y}\cdot\dfrac{x^2-y^2}{x^2-y^2}=\dfrac{\left(x-y\right)^2}{x+y}\)
2: \(\left(x^2-y^2\right)\cdot C=-8\)
=>\(\left(x-y\right)\left(x+y\right)\cdot\dfrac{\left(x-y\right)^2}{x+y}=-8\)
=>\(\left(x-y\right)^3=-8\)
=>x-y=-2
=>x=y-2
\(M=x^2\left(x+1\right)-y^2\left(y-1\right)-3xy\left(x-y+1\right)+xy\)
\(=\left(y-2\right)^2\left(y-2+1\right)-y^2\left(y-1\right)-3xy\left(-2+1\right)+xy\)
\(=\left(y-1\right)\left[\left(y-2\right)^2-y^2\right]+3xy+xy\)
\(=\left(y-1\right)\left(-4y+4\right)+4xy\)
\(=-4\left(y-1\right)^2+4y\left(y-2\right)\)
\(=-4y^2+8y-4+4y^2-8y\)
=-4