Lời giải:
a. $-8x+16+x^2=x^2-2.x.4+4^2=(x-4)^2$
b. $xy^2+\frac{1}{4}x^2y^4+1=(\frac{1}{2}xy^2)^2+2.\frac{1}{2}xy^2.1+1^2$
$=(\frac{1}{2}xy^2+1)^2$
a: \(x^2-8x+16=\left(x-4\right)^2\)
b: \(\dfrac{1}{4}x^2y^4+xy^2+1=\left(\dfrac{1}{2}xy^2+1\right)^2\)