Also, state the conditions for point X so that your procedure is valid.
I am very pleased to say that I figured it out in the exam hall pretty quickly. And this is from today's / this year's CMI entrance exam paper.
Okay, here's how you do it:
Join X and A and X and B. Let XA meet the circle at Y and XB meet the circle at Z.
Now, join B and Y and A and Z. The meeting point of BY and AZ will be the orthocentre (W) of triangle XAB.
Join XW. Now, XW is perpendicular to AB.
But is this possible for any point X?
There are three regions in the given plane:
If X lies in the first two regions, then there's no problem. But if X lies on the circle, then X would be the orthocentre as XAB would be a right angled triangle and X=W. So, you can't join X and W because they're the same point. And there are infinitely many lines that can be drawn through a point.