ΘρϵηΠατπ

Vector
A vector is alternate notation for an n tuple, so that [a1a2⋮an] is the n-tuple (a1,a2,…,an)
Collinear
Given a vector space (V,F), we say that two vectors x,y∈V are collinear if there exists an α∈F such that x=αy
The length of a Vector
Given a vector x=(x1,…,xn)∈ℝn, we define its length by ‖x‖:=∑i=1nxi2
Unit Sphere
The unit sphere in ℝn, denoted 𝕊n−1, is the set of vectors with length 1: 𝕊n−1={x∈ℝn:‖x‖=1}. In particular, 𝕊2={x∈ℝ3:‖x‖=1}.
Angle Between Nonzero Vectors
Given nonzero vectors u,v∈ℝn, the angle between u and v is the smaller Euclidean angle between the rays from the origin in the directions u and v. It is the unique value θ∈[0,π] representing that smaller angle.
Linearly Independent Nonzero Vectors Have Non-Extreme Angle
Suppose u,v∈ℝn∖{0} are linearly independent, and let θ be the angle between them. Then θ≠0andθ≠π
If θ=0, then u and v point along the same ray, so one is a positive scalar multiple of the other. If θ=π, then u and v point along opposite rays, so one is a negative scalar multiple of the other. In either case, u and v are collinear, so {u,v} is linearly dependent. This contradicts the assumption that u,v are linearly independent.
Dot Product Algebraic Definition
Given two vectors a=(a1,…,an) and b=(b1,…,bn) in ℝn, their dot product is the real number a⋅b=∑i=1naibi Thus ⋅:ℝn×ℝn→ℝ.
Dot Product is Symmetric
For any a,b∈ℝn, a⋅b=b⋅a
Write a=(a1,…,an) and b=(b1,…,bn). By the algebraic definition of the dot product and commutativity of multiplication in ℝ, a⋅b=∑i=1naibi=∑i=1nbiai=b⋅a
Dot Product Distributes into Vector Addition from the Right
For any a,b,c∈ℝn, (a+b)⋅c=a⋅c+b⋅c
Write a=(a1,…,an), b=(b1,…,bn), and c=(c1,…,cn). By the definition of the dot product, (a+b)⋅c=∑i=1n(ai+bi)ci=∑i=1n(aici+bici)=∑i=1naici+∑i=1nbici=a⋅c+b⋅c
Dot Product Distributes into Vector Addition from the Left
For any a,b,c∈ℝn, a⋅(b+c)=a⋅b+a⋅c
Dot Product is Compatible with Scalar Multiplication
For any a,b∈ℝn and λ∈ℝ, (λa)⋅b=λ(a⋅b)anda⋅(λb)=λ(a⋅b)
By the definition of the dot product, (λa)⋅b=∑i=1n(λai)bi=λ∑i=1naibi=λ(a⋅b) The second equality follows from this equality and the symmetry of the dot product: a⋅(λb)=(λb)⋅a=λ(b⋅a)=λ(a⋅b)
Dot Product is Positive Definite
For any a∈ℝn, a⋅a≥0 Moreover a⋅a=0 if and only if a=0.
By the definition of the dot product, a⋅a=∑i=1nai2 Since every square ai2 is non-negative, a⋅a≥0. Also, ∑i=1nai2=0 exactly when each ai2=0, which happens exactly when each ai=0, i.e. exactly when a=0.
Positive Dot Product Expression for Independent Plane Vectors
If x,y∈ℝ2 are linearly independent, then (x⋅x)(y⋅y)−(x⋅y)2>0.
Write x=(x1,x2) and y=(y1,y2). By the definition of the dot product, x⋅x=x12+x22,y⋅y=y12+y22,x⋅y=x1y1+x2y2. Substituting these expressions and multiplying out gives (x⋅x)(y⋅y)−(x⋅y)2=(x12+x22)(y12+y22)−(x1y1+x2y2)2=x12y22+x22y12−2x1x2y1y2=(x1y2−x2y1)2. To show that this square is strictly positive, we must show that x1y2−x2y1≠0. Suppose instead that x1y2−x2y1=0, meaning x1y2=x2y1. Since linearly independent sets cannot contain the zero vector, x≠0, so at least one of x1,x2 is nonzero. We consider each possibility so that we divide only by a nonzero coordinate.

