The direction ratios of the line joining the origin to the point (2, 1, 1) are 2, 1, 1.
Let
The direction ratios of the line joining the points (3, 5, 1) and (4, 3, 1) are 1, 2, 0.
Let
Now,
Hence, the two lines joining the given points are perpendicular to each other.