I need help with another question as I disagree with their answer, this one i'm less confident with my workings:
Is the point (-2,4,7) closer to the line with equation r = 5i + 2k + λ(i - 2j + 4k) or the line parallel to the vector 2i + j that passes through the origin?:
we know Line 1: r = (5, 0, 2) + λ (1, -2, 4)
and line 2: r = (0,0,0) + s (2, 1, 0)
let point B be on line 1 so that the vector AB is perpendicular to line 1.
so vector AB . (1, -2, 4) = 0
Vector OA = (-2, 4, 7) and Vector OB = (5 + λ, -2λ, 2 + 4λ)
so vector AB = (7 + λ, -2λ - 4, 4λ - 5)
so (7 + λ, -2λ - 4, 4λ - 5) . (1, -2, 4) = 0
7 + λ - 2(-2λ - 4) + 4 (4λ - 5) = 0
7 + λ + 4 λ + 8 + 16λ - 20 = 0
so λ = 5/21
so Vector AB = (152/21, -94/21, -85/21)
lABl = root (1865/21) = 9.424 (3sf)
Let point C be on line 2 so that vector AC is perpendicular to line 2
So vector OC = (2s, s, 0)
vector AC = (2s, s, 0) - (-2, 4, 7)
= (2s + 2, s - 4, -7)
So Vector AC . (2, 1, 0) = 0
(2s + 2, s - 4, -7) . (2, 1, 0) = 0
4s + 4 + s -4 = 0
5s = 0
so s = 0
so Vector AC = (2, -4, -7)
lACl = root 69
therefore, the point is closer to the second line.
However, the book says it's closer to the first?
Have I gone wrong or is it another textbook mistake?