\(D=x^2-2xy+2xy+2y^2+2x-10y+17\)
\(D=\left(x^2+2x+1\right)+2\left(y^2-5y+\frac{25}{4}\right)+\frac{7}{2}\)
\(D=\left(x+1\right)^2+2\left(y-\frac{5}{2}\right)^2+\frac{7}{2}\ge\frac{7}{2}\)
Vậy GTNN của D là \(\frac{7}{2}\)khi x = -1; y = \(\frac{5}{2}\)