Find the equation of the circle with the length of the line segment of 3 through the origin and a (1,1) on the x-axis

Find the equation of the circle with the length of the line segment of 3 through the origin and a (1,1) on the x-axis

According to the fact that the circle passes through the origin, the equation of the circle can be set as x2 + Y2 + DX + ey = 0. Then from the point a on the circle, D + e + 2 = 0 ① can be obtained. Then from the length of the line segment cut by the circle on the X axis as 3, it can be obtained that 0 and 3 are the two roots of x2 + DX = 0, or 0 and - 3 are the two roots of x2 + DX = 0 D = - 3E = 1, or D = 3E = - 5. So the equation of circle is x2 + y2-3x + y = 0, or x2 + Y2 + 3x-5y = 0