Question
Question: How do you compute the dot product to find the magnitude of \(u=\text{ }<2,\text{ }-4>\)?...
How do you compute the dot product to find the magnitude of u= <2, −4>?
Solution
The vector u= <2, −4> is given in the matrix form. We can write it in the general form as u=2i−4j. Now, the dot product of two vectors is given by the equation a⋅b=∣a∣∣b∣cosθ. So for obtaining the magnitude of the given vector, we have to substitute a=u and b=u, the angle θ=0∘ and we will obtain u⋅u=∣u∣∣u∣. For solving the LHS of the equation, we need to use the distributive law of the dot product.
Complete step by step answer:
The vector given in the question is
u= <2, −4>
The above representation of the given vector is the matrix representation. From the above matrix, we can see that there are the two components of the given vector, which are 2 and −4. From our knowledge of the standard form of the vectors, these are the perpendicular components which are respectively parallel to the i and j directions. So the above vector is written in the standard form as
⇒u=2i−4j.........(i)
Now, we know that the dot product of two vectors a and b is given by
⇒a⋅b=∣a∣∣b∣cosθ
Where θ is the angle between the two vectors a and b. If we take the two vectors as a=u and b=u then we will have
⇒u⋅u=∣u∣∣u∣cosθ⇒u⋅u=∣u∣2cosθ
Where θ is the angle between u and u. Since a vector is parallel to itself, so the angle θ in this case must be equal to zero. So we substitute θ=0∘ in the above equation to get
⇒u⋅u=∣u∣2cos0∘
We know that cos0∘=1. So we get