How do you normalize <2,0,-1>?
1 Answer
Explanation:
To normalize a vector is to find unit vector (vector with magnitude/length of one) in the same direction as the given vector. This can be accomplished by dividing the given vector by its magnitude.
hatu=vecv/(|vecv|)ˆu=→v∣∣→v∣∣
Given
abs(vecv)=sqrt((v_x)^2+(v_y)^2+(v_z)^2)∣∣→v∣∣=√(vx)2+(vy)2+(vz)2
=>=sqrt((2)^2+(0)^2+(-1)^2)⇒=√(2)2+(0)2+(−1)2
=>=sqrt(4+0+1)⇒=√4+0+1
=>=sqrt(5)⇒=√5
We now have:
hatu=(<2,0,-1>)/sqrt(5)ˆu=<2,0,−1>√5
We can also rationalize the denominator on the
=>hatu=<(2sqrt(5))/5,0,(-sqrt(5))/5>⇒ˆu=<2√55,0,−√55>
Hope that helps!