=(-x^2+2xy+2x)-(4y^2-10y+3)
=-(x^2-2xy-2x)-(4y^2-10y+3)
=-[x^2-2x(y-1)]-(4y^2-10y+3)
=-[x^2-2x(y-1)+(y-1)^2]-[4y^2-10y-(y-1)^2+3]
=-[x^2-2x(y-1)+(y-1)^2]-(4y^2-10y-y^2+2y-1+3)
=-(x-y+1)^2-(3y^2-8y+2)
=-(x-y+1)^2-3(y^2-4/3*2*y+16/9+2/3-16/9
=-(x-y+1)^2-3[(y-4/3)^2-10/9]
=-(x-y+1)^2-3(y-4/3)^2+10/3