If x1≠0, the assumed equality x1y2−x2y1=0 gives y2=(y1/x1)x2. Thus

y=(y1,y2)=(y1,(y1/x1)x2)=(y1/x1)(x1,x2)=(y1/x1)x. If x1=0, then x2≠0. The assumed equality becomes −x2y1=0, so y1=0, and therefore y=(0,y2)=(y2/x2)(0,x2)=(y2/x2)x. In either case, y is a scalar multiple of x, contradicting their linear independence. Hence x1y2−x2y1≠0, and its square is positive.
Norm Squared is the Dot Product
For any x∈ℝn we have that ‖x‖2=x⋅x
By the definition of length and the definition of the dot product, ‖x‖2=(∑i=1nxi2)2=∑i=1nxi2=x⋅x
Nonzero Vector has Positive Length
If x∈ℝn and x≠0, then ‖x‖>0
By norm squared is the dot product and the fact that the dot product is positive definite, ‖x‖2=x⋅x>0. Since ‖x‖ is non-negative by the definition of length, it follows that ‖x‖>0.
Dot Product Expansion of Norm Squared
For any x,y∈ℝn, ‖x+y‖2=‖x‖2+2x⋅y+‖y‖2 and ‖x−y‖2=‖x‖2−2x⋅y+‖y‖2
Using norm squared is the dot product, dot product distributes into vector addition from the right, dot product distributes into vector addition from the left, and symmetry of the dot product, we get ‖x+y‖2=(x+y)⋅(x+y)=x⋅x+x⋅y+y⋅x+y⋅y=‖x‖2+2x⋅y+‖y‖2 Replacing y by −y, and using compatibility with scalar multiplication, gives ‖x−y‖2=‖x‖2−2x⋅y+‖y‖2
Euclidean Law of Cosines
Suppose a triangle has side lengths A, B, and C, and suppose that θ is the angle between the sides of length A and B. Then C2=A2+B2−2ABcos⁡(θ)
TODO: Add a Euclidean geometry proof here.
Dot Product Geometric Formula
If a,b∈ℝn are non-zero and θ is the angle between a and b, then a⋅b=‖a‖‖b‖cos⁡(θ)
The vectors a, b, and a−b determine a triangle with side lengths ‖a‖, ‖b‖, and ‖a−b‖. By the Euclidean law of cosines applied to this triangle, ‖a−b‖2=‖a‖2+‖b‖2−2‖a‖‖b‖cos⁡(θ) On the other hand, by the dot product expansion of norm squared, ‖a−b‖2=‖a‖2−2a⋅b+‖b‖2 Equating the two expressions and subtracting ‖a‖2+‖b‖2 from both sides gives −2a⋅b=−2‖a‖‖b‖cos⁡(θ) Dividing by −2, we get a⋅b=‖a‖‖b‖cos⁡(θ)
Vector Form of a Line
Suppose that d,p are vectors, then we say that the set l:={x:x=td+p, for some t∈ℝ} is a line and say that the vector equation for the line is
x=td+p
We also say that d is the direction vector for l
Unit Vector
A vector v∈ℝn is called a unit vector if its length is 1, i.e. ‖v‖=1
Norm Equals Absolute Dot Product with a Parallel Unit Vector
Let ω∈ℝn be a unit vector. If x=λω for some λ∈ℝ, then ‖x‖=|x⋅ω|.
Since x=λω and ω is a unit vector, ‖x‖=‖λω‖=|λ|‖ω‖=|λ|. Also, x⋅ω=(λω)⋅ω=λ(ω⋅ω)=λ, because ω⋅ω=‖ω‖2=1. Therefore ‖x‖=|x⋅ω|.
Dot Product of a Vector Parallel to a Unit Vector
Let n,ω∈ℝn, and suppose n is a unit vector. If x=λn for some λ∈ℝ, then |x⋅ω|=‖x‖|n⋅ω|.
Since x=λn, |x⋅ω|=|(λn)⋅ω|=|λ||n⋅ω|. Since n is a unit vector, ‖x‖=‖λn‖=|λ|‖n‖=|λ|. Therefore |x⋅ω|=‖x‖|n⋅ω|.
Positively Oriented Triple in R3
An ordered triple (a,b,c) of nonzero vectors in ℝ3 is positively oriented if it has the same orientation as the standard coordinate directions (e1,e2,e3). Equivalently, when the fingers of the right hand curl from the direction of a toward the direction of b, the thumb points in the direction of c.
Cross Product
Given two nonzero vectors a,b∈ℝ3, we define their cross-product to be a×b:=‖a‖‖b‖sin⁡(θ)n where θ is the angle between a and b, and n is a unit vector such that (a,n,b) is positively oriented.
Cross Product Vector Component Formula
(a1,a2,a3)×(b1,b2,b3)=(a2b3−a3b2,a3b1−a1b3,a1b2−a2b1)

