A straight line drawn through the point A (2, 1) making an angle π/4 with positive x-axis intersects another line x + 2y + 1 = 0 in the point B. Find length AB.
Here (x1, y1)=A (2, 1), α=x4
The equation of line is
x−x1cos α=y−y1sin α=r
x−2cos α=y−1sin α=r
x−2cos 45=y−1sin 45=r
⇒ x−21√2=y−11√2=r
or x=1√2r+2,y=1√2r+1
B(r√2+2,r√2+1) lie on x+2y+1=0
∴ r√2+2+2r√2+2+1=0
3r√2=−5
r=−5√23
The length AB is 5√23 units.