To complete squares we first need to leave the variables in one side of the equation:
[tex]\begin{gathered} x^2-8x-1=0 \\ x^2-8x=1 \end{gathered}[/tex]Now we take the coefficient of the linear term, we divide it by two and squared the result. We add the result in borh sides of the equation:
[tex]\begin{gathered} x^2-8x+(-\frac{8}{2})^2=1+(-\frac{8}{2})^2 \\ x^2-8x+(-4)^2=1+(-4)^2 \\ x^2-8x+16=1+16 \\ x^2-8x+16=17 \end{gathered}[/tex]the left side is now a complete squared:
[tex](x-4)^2=17[/tex]Therefore the number that we had to add in both sides of the equation is 16.