Question: how to find the shortest distance between two curves?
Answer: If the curves are intersecting, then obviously the shortest distance between them is zero.
If they do not intersect at any point then:
Equate the slopes of the two curves and find the points where the slopes match.
Then find the distance between those points.