Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Roulette Amplitudes for the SIE Lens

We define a local co-ordinate system aligned with the lens, so that the lens orientation is θ=0\theta=0.
Let (x,y)(x',y') be a point in the local frame, corresponding to (x,y)(x,y) in the global frame.

The calculation of roulette amplitudes takes three steps.

  1. Calculate the partial derivatives of ψ\psi with respect to xx' and yy' up to required order. This is done recursively using a CAS engine.

  2. Calculate the partial derivatives of ψ\psi with respect to xx and yy up to required order, using the chain rule.

  3. Calculate the roulette amplitudes αsm\alpha_s^m and βsm\beta_s^m.

First-order derivatives

In the implementation, we calculate the first order derivatives of ψ\psi as

ψRx=C0ff(cosθsinh1(ffxcosθ+ysinθR)sinθsin1(fxsinθ+ycosθR))ψRy=C0ff(sinθsinh1(ffxcosθ+ysinθR)+cosθsin1(fxsinθ+ycosθR))\begin{aligned} \frac{\partial\psi^{\mathrm{R}}}{\partial x} &= C_0\frac{\sqrt{f}}{f'}\cdot \left( \cos\theta\cdot\sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x\cos\theta+y\sin\theta}{R}\right) -\sin\theta\cdot\sin^{-1}\left(f'\cdot\frac{-x\sin\theta+y\cos\theta}{R}\right) \right) \\ \frac{\partial\psi^{\mathrm{R}}}{\partial y} &= C_0\frac{\sqrt{f}}{f'}\cdot \left( \sin\theta\cdot\sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x\cos\theta+y\sin\theta}{R}\right) +\cos\theta\cdot\sin^{-1}\left(f'\cdot\frac{-x\sin\theta+y\cos\theta}{R}\right) \right) \end{aligned}

where θ\theta is the orientation of the lens, and

f=1f2,C0=ξ0DL2\begin{aligned} f' & =\sqrt{1-f^2}, \\ C_0 & = \frac{\xi_0}{D_L^2} \end{aligned}

For θ=0\theta=0, this simplifies to

