A mathematical problem of algebra If the nonzero real numbers a and B satisfy a ^ 2 + A-1 = 0 and B ^ 2 + B-1 = 0, then the value of B / A + A / B is?

A mathematical problem of algebra If the nonzero real numbers a and B satisfy a ^ 2 + A-1 = 0 and B ^ 2 + B-1 = 0, then the value of B / A + A / B is?

a^2+a-b^2-b=0
(a+b)(a-b)+(a-b)=0
(a-b)(a+b+1)=0
A = B or a + B = 1
When a = B, B / A + A / b = 1 + 1 = 2
When a + B = 1, a and B are the roots of the equation x ^ 2 + X-1 = 0
a+b=-1
ab=-1
b/a+a/b
=(b^2+a^2)/ab
=[(a+b)^2-2ab]/ab
=(1+2)/(-1)
=-3
The value of B / A + A / B is - 3 or 2