You will find an ellipse’s intersection points with a line, including the condition for tangency.
Find points of intersection of an ellipse with a line including the condition of tangency.