An easy way to remember this is ab 231 where you then get a2b3 - ..., a3b1 - ..., a1b2

Cross Product is Orthogonal to its Factors
If a,b∈ℝ3, then a⋅(a×b)=0andb⋅(a×b)=0
Write a=(a1,a2,a3) and b=(b1,b2,b3). By the definition of the dot product and the component formula for the cross product, a⋅(a×b)=a1(a2b3−a3b2)+a2(a3b1−a1b3)+a3(a1b2−a2b1)=a1a2b3−a1a3b2+a2a3b1−a1a2b3+a1a3b2−a2a3b1=0 The same calculation gives b⋅(a×b)=b1(a2b3−a3b2)+b2(a3b1−a1b3)+b3(a1b2−a2b1)=a2b1b3−a3b1b2+a3b1b2−a1b2b3+a1b2b3−a2b1b3=0
Cross Product Distributes Over Vector Addition in the Second Input
If a,b,c∈ℝ3, then a×(b+c)=a×b+a×c.
Write the vectors in coordinates. The component formula for the cross product shows that each component of a×(b+c) distributes over the coordinate sums in b+c. Therefore a×(b+c)=a×b+a×c.
Cross Product Scalar Multiplication in the Second Input
If a,b∈ℝ3 and λ∈ℝ, then a×(λb)=λ(a×b).
Write the vectors in coordinates. The component formula for the cross product shows that each component of a×(λb) has a common factor λ. Factoring it out gives a×(λb)=λ(a×b).
Cross Product is Anti-Commutative
If a,b∈ℝ3, then a×b=−(b×a).
Write a=(a1,a2,a3) and b=(b1,b2,b3). By the component formula for the cross product, b×a=(b2a3−b3a2,b3a1−b1a3,b1a2−b2a1). Multiplying by −1 gives −(b×a)=(a2b3−a3b2,a3b1−a1b3,a1b2−a2b1)=a×b.
Cross Product Distributes Over Vector Addition in the First Input
If a,b,c∈ℝ3, then (a+b)×c=a×c+b×c.
By anti-commutativity, distribution in the second input, and anti-commutativity again, (a+b)×c=−(c×(a+b))=−(c×a+c×b)=a×c+b×c.
Cross Product Scalar Multiplication in the First Input
If a,b∈ℝ3 and λ∈ℝ, then (λa)×b=λ(a×b).
By anti-commutativity, scalar multiplication in the second input, and anti-commutativity again, (λa)×b=−(b×(λa))=−λ(b×a)=λ(a×b).
Cross Product Expands Over Two Vector Sums
If a,b,c,d∈ℝ3, then (a+b)×(c+d)=a×c+a×d+b×c+b×d.
By distribution in the second input, (a+b)×(c+d)=(a+b)×c+(a+b)×d. By distribution in the first input, (a+b)×c+(a+b)×d=a×c+b×c+a×d+b×d. Reordering the sum gives (a+b)×(c+d)=a×c+a×d+b×c+b×d.
Oriented Projected Area Identity
Let ω∈ℝ3 be a unit vector. For u,v∈ℝ3, define u′=u−(u⋅ω)ω,v′=v−(v⋅ω)ω. Then (u′×v′)⋅ω=(u×v)⋅ω.
By expanding the cross product over vector addition and pulling scalar factors out of the first and second inputs, u′×v′=u×v−(v⋅ω)(u×ω)−(u⋅ω)(ω×v)+(u⋅ω)(v⋅ω)(ω×ω). Since ω×ω=0, the last term is 0. Also u×ω and ω×v are orthogonal to their factors, so both are orthogonal to ω. Taking the dot product with ω leaves (u′×v′)⋅ω=(u×v)⋅ω.
Plane Through the Origin as a Span
Suppose u,v∈ℝ3∖{0} are linearly independent. The plane through the origin generated by u and v is the span P=span⁡({u,v})={su+tv:s,t∈ℝ}
Plane Through the Origin by a Normal
Suppose n∈ℝ3 and n≠0. The plane through the origin with normal vector n is defined using the dot product by n⟂={x∈ℝ3:x⋅n=0}
Span Plane has Cross Product Normal
Suppose u,v∈ℝ3∖{0} are linearly independent. Then span⁡({u,v})={x∈ℝ3:x⋅(u×v)=0}
Let n=u×v. Let θ be the angle between u and v. Since u,v∈ℝ3∖{0}, we have ‖u‖>0 and ‖v‖>0 by nonzero vectors have positive length. Since u and v are linearly independent, the angle satisfies θ≠0 and θ≠π by linearly independent nonzero vectors have non-extreme angle. Also θ∈[0,π] by the definition of angle, so sin⁡(θ)≠0 by sine is zero on [0,π] only at the endpoints. Therefore, by the definition of the cross product, ‖u×v‖=‖u‖‖v‖sin⁡(θ)≠0 and so n≠0.

