The deflection is given as the vector ∇ ψ R \nabla\psi^{\mathrm{R}} ∇ ψ R ,
in a Cartesian co-ordinate system with axes aligned with the
axes of the lens. We call this the lens frame.
We are interested in the deflection vector α ⃗ ( x , y ) \vec{\alpha}(x,y) α ( x , y ) in
a global frame, which shares the origin with the lens frame,
but is rotated clockwise by an angle λ L \lambda_L λ L .
In other words, the lens is oriented at an angle λ L \lambda_L λ L
(counterclockwise) in the global frame.
We will let ( x , y ) (x,y) ( x , y ) denote the point in the global frame, and
( x ′ , y ′ ) (x',y') ( x ′ , y ′ ) the same point in the lens frame. Hence
[ x ′ y ′ ] = [ cos λ L sin λ L − sin λ L cos λ L ] ⋅ [ x y ] \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} [ x ′ y ′ ] = [ cos λ L − sin λ L sin λ L cos λ L ] ⋅ [ x y ] In other words, the ( x , y ) (x,y) ( x , y ) coordinates are rotated clockwise.
Similarly the deflection is given as ∇ ψ R ( x ′ , y ′ ) \nabla\psi^{\mathrm{R}}(x',y') ∇ ψ R ( x ′ , y ′ ) in
the lens frame, and α ⃗ ( x , y ) \vec{\alpha}(x,y) α ( x , y ) in the global frame.
Thus, ∇ ψ R \nabla\psi^{\mathrm{R}} ∇ ψ R has to be rotated counterclockwise, as
α ⃗ ( x , y ) = [ cos λ L − sin λ L sin λ L cos λ L ] ⋅ ∇ ψ R ( x ′ , y ′ ) \begin{aligned}
\vec{\alpha}(x,y)
&=
\begin{bmatrix}
\cos\lambda_L & -\sin\lambda_L \\
\sin\lambda_L & \cos\lambda_L
\end{bmatrix}
\cdot
\nabla\psi^{\mathrm{R}}(x',y')
\end{aligned} α ( x , y ) = [ cos λ L sin λ L − sin λ L cos λ L ] ⋅ ∇ ψ R ( x ′ , y ′ ) This gives
α ⃗ ( x , y ) = C 0 f f ′ ⋅ [ cos λ L ⋅ sinh − 1 ( f ′ f ⋅ x cos λ L + y sin λ L R ) − sin λ L ⋅ sin − 1 ( f ′ ⋅ − x sin λ L + y cos λ L R ) sin λ L ⋅ sinh − 1 ( f ′ f ⋅ x cos λ L + y sin λ L R ) + cos λ L ⋅ sin − 1 ( f ′ ⋅ − x sin λ L + y cos λ L R ) ] \begin{aligned}
\vec{\alpha}(x,y) =
C_0\frac{\sqrt{f}}{f'}\cdot
\begin{bmatrix}
\cos\lambda_L\cdot\sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x\cos\lambda_L+y\sin\lambda_L}{R}\right)
-\sin\lambda_L\cdot\sin^{-1}\left(f'\cdot\frac{-x\sin\lambda_L+y\cos\lambda_L}{R}\right)
\\
\sin\lambda_L\cdot\sinh^{-1}\left(\frac{f'}{f}\cdot\frac{x\cos\lambda_L+y\sin\lambda_L}{R}\right)
+\cos\lambda_L\cdot\sin^{-1}\left(f'\cdot\frac{-x\sin\lambda_L+y\cos\lambda_L}{R}\right)
\end{bmatrix}
\end{aligned} α ( x , y ) = C 0 f ′ f ⋅ ⎣ ⎡ cos λ L ⋅ sinh − 1 ( f f ′ ⋅ R x c o s λ L + y s i n λ L ) − sin λ L ⋅ sin − 1 ( f ′ ⋅ R − x s i n λ L + y c o s λ L ) sin λ L ⋅ sinh − 1 ( f f ′ ⋅ R x c o s λ L + y s i n λ L ) + cos λ L ⋅ sin − 1 ( f ′ ⋅ R − x s i n λ L + y c o s λ L ) ⎦ ⎤