Kelly H. answered 05/16/24
Patient and Knowledgeable Math Tutor from Cal
Given u = (2, -3, 1), v1=(1, 2, 0) and v2=(1, -1, 1), You want to find Projv1, v2 (u), which can be found by formula(1)
Projv1, v2 (u) = (u * v1 ) * v1/ ||v1||2 + (u * v2 ) * v2/ ||v1||2 -----(1) projection formula
= (2 * 1 + (-3) * 2 + 1 * 0 ) * (1, 2, 0) / || 12 + 22 +02|| + (2 * 1 + (-3) * (-1) + 1 * 1 ) * (1, -1, 1) / || 12 + (-1)2 +12|| -----(2) plug in number
= -4/5 * (1, 2, 0) + 2 * (1, -1, 1) -----(3) format
= (6/5, -18/5, 2) -----(4) result
To present projection in linear combination, we can refer to step 3,
Projv1, v2 (u) = -4/5 * v1 + 2 * v2
Hope you find the anwser helpful :)