(1)x²-4x+2=(x-2)²-2
x²-4x+2=(x-√2)²+(2√2-4)x
x²-4x+2=-2(2x-1)+x²
(2)a²+ab+b²=(a+b/2)²+3b²/4
a²+ab+b²=(a+b)²-ab
(3)a²+b²+c²-ab-6b-6c+21=0
(a-b/2)²+3(b-4)²/4+(c-3)²=0
因为(a-b/2)²≥0
3(b-4)²/4≥0
(c-3)²≥0
所以(a-b/2)²=0
3(b-4)²/4=0
(c-3)²=0
a=b/2,b=4,c=3
所以a=2,b=4,c=3