Bài 1 :
Ta có :
\(x^7+\frac{1}{x^7}=\left(x^3+\frac{1}{x^3}\right)\left(x^4+\frac{1}{x^4}\right)-\left(x+\frac{1}{x}\right)\)
\(\left(x+\frac{1}{x}\right)=a\Leftrightarrow\left(x+\frac{1}{x}\right)^2=a^2\)
\(\Leftrightarrow x^2+\frac{1}{x^2}+2.x.\frac{1}{x}=a^2\)
\(\Leftrightarrow x^2+\frac{1}{x^2}=a^2-2\)
\(x^3+\frac{1}{x^3}=\left(x+\frac{1}{x}\right)\left(x^2-x.\frac{1}{x}+\frac{1}{x^2}\right)\)
\(=a\left(x^2+\frac{1}{x^2}-1\right)=a\left(a^2-3\right)\)
\(x^4+\frac{1}{x^4}=\left(x^2+\frac{1}{x^2}\right)^2-2.x^2.\frac{1}{x^2}\)
\(=\left(a^2-2\right)^2-2=a^4-4a^2+4-2\)
\(=a^4-4a^2+2\)
\(\Rightarrow x^7+\frac{1}{x^7}=a.\left(a^2-3\right).\left(a^4-4a^2+2\right)-a\)
\(=\left(a^3-3a\right)\left(a^4-4a^2+2\right)-a\)
\(=a^7-4a^5+2a^3-3a^5+12a^3-6a-a\)
\(=a^7-7a^5+14a^3-7a\)
Bài 2 :
Ta có :
\(\frac{1}{x}+\frac{1}{y}+\frac{1}{z}=2\)
\(\Rightarrow\left(\frac{1}{x}+\frac{1}{y}+\frac{1}{z}\right)^2=2^2\)
\(\Rightarrow\frac{1}{x^2}+\frac{1}{y^2}+\frac{1}{z^2}+\frac{2}{xy}+\frac{2}{yz}+\frac{2}{zx}=4\)
\(\Rightarrow\frac{1}{x^2}+\frac{1}{y^2}+\frac{1}{z^2}+\frac{2}{xy}+\frac{2}{yz}+\frac{2}{zx}=\frac{2}{xy}-\frac{1}{z^2}\)
\(\Rightarrow\frac{1}{x^2}+\frac{1}{y^2}+\frac{2}{z^2}+\frac{2}{yz}+\frac{2}{zx}=0\)
\(\Rightarrow\left(\frac{1}{x^2}+\frac{2}{xz}+\frac{1}{z^2}\right)+\left(\frac{1}{y^2}+\frac{2}{yz}+\frac{1}{z^2}\right)=0\)
\(\Rightarrow\left(\frac{1}{x}+\frac{1}{z}\right)^2+\left(\frac{1}{y}+\frac{1}{z}\right)^2=0\)
\(\Rightarrow\frac{1}{x}+\frac{1}{z}=\frac{1}{y}+\frac{1}{z}=0\) vì \(\left(\frac{1}{x}+\frac{1}{z}\right)^2,\left(\frac{1}{y}+\frac{1}{z}\right)^2\ge0\)
\(\Rightarrow x=y=-z\)
\(\Rightarrow\frac{1}{-z}+\frac{1}{-z}+\frac{1}{z}=2\Rightarrow-\frac{1}{z}=2\Rightarrow z=-\frac{1}{2}\)
\(\Rightarrow x=y=\frac{1}{2}\)
\(\Rightarrow x+2y+z=\frac{1}{2}+2.\frac{1}{2}-\frac{1}{2}=1\)
\(\Rightarrow P=1\)