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.

Differentiation of SIE

Differentiation of SIE (Approach 2)

Calculation of the amplitudes is computationally expensive, and a lot of care is needed to make it tenable. We have tried several approaches which have failed. The following notes solve only the subproblem of differentiating ψ\psi many times.

Under Construction

Differentiation of SIE

Using a Cartesian coordinate system aligned with the lens, the lens potential is given as

ψ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 first order derivatives (see SIE) are given as

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

We want to differentiate in the global coordinate system (x,y)(x,y). Since the lens is located at the global origin, the (x,y)(x,y)-system is obtained by rotating the (x,y)(x',y')-system by an angle θ\theta. Hence \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 that

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}

Note that all of these derivatives are constants, so that all higher-order derivatives vanish.

Differentiation in the global frame

Because ψ\psi is specified most compactly in the lens frame, it is computationally cheaper to differentiate in this frame. Given derivatives in the lens frame, we can find the derivatives in the global frame using the chain rule. We get

m+nψ(x)m(r)n=i=0mj=0n(m+ni+j)(xx)mi(yx)i(xy)nj(yy)jm+nψ(x)mi+j(y)nj+i\frac{\partial^{m+n}\psi}{(\partial x)^m(\partial r)^n} = \sum_{i=0}^m \sum_{j=0}^n \binom{m+n}{i+j} \big(\frac{\partial x'}{\partial x}\big)^{m-i} \big(\frac{\partial y'}{\partial x}\big)^{i} \big(\frac{\partial x'}{\partial y}\big)^{n-j} \big(\frac{\partial y'}{\partial y}\big)^{j} \frac{\partial^{m+n}\psi}{(\partial x')^{m-i+j}(\partial y')^{n-j+i}}

Inserting for the derivatives of xx' and yy' we get

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

TODO Check this