Given two tangents and the sweep angle, how do I determine the ellipse?

193 Views Asked by At

I have an ellipse that is defined by two known tangent points (A and C that converge at a known B), and an angle, θ (always <180º) representing ∠ADC where D is the center of the ellipse (but D is unknown).

How do I determine the parameters of the ellipse from this data?

enter image description here

2

There are 2 best solutions below

1
On BEST ANSWER

We can generate a one-parameter family of conics that pass through $A$ and $C$ and have the correct tangents there by taking an affine combination of two degenerate conics: the pair of tangent lines and the double line through $A$ and $C$.

Let $\mathbf a$, $\mathbf b$ and $\mathbf c$ be homogeneous coordinate vectors of points $A$, $B$ and $C$, respectively. Set $$Q_1=(\mathbf a\times\mathbf b)(\mathbf b\times\mathbf c)^T+(\mathbf b\times\mathbf c)(\mathbf a\times\mathbf b)^T.$$ This symmetric matrix represents the two tangent lines. For the double line through $A$ and $C$, we have $$Q_2 = (\mathbf a\times\mathbf c)(\mathbf a\times\mathbf c)^T.$$ These generate the one-parameter family of conics $Q(\lambda) = (1-\lambda)Q_1+\lambda Q_2$. Since this is a linear combination of $Q_1$ and $Q_2$, it includes all of the points that those two conics have in common, so in particular it passes through $A$ and $C$. The extension of the chord of contact of the tangents through $B$ is its polar $Q\mathbf b = \lambda(\mathbf a\times\mathbf c)(\mathbf a\times\mathbf c)^T\mathbf b$, which is clearly a nonzero scalar multiple of $\mathbf a\times\mathbf c$ when $\lambda\ne0$, so it is the line through $A$ and $C$ as required.

The center of $Q(\lambda)$ (when it does have a center), turns out to be ${1-\lambda\over1+\lambda}B+{\lambda\over1+\lambda}(A+C)$. Reparameterizing by setting $\mu=(1-\lambda)/(1+\lambda)$ produces $$D=(1-\mu){A+C\over 2}+\mu B \tag1$$ so all of the centers lie on the line through $B$ and the midpoint of $AC$. If $\mathrm m\angle{ADC}=\theta$, then $P$ satisfies $$\left((A-D)\cdot(C-D)\right)^2 = \lVert A-D\rVert^2 \lVert C-D\rVert^2 \cos^2\theta. \tag2$$ With the parameterization in (1), both sides of this equation are quadratic in $\mu^2$, so solving for $\mu$ should be straightforward, albeit messy. This overgenerates solutions, though: select one for which the midpoint of $A$ and $C$ lies between $B$ and $D$, i.e., $\mu\lt0$ ($\mu\ge0$ does not produce ellipses). Substitute back into $Q$ to get the conic in general form and then use standard techniques for extracting semiaxes and other desired parameters from it.


Once we know that the ellipse’s center lies on the line through $B$ and the midpoint $M$ of $AC$, we can instead proceed in several relatively simple stages.

  1. Construct circles centered at $A$ and $C$ with radius ${\lvert AC\rvert\over 2\sin\theta}$.
  2. Find the intersection $E$ of these circles that lies on the opposite side of $AC$ from $B$. Alternatively, construct just one of these circles and intersect it with the perpendicular bisector of $AC$.
  3. Construct the circle with center $E$ that passes through $A$ and $C$.
  4. $\mathrm m\angle{AEC}=2\theta$, so for any point $F$ on the arc opposite $M$, $\mathrm m\angle{AFC}=\theta$. Find the intersection $D$ of this circle with the line $MB$ that lies on the same side of $AC$ as $E$. This point is the center of the ellipse.

You now have the center of the ellipse, two point on it and the tangents at those points. I’m sure that there are further geometric constructions for the ellipse from here, but analytically the problem devolves to solving a system of homogeneous linear equations. Setting $$Q=\begin{bmatrix}m_{11}&m_{12}&m_{13}\\m_{12}&m_{22}&m_{23}\\m_{13}&m_{23}&m_{33}\end{bmatrix},$$ we have the following constraints: $$\begin{align} \mathbf a^TQ\mathbf a = \mathbf c^TQ\mathbf c = 0 &\text{ (two points on the ellipse)} \\ (\mathbf a\times\mathbf c)\times(Q\mathbf b) = 0 &\text{ (tangents meet at }B\text{, so it’s the pole of }AC\text{)} \\ (0,0,1)^T\times(Q\mathbf d) = 0 &\text{ (polar of the center is the line at infinity)}. \end{align}$$ Here $\mathbf d$ is a homogeneous coordinate vector of the center point $D$. This system of homogeneous linear equations in the unknown elements of $Q$ is underdetermined and you should end up with one free variable that you can set to $1$ or some other convenient value. This will give you a general conic equation of the ellipse, from which you can proceed as above.

