The direction ratios of the line joining the points (3, 1, 4) and (7, 2, 12) are proportional to 4, 1, 8.
Let be vectors parallel to the lines having direction ratios proportional to 2, 2, 1 and 4, 1, 8.
Now,
If is the angle between the given lines, then