<s>[INST] Locating a line perpendicular to an ellipse At any given point on an ellipse, the line of the perpendicular is easy to calculate; what about the inverse? Given a line of known orientation, at what point on the circumference of an ellipse would it be perpendicular?

 [/INST] Given the perpendicular line, you can find the slope of the tangent line by taking the negative reciprocal of the slope of the perpendicular line. Then, once you have the slope of the tangent at a point on the ellipse, find the first derivative of the ellipse and set it equal to that quantity, and then solve. There will be two solutions. 
For example, let the axes of the ellipse be $a$ and $b$ and let the line have slope $m$. Then the slope of the tangent at the point is perpendicular to the perpendicular line, and its slope is $-\frac{1}{m}$. Now we must find the first derivative of the equation of an ellipse. The equation of an ellipse takes the form
$$\frac{x^2}{a^2}+\frac{y^2}{b^2}=1$$
If we solve for $y$, we get
$$y=\pm b\sqrt{1-\frac{x^2}{a^2}}$$
So that
$$y'=\pm \frac{bx}{a\sqrt{a^2-x^2}}$$
We set this equal to our tangent slope and solve the equation
$$-\frac{1}{m}=\pm \frac{bx}{a\sqrt{a^2-x^2}}$$
Or, because of the "plus or minus", we get
$$\frac{1}{m}=\pm \frac{bx}{a\sqrt{a^2-x^2}}$$
Now square both sides to get
$$\frac{1}{m^2}=\frac{b^2x^2}{a^2(a^2-x^2)}$$
Multiply both sides by $(a^2-x^2)$ to get
$$\frac{1}{m^2}(a^2-x^2)=\frac{b^2}{a^2}x^2$$
$$\frac{a^2}{m^2}-\frac{1}{m^2}x^2=\frac{b^2}{a^2}x^2$$
$$\frac{a^2}{m^2}=(\frac{b^2}{a^2}+\frac{1}{m^2})x^2$$
$$\frac{a^2}{m^2}=(\frac{a^2+b^2m^2}{a^2m^2})x^2$$
$$x=\pm\sqrt{\frac{a^4}{a^2+b^2m^2}}$$
Then once you have these $x$ values, plug it in and solve for the $y$ values, and you should have your points. This is a lot of algebra, so please let me know in the comments if I made a stupid mistake, and I'll fix it.
</s>