Unit 1: Vectors

Notes By: Harsh Singh

13.1: Vector Recap

A vector has magnitude and direction. and is denoted as u→=<x,y>\overrightarrow{u}=<x,y>

  • magnitude: ∣u→∣=(x2−x1)2+(y2−y1)2\vert\overrightarrow{u}\vert=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

  • direction: θ=arctan⁡(yx)\theta=\arctan\left(\frac{y}{x}\right)

  • when magnitude and direction are given and components are needed:

    u→=<∣u→∣cos⁡(θ),∣u→∣sin⁡(θ)>\overrightarrow{u}=<\left\vert\overrightarrow{u}\right\vert\cos\left(\theta\right),\left\vert\overrightarrow{u}\right\vert\sin\left(\theta\right)>


When adding 2 vectors together, use the following formula:

u→+v→=<ux+vx,uy+vy>\overrightarrow{u}+\overrightarrow{v}=<u_{x}+v_{x},u_{y}+v_{y}>

Vectors can be translated into additions of unit vectors, ii, jj ,kk, which are unit vectors in the x, y, z axises, respectively

u→=<a,b,c>=ai+bj+ck\overrightarrow{u}=<a,b,c>=ai+bj+ck

13.2: 3d Vectors

When spreading into another dimension, where ∣u→∣=<x,y,z>\left\vert\overrightarrow{u}\right\vert=<x,y,z>, there is only slight differences in a few key formulas:

magnitude: ∣u→∣=x2+y2+z2\left\vert\overrightarrow{u}\right\vert=\sqrt{x^2+y^2+z^2}

midpoint: (x2+x12,y2+y12,z2+z12)\left(\frac{x_2+x_1}{2},\frac{y_2+y_1}{2},\frac{z_2+z_1}{2}\right)


Sphere: points centered at (a,b,c)\left(a,b,c\right) exactly rr distance away from the point. It is empty on the inside; (x−a)2+(y−b)2+(z−c)2=r2\left(x-a\right)^2+\left(y-b\right)^2+\left(z-c\right)^2=r^2

Ball: The volume of the sphere in included in a ball, since it is all points that satisfy the following inequality: (x−a)2+(y−b)2+(z−c)2≤r2\left(x-a\right)^2+\left(y-b\right)^2+\left(z-c\right)^2\le r^2

13.3: Dot Products and Projections

Work is the value of energy put in to move something a distance with a force

Dot Product: When 2 vectors, either 2 or 3 dimensional, when they are multiplied, you get the following theorems, which result in a scalar:

u→⋅v→=∣u→∣∣v→∣cos⁡(θ)=u1v1+u2v2+⋯\overrightarrow{u}\cdot\overrightarrow{v}=\left\vert\overrightarrow{u}\right\vert\left\vert\overrightarrow{v}\right\vert\cos\left(\theta\right)=u_1v_1+u_2v_2+\cdots

Orthogonals: two vectors are orthogonal if and only if u→⋅v→=0\overrightarrow{u}\cdot\overrightarrow{v}=0, meaning θ=π2\theta=\frac{\pi}{2}, meaning that the vectors are perpendicular


Projections: When you take one vector,v→\overrightarrow{v}, and treat it as a base, a vector projection is the “shadow” of the other vector,u→\overrightarrow{u}, on the base

  • projvu=∣u∣cos⁡(θ)(v∣v∣)=(u⋅vv⋅v)vproj_{v}u=\left\vert u\right\vert\cos\left(\theta\right)\left(\frac{v}{\left|v\right|}\right)=\left(\frac{u\cdot v}{v\cdot v}\right)v

  • scalvu=∣u∣cos⁡(θ)=u⋅v∣v∣scal_{v}u=\left|u\right|\cos\left(\theta\right)=\frac{u\cdot v}{\left|v\right|}


13.4: Cross Products

A cross product is when you multiply 2 vectors together to get another vector which is perpendicular to the other 2 vectors

magnitude: ∣u→×v→∣=∣u→∣∣v→∣sin⁡(θ)\left|\overrightarrow{u}\times\overrightarrow{v}\right|=\left|\overrightarrow{u}\right|\left|\overrightarrow{v}\right|\sin\left(\theta\right)

if 2 vectors are parallel (θ=0,θ=π\theta=0,\theta=\pi ), then u→×v→=0\overrightarrow{u}\times\overrightarrow{v}=0



