...(1)

...(2)

These lines are parallel with gradient

The shortest ditance between the lines will lie on the normal between the 2 lines. It will be Where with and

Now we have

Now find where this line crosses both (1) and (2) and find the distance between these points.

The formula for distacne of a straight line is