Edward C. answered 03/30/15
Tutor
5.0
(438)
Caltech Grad for math tutoring: Algebra through Calculus
The vector from A to B denoted by AB is given by
AB = B - A = (3,1,2) - (1,5,4) = (2,-4,-2)
Similarly
AD = D - A = (3,k,2) - (1,5,4) = (2,k-5,-2)
If AD is perpendicular to AB then their dot product is 0 so
AB·AD = 2*2 -4*(k-5) + (-2)*(-2) = 4 -4*k + 20 + 4 = -4*k + 28 = 0
-4*k = -28
k = 7