
Dayv O. answered 02/11/22
Caring Super Enthusiastic Knowledgeable Calculus Tutor
note: * is multiplication not dot product
correction
The scalar projection of v onto n is [a*v1+b*v2+c*v3]/√(a2+b2+c2)
forgot to divide by magnitude of n.
the vector to subtract from v is the scalar times unit n
that is, (a*v1+b*v2+c*v3)*(a,b,c)/(a2+b2+c2)
corrected two mistakes, no square root on bottom, and used (a,b,c) as n
is subtracted from (v1,v2,v3) to find projection
of v onto plane parallel with ax+by+cz=d
so first element of vector is v1-a*(a*v1+b*v2+c*v3)/(a2+b2+c2)
second element v2-b*(a*v1+b*v2+c*v3)/(a2+b2+c2)
third element v3-c*(a*v1+b*v2+c*v3)/(a2+b2+c2)