For what values of $a$ will $y=ax$ be a tangent to $x^2+y^2+20x-10y+100=0$
I tried to solve this question by differentiating and making it equal to $0$ and solving for $x$ and i got $-10$ as an answer but when i graph the equation, it doesn't touch the circle. I don't know where i gone wrong. Can anyone help me with this question.
Thanks.
Since $x^2+y^2+20x-10y+100=0$ can be written as $$(x+10)^2+(y-5)^2=5^2,$$ we know that the center of the circle is $(-10,5)$ with radius $5$.
$\qquad\qquad\qquad$
Hence, it is easy to see that $a=\color{red}{0}$ is a solution where $(-10,0)$ is the tangent point.
Also, noting that $\tan\alpha=5/10=1/2$, we have $$a=\tan\theta=\tan(\pi-2\alpha)=-\tan(2\alpha)=-\frac{2\tan\alpha}{1-\tan^2\alpha}=\color{red}{-\frac 43}.$$