0
On

This solution is based on the generalization of the Steiner inscribed ellipse of a triangle.

Ben-Zion Linfield. "On the relation of the roots and poles of a rational function to the roots of its derivative". In: Bulletin of the American Mathematical Society 27.1 (1920)

Given the points $C,K,L$ such that
lines $CL$ and $CK$ are tangent to the same ellipse with the central point $D$ (unknown) at the points $K$ and $L$, respectively, and the angle $\theta=\angle LDK$, find the parameters of the ellipse.

enter image description here

First, lets find the locus of the points, where the center $D$ of the ellipse must be located.

Construct isosceles $\triangle KLT$: $|KT|=|LT|$, $\angle LTK=\theta$ and find the center $Q=(Q_x,Q_y)$ of the circumscribed circle of radius $R_q$ of that triangle,

\begin{align} R_q&= \frac{|KL|}{2\sin\theta} . \end{align}

Then the sought center $D$ of the ellipse must be located on the circular arc $LTK$, $\angle KQL=360^\circ-2\theta$ and we have a relation

\begin{align} (D_x-Q_x)^2+(D_y-Q_y)^2&=R_q^2 \tag{1}\label{1} . \end{align}

enter image description here

Given values $C_x,C_y,K_x,K_y,L_x,L_y,Q_x,Q_y$ and $R_q$, the coordinate $D_x$ can be found as a (suitable) root of quadratic equation

\begin{align} a_2x^2+a_1x+a_0&=0 , \end{align}

where \begin{align} a_2&= \frac{(K_x+L_x)^2+(K_y+L_y)^2 -4C_x(K_x+L_x-C_x)-4C_y(K_y+L_y-C_y)}{(K_x+L_x-2C_x)^2} ,\\ a_1&= 2\,\Big[ \Big(4\,C_x\,(K_x+L_x-C_x)-(L_x+K_x)^2\Big)\,Q_x \\ &+(2\,C_y-K_y-L_y)\, \Big( (K_x+L_x-2\,C_x)\,Q_y \\ &+C_x\,(L_y+K_y)-C_y\,(K_x+L_x) \Big) \Big]\cdot(K_x+L_x-2\,C_x)^{-2} ,\\ a_0&= \Big[ \Big(4\,C_x\,(K_x+L_x-C_x)-(K_x+L_x)^2\Big)\,R_q^2 \\ &+(K_x+L_x-2\,C_x)^2\,(Q_x^2+Q_y^2) \\ &+2\,(K_x+L_x-2\,C_x) \,\Big(C_x\,(L_y+K_y)-C_y\,(K_x+L_x)\Big)\,Q_y \\ &+(C_x\,(L_y+K_y)-C_y\,(K_x+L_x))^2 \Big] \cdot (K_x+L_x-2\,C_x)^{-2} . \end{align}

and the other coordinate is found as \begin{align} D_y&= \frac{D_x\,(L_y+K_y-2\,C_y)-C_x\,(L_y+K_y)+C_y\,(L_x+K_x)}{L_x+K_x-2\,C_x} . \end{align}

Define points $A,B$ at the extension of the lines $CL$ and $CK$: \begin{align} A&=(1+p)\,L-p\,C ,\\ B&=(1+q)\,K-q\,C , \end{align}

where \begin{align} q&= \frac{(1+p)(2D_x-L_x-K_x)}{(1+p)(K_x+L_x)-2D_x-2 p C_x} , \end{align}

and $p$ is some reasonable positive real number, such that $q$ is also positive.

This pair $(p,q)$ defines a family of triangles $ABC$ with the same inscribed ellipse, with $K,L$ as fixed touching points and the third one, $M\in AB$, changes appropriately,

\begin{align} M&=\frac{q A+p B}{p+q} . \end{align}

The focal points of the ellipse are

\begin{align} F_{0,1}&= D\pm \frac{\sqrt{((1+q)\,A+(1+p)\,B+(p+q)\,C)^2-4\,(1+p+q)\,(A\,B+C\,(q\,A+p\,B))}} {2(1+p+q)} , \end{align}

where $A,B,C,D$ are considered as complex numbers.