Vector Geometry

3D Coordinate System
2D space R2:
- We have the x and y axes
- Our points have coordinates(x,y)
- The equation involving x and y describes a curve in R2
3D space R3:
- We have the x, y, and z axes
- Our points have coordinates (x,y,z)
- The equation involving x, y and z describes a surface in R3
- Ex. The equation of a sphere in R3 is (x−h)2+(y−k)2+(z−l)2=r2 -- the graph of this surface will be all the points that are on the surface of this sphere
- The distance between two points P1(x1, y1, z1) and P2(x2,y2,z2) is ∣P1P2∣=(x2−x1)2+(y2−y1)2+(z2−z1)2
Example
Describe the surface represented by the equation y=x2 in R3
In the R2 space, y=x2 describes a parabola with vertex at the origin (0, 0)
So, in R3 space, this describes the stack of identical parabolas with vertices on the z-axis


Vectors
[Everything we discuss in this lesson applies to vectors in any space Rn]
A vector in R3 is represented by v=⟨x,y,z⟩
*x,y,z are called the components of this vector
Geometrically
A vector v=⟨x,y,z⟩ is a directed line segment that goes from the origin (0,0,0) and points to the point (x,y,z), but this line segment (vector) can be moved around in space
Given any two points P1(x1,y1,z1) and P2(x2,y2,z2), the position vector P1P2=⟨x2−x1, y2−y1, z2−z1⟩ is the vector that starts at P1 and points to P2

Vector Operations
- Length of a vector: ∣⟨a,b,c⟩∣=a2+b2+c2
- Scalar multiplication: k⟨a,b,c⟩=⟨ka, kb, kc⟩
- Vector addition/subtraction: ⟨a,b,c⟩±⟨p,q,r⟩=⟨a±p, b±q, c±r⟩
- A unit vector in the same direction as v is defined as ∣v∣v
Properties
u, v, w are vectors in R3 and c, d are scalars
Additionu+v=v+uScalar Multiplication(cd)u=c(du)The 0 and 1 in Vectors1u=uu+(v+w)=(u+v)+wc(u+v)=cu+cvu+(−u)=0(c+d)u=cu+duu+0=u where 0=⟨0,0,0⟩
Standard basis vectors
These are vectors with length 1 (unit vector) that point in the direction along the positive x, y, z axes
- i=⟨1,0,0⟩
- j=⟨0,1,0⟩
- k=⟨0,0,1⟩

Dot Product
The dot product between two vectors in R3 is defined as ⟨a,b,c⟩⋅⟨p,q,r⟩=ap+bq+cr
*The result is a number!
Properties
- u⋅v=v⋅u
- u⋅(v+w)=u⋅v+u⋅w
- (cu)⋅v=c(u⋅v)=u⋅(cv)
- u⋅u=∣u∣2
- 0⋅u=0
- cosθ=∣u∣∣v∣u⋅v where θ is the acute angle between the vectors
Example
If u=⟨1,3,6⟩ and v=⟨3,0,−4⟩, find the cosine of the angle between these two vectors.
cosθ=⟨1,3,6⟩∣⟨3,0,−4⟩∣⟨1,3,6⟩⋅⟨3,0,−4⟩=(4)(5)3−46=203−46
Orthogonal Vectors
Two vectors are orthogonal (perpendicular) if and only if their dot product is 0
Directional Cosines & Angles
The angle that a non-zero vector v=⟨a,b,c⟩ forms with the x, y, and z axes are given below

- cosα=∣v∣a → α=cos−1(∣v∣a)
- cosβ=∣v∣b → β=cos−1(∣v∣b)
- cosγ=∣v∣c → γ=cos−1(∣v∣c)
Projections
The projection of u onto v is denoted by projvu, and it describes the "shadow" u casts on v

- Vector projection: projvu=(∣v∣2v⋅u)v
- Scalar projection (length of the projection): compvu=∣v∣v⋅u
Example
Find the projection of ⟨1,2,3⟩ onto ⟨4,0,−1⟩
The vector projection is: proj⟨4,0,−1⟩⟨1,2,3⟩=(171)⟨4,0,−1⟩ or ⟨174,0,−171⟩
The scalar projection is comp⟨4,0,1⟩⟨1,2,3⟩=171

Cross Product
The cross product between two vectors in R3 gives us a thrid vector in R3 that is orthogonal to the original two vectors. It is defined by
⟨u1, u2, u3⟩×⟨v1, v2, v3⟩=⟨u2v3−u3v2, u3v1−u1v3, u1v2−u2v1⟩
Properties
- u×v=−(v×u)
- (cu)×v=c(u×v)=u×(cv)
- u×(v+w)=u×v+u×w
- (u+v)×w=u×w+v×w
- ∣u×v∣=∣u∣∣v∣sinθ where θ is the acute angle between the two vectors
- u×v=0 if and only if u and v are parallel
Application
The volume of a parallelepiped defined by the vectors u, v, and w is calculated by
V=∣u⋅(v×w)∣

*Choose the simpler looking vectors to perform the cross product
Example
Find the volume of the parallelpiped defined by the vecotrs ⟨1,2,0⟩, ⟨−1,4,5⟩, ⟨0,1,1⟩
V=∣⟨−1,4,5⟩⋅(⟨1,2,0⟩×⟨0,1,1⟩)∣
V=∣⟨−1,4,5⟩⋅⟨2,−1,1⟩∣
V= ∣−1∣
V=1

