a) Ta có: \(A=x\left(x+2\right)+y\left(y-2\right)-2xy+37\)
\(=x^2+2x+y^2-2y-2xy+37\)
\(=\left(x^2-2xy+y^2\right)+\left(2x-2y\right)+37\)
\(=\left(x-y\right)^2+2\left(x-y\right)+37\)
\(=\left(x-y\right)\left(x-y+2\right)+37\)(1)
Thay x-y=7 vào biểu thức (1), ta được:
\(A=7\cdot\left(7+2\right)+37=7\cdot9+37=100\)
Vậy: Khi x-y=7 thì A=100
b) Ta có: \(x+y=2\)
\(\Leftrightarrow\left(x+y\right)^2=4\)
\(\Leftrightarrow x^2+y^2+2xy=4\)
\(\Leftrightarrow2xy+10=4\)
\(\Leftrightarrow2xy=-6\)
\(\Leftrightarrow xy=-3\)
Ta có: \(A=x^3+y^3\)
\(=\left(x+y\right)\left(x^2-xy+y^2\right)\)(2)
Thay x+y=2; \(x^2+y^2=10\) và xy=-3 vào biểu thức (2), ta được:
\(A=2\cdot\left(10+3\right)=2\cdot13=26\)
Vậy: Khi x+y=2 và \(x^2+y^2=10\) thì A=26
\(\Rightarrow A=x^2+2x+y^2-2y-2xy+37=x^2-2xy+y^2+2\left(x-y\right)+37=\left(x-y\right)^2+2\left(x-y\right)+37=7^2+2\cdot7+37=100\)
\(\Rightarrow A=x^3+y^3=\left(x+y\right)\left(x^2+y^2-xy\right)=\left(x+y\right)\left[x^2+y^2-\dfrac{\left(x+y\right)^2-\left(x^2+y^2\right)}{2}\right]=2\cdot\left[10+3\right]=2\cdot13=26\) \(\Rightarrow\left\{{}\begin{matrix}x+y=-z\\x+z=-y\\y+z=-x\end{matrix}\right.\) \(\Rightarrow P=\left(\dfrac{x+y}{y}\right)\left(\dfrac{y+z}{z}\right)\left(\dfrac{x+z}{x}\right)=-\dfrac{z}{y}\cdot\dfrac{-x}{z}\cdot-\dfrac{y}{x}=-1\)