Find the distance between the points (b sin theta, - b cos theta)and (a cos theta , a sin theta).
Here is the link for the answer similar to your query:
https://www.meritnation.com/ask-answer/question/please-find-the-distance-between-the-two-co-ordinats-a-sin/coordinate-geometry/1890371
https://www.meritnation.com/ask-answer/question/please-find-the-distance-between-the-two-co-ordinats-a-sin/coordinate-geometry/1890371