Equations of Lines & Planes
The equation of a line or plane gives us all the points on that line or plane
Lines in R3
If a line contains the point P(p1, p2, p3) and has a direction vector (vector parallel to the line) v=(v1, v2, v3), then the following are equations of the line:
Vector equationParametric equationsSymmetric equations⟨x,y,z⟩=⟨p1,p2,p3⟩+t⟨v1,v2,v3⟩x=p1+t v1y=p2+t v2z=p3+t v3v1x−p1=v2y−p2=v3z−p3
*t is a parameter and can take on any value
Line Segment
A line segment from the point P(p1, p2, p3) to Q(q1, q2, q3) is given by
⟨x,y,z⟩=(1−t)⟨p1, p2, p3⟩+t⟨q1, q2, q3⟩
where 0≤t≤1
Example
a.) Find the equation of the line that passes through the point (1,2,3) and is parallel to the line ⟨0,−1,3⟩+s⟨2,6,−4⟩
We need a point on the line and the direction vector of the line:
- Point: (1,2,3)
- Direction vector: any vector parallel to ⟨2,6,−4⟩ --> ⟨1,3,−2⟩
The vector equation of the line is ⟨1,2,3⟩+t⟨1,3,−2⟩
The parametric equations are x=1+t, y=2+3t, z=3−2t
The symmetric equations are 1x−1=3y−2=−2z−3
b.) Determine if the point (3,8,1) is on the line described in part a.)
Solving the parametric equations, we get
- 3=1+t→t=2
- 8=2+3t→t=2
- 1=3−2t→t=1
Since not all of the equations result in the same t value, the point is not on the line.
Planes in R3
If a line contains the point P(p1, p2, p3) and has a normal vector (vector orthogonal to the plane) n=⟨a, b, c⟩, then the following are equations of the plane:
Vector Equation/Point-Normal FormScalar Equation/Standard form⟨a, b, c⟩⋅(⟨x, y, z⟩−⟨p1, p2, p3⟩)=0a(x−p1)+b(y−p2)+c(z−p3)=0orax+by+cz+d=0, where d=−⟨a,b,c⟩⋅⟨p1,p2,p3⟩
Distance
The distance from a point (p1, p2, p3) to the plane ax+by+cz+d=0 is
D=a2+b2+c2∣a(p1)+b(p2)+c(p3)+d∣
Example
a. Find the equation of the plane that contains the points A(0, 2, 1), B(1, 1, 2) and C(1, 0, 1)
b. Find the distance between the point (1, 1, 1) and the plane found in part a.)
a. AB=⟨1, −1, 1⟩ and AC=⟨1,−2,0⟩ are direction vectors parallel to the plane.
To find the normal vector to the plane, we find AB×AC=⟨2,1,−1⟩
We can pick any one of the 3 given points to use in our equation of the plane: 2x+y−z−⟨2,1,−1⟩⋅⟨0,2,1⟩=0
Therefore, the equation of the plane is 2x+y−z=1
b. Using the distance formula: D=22+12+12∣2(1)+(1)−(1)−1∣=61
Cylinder & Quadric Surfaces
Cylinders
Cylinders are 3D surfaces that have uniform cross sections.
Examples

Although not always true, typically, the equations will only involve 2 variables. For example
- y=x2
- z=x2+5
- y2+z2=4
Quadric Surfaces
In 3D space, quadric surfaces are a set of points with general (x,y,z) coordinates satisfying a polynomial equation. We can sketch these surfaces by using traces which are curves generated by intersection of the surface with the planes parallel to the coordinate planes.
This will allow us to classify the surfaces using the following table from your textbook:

- Traces are also known as level surface. To find level surfaces you should takes one variable constant. For example, if we take z=k, then we will have a curve in the plane z=k.

Determine and sketch the domain for
z=20−x2+4x−y2+2y
⇒ z2=20−x2+4x−y2+2y
from complete square method:
x2+ax=(x+2a)2−4a2
⇒ z2=20−(x−2)2+4−(y−1)2+1
⇒ z2+(x−2)2+(y−1)2=25
Sphere with center C=(2,1,0), with radius R=5


Find the equation of a sphere with centre C(3,−5,−2) and radius 7. What is the intersection of this sphere with the xy-plane?
Generally (x−a)2+(y−b)2+(z−c)2=R2, C(a,b,c)
xy-plain: z=0
⇒(x−3)2+(y+5)2+22=49⇒(x−3)2+(y+5)2=45
this is a circle at C(3,−5)with radius R=45.
Cylindrical & Spherical Coordinates
In 3-space, a point can be represented using the Cartesian coordinates (x,y,z).

Cylindrical Coordinates
If we rewrite the coordinates of this point (x,y,z) on the xy-plane into polar coordinates and keep the z coordinate as our height, we get cylindfrical coordinates.

- θ is the angle measured counter clockwise from the positive x-axis to the point (x,y) on the xy-plane
- r is the length of the line segment from the origin to the point (x,y) on the xy-plane
- z is the "height" of the point (the original z-coordinate)
Cylindrical ➡ Cartesian coordinates: x=rcosθ y=rsinθ z=z
Cartesian ➡ Cylindrical coordinates: r2=x2+y2 tanθ=xy z=z
Spherical Coordinates
If we draw a line segment connecting our point (x,y,z) to the origin, and measure the angle this line makes with the positive z-axis, we get spherical coordinates.

- θ is the angle measured counter clockwise from the positive x-axis to the point (x,y) on the xy-plane
- ρ is the length of the line segment connecting the origin to the point (x,y,z) in R3
- ϕ is the angle that is between 0 and π measured from the positive z-axis to the line segment connecting the origin to the point (x,y,z)
Spherical ➡ Cartesian coordinates: x=ρsinϕcosθ y=ρsinϕsinθ z=ρcosθ
We also know that