Given, equation of line is 3x+y+2=0 ⇒3x+y=−2 ⇒−3x−y=2
On dividing above equation by ( coefficient of x)2+( coefficient of y)2
i.e., (−3)2+(−1)2=3+1=4=2, we get ⇒2−3x−21y=22 ⇒( for convert in the form of xcosθ+ysinθ=p) ⇒−cos30∘x−sin30∘y=1 ⇒cos(180∘+30∘)x+sin(180∘+30∘)y=1 (∵cosθ and sinθ both are negative in third quadrant ) ⇒(cos210∘)x+(sin210∘)y=1
On comparing with xcosθ+ysinθ=p, we get θ=210∘
and p=1