The straight line through (P x1, y1) inclined at an angle θ with the x-axis meets the line ax + by + c = 0 in Q. Find the length of PQ.
The equation of the line that passes through P (x1, y1) and makes an angle of
θ with the x-axis is x−x1cos θ=y−y1sin θ
Let PQ = r
Thus, the coordinates of Q are (x1+r cos θ, y1+r sin θ)
x=x1+r cos θ, y=y1+r sin θ
Clearly, Q lies on the lines ax+by+c=0
∴ a(x1+r cos θ)+b(y1+r sin θ)+c=0
⇒ r=−ax1+by1+ca cos θ+b sin θ
∴ PQ=∣∣ax1+by1+ca cos θ+b sin θ∣∣