Given that equation of a circle $C$ is $x^2 +y^2 -10x -8y +18=0$
Find the equations of the tangents to the circle $C$ which are parallel to line $y-x+5=0$
(Originally this was not a differentiation question,but I found out that if I restricted myself to pre-calculus,I would have to use discriminant and then the quadratic formula.)
$x^2 +y^2 -10x -8y +18=0$
By differentiating with respect to $x$,
$2x +2y y' -10 -8y'=0$
Hence,
$y'=\frac{-2x+10}{2y-8}$
As the gradient is 1,
$2y-8=-2x+10$
$y=-x+9$
That's where I got stuck.As the gradient is $1$,why does last equation has a gradient of $-1$?Where did I go wrong?Lastly,is there any other easier way ?
Edit: Subst. $y=-x+9$ into $C$
$x^2 + (9-x)^2 -10x-8(9-x)+18=0$
$2x^2 +81-18x -10x -72+8x+18=0$
$2x^2 -20x -27=0$
This would give me $x=\frac {10+\sqrt{154}}{2} $or $x=\frac {10-\sqrt{154}}{2}$
Hence,$y=\frac {8\pm\sqrt{154}}{2}$
So,the equation is $y=x-1\pm\sqrt{154}$
However when I did it the pre-calculus way,the answer is $ y=x-1 \pm \sqrt{46}$