tan(θ2)=α and
tan(ϕ2)=β
So that, α−β=2b
Also, cosθ=1−tan2(θ2)1+tan2(θ2)=1−α21+α2
and sinθ=2tan(θ2)1+tan2(θ2)=2α1+α2
similarly, cosϕ=1−β21+β2 and sinϕ=2ϕ1+β2
Therefore, we have from the given relation, (x−a)1−α21+α2+y(2α1+α2)=a
⇒xα2−2y2+2a−x=0
similarly, ⇒xβ2−2yβ+2a−x=0
We see that α and β are some roots of the equation
xz2−2yz+2a−x=0
So that α+β=2yx and αβ=(2a−x)x
Now from
(α+β)2=(α−β)2+4αβ
⇒(2yx)2=(2b)2+4(2a−x)x⇒y2−2ax−(1−b2)x
Also from α+β=2yx,α−β=2b
we get α=yx+b and β=yx−b
tan(θ2)=1x(y+bx) and tan(ϕ2)=1x(y−bx)