Task. How far is the point ( 3 , 1 ) (3,1) ( 3 , 1 ) from the line 5 x + 12 y = 1 5x+12y=1 5 x + 12 y = 1 ?
Solution. To find the distance from a point A ( x ˉ , y ˉ ) A(\bar{x},\bar{y}) A ( x ˉ , y ˉ ) from the line
a x + b y + c = 0 ax+by+c=0 a x + b y + c = 0
we should substitute the coordinates of point A A A into the normal equation of the line, i.e. the equation divided by a 2 + b 2 \sqrt{a^{2}+b^{2}} a 2 + b 2 :
d i s t = a x ˉ + b y ˉ + c a 2 + b 2 . dist=\frac{a\bar{x}+b\bar{y}+c}{\sqrt{a^{2}+b^{2}}}. d i s t = a 2 + b 2 a x ˉ + b y ˉ + c .
In our case the distance from point ( 3 , 1 ) (3,1) ( 3 , 1 ) to the line 5 x + 12 y − 1 = 0 5x+12y-1=0 5 x + 12 y − 1 = 0 is equal to
d i s t = ∣ 5 ∗ 3 + 12 ∗ 1 − 1 ∣ 5 2 + 1 2 2 = 26 25 + 144 = 26 169 = 26 13 = 2. dist=\frac{|5*3+12*1-1|}{\sqrt{5^{2}+12^{2}}}=\frac{26}{\sqrt{25+144}}=\frac{26}{\sqrt{169}}=\frac{26}{13}=2. d i s t = 5 2 + 1 2 2 ∣5 ∗ 3 + 12 ∗ 1 − 1∣ = 25 + 144 26 = 169 26 = 13 26 = 2.