The distance between the point (c, d) and your curve is the minimum of the function
sqrt((cx)^2 + (da^(k^(bx)))^2)
To find its minimum, we can forget about sqrt and look at the first derivative. Find out where it is 0 (this should be the minimum distance, since there is no maximum distance). This gives the x coordinate of the nearest point on the curve. To get the distance needed to calculate the y coordinate and then calculate the distance to the point (you can just calculate the distance function at this x , this is the same thing).
Repeat for each of your points.
The first derivative of the distance function, unfortunately, is a kind of bitch. Using Wolfram derivative , the result is, hopefully (if I have not made any copy errors):
dist(x)/dx = 2(b * lna * lnk * k^(bx) * a^(k^(bx)) * (a^(k^(bx)) - d) - c + x)
source share