Answer
$$\left(x-3\right)^2+1$$
Work Step by Step
Completing the square in order to write the equation in the form $a(x-h)^2+k$, we find:
$$ x^2-6x+10+\left(-3\right)^2-\left(-3\right)^2 \\ \left(x-3\right)^2+10-\left(-3\right)^2 \\ \left(x-3\right)^2+1$$