Given
color(white)("XXX")x^2-8x+7=0color(white)("XX")XXXx2−8x+7=0XXNote: I modified the question to include the color(blue)(=0)=0
Then
color(white)("XXX")x^2-8x=-7XXXx2−8x=−7
Remembering the general relation:
color(white)("XXX")x^2+2ax+a^2 = (x+a)^2XXXx2+2ax+a2=(x+a)2
If x^2-8xx2−8x are to be the first two terms of x^2+2ax+a^2x2+2ax+a2
then
color(white)("XXX")a=-4XXXa=−4
and
color(white)("XXX")a^2=16XXXa2=16
So we will need to add 1616 (to both sides) to underline("complete the square")
color(white)("XXX")x^2-8x+16 = -7+16
color(white)("XXX")(x-4)^2=9
color(white)("XXX")x-4=+-3
color(white)("XXX")x=4+-3
color(white)("XXX")x=7color(white)("XX")orcolor(white)("XX")x=1