How to find an ellipse , given 2 passing points and the tangents at them?
Please answer to a question , how to find an ellipse which passes the 2 given points and has the given tangents at them. And one related question is that the given condition can decide just one ellipse which satisfies it?
Thank you in advance.
Edit : May be , I can say the first answer (by Mr. André Nicolas) is for the general case. Is there no special case where only a finite set of ellipses satisfies the condition?
Edit : According to the answers and comments , I can compute an arbitrary chosen ellipse for my condition (using the method by Mr.Patrick Da Silva). But there are possibly many others which satisfy my conditions. Am I right?
Solution 1:
Certainly such an ellipse is not uniquely determined. For example, there are lots of ellipses with tangent lines $y=1$ at $(0,1)$ and $y=-1$ at $(0,-1)$: any ellipse $a^2x^2+y^2=1$.
I have not checked that an ellipse with the desired properties always exists. But by a suitable projective transformation we can make the two points nearest neighbours on a pair of parallel lines. After the projection, there is a circle with the desired property, as well as infinitely many non-circular ellipses, and another infinity of hyperbolas. Transform back. It follows that there are infinitely many conics with the desired property.
Solution 2:
Here is a complete characterization of all possible ellipses that satisfy the given criteria.
Case 1: The two tangents through the specified points $P$ and $Q$ intersect at a point $O$ distinct from $P$ and $Q$. Then there is an affine transformation mapping $O$, $P$, and $Q$ to $(0,0)$, $(1,0)$, and $(0,1)$ respectively. Under this transformation, any ellipse satisfying the original criteria is mapped to an ellipse passing through $(1,0)$ and $(0,1)$ and tangent to the coordinate axes at those points. All such ellipses are of the form $(x-1)^2+(y-1)^2+2axy = 1$ with $-1 < a < 1$.
Here are some figures from my answer to a duplicate question that I had not realized was a duplicate. The ellipses are shown for $a=\frac12,0,-\frac12$.
Case 2: The two tangents are parallel and neither passes through both points. Then there is an affine transformation mapping $P$ and $Q$ to $(-1,0)$ and $(1,0)$, and the tangents to lines parallel to the $x$-axis. Now there is an infinite family of ellipses given by André Nicolas which satisfy these conditions, namely $ax^2 + y^2 = 1$ with $a > 0$.
Update: See these two previous posts for a way to choose the best ellipse from this one-dimensional family of ellipses, where by "best" we mean the one with the least eccentricity:
- "...how to find the ellipse with minimal eccentricity"
- Roundest ellipse with specified tangents
Solution 3:
It's easier than you think.
You can do it to be tangent to any two lines like for example in this picture $AB$ and $BC$:
Take a point like $D$ (in the picture) then reflect it on the lines $AB$ and $BC$ giving u $D$ and $D'_{1}$ (in the pic) then draw the perpendicular bisector of the line $D'D'_{1}$ (which because in triangle $DD'D'_{1}$, $CB$ and $AB$ are perpendicular bisectors and they pass through $B$, the third perpendicular bisector passes through $B$ too).
Now any point on this line can be used, like $E$. Now draw $ED'$ and $ED_{1}'$ til they intersect to the lines $BC$ and $AB$ respectively at points $P$ and $F$ (sorry i didn’t write the $P$ one) then your ellipses focal points are $E$ and $D$ and the two tangent points are $P$ and $F$.
see..... easy!!!!
And you can prove this (in the second pic):
A given line $AB$ and two given points $C$ and $D$. If you draw an ellipse with the two focal points $C$ and $D$ to be tangent to the line $AB$ at, for example, $E$, $E$ would be the point that $CE+DE$ is minimum value.
So how to find this point?
Answer: Reflect the point $D$ on the line and name it $D'$ then the value $CE+DE=CE+D'E$ and its minimum when the three points $C$ and $E$ and $D'$ are collinear (the nearest distance between two points is the straight line).
So why its tangent?
Because if that is not the minimum value for example the point $E'$ then there exists a second point like $E''$ that $CE'+DE'=CE''+DE''$ (because the amount increases continuously if u move the minimum point to either right or left so for every point in the right there exists one on the left) then it is obvious that the ellipse would intersect the line at two points $E'$ and $E''$. Then its not tangent but for the minimum value its only one point.
Please e-mail me if this was helpful ([email protected])
Solution 4:
There are infinitely many ellipses, even assuming that the two tangent lines intersect.
This follows from the very nice property of an ellipse:
If line $t$ is a tangent to an ellipse at point $P$, and if the focii of the ellipse are $A$ and $B$, then the ray $\overrightarrow{BP}$ reflected on $t$ passes through $A$.
Basically, if you shoot a laser from $B$ to any point on the ellipse, and the ellipse is a perfect mirror, then the reflected ray will pass through $A$!
This can be proven using the physics principle: light takes the route which takes the shortest time
. Using the fact that locus of an ellipse is $PA + PB = $ constant, if light from $B$ reflected on the ellipse has to take the shortest time, it can be shown that it has to pass through $A$.
This gives us a way of generating multiple ellipses.
Suppose the given points are $P$ and $Q$ and the tangents ($p$ and $q$ respectively) intersect at $O$, also assume that $\angle{POQ}$ is not acute.
The two tangents divide the plane into four regions. Consider the region $R$ which contains both $P$ and $Q$ on its border.
Now reflect $P$ on the line $q$ at point $Q$. This line intersects $R$ and we get a half-line $S_P$. Similarly reflect $Q$ on the line $p$ at $P$, and we get half-line $S_Q$.
Now given a point $B_i$ (candidate for a focus), we pick a corresponding point $A_i$ (candidate for the other focus) as follows (based on the above reflection property):
Shoot lasers from $B_i$ to $P$ and $Q$ (assuming lines $p$ and $q$ are mirrors) and if they intersect, we pick the point of intersection to be $A_i$.
If it turns out that $PB_i + PA_i = QB_i + QA_i$, then we have our ellipse.
Now given a point $B_1$ on $S_Q$ the corresponding $A_1$ we get is the point $Q$ itself.
We have that $B_1Q + A_1Q \lt B_1P + A_1P$
For a point $B_2$ on $S_P$, the corresponding $A_2$ we get is the point $P$ itself.
We have that $B_2Q + A_2Q \gt B_2P + A_2P$
Now if we pick $B_1$ and $B_2$ sufficiently far from $P$ and $Q$, as we move from $B_1$ to $B_2$, along the segment $B_1 B_2$, there will be a point $B_3$ for which $B_3Q + A_3Q = B_3P + A_3P$ (by continuity arguments) and giving us an ellipse we need.
Now we can pick multiple lines parallel to $B_1B_2$ and use that to get multiple ellipses (at most two parallel lines can give the same ellipse).
If $\angle{POQ}$ is acute, we can pick $B_1$ and $B_2$ on $p$ and $q$ itself, with $P$ lying between $O$ and $B_1$ and $Q$ lying between $O$ and $B_2$ and $B_1$, $B_2$ being sufficiently far from $O$.