# Calc3: Vectors

## 3D Coordinate Systems

### Coordinates

3D space: Fix a reference point, call it origin O O . Three directed lines through the origin, called coordinate axes. Need 3 numbers to describe the location of one point. We use R 3 R^3 to denote 3D space.
R 3 = { ( x , y , z ) : x , y , z ∈ R } R^3 = \{(x,y,z): x,y,z\in R\}
We normally use the right hand rule to construct the coordinates.

Say a vector p = < a , b , c > p = <a,b,c> represent the location of point P P . a is the distance of p to yz-plane; b is the distance of p to xz-plane; c is the distance of p to xy-plane.

### Geometric Objects

1. z = 3 z=3

this is a plane

2. x 2 + y 2 = 1 , z = 3 x^2+y^2=1, z=3

a circle at z of 3

3. x 2 + y 2 + z 2 = 1 x^2+y^2+z^2=1

a sphere

4. x 2 + y 2 = 1 , z = 3 x^2+y^2=1, z=3

a column

### Distance Formula

We have two points: P 1 = < x 1 , y 1 , z 1 > P_1 = <x_1, y_1, z_1> and P 2 = < x 2 , y 2 , z 2 > P_2 = <x_2, y_2, z_2> .
∣ P 1 P 2 ∣ = ( x 1 − x 2 ) 2 + ( y 1 − y 2 ) 2 + ( z 1 − z 2 ) 2 |P_1P_2| = \sqrt{(x_1-x_2)^2 + (y_1-y_2)^2 + (z_1-z_2)^2}
e.x:

1. describe the points that have distance 1 to the origin.

x 2 + y 2 + z 2 = 1 x^2+y^2+z^2=1

1. given the equation x 2 + y 2 + z 2 + 4 x − 6 y + 2 z + 6 = 0 x^2+y^2+z^2+4x-6y+2z+6=0 , what is it the object?

( x + 2 ) 2 + ( y − 3 ) 2 + ( z + 1 ) 2 = 8 (x+2)^2+(y-3)^2+(z+1)^2=8 , collection of points P whose distance to point A = ( − 2 , 3 , − 1 ) A=(-2,3,-1) is 2 2 2\sqrt 2 .

## Vector

### Intro

Say we have two points. P 1 = < x 1 , y 1 , z 1 > P_1 = <x_1, y_1, z_1> and P 2 = < x 2 , y 2 , z 2 > P_2 = <x_2, y_2, z_2> . We use a vector to represent the distance P 1 P 2 ⃗ = < x 2 − x 1 , y 2 − y 1 , z 2 − z 1 > \vec{P_1P_2} = <x_2-x_1, y_2-y_1, z_2-z_1> .

We define the addition of two vectors to be element-wise addition. For subtraction, we just pretend to add the negative direction of the second vector.

The geometric interpretation is as follows.

One interesting property of vector addition is commutative law.
u ⃗ + v ⃗ = v ⃗ + u ⃗ \vec u + \vec v = \vec v + \vec u
For a scalar c ∈ R c \in R , and a vector u ⃗ = < u 1 , u 2 , u 3 > \vec u = <u_1, u_2, u_3> , we define c u ⃗ = < c u 1 , c u 2 , c u 3 > c \vec u = <cu_1, cu_2, cu_3> .

### Magnitude

When the length and the direction of two vectors are the same, we say these two vectors are the same.

The length of a vector v v is
∣ v ⃗ ∣ = a 2 + b 2 + c 2 |\vec{v}| = \sqrt{a^2 + b^2 + c^2}
It is the distance |OP|.

### Properties and Linear Combinations

For a scalar c , d ∈ R c,d \in R , and a vector u ⃗ , v ⃗ , w ⃗ \vec u, \vec v, \vec w .
u ⃗ + v ⃗ = v ⃗ + u ⃗ u ⃗ + ( v ⃗ + w ⃗ ) = ( v ⃗ + u ⃗ ) + w ⃗ c ( u ⃗ + v ⃗ ) = c v ⃗ + c u ⃗ ( c + d ) u ⃗ = c u ⃗ + d u ⃗ ( c d ) u ⃗ = c ( d u ⃗ ) \vec u + \vec v = \vec v + \vec u \\\\ \vec u + (\vec v + \vec w) = (\vec v + \vec u) + \vec w \\\\ c(\vec u + \vec v) = c\vec v + c\vec u \\\\ (c+d) \vec u = c\vec u + d\vec u \\\\ (cd) \vec u = c(d\vec u)
We define three basis vectors.
i ⃗ = < 1 , 0 , 0 > j ⃗ = < 0 , 1 , 0 > k ⃗ = < 0 , 0 , 1 > \vec i = <1,0,0> \\\\ \vec j = <0,1,0> \\\\ \vec k = <0,0,1> \\\\
Every vector in 3d space can be written as a linear combination of these 3 vectors. For vector u ⃗ = < u 1 , u 2 , u 3 > \vec u = <u_1, u_2, u_3>
u ⃗ = u 1 i ⃗ + u 2 j ⃗ + u 3 k ⃗ \vec u = u_1 \vec i + u_2 \vec j + u_3 \vec k

### Unit Vector

If the length of a vector is 1, then it is a unit vector.

For a given vector (not the zero vector), we can get its unit vector by doing
u ⃗ ∣ u ⃗ ∣ \frac {\vec u} {|\vec u|}

### Application in Physics

