A line passes through a point A (1, 2) and makes an makes an angle of 60∘ with the x-axis and intersects the line x + y = 6 at the point P. Find AP.
The equation of line through (1, 2) and making an angle of 60∘ with the x-axis is
x−1cos 60∘=y−2sin 60∘=r
x−112=y−2√32=r
Where r is the distance of any point on the line from A (1, 2)
The coordinates of p on the line are
(1+12 r,2+√32 r)
and
p lies on x+y=6
∴ 1+r2+2+√3r2=6
or 3+r2+√32r=6
=r2(1+√3)=6−3
=r2(1+√3)=3
r=61+√3
or r61+√3=3(√3−1)
Hence length AP=3(√3−1).