The correct option is B a−b=1
Given equations x2+bx−a=0 and x2−ax+b=0
Let the common root be α, then
α2+bα−a=0α2−aα+b=0
On subtracting, we get
α(b+a)−(a+b)=0
⇒(a+b)(α−1)=0
⇒a+b=0 or α=1
When a+b=0⇒a=−b, then both equation becomes
x2+bx+b=0 and x2+bx+b=0
They are same equation, so both roots is same, so rejecting a+b=0
When α=1, we get
1+b−a=0⇒a−b=1