Step 1: Identify the vertices and the right angle.
We have \(A(a, 0)\), \(B(1, 1)\), \(C(0, b)\) with the right angle at \(B\). This means \(BA \perp BC\).
Step 2: Find the slopes of BA and BC.
Slope of BA: \(m_1 = \frac{0 - 1}{a - 1} = \frac{-1}{a-1}\). Slope of BC: \(m_2 = \frac{b - 1}{0 - 1} = 1 - b\).
Step 3: Apply the perpendicularity condition.
\(m_1 \times m_2 = -1\): \(\frac{-1}{a-1} \times (1-b) = -1\).
Step 4: Simplify.
\(\frac{-(1-b)}{a-1} = -1 \Rightarrow 1 - b = a - 1 \Rightarrow a + b = 2\).
Step 5: Alternative - using dot product of vectors.
\(\overrightarrow{BA} = (a-1, -1)\), \(\overrightarrow{BC} = (-1, b-1)\). Dot product \(= (a-1)(-1) + (-1)(b-1) = -a+1-b+1 = 2-a-b = 0\). So \(a + b = 2\).
Step 6: State the relation.
\[ \boxed{a + b = 2} \]