Intersection of line and circle

AI Thread Summary
To find the intersection points of a line and a circle, substitute the line's equation, simplified to y=mx+b, into the circle's equation. This will yield a quadratic equation in x, where two real roots indicate two intersection points, one root indicates tangency, and no real roots indicate no intersection. In the special case where the line is vertical (x1=x2), the x-coordinate is constant, and the corresponding y-values can be determined from the line's equation. Clarification on handling vertical lines is requested, focusing on how to derive y-values when x is fixed. Understanding these methods allows for accurate determination of intersection points between the two shapes.
minase
Messages
42
Reaction score
0
I'm trying to find the points of intersection
of line and circle with equations:

(x-p)^2 + (y-q)^2 = r^2
(y-y1)*(x2-x1)-(x-x1)*(y2-y1)=0

but i can't handle with this. Can anyone help me?
 
Physics news on Phys.org
minase said:
I'm trying to find the points of intersection
of line and circle with equations:
(x-p)^2 + (y-q)^2 = r^2
(y-y1)*(x2-x1)-(x-x1)*(y2-y1)=0
but i can't handle with this. Can anyone help me?

What do you know about the circle's dimensions?
 
Your second equation (the line) can be simplified to look like y=mx+b (I assume x1, x2,y1,y2 are constants). Substitute mx+b for y in the first equation. You now have a quadratic in x. Solve for x, 2 real roots gives points of intersection, 1 root is tangency point, 0 real roots means no intersection. If x roots are real, use second equation to get y values.

Special case x1=x2, then x comes right out of second equation and 2 values of y can be found. Above comments about real roots and intersections apply. Line happens to be vertical.
 
mathman said:
Your second equation (the line) can be simplified to look like y=mx+b (I assume x1, x2,y1,y2 are constants). Substitute mx+b for y in the first equation. You now have a quadratic in x. Solve for x, 2 real roots gives points of intersection, 1 root is tangency point, 0 real roots means no intersection. If x roots are real, use second equation to get y values.

Special case x1=x2, then x comes right out of second equation and 2 values of y can be found. Above comments about real roots and intersections apply. Line happens to be vertical.

I see how the case where the line is not vertical works but I don't see what you would do in the case where it is vertical. Can you explain in a little more detail?
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top