
Given, the point $P(2,3) on the line x+y=7.
Let, the point of intersection of the two lines be Q
Then, Q can be taken as Q≡(α,7−α)
Given, PQ=4 units and the distance between the points \left({x}_{1}, {y}_{1}\right) \text{ and } (x2,y2) is (x1−x2)2+(y1−y2)2
⇒(α−2)2+(7−α−3)2=4
⇒(α−2)2+(4−α)2=4
⇒(α−2)2+(4−α)2=42
⇒α2−4α+4+16−8α+α2=16
⇒2α2−12α+4=0
⇒α2−6α+2=0
⇒α=2×2−(−6)±(−6)2−4×1×2
⇒α=46±36−8
⇒α=46±27
⇒α=3±7
The slope of a line joining the points \left({x}_{1}, {y}_{1}\right) \text{ and } (x2,y2) is x2−x1y2−y1.
If we take α=3−7, then Q≡(3−7,4+7)
And, the slope of PQ=m=3−7−24+7−3=1−71+7
If we take α=3+7, then Q≡(3+7,4−7)
And, the slope of $PQ = m = \dfrac{4 - \sqrt{7} - 3}{3 + \sqrt{7} - 2} = \dfrac{1 - \sqrt{7}}{1 + \sqrt{7}} .