The coordinates of the image of the origin O with respect to the straight line x+y+1=0 are
(−12,−12)
(1,1)
(−1,−1)
Image of (X1,Y1) w.r.to ax+by+c = 0 is (x,y) then
x−X1a=y−Y1b=−2(aX1+bY1+c)a2+b2
i.e., x−01=y−01=−2(1)2 ⇒ (x,y) = (-1,-1)