\(x+\dfrac{1}{x}=3\Leftrightarrow\left(x+\dfrac{1}{x}\right)^3=27\\ \Leftrightarrow x^3+\left(\dfrac{1}{x}\right)^3+3x\cdot\dfrac{1}{x}\left(x+\dfrac{1}{x}\right)=27\\ \Leftrightarrow x^3+\dfrac{1}{x^3}+3\cdot3=27\\ \Leftrightarrow x^3+\dfrac{1}{x^3}=18\)