To find the equation of the tangent to the circle that is perpendicular to the line \(y = x\), we must first understand the relationship between the circle and the line.
The given circle equation is:
\(x^2 + y^2 - 2x - 2y + 1 = 0\)
We can rewrite this in the standard form of a circle, \((x - h)^2 + (y - k)^2 = r^2\), by completing the square.
Completing the square:
The circle equation becomes:
\((x-1)^2 + (y-1)^2 = 1\)
Thus, the center of the circle is \((1, 1)\) and the radius \(r\) is \(1\).
The line \(y = x\) has a slope of \(1\).
A line perpendicular to it will have a slope of \(-1\).
Therefore, the equation of the tangent line is given by:
\(y = -x + c\)
The tangent is a straight line that touches the circle at exactly one point.
Substitute \(y = -x + c\) into the circle equation:
\(x^2 + (-x + c)^2 = 1\)
Simplifying gives:
Since it's a tangent line, the discriminant of the quadratic in \(x\) must be zero:
\((2c)^2 - 4 \cdot 2 \cdot (c^2 - 1) = 0\)
Simplifying gives:
\(4c^2 - 8(c^2 - 1) = 0\)
\(
4c^2 - 8c^2 + 8 = 0
-4c^2 + 8 = 0
c^2 = 2
\)
Taking the square root, \(c = \sqrt{2} \ or \ c = -\sqrt{2}<.
Using the found values of \(c\):
1. When \(c = \sqrt{2}\), the equation of the tangent is:
\(x + y - \sqrt{2} = 0\)
2. When \(c = -\sqrt{2}\), the equation of the tangent is:
\(x + y + \sqrt{2} = 0\)
Upon inspecting the options, the valid tangent equation that matches is:
\(x + y = 2 + \sqrt{3}\)