In the above figure you can see a circumference of radius $r$ and a point $P$ outside it. Assume that you draw a line going through $P$ that hits the circle at some point $C$. When does line $PC$ have the maximum and minimum slope? Is it when it's tangent to the circle? Why? (Point $P$ has to be "under" and "to the left" with respect to the circle).
When I tried to prove it, I thought that it was obvious that the tangent line has more slope than some secant lines (Assume that point P goes clockwise until it gets to the point of tangency). But I do not know what happens after the point of tangency but the secant lines that cut the circle after the point of tangency also cut it before it so then it would be one of those lines that have less slope, but that´s not a rigurous way to prove it.

In general it is not the tangents consider the case where p directly is below your circle then the max is through the center of the circle not either of the tangents. I am not sure how to show it in general but if the point's shadow and circle's shadow do not coincide than the two tangents will give you either a max or a min. You can do the following to calculate it however.
You can make a function to express express the slope of your line and its point of intersection with the circle. Transform your graph so that you your circle is centered at the x-y axis. This will also shift your point P over maintaining your relationship of maximal slope. Now we can express the slope of the line made with an intersection point on the circle as function with respect to x only $f(x) = \frac{\sqrt{r^2 - x^2} - P_y}{x-P_x}$. Take the derivative of this and solve for the max value. So $\frac{dy}{dx} = \frac{-x*P_y}{\sqrt{r^2-x^2}} - \frac{P_y}{(x-P_x)^2}$ where x ranges from [-r, r].