# Vector dot products

#### mindheavy

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.

#### mindheavy

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

#### HallsofIvy

Homework Helper
For example, if you are given that one vector is <1, 0, 0> and the other is <2, 2, 0> it is easy to calculate that the dot product is 1(2)+ 0(2)+ 0(0)= 2.

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".

### Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving