Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: Intersection of a line and an ellipse
Posted:
Aug 22, 2009 6:23 AM


Hi Walter,
Express the equation of
the line in the form y = m*x + d...(1)
and the equation of the ellipse in the form
(xxc)^2/a^2 + (yyc)^2/b^2 = 1...(2)
Substitute y from (1) into (2) and solve for the two values of xcoord.
Then from (1) get x = (yd)/m , substitute this into (2) and solve for the two ycoord values.
Both these equations will have sqrt terms, as you are solving quadratics. If the value under the sqrt is zero, then both values are equal, and the line is tangent to the ellipse. If the value under the sqrt is negative, then there are no real solutions as the line does not intersect the ellipse.
Regards, Peter Scales.



