Find tangents to a circle $x^2+y^2=5$ parallel to the straight line $2x-y+1=0$
My solution:
$$x^2+y^2=5$$ $$S=(0,0)$$ $$r=\sqrt{5}$$ $$y=2x-1$$ $$a=2$$
Searching for b $$y=2x+b$$
Using following formula: $$d=\frac{Ax_0+By_0+C}{\sqrt{A^2+B^2}}$$
$$-2x+y-b$$ $$\sqrt{5}=\frac{-2\cdot0+1\cdot0+b}{\sqrt{(-2)^2+1^2}}$$ $$\sqrt{5}=\frac{b}{\sqrt{5}}$$
$b= 5$ or $b= -5$
Tangents: $$y=2x+5$$ $$y=2x-5$$
==============================
Seems like it should be right since we got $\sqrt{5}$ at the end, but could someone look into it to make sure?
$$\mathbf{Figure.}\text{ Circle } x^2+y^2=5, \text{given line (thick blue) } 2x−y+1=0, \text{and the two tangents at the points } (2,−1) \text{ and }(−2,1) \text{ (thin blue).} $$