Find the condition that the line may touch the curve
Assume
The second curve is a hyper-ellipse, and the condition of tangency is that the equation you get by substituting from the equation for the line into the equation of the hyper-ellipse has a single real root.