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.

The SIE Lens

SIE (Singular isothermal ellipsoid)

The lens potential of SIE is given as (see SIE):

ψSIER(θE,f,λL;θ,ϕ)=θEf1f2θ([sin(ϕλL)]sin1(1f2sin(ϕλL))+[cos(ϕλL)]sinh1(1f2fcos(ϕλL))).\begin{aligned} \begin{split} \psi^R_\textrm{SIE}(\theta_E,f,\lambda_L;\theta,\phi) & = \theta_E\sqrt{\frac{f}{1-f^2}}\theta \\ & \cdot \Bigg([\sin(\phi-\lambda_L)]\cdot\sin^{-1}\left(\sqrt{1-f^2}\cdot \sin{(\phi-\lambda_L)}\right) \\& +[\cos(\phi-\lambda_L)]\cdot\sinh^{-1}\left(\frac{\sqrt{1-f^2}}{f}\cos(\phi-\lambda_L)\right)\Bigg). \end{split} \end{aligned}

where (θ,ϕ)(\theta,\phi) are the polar coordinates in the lens plane, whereas λL\lambda_L is the orientation of the ellipse. That is, the major axis of the ellipse is θ\theta from the xx-axis, counter-clockwise. Thus λL\lambda_L is constant across the image.

In the following, we use the following shorthands:

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

Normalisation of the Lens Potential

Recall from Lens Potential that the lens potential ψR\psi^{\mathrm{R}} used in the Roulette formalism differs from the more standard normalisation by a factor of ξ02/DL2\xi_0^2/D_L^2 or C0ξ0C_0\xi_0. If we also mormalise RR, and write R=ξ0rR=\xi_0r, we can rewrite ψ\psi as

ψξ0,f,θ,DLSIE(R)(r,ϕ)=ξ02DL2f1f2r([sin(ϕθ)]sin1(1f2sin(ϕθ))+[cos(ϕθ)]sinh1(1f2fcos(ϕθ))).\begin{aligned} \begin{split} \psi_{\xi_0,f,\theta,D_\mathrm{L}}^\textrm{SIE(R)}(r,\phi) &= \frac{\xi_0^2}{D_\textrm{L}^2}\sqrt{\frac{f}{1-f^2}}\cdot r \\&\cdot \Bigg([\sin(\phi-\theta)]\cdot\sin^{-1}\left(\sqrt{1-f^2}\cdot \sin{(\phi-\theta)}\right) \\& +[\cos(\phi-\theta)]\cdot\sinh^{-1}\left(\frac{\sqrt{1-f^2}}{f}\cos(\phi-\theta)\right)\Bigg). \end{split} \end{aligned}

Now the standard normalisation reads

ψξ0,f,θ,DLSIE(R)(r,ϕ)=ξ02DL2f1f2r([sin(ϕθ)]sin1(1f2sin(ϕθ))+[cos(ϕθ)]sinh1(1f2fcos(ϕθ))).\begin{aligned} \begin{split} \psi_{\xi_0,f,\theta,D_\mathrm{L}}^\textrm{SIE(R)}(r,\phi) = \frac{\xi_0^2}{D_\textrm{L}^2}\sqrt{\frac{f}{1-f^2}}\cdot r\cdot &\Bigg([\sin(\phi-\theta)]\cdot\sin^{-1}\left(\sqrt{1-f^2}\cdot \sin{(\phi-\theta)}\right) \\& +[\cos(\phi-\theta)]\cdot\sinh^{-1}\left(\frac{\sqrt{1-f^2}}{f}\cos(\phi-\theta)\right)\Bigg). \end{split} \end{aligned}

Now the standard normalisation reads

