Answer
$$r = 2\sec \theta {\text{ or }}r = \frac{2}{{\cos \theta }}$$
Work Step by Step
$$\eqalign{
& x = 2 \cr
& {\text{Where }}r\cos \theta = x,{\text{ then}} \cr
& r\cos \theta = 2 \cr
& r = \frac{2}{{\cos \theta }} \cr
& {\text{or}} \cr
& r = 2\sec \theta \cr} $$