You have a light source with conical semi-aperture angle of $u$, and you want to create an ellipse-shaped spotlight with equation $\frac {x^2}{a^2}+\frac {y^2}{b^2}=1$ $(a>b)$ by shining it on the Cartesian $x$-$y$ plane from $(k,0,h)$ at a tilt angle $\alpha$ to the vertical on the $x$-$z$ plane. Express $k,h,\alpha$ in terms of $u,a,b$.
In other words, using a light source with a fixed aperture, where should you place it on the $x$-$z$ plane and at what angle from the vertical should you tilt it from in order to create an ellipse of given semi-major and semi-minor axes centred at the origin?
(NB - this is a variation of this other question here posted earlier)
Here's a nice video by ElicaTeam illustrating something similar. A screenshot is shown below.
A screenshot from a desmos simulation is shown below.
$\hspace{2cm}$
]2
Addendum
The answer that I've worked out is $$\boxed{\begin{align} &\sin\alpha&&=\sqrt{1-\frac{b^2}{a^2}} \cos u&&=e \cos u\\ &k&&=\sqrt{\left(1-\frac{b^2}{a^2}\right)(a^2+b^2\cot^2u)}&&=e\sqrt{a^2+b^2\cot^2u}\\ &h&&=\frac {b^2}{a\tan u}&&=a(1-e^2)\cot u\end{align}}$$ where $e=\sqrt{1-\frac{b^2}{a^2}}$ is the eccentricity of the ellipse.
See desmos implementation here.
Interestingly, there are similarities with the tilted martini glass problem posted here on MSE last year, and originally posted on $538$ Riddler.
Further Addendum (27 Jul 2017)
See improved desmos implementation here. The red curve is the locus of the light source position for constant $a$ and the blue curve is the locus for constant $b$.




Let $A=(a,0,0)$ and $B=(-a,0,0)$ be the endpoints of the ellipse major axis, and $V=(k,0,h)$ the cone vertex, with $\angle AVB=2u$. Let then $P$ be any point on the ellipse and $H$ its projection onto $AB$. A plane through $P$, perpendicular to the axis of the cone, intersects the cone along a circle $A'B'P$ (see picture below), where $A'$ and $B'$ lie on plane $VAB$.
By the intersecting chords theorem we know that $PH^2=A'H\cdot B'H$. But, on the other hand, we have by similitude: $$ A'H:AH=BC:AB, \quad\hbox{that is:}\quad A'H={BC\over AB}\cdot AH; $$ $$ B'H:BH=AD:AB, \quad\hbox{that is:}\quad B'H={AD\over AB}\cdot BH. $$ If we set $n=VA$ and $m=VB$, the above formulas can be written as $$ A'H={m\sin u\over a}\cdot AH, \quad B'H={n\sin u\over a}\cdot BH, $$ and inserting these into the formula for $PH^2$ we get: $$ PH^2={mn\sin^2 u\over a^2}\,AH\cdot BH. $$ When $H$ is the midpoint of $AB$, then $PH=b$ and $AH=BH=a$, and from the above equation we get: $$ mn={b^2\over \sin^2 u}. $$ Another equation for $m$ and $n$ can be found from the cosine rule applied to triangle $AVB$: $$ m^2+n^2-2mn\cos2u=4a^2. $$
From the above equations you can find $m$ and $n$ in terms of $u$, $a$, $b$: $$ {m^2+n^2\over2}=2(a^2-b^2)+{b^2\over\sin^2u}, \quad {m^2-n^2\over2}={2\over\sin u} \sqrt{(a^2-b^2)(a^2\sin^2u+b^2\cos^2u)}. $$ From $m$ and $n$ it then easy to find $\alpha$, $h$ and $k$: if $M$ is the intersection between $AB$ and the axis of the cone, we have: $$ \angle VMB={\pi\over2}+\alpha,\quad \angle VMA={\pi\over2}-\alpha,\quad \angle VBM={\pi\over2}-u-\alpha,\quad \angle VBM={\pi\over2}-u+\alpha, $$ and from the sine rule: $$ {VM\over\cos(u-\alpha)}={n\over\cos\alpha}, \quad {VM\over\cos(u+\alpha)}={m\over\cos\alpha}, \quad\hbox{whence:}\quad {\cos(u-\alpha)\over\cos(u+\alpha)}={m\over n}. $$ We can solve the last equation for $\alpha$: $$ \tan\alpha={m-n\over m+n}\cot u= \sqrt{a^2-b^2\over a^2\sin^2u+b^2\cos^2u}\cos u, $$ and once $\alpha$ is known we easily obtain $$ h=m\cos(u+\alpha) \quad\hbox{and}\quad k=m\sin(u+\alpha)-a. $$