A variable line passing through a fixed point $P(x_0,y_0)$ intersects the circle $x^2+y^2=a^2$ at some point $Q$. If all the perpendicular bisectors of the variable line segment $PQ$ are tangent to a curve $C$, determine $C$ if (i) $P$ is inside the circle (ii) $P$ is outside the circle (Note: in both cases, only select one point of intersection with the circle, do not find the perpendicular bisector of the chord between both points of intersection);
Motivation:
I was watching this video on Feynmann's lost lecture on planetary orbits and came across an interesting geometry puzzle; https://youtu.be/xdIjYBtnvZU?si=g-5pJiu_zo8SZf5_ which moreover resolves the first part of the question but then my dense self could not understand why the center, $Q$, and $P$ as defined in "geometry proof land" are collinear so I decided to turn to a hardcore coordinate geometry approach to the problem. I would really appreciate it if the answer to this problem also uses the tools of coordinate geometry.
My attempt:
Let the variable line be $y-y_0=m(x-x_0)$. Substituting into the circle's equation, I got:
$(1+m^2)x^2+2m(y_0-mx_0)x+(mx_0-y_0)^2-a^2=0$.
And, $(1+m^2)y^2+2(mx_0-y_0)y+(mx_0-y_0)^2-m^2a^2=0$
I was thinking of perhaps explicitly finding the intersection point of the circle and variable line, say, some $(x,y)$, then writing the midpoint of $PQ$ as $(h,k)=\left(\dfrac{x+x_0}{2}, \dfrac{y+y_0}{2} \right)$, then eliminating $m$ and finding a relation between $h$ and $k$ which would then be the required locus.
But there are many problems with this approach; firstly, I'm implicitly assuming that the perpendicular bisector is tangent at the point it intersects $PQ$ to the curve $C$ without any justification. Secondly, the expressions for $x$ and $y$ are really large (so eliminating m becomes a very challenging task) and I don't know which sign I am supposed to take. Thirdly, I had a gut feeling that since the case considered in the video turns out to be an ellipse, the other case may either be a hyperbola or just a simple ellipse but I have no idea how to prove this intuition either.
Can anyone help me figure this out the coordinate geometry way?
Let me see if I can convince you with a different geometrical approach, instead of resorting to coordinates. I'll do my proof for a point $P$ inside the circle, but a similar reasoning is possible if $P$ is outside (see EDIT at the end).
Consider two rays through $P$, $PQ$ and $PQ'$, with their perpendicular bisectors meeting at $\tilde T$ (see figure below). Midpoints $M$ and $M'$ lie on a fixed circle (purple in the figure), which is the transformed of the given circle under a homothety of centre $P$ and ratio $1\over2$. Hence its centre $C$ is the midpoint of $OP$ and its radius ${1\over2}a$
But points $M$ and $M'$ also belong to the circle with diameter $P\tilde T$ (blue in the figure). If $Q'$ is moved towards $Q$, point $\tilde T$ also moves, approaching a limiting position $T$ which is the point on the envelope of the perpendicular bisectors lying on the perpendicular bisector of $PQ$ (this is the "classical" definition of envelope you can find on Wikipedia).
When $Q'\to Q$ also $M'\to M$ and circle $PM'M\tilde T$ tends then to a circle $PMT$ (see figure below) which is tangent (at $M$) to the circle of centre $C$. This fixes the centre $D$ of circle $PMT$ (because $D$ lies both on $CM$ and on the perpendicular bisector of $PM$) and also fixes $T$ because $PT$ is a diameter.
From $PD=DT$ and $PC=CO$ it follows $CM\parallel OT$. But from $PM=MQ$ it also follows $CM\parallel OQ$. Hence $OTQ$ are aligned and $T$ is the intersection between $OQ$ and the perpendicular bysector of $PQ$.
As a consequence we have $PT=QT$ and $PT+OT=QT+OT=a$. The locus of $T$ is thus the ellipse (dotted green in the figure) having foci $O$, $P$ and major axis $a$.
EDIT.
In the case when $P$ is outside the circle, one can repeat the same argument as above. I won't show all the details but just give below the analogous of the last figure. In this case $T$ lies outside $OQ$ and we have: $PT-OT=QT-OT=a$. The locus of $T$ is thus the hyperbola having foci $O$, $P$ and transverse axis $a$.