\(\left(a\right)..K=a^2+b^2-2a+2b+2017=\left(a-1\right)^2+\left(b+1\right)^2+2015\ge2015\)min K =2015 khi a=1 và b=-1
\(\left(b\right)..H=3x^2+9y^2-6xy-2x+2016=\left[9y^2-6xy+x^2\right]+\left[2x^2-2x+\dfrac{2}{4}\right]+2016-\dfrac{2}{4}\)
\(H=\left(3y-x\right)^2+2\left(x-\dfrac{1}{2}\right)^2+2015,5\)
min H =2015,5 khi x=1/2 và y=1/6