Given that x−y+1=0...(i)
and x2+y2+y−1=0...(ii) ⇒x2+(x+1)2+x+1−1=0[from Eq. (i)] ⇒2x2+3x+1=0 ⇒(2x+1)(x+1)=0 ⇒x=−21,−1 and y=21,0 ∴ Point of A(−21,21) and B(−1,0)
These are the end points of a diameter. ∴ The equation of circle is (x+21)(x+1)+(y−21)(y−0)=0 ⇒(2x+1)(x+1)+(2y−1)y=0 ⇒2x2+x+2x+1+2y2−y=0 ⇒2(x2+y2)+3x−y+1=0