4. (30%)

(a) \((20\%)\) Find parametric equations for the set of all points \(\mathbf{P}\) as shown in the figure such that \(|\mathrm{OP}| = |\mathrm{AB}|\).