First suppose that x∈span⁡({u,v}). By the definition of span, x=su+tv for some s,t∈ℝ. Since n=u×v is orthogonal to both u and v by the cross product is orthogonal to its factors proposition,

x⋅n=(su+tv)⋅n=s(u⋅n)+t(v⋅n)=0 Thus span⁡({u,v})⊆{x∈ℝ3:x⋅n=0} For the reverse containment, note that u,v,n are linearly independent. To see this, suppose that au+bv+cn=0 Taking the dot product of both sides with n, we get a(u⋅n)+b(v⋅n)+c(n⋅n)=0 Since u⋅n=0, v⋅n=0, and n⋅n=‖n‖2≠0 by norm squared is the dot product, it follows that c=0. Therefore au+bv=0, and since u,v are linearly independent, we get a=b=0. Thus u,v,n are linearly independent.

Since dim⁡(ℝ3)=3 by the dimension of ℝn, the three linearly independent vectors u,v,n form a basis of ℝ3.

Now suppose that x⋅n=0. Since u,v,n form a basis, we can write x=su+tv+rn. Then

0=x⋅n=s(u⋅n)+t(v⋅n)+r(n⋅n)=r‖n‖2 Since ‖n‖2≠0, we have r=0. Thus x=su+tv, so x∈span⁡({u,v}) by the definition of span.
Translated Plane as a Span
Suppose p∈ℝ3, suppose u,v∈ℝ3∖{0}, and suppose that u and v are linearly independent. The plane through p with direction vectors u and v is the translation of the plane through the origin as a span: p+span⁡({u,v})={p+su+tv:s,t∈ℝ}
Translated Plane by a Normal
Suppose p,n∈ℝ3 and n≠0. The plane through p with normal vector n is defined by translating the plane through the origin by a normal: {x∈ℝ3:(x−p)⋅n=0} By the dot product, this can equivalently be written as x⋅n=p⋅n.
Coordinate Equation of a Plane
Suppose a,b,c,d∈ℝ, and suppose that (a,b,c)≠(0,0,0). The equation ax+by+cz=d defines the plane {(x,y,z)∈ℝ3:ax+by+cz=d} whose normal vector is (a,b,c), as shown by its equivalence with the translated plane by a normal.
Coordinate Equation of a Plane is Normal Form
Suppose n=(a,b,c)≠0, p=(p1,p2,p3), and d=p⋅n. Then {q∈ℝ3:(q−p)⋅n=0}={(x,y,z)∈ℝ3:ax+by+cz=d}
Let q=(x,y,z). By the definition of the dot product, we have (q−p)⋅n=0⟺(x−p1,y−p2,z−p3)⋅(a,b,c)=0⟺a(x−p1)+b(y−p2)+c(z−p3)=0⟺ax+by+cz=ap1+bp2+cp3⟺ax+by+cz=p⋅n⟺ax+by+cz=d Therefore the coordinate equation is exactly the translated normal form written out component by component.
Translated Span Plane Equals Translated Normal Plane
Suppose p∈ℝ3, suppose u,v∈ℝ3∖{0}, and suppose that u and v are linearly independent. Then {p+su+tv:s,t∈ℝ}={x∈ℝ3:(x−p)⋅(u×v)=0}
Let Q={p+su+tv:s,t∈ℝ}. By the translated plane as a span definition, x∈Q exactly when x−p∈span⁡({u,v}). By the span plane has cross product normal proposition, this happens exactly when (x−p)⋅(u×v)=0, which is exactly the normal equation (x−p)⋅(u×v)=0
Equation for a Line
We say the equation of a line ℓ is given by ax+by+c=0 where a,b,c∈ℝ where the line is given by the set ℓ={(x,y)∈ℝ2:ax+by+c=0}
Equation of a Line as a 3d Dot Product
Suppose that ℓ is given by ax+by+c=0 then we have ℓ={(x,y,1)∈ℝ3:(x,y,1)⋅(a,b,c)=0}
TODO: Add the proof here.
Equation of a Line Given by the Cross Product
Suppose that p,q∈ℝ2 and consider L=(a,b,c)=p×q then the equation of the line that passes through p,q is given by ax+by+c=0
We know that ax+by+c=0 defines a line, but we need to verify that p,q are both on that line, but since p⋅L=0 and q⋅L=0 we know that they are on the line, as needed.
Parallelogram Law
Suppose x,y∈ℝn then we have ‖x+y‖2+‖x−y‖2=2‖x‖2+2‖y‖2
By the dot product expansion of norm squared, ‖x+y‖2+‖x−y‖2=(‖x‖2+2x⋅y+‖y‖2)+(‖x‖2−2x⋅y+‖y‖2)=2‖x‖2+2‖y‖2
The Norm of The Half of The Sum of Two Unit Vectors is One iff They are Equal
Suppose x,y∈ℝn such that ‖x‖=‖y‖=1 then ‖x+y2‖=1⟺x=y
⟹ Suppose that ‖x+y2‖=1 we'd like to prove that x=y, thus it's equivalent to show that ‖x−y‖=0, recall that from the parallelogram law that ‖x−y‖=2‖x‖2+2‖y‖2−‖x+y‖2 thus it's enough to show that 2‖x‖2+2‖y‖2−‖x+y‖2=0, which means we just have to show that ‖x+y‖2=2‖x‖2+2‖y‖2, moreover x,y were unit vectors so we have ‖x‖=‖y‖=1 and we now just need to prove that ‖x+y‖2=4. We've assumed that ‖x+y2‖=1, this means that ‖x+y‖=2 thus we conclude that ‖x+y‖2=4 as needed.

