If the circle $$(x-h)^2+(y-k)^2=r^2\quad\quad\text{(a)}$$ touches the curve $$y=x^2+1\quad\quad\text{(b)}$$ at $(1,2)$. Then show that $h+2k=5$.
As Circle in equation (a) touches curve in equation (b), I tried to substitute $y=x^2+1$ in (a) and then putting $x=1$, I got $$h^2+k^2-2h-4k+5-r^2=0$$ which is apparently the general equation of circle. Then its center is $(1,2)$. And it satisfies $h+2k=5$. Please correct me.
I'm assuming by "touches" you mean "is tangent to," otherwise the relation is not necessary. Namely, we require the tangent line to each curve at $(1, 2)$ to be the same. For this, their slopes must be equal.
We find for the circle, using implicit differentiation,
\begin{align} 2(x - h) + 2(y_1 - k) \frac{dy_1}{dx} &= 0 \\ \frac{dy_1}{dx} &= -\frac{x - h}{y_1 - k}. \end{align}
For the parabola,
$$ \frac{dy_2}{dx} = 2x. $$
We require
$$ \frac{dy_1}{dx} \bigg|_{(1,2)} = \frac{dy_2}{dx} \bigg|_{(1,2)}. $$
Can you take it from here?