# Vector dot products

I'm reading up on dot products and keep seeing two different examples.

One states that u$\cdot$v = u$_{i}$$\cdot$v$_{i}$ + u$_{j}$$\cdot$v$_{j}$

Another: u$\cdot$v = |u|$\cdot$|v|cosθ

I'm not understanding when to use the first or second method?

jbunniii
Homework Helper
Gold Member
I'm reading up on dot products and keep seeing two different examples.

One states that u$\cdot$v = u$_{i}$$\cdot$v$_{i}$ + u$_{j}$$\cdot$v$_{j}$

Another: u$\cdot$v = |u|$\cdot$|v|cosθ

I'm not understanding when to use the first or second method?
At the risk of stating something obvious, it depends on what information you are given and what you are trying to find. If you know the two vectors then you can find the dot product using the first equation. Then you can find the angle between the vectors using the second equation.

On the other hand, if you are given the lengths of the vectors and the angle between them, you can use the second equation to find the dot product.

Makes sense, I think the way the book I'm looking in words it was confusing me. Thanks

HallsofIvy
But if you are given that one angle has length 1, the other has length $2\sqrt{2}$, and the angle between them is $\pi/4$, it is easiest to calculate $(1)(2\sqrt{2})(cos(\pi'4)= 2$.
By the way, in spaces of dimension higher than 3, we can use the "sum of products of corresponding components" to find the dot product between two vectors, then use $|u||v|cos(\theta)$ to define the "angle between to vectors".