⟸ Suppose that x=y, then ‖x+y2‖=‖2x2‖=‖x‖=1 as needed.

Vector Cosine Law
Suppose that x,y∈ℝn and θ is the angle between them, then ‖x+y‖2=‖x‖2+2‖x‖‖y‖cos⁡(θ)+‖y‖2
By the dot product expansion of norm squared and the geometric formula for the dot product, ‖x+y‖2=‖x‖2+2x⋅y+‖y‖2=‖x‖2+2‖x‖‖y‖cos⁡(θ)+‖y‖2
Dot Product Is a Sum of Norms
x⋅y=‖x+y‖2−‖x‖2−‖y‖22
Rearrange the first equality in the dot product expansion of norm squared.
Barycentric Coordinates of a Triangle
Let a,b,c∈ℝ2 be such that {b−a,c−a} is linearly independent. The barycentric coordinates of a point p∈ℝ2 relative to the ordered vertices (a,b,c) are the unique real numbers (λa,λb,λc) satisfying p=λaa+λbb+λcc,λa+λb+λc=1.

It is not immediately obvious that every point p∈ℝ2 can be written this way. The following construction shows that it is possible.

Barycentric Coordinates from Dot Products
Suppose a,b,c∈ℝ2 are such that {b−a,c−a} is linearly independent, and let p∈ℝ2. Set x:=c−a,y:=b−a,z:=p−a,D:=(x⋅x)(y⋅y)−(x⋅y)2. Then D>0, and the barycentric coordinates of p relative to (a,b,c) are (1−u−v,v,u), where u=(y⋅y)(x⋅z)−(x⋅y)(y⋅z)D,v=(x⋅x)(y⋅z)−(x⋅y)(x⋅z)D.
The vectors x=c−a and y=b−a point from a toward the other two vertices, while z=p−a points from a toward p. We first express z in terms of these two edge vectors; its coefficients will give the barycentric coordinates.

