I think you overworked here. The condition is
$$|AP|^2=9|BP|^2\iff (x+3a)^2+y^2=9\left[(x-a)^2+y^2\right]\iff$$
$$\iff 8x^2-24ax+8y^2=0\iff \left(x-\frac{3a}2\right)^2+y^2=\frac{9a^2}4$$
and we get that the points$\;P=(x,y)\;$ are the locus of circle with center $\;\left(\frac{3a}2\,,\,0\right)\;$ and radius $\;\frac{3a}2\;$ , and since radius = absolute value of $\;x$ - coordinate of circle, the circle is tangent to the $\;y$ - axis
Let $\;Q=(x,y)\;$ , then its distance from the $\;y$ - axis is $\;|x|\;$ , and the length of any of its two tangets to the above circle is
$$\sqrt{\left(x-\frac{3a}2\right)^2+y^2\;-\;\frac{9a^2}4}$$
and thus we get the equation:
$$x^2=\left(x-\frac{3a}2\right)^2+y^2\;-\;\frac{9a^2}4\iff$$
$$\iff -3ax+y^2=0\;\;(*)$$
Now, let us check what is the locus of all point whose distance to $\;4x+3a=0\iff x=-\frac{3a}4\;$ equals its distance to $\;\left(\frac{3a}4\,,\,0\right)\;$:
$$\left(x-\frac{3a}4\right)^2+y^2=\frac{(4x+3a)^2}{16}\iff x^2-\frac{3a}2x+\frac{9a^2}{16}+y^2=x^2+\frac{3a}2x+\frac{9a^2}{16}\iff$$
$$\iff -3ax+y^2=0\;\;(*)$$
and thus both conditions are identical
Hint: The line x=2 is a vertical line. If P=(x,y) is a point on the ellipse, the perpendicular to the line x=2 will always meet it at (2,y). So the mid-point is $(\frac{1}{2}(x+2), y)$.
Updated: If you're still stuck, here's the next step: use the parametrization of the ellipse $x=\cos(\theta)$, $y=\frac{1}{2}\sin(\theta)$ in the mid-point expression above. So the mid-point is
$$
1+\frac{\cos(\theta)}{2}, \frac{1}{2}\sin(\theta)
$$
Now you can use $\cos^2 \theta + \sin^2 \theta= 1$ to get the equation of the locus.
Best Answer