1−ix1+ix=a−ib1
By componendo and dividendo we have,
(1+ix)−(1−ix)(1+ix)+(1−ix)=1−(a−ib)1+(a−ib)
or 2ix2=1−(a−ib)1+(a−ib)
or ix = (1−a+ib)(1+a+ib)(1+a)2−i2b2=1−a2−b2+2ib(1+a)2+b2
If a2+b2=1, the equation (1) reduces to
ix = −2ib(1+a)2+b2
or x = 2b(1+a)2+b2 which is real.
Alternative method :
Let us suppose that x is real, then
1−ix1+ix = a - ib (Given)............(1)
Or (1−ix1+ix) = a - ib
On taking conjugate of both sides,
or 1+ix1−ix = a + ib ..... (2)
Multiplying (1) and (2) we get,
1+x21+x2=a2+b2ora2+b2=1 which is true by given condition.
Hence, our supposition that x is real is correct.