The equation of the circle having (3,3) and origin as the endpoints of its diameter is
x2+y2−3(x+y)=0
(x+y)2−2xy−3(x+y)=0
Equation of a circle when the end points (x1,y1) and (x2,y2) of its diameter are given, is given by,
(x−x1)(x−x2)+(y−y1)(y−y2)=0
So, when (3,3) and (0,0) are the end points of the diameter, equation of the circle would become:
(x−3)(x−0)+(y−3)(y−0)=0
⟹ x2−3x+y2−3y=0
⟹ x2+y2−3(x+y)=0
⟹ (x+y)2−2xy−3(x+y)=0