I am brushing up some plane and solid analytic geometry before taking a course on multivariable calculus. I am deriving important results and solving through the book, Co-ordinate Geometry by SL Loney. I am stuck on a question in circles, I feel the equation becomes unwieldy.
Examples XVIII, problem 14
Find the equation to the straight lines joining the origin to the points in which the straight line $y=mx+c$ cuts the circle
$$x^2+y^2=2ax+2by$$
Hence, find the condition that these points may subtend a right angle at the origin.
Find also the condition that the straight line may touch the circle.
Solution(My attempt).
Substituting the equation of the line $y=mx+c$ in the equation of the circle,
$\begin{aligned} x^2+y^2&=2ax+2by\\ x^2+(mx+c)^2&=2ax+2b(mx+c)\\ x^2+m^{2}x^{2}+2mcx+c^2&=2ax+2bmx+2bc\\ \implies (1+m^2)x^2+(2mc-2a-2mb)x+c^2-2bc&=0 \end{aligned}$
I am unable to progress beyond this point. Any tips, hints or suggestions would really help!