→ Slide 1

Chapter 3: Vectors and geometry

↓ Slide 2

Vectors

↓ Slide 3

Translation by $\vec v$

The vector $\vec v=\m{4\\3}$ moves:

For example, we could rewrite the examples above by saying that $\vec v=\m{4\\3}$ moves:

↓ Slide 4

Example

Which vector $\vec v$ moves the point $A=(-1,3)$ to $B=(5,-4)$?

↓ Slide 5

Definition of $\vec{AB}$

If $A$ and $B$ are any points in $\mathbb{R}^n$, then the vector $\vec{AB}$ is defined by \[ \vec{AB}=B-A\] (on the right, we interpret points as column vectors so we can subtract them to get a column vector).

↓ Slide 6

Example

In $\mathbb{R}^3$,

↓ Slide 7

The uses of vectors

Vectors are used in geometry and science to represent quantities with both a magnitude (size/length) and a direction. For example:

Recall that a column vector moves points. Its magnitude, or length, is how far it moves points.

↓ Slide 8

Definition: the length of a vector

If $\vec v=\m{v_1\\v_2\\\vdots\\v_n}$ is a column vector in $\mathbb{R}^n$, then its magnitude, or length, or norm, is the number \[ \|\vec v\|=\sqrt{v_1^2+v_2^2+\dots+v_n^2}.\]

↓ Slide 9

Examples

↓ Slide 10

Exercise

Prove that if $c\in \mathbb{R}$ is a scalar and $\vec v$ is a vector in $\mathbb{R}^n$, then \[ \|c\vec v\|=|c|\,\|\vec v\|.\] That is, multiplying a vector by a scalar $c$ scales its length by $|c|$, the absolute value of $c$.

↓ Slide 11

Distance between two points

$\|\vec{AB}\|$ is the distance from point $A$ to point $B$

↓ Slide 12

Scalar multiplication and direction

Multiplying a vector by a scalar changes its length, but doesn't change its direction.

↓ Slide 13

Definition: unit vectors

A unit vector is a vector $\vec v$ with $\|\vec v\|=1$.

↓ Slide 14

Proposition: finding a unit vector in the same direction as a given vector

If $\vec v$ is a non-zero vector, then $\vec w=\frac1{\|\vec v\|}\vec v$ is a unit vector (in the same direction as $\vec v$).

Proof

↓ Slide 15

Example

What is unit vector in the same direction as $\vec v=\m{1\\2}$?

→ Slide 16

Addition of vectors

If $\vec v=\vec{AB}$, then $\vec v$ moves $A$ to $B$, so $A+\vec v=B$.

If $\vec w=\vec {BC}$, then $\vec w$ moves $B$ to $C$, so $B+\vec w=C$.

What about $\vec v+\vec w$? We have $A+\vec v+\vec w=B+\vec w=C$. So $\vec v+\vec w=\vec{AC}$.

↓ Slide 17

The triangle law for vector addition

↓ Slide 18

The parallelogram law for vector addition

→ Slide 19

The dot product

↓ Slide 20

Definition of the dot product

Let $\def\m#1{\left[\begin{smallmatrix}#1\end{smallmatrix}\right]}\vec v=\m{v_1\\v_2\\\vdots\\v_n}$ and $\vec w=\m{w_1\\w_2\\\vdots\\w_n}$ be two vectors in $\mathbb{R}^n$.

The dot product of $\vec v$ and $\vec w$ is the number $\vec v\cdot \vec w$ given by \[ \color{red}{\vec v\cdot\vec w=v_1w_1+v_2w_2+\dots+v_nw_n}.\]

↓ Slide 21

Example

Let $\vec v=\m{3\\5}$ and $\vec w=\m{4\\-7}$.

→ Slide 22

Properties of the dot product

For any vectors $\vec v$, $\vec w$ and $\vec u$ in $\mathbb{R}^n$, and any scalar $c\in \mathbb{R}$:

  1. $\def\dp#1#2{\vec #1\cdot \vec #2}\dp vw=\dp wv$ (the dot product is commutative)
  2. $\vec u\cdot(\vec v+\vec w)=\dp uv+\dp uw$
  3. $(c\vec v)\cdot \vec w=c(\dp vw)$
  4. $\dp vv=\|\vec v\|^2\ge 0$, and $\dp vv=0 \iff \vec v=0_{n\times 1}$

The proofs of these properties are exercises.

→ Slide 23

Angles and the dot product

↓ Slide 24

Theorem: the relationship between angle and the dot product

If $\vec v$ and $\vec w$ are non-zero vectors in $\mathbb{R}^n$, then \[ \dp vw=\|\vec v\|\,\|\vec w\|\,\cos\theta\] where $\theta$ is the angle between $\vec v$ and $\vec w$.

↓ Slide 25

Example

What's the angle between $\vec v=\m{1\\2}$ and $\vec w=\m{-2\\1}$?

↓ Slide 26

Picture of $\vec v=\m{1\\2}$ and $\vec w=\m{-2\\1}$

We can draw a convincing picture which indicates that these vectors are indeed at right angles:

↓ Slide 27

Proof of the Theorem

We wish to show that $\def\vv{\vec v} \def\ww{\vec w}\vv\cdot\ww=\|\vv\|\,\|\ww\|\cos\theta$ where $\theta$ is the angle between $\vv$ and $\ww$.

↓ Slide 28

Proof of the Theorem, slide 2

We wish to show that $\def\vv{\vec v} \def\ww{\vec w}\vv\cdot\ww=\|\vv\|\,\|\ww\|\cos\theta$ where $\theta$ is the angle between $\vv$ and $\ww$.

↓ Slide 29

Proof of the Theorem, slide 3

We wish to show that $\def\vv{\vec v} \def\ww{\vec w}\vv\cdot\ww=\|\vv\|\,\|\ww\|\cos\theta$ where $\theta$ is the angle between $\vv$ and $\ww$.

↓ Slide 30

Corollary 1

If $\vv$ and $\ww$ are non-zero vectors and $\theta$ is the angle between them, then $\cos\theta=\displaystyle\frac{\vv\cdot\ww}{\|\vv\|\,\|\ww\|}$.

↓ Slide 31

Corollary 2

If $\vv$ and $\ww$ are non-zero vectors with $\vv\cdot\ww=0$, then $\vv$ and $\ww$ are orthogonal: they are at right-angles.

↓ Slide 32

Example 1

What is the angle $\theta$ between $\def\c#1#2{\left[\begin{smallmatrix}{#1}\\{#2}\end{smallmatrix}\right]}\c12$ and $\c3{-4}$?

↓ Slide 33

Example 2

Prove that $A=(2,3)$, $B=(3,6)$ and $C=(-4,5)$ are the vertices of a right-angled triangle.

↓ Slide 34

Example 3

Find a unit vector orthogonal to the vector $\vv=\c12$.