→ As one and rod lines on x axis, hence coordinate be A(x,0)
Let other end be B(x2,y2)
(x2,y2) line on x+y=0 then x2+y2=0
Therefore y2=−x2
Hence point B(x2−x2)
Let mid point of AB be (m,n)
thus m=x1+x22
2x=x1+x2 equation (1)
now n=−x2+02
2n=−x2
−2n=x2 equation (2)
Put equation (2) in equation (1)
2m=x1−2n
x1=2m+2n
Given that, AB=2
AB2=4
(x1−x2)+(0−(−x2))2=4
(x1−x2)2+x2=4
(2m+2n+2n)2+(−2n)2=4
(2m+4n)2+4n2=4
4(m+2n)2+4n2=4 equation ((3)$
(m+2n)2+n2=1 (Divide equation (3) by 4)
m2+4n2+4mn+n2=1
m2+4mn+5n2=1
Replace m by x and n by y
Therefore x2+4xy+5y2=1