ddxψR(x,y)=C0ffsinh1(ffxR)ddyψR(x,y)=C0ffsin1(fyR)\begin{aligned} \frac{d}{dx}\psi^{\mathrm{R}}(x,y) &= C_0\frac{\sqrt{f}}{f'} \sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x}{R}\right) \\ \frac{d}{dy}\psi^{\mathrm{R}}(x,y) &= C_0\frac{\sqrt{f}}{f'} \sin^{-1}\left(f'\cdot\frac{y}{R}\right) \end{aligned}

We take the same approach as we did with the raytrace equation, finding the roulette amplitudes first for θ=0\theta=0, and then rotating the entire system to find the amplitudes for arbitrary θ\theta.

Inner differentation of the co-ordinate transformation

The local co-ordinates are given as the rotation \begin{aligned}

[xy]\begin{bmatrix} x' \\ y' \end{bmatrix}

&=

[cosθsinθsinθcosθ]\begin{bmatrix} \cos\theta & \sin\theta \\ -\sin\theta & \cos\theta \end{bmatrix}

\cdot

[xy]\begin{bmatrix} x \\ y \end{bmatrix}

\end{aligned} We can differentiate the coordinates, so get

dxdx=cosθdxdy=sinθdydx=sinθdydy=cosθ\begin{align} \frac{dx'}{dx} & = \cos\theta \\ \frac{dx'}{dy} & = \sin\theta \\ \frac{dy'}{dx} & = -\sin\theta \\ \frac{dy'}{dy} & = \cos\theta \end{align}

We use this with the chain rule below.

Step 2. Chain rule derivation.

m+nψ(x)m(y)n=i=0mj=0n(mi)(nj)cosmi+jθsinnj+iθ(1)im+nψ(x)m+nij(y)i+j\begin{aligned} \frac{\partial^{m+n}\psi}{(\partial x)^m(\partial y)^n} = \sum_{i=0}^m\sum_{j=0}^n \binom{m}{i}\binom{n}{j} \cos^{m-i+j}\theta\cdot \sin^{n-j+i}\theta\cdot (-1)^i\cdot \frac{\partial^{m+n}\psi}{(\partial x')^{m+n-i-j}(\partial y')^{i+j}} \end{aligned}

Step 3. Roulette Amplitudes

Define

Γsm={0if m+s is even,DLm+12m+δ0s(m+1m+1s2)otherwise=2(x)2+2(y)2\begin{aligned} \Gamma^m_s &= \begin{cases} 0 \quad\text{if $m+s$ is even},\\ -\frac{D_L^{m+1}}{2^{m+\delta_{0s}}}\binom{m+1}{\frac{m+1-s}2} \quad \text{otherwise} \end{cases} \\ \square &= \frac{\partial^2}{(\partial x)^2} + \frac{\partial^2}{(\partial y)^2} \end{aligned}

Note that \square is an operator. Then we have

αsm=Γsmm+1s2k=0s/2(1)k(s2k)sψ(x)s2k(y)2kβsm=Γsmm+1s2k=0(s1)/2(1)k(s2k+1)sψ(x)s2k1(y)2k+1\begin{aligned} \alpha^m_s &= \Gamma^m_s\square^{\frac{m+1-s}2} \sum_{k=0}^{\lfloor s/2 \rfloor} (-1)^k \binom{s}{2k} \frac{\partial^s\psi}{(\partial x)^{s-2k}(\partial y)^{2k}} \\ \beta^m_s &= \Gamma^m_s\square^{\frac{m+1-s}2} \sum_{k=0}^{\lfloor (s-1)/2\rfloor} (-1)^k \binom{s}{2k+1} \frac{\partial^s\psi}{(\partial x)^{s-2k-1}(\partial y)^{2k+1}} \end{aligned}

In practice, we omit the DLD_L factors, because they cancel against other factors when the amplitudes are used in the deflection formulæ.

For implementation, we need to rewrite αsm\alpha_s^m and βsm\beta_s^m without the \square operator. We get \begin{aligned} \alpha^m_s(\vec{\xi}) &= \Gamma^m_s \sum_{k=0}^{\lfloor s/2 \rfloor} (-1)^k \binom{s}{2k} \sum_{h=0}^H\binom{H}{h} \frac{\partial^{m+1}\psi(\vec{\xi})} {(\partial x)^{m+1-2k-2h}(\partial y)^{2k+2h}} \ \beta^m_s(\vec{\xi}) &=
\Gamma^m_s \sum_{k=0}^{\lfloor (s-1)/2\rfloor} (-1)^k \binom{s}{2k+1} \sum_{h=0}^H\binom{H}{h} \frac{\partial^{m+1}\psi(\vec{\xi})} {(\partial x)^{m-2k-2h}(\partial y)^{2k+2h+1}} \end{aligned} where \begin{aligned} H = \frac{m+1-s}{2} \end{aligned}

Alternative Step 3. Roulette Amplitudes

This uses the ECMS paper.

αsm=12δ0sDLm+1k=0m(mk)(Csm(k)ξ1+Csm(k+1)ξ2)ξ1mkξ2kψβsm=DLm+1k=0m(mk)(Ssm(k)ξ1+Ssm(k+1)ξ2)ξ1mkξ2kψ\begin{aligned} \alpha^m_s &= -\frac{1}{2^{\delta_{0s}}} D^{m+1}_{\textrm{L}} \sum_{k=0}^{m}\binom{m}{k} \left({ \mathcal{C}}^{m(k)}_s\partial_{\xi_1} + \mathcal{C}^{m(k+1)}_s\partial_{\xi_2} \right) \partial^{m-k}_{\xi_1}\partial^k_{\xi_2}\psi \\ \beta^m_s &=-D^{m+1}_\textrm{L}\sum_{k=0}^m\binom{m}{k}\left({\mathcal{S}}_s^{m(k)}\partial_{\xi_1}+{\mathcal{S}}_s^{m(k+1)}\partial_{\xi_2}\right)\partial_{\xi_1}^{m-k}\partial_{\xi_2}^k\psi \end{aligned}

where \begin{aligned} \mathcal{C}^{m(k)}s &= \frac{1}{\pi}\int{-\pi}^{\pi}{\rm d}\phi\sin^k\phi\cos^{m-k+1}\phi\cos s\phi \ \mathcal{S}^{m(k)}s &= \frac{1}{\pi}\int{-\pi}^{\pi}{\rm d}\phi\sin^k\phi\cos^{m-k+1}\phi\sin s\phi \end{aligned} Rearranging, for the sake of implementation, we can write

αsm=12δ0sDLm+1k=0m(mk)(Csm(k)ξ1mk+1ξ2kψ+Csm(k+1)ξ1mkξ2k+1ψ)βsm=DLm+1k=0m(mk)(Ssm(k)ξ1mk+1ξ2kψ+Ssm(k+1)ξ1mkξ2k+1ψ)\begin{aligned} \alpha^m_s &= - \frac1{2^{\delta_{0s}}} D_\textrm{L}^{m+1} \sum_{k=0}^m\binom{m}{k}\left({\mathcal{C}}_s^{m(k)} \partial_{\xi_1}^{m-k+1}\partial_{\xi_2}^k\psi +{\mathcal{C}}_s^{m(k+1)} \partial_{\xi_1}^{m-k}\partial_{\xi_2}^{k+1}\psi \right) \\ \beta^m_s &= -D_\textrm{L}^{m+1}\sum_{k=0}^m\binom{m}{k}\left( {\mathcal{S}}_s^{m(k)} \partial_{\xi_1}^{m-k+1}\partial_{\xi_2}^k\psi + {\mathcal{S}}_s^{m(k+1)} \partial_{\xi_1}^{m-k}\partial_{\xi_2}^{k+1}\psi \right) \end{aligned}