Skew , neither parallel nor intersecting; they live in 3D and "pass" each other.
In all cases the angle between them is determined by their direction vectors alone.
Angle formula
Let two lines have direction vectors d1 and d2. The angle θ between them satisfies
cosθ=∣d1∣∣d2∣∣d1⋅d2∣.
The absolute value forces θ∈[0,π/2] , the acute angle.
Equivalently, sinθ=∣d1∣∣d2∣∣d1×d2∣.
Perpendicularity
d1⋅d2=0. In direction-ratio form: a1a2+b1b2+c1c2=0.
Parallelism
d1 and d2 are proportional: d2=λd1 for some λ=0. Equivalently, a2a1=b2b1=c2c1 (assuming none of the denominators are zero).
A useful equivalent test: d1×d2=0.
Coincidence vs parallel
Two parallel lines are coincident iff they share a common point. To check: parametrise one line, plug into the other's equation, see if a consistent solution exists.
Skewness
Two non-parallel lines in 3D may or may not intersect. They intersect iff they have a common point; otherwise they are skew. The most reliable test: do the lines' direction vectors and the displacement a2−a1 between their reference points lie in a common plane?
That is, the lines intersect iff
[a2−a1d1d2]=0.
Non-zero triple product ⇒ the lines are skew (assuming they are not parallel).
Worked examples
Example 1. Find the angle between the lines 2x−1=2y+1=−1z−2 and 1x−1=−2y+1=2z.
Direction ratios: (2,2,−1) and (1,−2,2). d1⋅d2=2−4−2=−4. Magnitudes: 4+4+1=3 and 1+4+4=3.
cosθ=3⋅3∣−4∣=94.
Example 2. Are the lines 1x−1=2y=3z+1 and 1x+2=2y−2=3z+4 parallel?
Both have direction (1,2,3). Yes, parallel.
Example 3. Show that the lines 2x−1=3y−2=4z−3 and 5x−4=2y−1=1z are not parallel. Find whether they intersect.
Directions: (2,3,4) and (5,2,1). Not proportional (e.g. 2/5=3/2), so not parallel.
Test intersection: a2−a1=(4−1,1−2,0−3)=(3,−1,−3). Triple product:
det325−132−341=3(3−8)+1(2−20)+(−3)(4−15)=−15−18+33=0.
Triple product zero, so they intersect.
Example 4. Are the lines 1x−1=1y−2=1z−3 and 2x=2y=1z−1 skew?
Directions: (1,1,1) and (2,2,1). Not parallel. a2−a1=(−1,−2,−2). Triple product:
det−112−212−211. Expand along first row: −1(1−2)−(−2)(1−2)+(−2)(2−2)=1−2+0=−1=0. Skew.
Example 5. Find λ if the lines 3x−2=1y+1=λz+5 and 1x=−2y+2=1z−1 are perpendicular.
Dot products of directions (3,1,λ) and (1,−2,1): 3−2+λ=1+λ=0, so λ=−1.
Example 6. Find θ between 1x=2y=2z and 2x=2y=1z.