By assumption, x and y are linearly independent and therefore form a basis of ℝ2. Thus there are unique u,v∈ℝ with z=ux+vy. Rearranging gives

p=a+u(c−a)+v(b−a)=(1−u−v)a+vb+uc. Hence (1−u−v,v,u) are the barycentric coordinates. We now want to compute u and v. To get two scalar equations in these two unknowns, take the dot product of both sides of z=ux+vy with a fixed vector. We choose x once and y once. This is what it means here to “multiply” a vector equation by x or y: each dot product gives a scalar equation. x⋅z=u(x⋅x)+v(x⋅y),y⋅z=u(x⋅y)+v(y⋅y). We solve these equations by making the coefficients of one unknown equal and then subtracting, so that unknown cancels. The positive dot product expression proposition tells us that D>0, because x and y are linearly independent. Thus we may divide by D after each cancellation.

First, isolate v. Multiply the first scalar equation by x⋅y and the second by x⋅x. Both u-coefficients are then (x⋅x)(x⋅y). Subtract the scaled first equation from the scaled second:

(x⋅x)(y⋅z)−(x⋅y)(x⋅z)=(x⋅x)[u(x⋅y)+v(y⋅y)]−(x⋅y)[u(x⋅x)+v(x⋅y)]=v[(x⋅x)(y⋅y)−(x⋅y)2]=vD. Dividing by D gives v=(x⋅x)(y⋅z)−(x⋅y)(x⋅z)D.

Similarly, to isolate u, multiply the first scalar equation by y⋅y and the second by x⋅y. Both v-coefficients are then (x⋅y)(y⋅y). Subtract the scaled second equation from the scaled first:

(y⋅y)(x⋅z)−(x⋅y)(y⋅z)=(y⋅y)[u(x⋅x)+v(x⋅y)]−(x⋅y)[u(x⋅y)+v(y⋅y)]=u[(x⋅x)(y⋅y)−(x⋅y)2]=uD. Thus u=(y⋅y)(x⋅z)−(x⋅y)(y⋅z)D, as claimed.
Point Inside a Triangle
Let a,b,c∈ℝ2 be such that {b−a,c−a} is linearly independent, and let p∈ℝ2 have barycentric coordinates (λa,λb,λc) relative to (a,b,c). We say that p is inside the triangle with vertices a,b,c, including its boundary, if λa≥0,λb≥0,λc≥0. Using (λa,λb,λc)=(1−u−v,v,u) from the preceding proposition, this is equivalent to u≥0, v≥0, and u+v≤1. The point is strictly inside if all three coordinates are positive. It lies on the boundary if all three are nonnegative and at least one is zero.