\(\left(2x+1\right)\left(4x^2-2x+1\right)-8x\left(x^2+2\right)=17\\ \Leftrightarrow\left(8x^3-4x^2+2x+4x^2-2x+1\right)-\left(8x^3+16x\right)=17\\ \Leftrightarrow\left(8x^3+1\right)-\left(8x^3+16x\right)=17\\ \Leftrightarrow16x+1=17\\ \Leftrightarrow x=1\)