# a line perpendicular to a given line

I am confused now,

I have a 2D line. If its equation is $r = x\cos(\theta) + y\sin(\theta)$, then what will be the line which is perpendicular to that line?

Where $r, \theta$ is described here.

I know this is very simple, any suggestions please. thanks

-

$$-x \sin{\theta} + y \cos{\theta} = C$$
That said, looking at your reference, that equation is the equation of a line perpendicular to a radius vector from the origin at angle $\theta$ with respect to the positive $x$ axis, at a distance $r$ from the origin.
Then general rule is a line perpendicular to $a x + b y = c_1$ is $-b x + a y = c_2$. – Ron Gordon Feb 17 '13 at 11:34