There exists an ellipse centered at (0,0) with two tangent lines given by $y=-\frac{1}{2}x + \frac{\sqrt{39}}{2}$ and $y=\frac{1}{3}x + \frac{7}{3}$. Find the ellipse.
So, I used the equation of one line and substituted it into the equation of an ellipse:
$\frac{x^2}{a^2} + \frac{(\frac{1}{3}x + \frac{7}{3})^2}{b^2}$=1.
Then I get a quadratic equation in $x$:
$(9b^2+a^2)x^2 + (14a^2)x + (49a^2 - 9a^2b^2)$ = 0
When I solve for $x$ using the quadratic formula, I get a very complicated expression in terms of $a$ and $b$:
$x = \frac{-14a^2 \pm \sqrt{196a^2 - 1764a^2b^2 + 324a^2b^4 - 98a^4 + 36a^4b^2}}{18b^2 + 2a^2} $
At this point, I figure that there must be a simpler way of solving this problem. Otherwise, I have to plug this expression into the original equation of an ellipse to get an equation in terms of a and b. Then, repeat the entire process with the second line to get a second equation in terms of a and b, and then use that system to solve for both a and b.
I've also thought about doing this with derivatives:
The slope of the second line is $\frac{7}{3}$, so the derivative at the $(x,y)$ coordinate where that line intersects the ellipse, of the ellipse, using implicit differentiation, yields (after solving):
$\frac{dy}{dx} = -\frac{xb^2}{ya^2} = \frac{7}{3}$
This, again, seems like it would lead to a lot of messy algebra if I were to plug this back into the original equation after solving for x:
$x=-\frac{7ya^2}{3b^2}$
Then plugging in:
$\frac{(-\frac{7ya^2}{3b^2})^2}{a^2} + \frac{y^2}{b^2} = 1$
As you can see, the algebra gets messy. Is there a more simplistic way of going about this?