ψξ0,f,θ,DLSIE(r,ϕ)=f1f2r([sin(ϕθ)]sin1(1f2sin(ϕθ))+[cos(ϕθ)]sinh1(1f2fcos(ϕθ))).\begin{split} \psi_{\xi_0,f,\theta,D_\mathrm{L}}^\textrm{SIE}(r,\phi) = \sqrt{\frac{f}{1-f^2}}\cdot r\cdot &\Bigg([\sin(\phi-\theta)]\cdot\sin^{-1}\left(\sqrt{1-f^2}\cdot \sin{(\phi-\theta)}\right) \\\\& +[\cos(\phi-\theta)]\cdot\sinh^{-1}\left(\frac{\sqrt{1-f^2}}{f}\cos(\phi-\theta)\right)\Bigg). \end{split}
ψξ0,f,θ,DLSIE(r,ϕ)=f1f2r([sin(ϕθ)]sin1(1f2sin(ϕθ))+[cos(ϕθ)]sinh1(1f2fcos(ϕθ))).\begin{aligned} \begin{split} \psi_{\xi_0,f,\theta,D_\mathrm{L}}^\textrm{SIE}(r,\phi) = \sqrt{\frac{f}{1-f^2}}\cdot r\cdot &\Bigg([\sin(\phi-\theta)]\cdot\sin^{-1}\left(\sqrt{1-f^2}\cdot \sin{(\phi-\theta)}\right) \\\\& +[\cos(\phi-\theta)]\cdot\sinh^{-1}\left(\frac{\sqrt{1-f^2}}{f}\cos(\phi-\theta)\right)\Bigg). \end{split} \end{aligned}

Derivation with θ=0\theta=0

In this section we assume θ=0\theta=0, aligning the elliptical lens with the primary axis. Then ψR\psi^{\mathrm{R}} becomes

ψR(r,ϕ)=C0ffR[sinϕsin1(fsinϕ)+cosϕsinh1(ffcosϕ)]\psi^{\mathrm{R}}(r,\phi) = C_0\cdot \frac{\sqrt{f}}{f'}R\cdot\left[ \sin\phi\sin^{-1}(f'\cdot\sin\phi) + \cos\phi\sinh^{-1}\left(\frac{f'}{f}\cdot\cos\phi\right)\right]

In Cartesian coordinates, we get

ψR(x,y)=C0ff[ysin1(fyR)+xsinh1(ffxR)]\psi^{\mathrm{R}}(x,y) = C_0\cdot \frac{\sqrt{f}}{f'}\cdot\left[ y\sin^{-1}\left(f'\cdot\frac{y}{R}\right) + x\sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x}{R}\right) \right]

where

R=x2+y2R=\sqrt{x^2+y^2}

The deflection is given by the gradient ψR\nabla\psi^{\mathrm{R}}. We need the following basic rules.

ddxsin1x=11x2\frac{d}{dx}\sin^{-1} x = \frac{1}{\sqrt{1-x^2}}
ddxsinh1x=11+x2\frac{d}{dx}\sinh^{-1} x = \frac{1}{\sqrt{1+x^2}}

Differentiation with respect to xx

Firstly, we differentiate the sin1\sin^{-1}-term