Let T ⃗ 1 = < x 1 , y 1 > \vec T_1 = <x_1, y_1> and T ⃗ 2 = < x 2 , y 2 > \vec T_2 = <x_2, y_2> .
x 1 + x 2 = 0 y 1 + y 2 = 100 y 1 / x 1 = − t a n ( 50 ) y 2 / x 2 = t a n ( 32 ) x_1 + x_2 = 0 \\\\ y_1 + y_2 = 100 \\\\ y_1/x_1 = -tan(50) \\\\ y_2/x_2 = tan(32)

## Dot Product

### Properties

Give vector u ⃗ = < u 1 , u 2 , u 3 > \vec u = <u_1, u_2, u_3> , v ⃗ = < v 1 , v 2 , v 3 > \vec v = <v_1, v_2, v_3> , and w ⃗ \vec w
u ⃗ ⋅ v ⃗ = u 1 v 1 + u 2 v 2 + u 3 v 3 u ⃗ ⋅ v ⃗ = v ⃗ ⋅ u ⃗ u ⃗ ⋅ ( v ⃗ + w ⃗ ) = u ⃗ ⋅ v ⃗ + u ⃗ ⋅ w ⃗ \vec u \cdot \vec v = u_1v_1 + u_2 v_2 + u_3v_3 \\\\ \vec u \cdot \vec v = \vec v \cdot \vec u \\\\ \vec u \cdot (\vec v + \vec w) = \vec u \cdot \vec v + \vec u \cdot \vec w

### Geometric Meaning

u ⃗ ⋅ v ⃗ = ∣ u ⃗ ∣ ∣ v ⃗ ∣ c o s θ \vec u \cdot \vec v = |\vec u||\vec v| cos\theta

Two non-zero vectors are perpendicular to each other if they form an angle of π / 2 \pi/2 . Algebraically, their inner product is 0.

The scalar project of u ⃗ \vec u onto v ⃗ \vec v is
∣ u ⃗ ∣ c o s θ = u ⃗ ⋅ v ⃗ ∣ v ⃗ ∣ |\vec u| cos \theta =\vec u \cdot \frac {\vec v} {|\vec v|}
The vector project of u ⃗ \vec u onto v ⃗ \vec v is
p r o j v ⃗ ∣ u ⃗ ∣ = ( u ⃗ ⋅ v ⃗ ∣ v ⃗ ∣ ) v ⃗ ∣ v ⃗ ∣ proj_{\vec v} |\vec u| = (\vec u \cdot \frac {\vec v} {|\vec v|}) \frac {\vec v} {|\vec v|}

## Cross Product

### Motivation

Outer product, wedge product, cross product all mean the same thing.

Give vector a ⃗ = < a 1 , a 2 , a 3 > \vec a = <a_1, a_2, a_3> and b ⃗ = < b 1 , b 2 , b 3 > \vec b = <b_1, b_2, b_3> , find a vector c ⃗ \vec c that is perpendicular to these two vectors.

a 1 c 1 + a 2 c 2 + a 3 c 3 = 0 b 1 c 1 + b 2 c 2 + b 3 c 3 = 0 a_1c_1 + a_2c_2 + a_3c_3 = 0 \\\\ b_1c_1 + b_2c_2 + b_3c_3 = 0
Scale the first equation by b 3 b_3 and the second one by a 3 a_3
( a 1 b 3 − a 3 b 1 ) c 1 + ( a 2 b 3 − a 3 b 2 ) c 2 = 0 (a_1b_3 - a_3b_1)c_1 + (a_2b_3- a_3b_2)c_2 = 0
Find one possible solution
< c 1 , c 2 , c 3 > = < a 2 b 3 − a 3 b 2 , a 3 b 1 − a 1 b 3 , a 1 b 2 − a 2 b 1 > <c_1, c_2, c_3> = <a_2b_3-a_3b_2, a_3b_1-a_1b_3, a_1b_2-a_2b_1>
A more formal definition is

### Geometric Meaning

The direction of cross product can be explained by the right hand rule. For example, i ⃗ × j ⃗ = k ⃗ \vec i \times \vec j = \vec k .

∣ a ⃗ × b ⃗ ∣ |\vec a \times \vec b| is the area of the above parallelogram.
∣ a ⃗ × b ⃗ ∣ = ∣ a ⃗ ∣ ∣ b ⃗ ∣ s i n θ |\vec a \times \vec b| = |\vec a||\vec b| sin \theta
Two non-zero vectors are parallel if their cross product is 0.

### Properties

u ⃗ × v ⃗ = − v ⃗ × u ⃗ ( c u ⃗ ) × v ⃗ = c ( u ⃗ × v ⃗ ) u ⃗ × ( v ⃗ + w ⃗ ) = u ⃗ × v ⃗ + u ⃗ × w ⃗ \vec u \times \vec v = -\vec v \times \vec u \\\\ (c \vec u)\times \vec v = c(\vec u \times \vec v) \\\\ \vec u \times (\vec v + \vec w) = \vec u \times \vec v + \vec u \times \vec w\\\\

Notice that, $\vec u \times (\vec v \times \vec w) \ne (\vec u \times \vec v) \times \vec w\\$.

Triple product

Claim: The volume of the parallelepiped determined by these three vectors is given by
V = ∣ a ⃗ ⋅ ( b ⃗ × c ⃗ ) ∣ V = |\vec a \cdot (\vec b \times \vec c)|
Torque

The torque τ ⃗ \vec \tau is defined to be the cross product of F ⃗ \vec F with r ⃗ \vec r .

# Reference

• Multivariable_Calculus_8th_Edition (12.1-12.4), James Stewart

11-21 2521
07-09 3484
08-01 1191
12-05 115
04-03 97
01-30 160
11-17 60