See illustration I know point $P_1 = (x_1,y_1)$ which sits on a line $L_1$. $P_1$ will lie on the semi-minor axis. $L_1$ is parallel to the semi-major axis. Have another line $L_2$ which is tangent to the ellipse elsewhere in the first or fourth quadrants. I know a point $P_2 = (x_2,y_2)$ on this line which should also lie on the ellipse.
$P_1$, $P_2$, $L_1$, $L_2$ are all known. My problem is how do I find $a$ and $b$, the length of the semi-major and semi-minor axes? My intuition tells me my problem is constrained enough to be solved to a single ellipse.
I started with the Cartestian equation for an ellipse $\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1$, did some implicit differentiation to get $\frac{dy}{dx}=\frac{-xb^2}{ya^2}$. I know the slope of the tangent line $L_2$, so thought this would be the best line of attack but have been staring at this ages now and don't know how to proceed. What I'm looking to get is two linear equations with $a$ and $b$ in them, right?
I went down the path of rearranging the derivative equation. I've substituted $m_2$ for $\frac{dy}{dx}$; the slope of $L_2$:
$$a = \sqrt{\frac{-x_2b^2}{y_2m_2}}$$
but don't see how this helps me because it's not a linear equation. How can I solve for my ellipse?
EDIT: I used the equation of an ellipse centred at the origin above, but this was a mistake. I'm happy to rotate/translate lines to make the calculations simpler and then transform back e.g. so that $x_1 = 0$.
Since you do not actually have the ellipse's center given, you need a more general form for the ellipse's equation.
Here is a geometric hint; I leave it to you to translate this to algebra.
You know the minor symmetry axis of the ellipse: It is the line orthogonal to $L_1$ passing through $P_1$. Now all you need to determine the center $O$ is another non-parallel line known to pass through $O$. Let $M$ be the midpoint between $P_1$ and $P_2$. Let $Q$ be the intersection point of $L_1$ and $L_2$. Then the straight line $MQ$ passes through $O$.
Why? Because that would be the case if the ellipse were a circle. Deforming a circle into an arbitrary ellipse can be done with an invertible affine transformation. Such transformations preserve line straightness, tangency and midpoint relationships. Therefore $MQ$ still passes through $O$ after the transformation.