t1=ddxysin1(fyR)=y1(fyR)2(fy)ddx1R=y1(fyR)2(fy)1R2dRdx=y1(fyR)2(fy)1R2xR=fxy21(fyR)21R3=fxy2R311(fyR)2\begin{aligned} \begin{split} t_1 = \frac{d}{dx} y\sin^{-1}\left(f'\cdot\frac{y}{R}\right) &= \frac{y}{\sqrt{1 - (f'\frac{y}{R})^2}}(f'y) \frac{d}{dx}\frac{1}{R} \\\\& = \frac{y}{\sqrt{1 - (f'\frac{y}{R})^2}}(f'y) \frac{-1}{R^2} \frac{dR}{dx} \\\\& = \frac{y}{\sqrt{1 - (f'\frac{y}{R})^2}}(f'y) \frac{-1}{R^2} \frac{x}{R} \\\\& = -\frac{f'xy^2}{\sqrt{1 - (f'\frac{y}{R})^2}} \frac{1}{R^3} \\\\& = -\frac{f'xy^2}{R^3}\cdot \frac{1}{\sqrt{1 - (f'\frac{y}{R})^2}} \end{split} \end{aligned}

Secondly, we differentiate the sinh1\sinh^{-1}-term

ddxxsinh1(ffxR)=sinh1(ffxR)+x1+(ffxR)2ffddxxR=sinh1(ffxR)+t2\begin{aligned} \begin{split} \frac{d}{dx} x\sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x}{R}\right) &= \sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x}{R}\right) + \frac{x}{\sqrt{1 + (\frac{f'}{f}\frac{x}{R})^2}}\frac{f'}{f} \cdot \frac{d}{dx}\frac{x}{R} \\& = \sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x}{R}\right) + t_2 \end{split} \end{aligned}

where

t2=x1+(ffxR)2ffddxxR=x1+(ffxR)2ff[1Rx1R2xR]=x1+(ffxR)2ffx2+y2x2R3=ffxy21+(ffxR)21R3=fxy2R31f2+(fxR)2\begin{aligned} \begin{split} t_2 &= \frac{x}{\sqrt{1 + (\frac{f'}{f}\frac{x}{R})^2}}\frac{f'}{f} \cdot \frac{d}{dx}\frac{x}{R} \\& = \frac{x}{\sqrt{1 + (\frac{f'}{f}\frac{x}{R})^2}}\frac{f'}{f} \cdot \left[ \frac{1}{R} - x\frac{1}{R^2}\frac{x}{R} \right] \\& = \frac{x}{\sqrt{1 + (\frac{f'}{f}\frac{x}{R})^2}}\frac{f'}{f} \cdot \frac{x^2+y^2 - x^2}{R^3} \\& = \frac{f'}{f}\cdot\frac{xy^2}{\sqrt{1 + (\frac{f'}{f}\frac{x}{R})^2}} \cdot \frac{1}{R^3} \\& = \frac{f'xy^2}{R^3} \cdot \frac{1}{\sqrt{f^2 + (f'\frac{x}{R})^2}} \end{split} \end{aligned}

The partial derivative of the lens potential is then

ddxψR(x,y)=C0ff[sinh1(ffxR)+t1+t2]\frac{d}{dx}\psi^{\mathrm{R}}(x,y) = C_0\frac{\sqrt{f}}{f'}\cdot\left[ \sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x}{R}\right) + t_1 + t_2 \right]

We can prove that t1+t2=0t_1+t_2=0.

t1+t2=fxy2R3[1f2+(fxR)211(fyR)2]t_1 + t_2 = \frac{f'xy^2}{R^3} \cdot \left[ \frac{1}{\sqrt{f^2 + (f'\frac{x}{R})^2}} - \frac{1}{\sqrt{1 - (f'\frac{y}{R})^2}} \right]

It suffices to prove that T=0T=0 where

T=1f2+(fxR)211(fyR)2T = \frac{1}{\sqrt{f^2 + (f'\frac{x}{R})^2}} - \frac{1}{\sqrt{1 - (f'\frac{y}{R})^2}}

We have

T=Rf2R2+(1f2)x2RR2(1f2)y2T = \frac{R}{\sqrt{f^2R^2 + (1-f^2)x^2}} - \frac{R}{\sqrt{R^2 - (1-f^2)y^2}}

Using the fact that R2=x2+y2R^2=x^2+y^2 we get

T==Rf2y2+x2Rx2+f2y2=0,T = = \frac{R}{\sqrt{f^2y^2+x^2}} - \frac{R}{\sqrt{x^2 + f^2y^2}} = 0,

as required. We conclude that

ddxψR(x,y)=C0ffsinh1(ffxR)\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)

Differentiation with respect to yy

The differentiation with respect to yy is similar and gives

ddyψR(x,y)=C0ffsin1(fyR)\frac{d}{dy}\psi^{\mathrm{R}}(x,y) = C_0\frac{\sqrt{f}}{f'} \sin^{-1}\left(f'\cdot\frac{y}{R}\right)

Deflection for arbitrary orientation

For Raytrace simulation, we only require the first order derivatives. We find it easiest to calculate the deflection vector in a local co-ordinate system where θ=0\theta=0, and then rotate the deflection vector to get the deflectio in the global co-ordinate system. This is derived as Approach 1.

In Roulette simulation, we require higher order derivatives. The recursive formulæ for roulette amplitudes proved intractible, but the non-recursive formulæ are straight forward if higher-order partial derivatives of ψ\psi can be calculated.

The rotation trick which worked for first-order derivativs does not easily generalise to higher orders. We ended up using a co-ordinate substitution and chain rule differentiation. This is elaborated as [Approach 2](Differentiation of SIE).

A possible . Approach 3 would differentiate the general formula for ψR\psi^{\mathrm{R}}, but believing this to be computationally intractible, we have not developed this any further.

Other properties

Calculations