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.

Implementation of SIE (v3.3)

Authors
Affiliations
NTNU---Norwegian University of Science and Technology
NTNU---Norwegian University of Science and Technology

This approach was used until v3.3 and is satisfactory up to order 5. Although deprecated, it is still available as CosmoSim.Roulettes.sie.

Roulette Amplitudes for the SIE Lens

We define a local co-ordinate system aligned with the lens, so that the lens orientation is λL=0\lambda_L=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 x′x' and y′y' 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.

Step 1: Derivatives of the lens potential

The first order derivatives of ψ\psi are given in Theorem 1. By rotating the co-ordinate frame (x,y)↦(x′,y′)(x,y)\mapsto(x',y') by an angle λL\lambda_L, we use an initial solution where λL=0\lambda_L=0, where the first derivatives simplify to

ddx′ψR(x′,y′)=C0ff′sinh⁡−1(f′f⋅x′R)ddy′ψR(x′,y′)=C0ff′sin⁡−1(f′⋅y′R)\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}

The firstworker() function relies on sympy to do brute force derivation of ψ\psi at λL=0\lambda_L=0. This is computationally expensive, and prohibitive beyond order m=5m=5.

Inner differentation of the co-ordinate transformation

The local co-ordinates are given as the rotation

[x′y′]=[cos⁡λLsin⁡λL−sin⁡λLcos⁡λL]⋅[xy]\begin{aligned} \begin{bmatrix} x' \\ y' \end{bmatrix} &= \begin{bmatrix} \cos\lambda_L & \sin\lambda_L \\ -\sin\lambda_L & \cos\lambda_L \end{bmatrix} \cdot \begin{bmatrix} x \\ y \end{bmatrix} \end{aligned}

We can differentiate the coordinates, so get

dx′dx=cos⁡λLdx′dy=sin⁡λLdy′dx=−sin⁡λLdy′dy=cos⁡λL\begin{aligned} \frac{dx'}{dx} & = \cos\lambda_L &\quad \frac{dx'}{dy} & = \sin\lambda_L \\ \frac{dy'}{dx} & = -\sin\lambda_L &\quad \frac{dy'}{dy} & = \cos\lambda_L \end{aligned}

We use this with the chain rule below.

Step 2. Chain rule derivation.

In the second step, we apply the chain rule to find the derivatives with respect to (x,y)(x,y) given those for (x′,y′)(x',y'), as follows

∂m+nψ(∂x)m(∂y)n=∑i=0m∑j=0n(mi)(nj)Ti,j∂m+nψ(∂x′)m+n−i−j(∂y′)i+j \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} T_{i,j} \frac{\partial^{m+n}\psi}{(\partial x')^{m+n-i-j}(\partial y')^{i+j}}

where

Ti,j=(−1)icos⁡m−i+jθ⋅sin⁡n−j+iθ⋅ T_{i,j} = (-1)^i \cos^{m-i+j}\theta\cdot \sin^{n-j+i}\theta\cdot

This is implemented by secondworker().

Step 3. Roulette Amplitudes

In Step 3, thirdworker() computes the roulette amplitudes according to Definition 1.