If I have for example two lines in $3d$, presented in parametric form,
$L1: x= 3t+2, ~y=t+6, ~z=2t-9$
$L2: x= t+5, ~y=3t+7, ~z=t+3$
and I want to find if they intersect, do I set the t variable for $L2$ to s and solve simultaneously or is there a different approach?
Clearly the lines are not parallel. Now finding the shortest distance between the two lines. If they intersect, shortest distance will be zero.
You may find the shortest distance using by finding the projection of a vector joining the two lines along the common normal. The S given below is not the shortest distance, but it will be zero if the lines intersect.
$$S = [<3,1,12> <3,1,2> <1,3,1>]$$
Note: $[\rm a\ b\ c]$ represents the scalar triple product.