Problem Statement
A circle is tangent to three sides of a rectangle having side lengths 2 and 4 as shown. A diagonal of the rectangle intersects the circle at points $A$ and $B$. The length of $AB$ is
Solution
$$\text{ Let the radius of the circle be }r$$ $$\text{Since the circle is tangent to opposite sides of the rectangle, }\implies r = 1$$ $$\text{Let the origin } (0, 0) \text{ be the centre of the circle } \implies \text{ the equation of the circle }is x^2 + y^2 = 1^2$$ $$\text{Let } C(3, 1) \text{ and } D(-1, -1) \text{ be endpoints of the line segment}$$