0

From what I've read on wikipedia the dot product is

$$a \cdot b = ||a|| ||b|| \cos{\theta}$$

or, algebraic definition

$$\mathbf{a}\cdot\mathbf{b}=\sum_{i=1}^n a_ib_i=a_1b_1+a_2b_2+\cdots+a_nb_n$$

my question is: what is the relation between these two? It is my understanding that the second is the same as the first, but I don't understand why we would need the first then.

Dean
  • 175
  • 1
    Possibly useful : http://math.stackexchange.com/questions/116133/how-to-understand-dot-product-is-the-angles-cosine, http://math.stackexchange.com/questions/348717/dot-product-intuition?rq=1 – Arnaud D. Apr 07 '17 at 10:24

1 Answers1

1

Given two vectors $v,w\in \mathbb{R}^n$, the angle $\theta$ between them is defined by $\cos(\theta)=\frac{\left\langle v, w\right\rangle}{\|v\|\|w\|}$. One should wonder whether this is actually well-defined, i.e. $\frac{\left\langle v, w\right\rangle}{\|v\|\|w\|}\in [-1,1]$. By the Cauchy-Schwarz inequality, one has that $|{\left\langle v, w\right\rangle}|\leq \|v\|\|w\|$, hence $\cos(\theta)$ is at least well-defined.

In fact, the above definition makes sense in any inner-product space. Hence one can talk about angles between vectors in a lot of other vector spaces as well.

The two equations are somewhat different though, the first one links angles between vectors with their inner-product and lengths whereas the second merely gives the inner product. Given two vectors in $\mathbb{R}^n$, you can easily determine their lengths and inner products, but you cannot find the angle between them without this knowledge.