Solution:
Concept: The distance between the parallel lines ax+by+c1=0 and ax+by+c2=0 (same a and b) is
d=a2+b2∣c1−c2∣
It is the perpendicular distance from any point of one line to the other line.
(i) 3x+4y+5=0 and 3x+4y+17=0
Step 1 — Check that the lines are parallel. Both have the same a=3 and b=4, so they are parallel.
Step 2 — Apply the formula. Here c1=5, c2=17 and 32+42=5.
d=5∣5−17∣=512
(ii) 9x+40y−20=0 and 9x+40y+21=0
Step 1 — Check that the lines are parallel. Both have a=9 and b=40.
Step 2 — Apply the formula. Here c1=−20 and c2=21, and the denominator is
81+1600=1681=41
d=41∣−20−21∣=4141=1
(iii) y=mx+c and y=mx+d
Step 1 — Write both lines in the form ax+by+c=0. We bring every term to one side.
mx−y+c=0
mx−y+d=0
Both have the same a=m and b=−1, so they are parallel.
Step 2 — Apply the formula. Here m2+(−1)2=1+m2.
d=1+m2∣c−d∣
Therefore, the distances are (i) 512, (ii) 1 and (iii) 1+m2∣c−d∣.