\(x+y+z=2018\)\(\Rightarrow\)\(\dfrac{1}{x}+\dfrac{1}{y}+\dfrac{1}{z}=\dfrac{1}{2018}=\dfrac{1}{x+y+z}\)
\(\Leftrightarrow\dfrac{xy+yz+zx}{xyz}=\dfrac{1}{x+y+z}\)
\(\Leftrightarrow\left(xy+yz+zx\right)\left(x+y+z\right)=xyz\\ \Leftrightarrow x^2y+xy^2+xyz+xyz+y^2z+\\ yz^2+zx^2+xyz+z^2x-xyz=0\)
\(\Leftrightarrow x^2y+xy^2+xyz+xyz+\\ y^2z+yz^2+zx^2+z^2x=0\)
\(\Leftrightarrow xy\left(x+y\right)+yz\left(x+y\right)+xz\left(x+y\right)+z^2\left(x+y\right)=0\\ \Leftrightarrow\left(x+y\right)\left(xy+yz+xz+z^2\right)=0\)
\(\Leftrightarrow\left(x+y\right)\left(y\left(x+z\right)+z\left(x+z\right)\right)=0\\ \Leftrightarrow\left(x+y\right)\left(y+z\right)\left(x+z\right)=0\)
suy ra x+y=0 hoặc y+z=0 hoặc x+z=0
hay x=-y hoặc y=-z hoặc x=-z
thay vào D ta tính dc kq