I have two continuous differentiable curves in the interval $0 \leq x \leq 105$. I would like to fit the largest possible circle between the two curves for every x-value and make a curve through the center points.
This figure shows an approximation of what I am trying to accomplish.
I have tried to fit a circle for one x-value, but even this is trickier than I first thought.
The distance from one point to another is $d=\sqrt{(x_2-x_1)^2+(g(x_2)-f(x_1))^2}$. By differentiating this, setting it equal to zero and solving for $x_2$, I am able to find the shortest distance from $x_1$ to $g(x)$. However, the problem with this is, that the circle might not be tangent to the curves at both these points. I really don't know how to proceed from here.
Any help is appreciated.