Properties of Cross Products:

  • u×v=−(v×x)u\times v=-\left(v\times x\right)

  • (au)×(bv)=ab(u×v)\left(au\right)\times\left(bv\right)=ab\left(u\times v\right)

  • u×(v+w)=(u×v)+(u×w)u\times\left(v+w\right)=\left(u\times v\right)+\left(u\times w\right)


Cross Products of Unit Vectors:

  • i×j=ki\times j=k

  • j×k=ij\times k=i

  • k×i=jk\times i=j


While the previous properties can be used to manipulate the cross product into finding a solution, there is always the brute force method, which involves determinants and matrices.

Determinant of a 2x2 matrixCross Products

Torque: toque is the force at which something is rotated, and therefore it is represented by the following cross product: τ=r×F\tau=r\times F, where r is the distance from the point of rotation and F is the force applied.

  • τ=r×F\tau=r\times F

  • ∣τ∣=∣r×F∣=∣F∣∣r∣sin⁡(θ)|\tau|=|r\times F|=|F||r|\sin(\theta)


13.5: Lines and Planes in 3d Space

Using the basic formula for a line, y=mx+by=mx+b, the formula can be expanded into the 3rd dimensions with the use of vectors. Here yy will be replaced with <x,y,z><x,y,z>, mm will be replaced with a direction vector, and bb will become a point on the place.   

  • Line: r→=r0→+tv→→<x,y,z>=<x0,y0,z0>+t<a,b,c>\overrightarrow{r}=\overrightarrow{r_0}+t\overrightarrow{v}\rightarrow<x,y,z>=<x_0,y_0,z_0>+t<a,b,c>

You can also then parametrize the equation to suit your needs

  • x=x0+atx=x_0+at, y=y0+bty=y_0+bt, z=z0+ctz=z_0+ct

Distance between a point and line: d=∣v×PQ→∣∣v∣d=\frac{\left\vert v\times\overrightarrow{PQ}\right\vert}{\left\vert v\right\vert}, where P is any point on the line, Q is the point we are finding the distance from, and v is a vector parallel to the line


Planes are a key part of the 3d world and is defined by the set of points, PP, on R³ which when made into a vector with a fixed point, P0P_0, becoming P0P→\overrightarrow{P_0P}, which are orthogonal to the normal vector, nn.

The general equation of a plane is:

  1. a(x−x0)+b(y−y0)+c(z−z0)=0a(x-x_0)+b(y-y_0)+c(z-z_0)=0

  2. ax+by+cz=dax+by+cz=d where d=ax0+by0+cz0d=ax_0+by_0+cz_0


2 planes are orthogonal if n1⋅n2=0n_1\cdot n_2=0 and they are parallel if n1n_1 is parallel to n2n_2.


13.6: Cylinders and Quadric Surfaces

Cylinder: refers to a surface that is parallel to a line. Looks like a sheet

Trace: The set of points that cross one of the coordinate planes. It has 2 variables, xyxy, zyzy, or xzxz. The 3rd variable streches the equation to infinity


Quadric Surfaces: use the following equation: Ax2+By2+Cz2+Dxy+Exz+Fyz+Gx+Hy+Iz+J=0Ax²+By²+Cz²+Dxy+Exz+Fyz+Gx+Hy+Iz+J=0

Ellipses: Ovals or spheres: x2a2+y2b2+z2c2=1\frac{x^2}{a²}+\frac{y^2}{b²}+\frac{z^2}{c²}=1

Elliptic Cone: Hyperbola in 3d: x2a2+y2b2=z2c2\frac{x^2}{a^2}+\frac{y^2}{b^2}=\frac{z^2}{c^2}

Elliptical Paraboloid: z=x2a2+y2b2z=\frac{x^2}{a^2}+\frac{y^2}{b^2}

Hyperbolic Paraboloid: The saddle: z=x2a2−y2b2z=\frac{x^2}{a^2}-\frac{y^2}{b^2}

Hyperboloid of One Sheet: x2a2+y2b2−z2c2=1\frac{x^2}{a^2}+\frac{y^2}{b^2}-\frac{z^2}{c^2}=1

Hyperboloid of two Sheets: −x2a2−y2b2+z2c2=1-\frac{x^2}{a^2}-\frac{y^2}{b^2}+\frac{z^2}{c^2}=1


Trace Definitions:

Traces are also quite important to understanding how the function behaves. There are 3 types of traces: a hyperbola, x2a2−y2b2=1\frac{x^2}{a^2}-\frac{y^2}{b^2}=1 ; a parabola, 0=x2−y0=x²-y; and a ellipse, x2+y2=1x²+y²=1.