E(x)=(x-2)²+(x-1)²+(x-1)(x+1)​