Lines x+y+3=0 and x−y+1=0 are perpendicular.
Hence, these three lines makes a right-angle triangle.
Let A is point of intersection of lines
x+y+3=0 and x=3
⇒x+y+3=0
⇒3+y+3=0
⇒y=−6
∴ A(3,−6)
Let B is point of intersection of lines
x−y+1=0 and x=3
⇒x−y+1=0
⇒3−y+1=
⇒y=4
∴B(3,4)
Equation of circle taking AB as a diameter
(x−x1)(x−x2)+(y−y1)(y−y2)=0
⇒(x−3)(x−3)+(y+6)(y−4)=0
⇒x2−6x+9+y2+2y−24=0
⇒x2+y2−6x+2y−15=0
Final answer:
Equation of circle is
x2+y2−6x+2y−15=0