A line through a point with position vector a, parallel to direction vector b, has vector equation r=a+λb. If a=(x1,y1,z1) and b=(a,b,c), the same line in Cartesian form is:
ax−x1=by−y1=cz−z1
Worked example: through two points
Find the equation of the line through (3,−2,−5) and (3,−2,6).
Solution: The direction ratios are the difference of the two points: (3−3,−2−(−2),6−(−5))=(0,0,11).
r=(3i^−2j^−5k^)+λ(11k^)0x−3=0y+2=11z+5
The zeroes in the denominator just mean x and y stay fixed at 3 and -2 while z varies, matching a line running straight along the z-direction.
Worked example: point and parallel vector
Find the vector equation of the line through 2i^+3j^+k^ and parallel to 4i^−2j^+3k^.
Once a line has an equation, finding the shortest distance between two such lines or the angle it makes with a plane both build directly on this same direction vector.