Scalar product

Definition (geometric definition of the dot product) open_in_new

For $\v a,\v b\in\mathbb R^2$ or $\mathbb R^3$, define $$ \v a\cdot\v b = |\v a||\v b|\cos\theta $$ where $\theta$ is the angle between $\v a$ and $\v b$.

Definition (projection) open_in_new

$\v b^\perp$ is the projection of $\v b$ onto $\v a$ if $$ \v b^\perp = (\v b\cdot\vhat a)\vhat a. $$

Definition (inner product) open_in_new

For a real vector space $V$, the inner product of $x,y\in V$, denoted as $\v x\cdot\v y$ or $\langle \v x|\v y\rangle$, satisfies

  • commutativity: $\v x\cdot\v y = \v y\cdot\v x$ (only true for real vectors);

  • linearity of the second argument: $\v x\cdot(\lambda\v y + \mu\v z) = \lambda\v x\cdot\v y + \mu\v x\cdot\v z$;

  • positive definite: $\v x\cdot\v x\geq 0$ with equality iff $\v x=0$.

The first two properties give the linearity of the first argument: $(\lambda\v y+\mu\v z)\cdot\v x = \lambda\v y\cdot\v x + \mu\v z\cdot\v x$.

Theorem (Cauchy-Schwarz inequality) open_in_new

For all $\v x,y\in\mathbb R^n$, $$\v x\cdot\v y\leq|\v x||\v y|$$ with equality iff $\v x=\v 0$ or $\v y=\v 0$ or $\v x=\lambda\v y$ for some $\lambda\in\mathbb R$.

Proof

Proposition (triangle inequality for R^n) open_in_new

For all $\v x,\v y\in\mathbb R^n$, $$ |\v x+\v y|\leq |\v x|+|\v y|. $$

Proof