f(x1,x2,x3)=x1^2+2x2^2+7x3^2+2x1x2+4x2x3
= (x1+x2)^2+x2^2+7x3^2+4x2x3
= (x1+x2)^2+(x2+2x3)^2+3x3^2
令 C=
1 1 0
0 1 2
0 0 1
Y=CX,则有
f = y1^2+y2^2+3y3^2
f(x1,x2,x3)=x1^2+2x2^2+7x3^2+2x1x2+4x2x3
= (x1+x2)^2+x2^2+7x3^2+4x2x3
= (x1+x2)^2+(x2+2x3)^2+3x3^2
令 C=
1 1 0
0 1 2
0 0 1
Y=CX,则有
f = y1^2+y2^2+3y3^2