✔ 最佳答案
Let r be the radius of the circle.
Since the circle touches both the axes, then the center of the circle = (r, r)
Equation of the circle : (x - r)² + (y - r)² = r²
The circle passes through the point (2, 1) :
(2 - r)² + (1 - r)² = r²
4 - 4r + r² + 1 - 2r + r² = r²
r² - 6r + 5 = 0
(r - 1)(r - 5) = 0
r = 1 or r = 5
Equation of the circle :
(x - 1)² + (y - 1)² = 1² or (x - 5)² + (y - 5)² = 5²
x² - 2x + 1 + y² - 2y + 1 = 1 or x² - 10x + 25 + y² - 10y + 25 = 25
x² + y² - 2x - 2y + 1 = 0 or x² + y²- 10x - 10y + 25 = 0