Given an arbitrary point $P$, at $(x_{1}, y_{1})$, is there a general expression of a line that goes through a circle of radius $r$ centered at the origin? I know there are infinite number of such lines/diameters when $P = 0$.
If such an expression exists, is it possible to algebraically, or otherwise, find the general equation for all intersection points between the line and the circle?
A line is often written in standard form as $$y=mx+b$$ where $m$ is the slope and $b$ is some constant. We can solve for $m$ easily: $$m=\frac{x_{\text{point}}-x_{\text{center of the circle}}}{y_{\text{point}}-y_{\text{center of the circle}}}$$ Plugging this back in, we have $$y=\frac{x_{\text{point}}-x_{\text{center of the circle}}}{y_{\text{point}}-y_{\text{center of the circle}}}x+b$$ Then, we can once again use the coordinates of $P$ to find $b$: $$y_{\text{center of the circle}}-\frac{x_{\text{point}}-x_{\text{center of the circle}}}{y_{\text{point}}-y_{\text{center of the circle}}}x_{\text{center of the circle}}=b$$ Therefore, we have the equation $$y=\frac{x_{\text{point}}-x_{\text{center of the circle}}}{y_{\text{point}}-y_{\text{center of the circle}}}x+\left(y_{\text{center of the circle}}-\frac{x_{\text{point}}-x_{\text{center of the circle}}}{y_{\text{point}}-y_{\text{center of the circle}}}x_{\text{center of the circle}}\right)$$