\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
Prove that for any real number \(x\) where \(x \neq 0\), the following equivalence is true:
"\(x + \frac{1}{x} = 2\) if and only if \(x=1\)."

Capture an image of your work. AI teacher feedback takes approximately 10 seconds.