evan's notes
cal 3discreteodeenv systems

On this page

  • Walkthrough
  • The vector as a displacement in space
  • The dot product: connecting algebra to geometry
  • Measuring along a direction: scalar and vector projection
  • The cross product: a perpendicular vector
  • Turning vectors into lines and planes
  • Vectors in three dimensions
  • Vector arithmetic
  • Length, distance, and unit vectors
  • The standard basis
  • The dot product
  • Angles between vectors
  • Why the angle formula works
  • Orthogonal vectors
  • Scalar and vector projection
  • Example: projecting one vector onto another
  • The cross product
  • Example: computing a cross product
  • Cross-product properties
  • Lines in space
  • Parallel or coincident lines
  • Planes in space
  • Example: the plane through three points

Intermediate Calculus

§4 Vectors and Geometry

Evan Luo · Sep 18, 2026

Intermediate Calculus

§4 Vectors and Geometry

Evan LuoSep 18, 2026

18 min read

Walkthrough

The vector as a displacement in space

A point tells you where you are. A vector tells you how to get somewhere else. In three dimensions, it gives you three changes: one along each axis.

v=⟨x,y,z⟩\mathbf v = \langle x, y, z \ranglev=⟨x,y,z⟩

The numbers xxx, yyy, and zzz are the components. Each says how far to move along one axis, and its sign says which way. Together, they describe the change from start to finish. They don't tell you which route you took.

To find the length of the vector, use the Pythagorean theorem: square the components, add them, and take the square root. We call this length the norm:

∥v∥=x2+y2+z2\|\mathbf v\| = \sqrt{x^2 + y^2 + z^2}∥v∥=x2+y2+z2​

What if you only care about the direction? For v≠0\mathbf v\ne\mathbf 0v=0, divide by its length. The new vector points the same way, but its length is 111.

u=v∥v∥\mathbf u = \frac{\mathbf v}{\|\mathbf v\|}u=∥v∥v​

This u\mathbf uu is a unit vector. Think of it as keeping the direction separate from the length. We can multiply it by a number later to get the length we need; a negative number points it the other way.

The dot product: connecting algebra to geometry

Suppose you know two vectors' components and want to find the angle between them. You don't have to draw them. Start with their dot product: multiply matching components and add. For v=⟨x1,y1,z1⟩\mathbf v = \langle x_1, y_1, z_1 \ranglev=⟨x1​,y1​,z1​⟩ and w=⟨x2,y2,z2⟩\mathbf w = \langle x_2, y_2, z_2 \ranglew=⟨x2​,y2​,z2​⟩, that's

v⋅w=x1x2+y1y2+z1z2\mathbf v \cdot \mathbf w = x_1 x_2 + y_1 y_2 + z_1 z_2v⋅w=x1​x2​+y1​y2​+z1​z2​

Notice that the answer is a number, not a vector. We call a single number like this a scalar.

Why does that calculation help with angles? The dot product is also equal to this:

v⋅w=∥v∥ ∥w∥cos⁡θ\mathbf v \cdot \mathbf w = \|\mathbf v\|\,\|\mathbf w\|\cos\thetav⋅w=∥v∥∥w∥cosθ

Here θ\thetaθ is the angle between the nonzero vectors v\mathbf vv and w\mathbf ww. We already know their lengths from their components. Divide by those lengths, and we get

cos⁡θ=v⋅w∥v∥ ∥w∥\cos\theta = \frac{\mathbf v \cdot \mathbf w}{\|\mathbf v\|\,\|\mathbf w\|}cosθ=∥v∥∥w∥v⋅w​

Notice what happens when two nonzero vectors are perpendicular (θ=π/2\theta = \pi/2θ=π/2). Because cos⁡(π/2)=0\cos(\pi/2) = 0cos(π/2)=0, their dot product must be zero:

v⋅w=0  ⟺  v and w are orthogonal\mathbf v \cdot \mathbf w = 0 \iff \mathbf v \text{ and } \mathbf w \text{ are orthogonal}v⋅w=0⟺v and w are orthogonal

So if you just need to check for a right angle, stop at the dot product. You don't need to find the angle itself. Orthogonal is the mathematical word for perpendicular here.

Measuring along a direction: scalar and vector projection

Now ask a slightly different question: how much of v\mathbf vv lies along the direction of w\mathbf ww? We need w≠0\mathbf w\ne\mathbf 0w=0, since the zero vector doesn't give us a direction.

Draw both vectors from the same starting point. From the tip of v\mathbf vv, draw a perpendicular to the line through w\mathbf ww. The vector from the starting point to where that perpendicular lands is the projection. We can describe it as a signed length or as a vector:

  1. Scalar projection (comp⁡wv\operatorname{comp}_{\mathbf w}\mathbf vcompw​v): This is a number: the signed distance along that line. comp⁡wv=v⋅w∥w∥\operatorname{comp}_{\mathbf w}\mathbf v = \frac{\mathbf v \cdot \mathbf w}{\|\mathbf w\|}compw​v=∥w∥v⋅w​ If v≠0\mathbf v\ne\mathbf0v=0 as well and θ\thetaθ is the angle between the vectors, this also equals ∥v∥cos⁡θ\|\mathbf v\|\cos\theta∥v∥cosθ. A positive result means the projection points along w\mathbf ww; a negative result means it points the other way. Zero means there is no component along that line.

  2. Vector projection (proj⁡wv\operatorname{proj}_{\mathbf w}\mathbf vprojw​v): This is a vector, so it needs both length and direction. Multiply the signed length by the unit vector along w\mathbf ww: proj⁡wv=(v⋅w∥w∥)(w∥w∥)=v⋅w∥w∥2w\operatorname{proj}_{\mathbf w}\mathbf v = \left(\frac{\mathbf v \cdot \mathbf w}{\|\mathbf w\|}\right)\left(\frac{\mathbf w}{\|\mathbf w\|}\right) = \frac{\mathbf v \cdot \mathbf w}{\|\mathbf w\|^2}\mathbf wprojw​v=(∥w∥v⋅w​)(∥w∥w​)=∥w∥2v⋅w​w

The two formulas answer different questions: do you need a number or a vector? For the vector answer, check that proj⁡wv\operatorname{proj}_{\mathbf w}\mathbf vprojw​v is a scalar multiple of w\mathbf ww. It can't point off the line you're projecting onto.

The cross product: a perpendicular vector

The dot product turns two vectors into a number. In R3\mathbb R^3R3, the cross product turns them into a new vector:

v×w\mathbf v\times\mathbf wv×w

This vector is perpendicular to both v\mathbf vv and w\mathbf ww. When the cross product is nonzero, there are two possible perpendicular directions, and the right-hand rule chooses one. Point the fingers of your right hand along v\mathbf vv and curl them toward w\mathbf ww; your thumb points along v×w\mathbf v\times\mathbf wv×w. The order matters:

w×v=−(v×w)\mathbf w\times\mathbf v=-(\mathbf v\times\mathbf w)w×v=−(v×w)

Its length has a separate job. If θ\thetaθ is the angle between two nonzero vectors, then

∥v×w∥=∥v∥ ∥w∥sin⁡θ\lVert\mathbf v\times\mathbf w\rVert=\lVert\mathbf v\rVert\,\lVert\mathbf w\rVert\sin\theta∥v×w∥=∥v∥∥w∥sinθ

That is base times perpendicular height, so it gives the area of the parallelogram spanned by the two vectors. If the vectors point along the same line, the height is zero and so is the cross product. The zero vector is another zero-cross-product case, even though it has no direction and no angle.

Magnitude gives area; order gives direction

Cross-product magnitude and directionThe first panel shows vectors v and w forming a parallelogram. Its dashed height is perpendicular to v, and its area equals the magnitude of v cross w. The second panel shows v pointing right and w pointing up. The right-hand rule sends v cross w out of the page, while reversing the order sends w cross v into the page.Parallelogram area
v
w
θ
∥v×w∥
Right-hand rule
v
w
v×w
out of the page
w×v
into the page
The magnitude ∥v×w∥ is the parallelogram's area. The right-hand rule chooses the perpendicular direction, so reversing the order reverses the result.

Turning vectors into lines and planes

A line in space needs a starting point and a direction. If p\mathbf pp is the position vector of a point on the line and v\mathbf vv is a nonzero direction vector, then

ℓ(t)=p+tv,t∈R\boldsymbol\ell(t)=\mathbf p+t\mathbf v,\qquad t\in\mathbb Rℓ(t)=p+tv,t∈R

At t=0t=0t=0 you are at p\mathbf pp. Positive and negative values of ttt move in opposite directions along the same line.

A plane needs a different kind of direction information: a vector perpendicular to the whole plane. This is its normal vector. If the plane passes through the point with position vector p\mathbf pp and has nonzero normal vector n\mathbf nn, then a point with position vector r\mathbf rr lies in the plane exactly when the displacement r−p\mathbf r-\mathbf pr−p is perpendicular to n\mathbf nn:

n⋅(r−p)=0\mathbf n\cdot(\mathbf r-\mathbf p)=0n⋅(r−p)=0

This is why dot and cross products work together when three noncollinear points define a plane. Two displacement vectors between the points lie in the plane. Their cross product is perpendicular to both, so it gives a normal vector for the plane equation.

Vectors in three dimensions

Write a vector by listing the changes along the three axes:

v=⟨x,y,z⟩,\mathbf v=\langle x,y,z\rangle, v=⟨x,y,z⟩,

where xxx, yyy, and zzz are the vector's components. The symbol v\mathbf vv is read “vector vvv.”

If you start at the origin O=(0,0,0)O=(0,0,0)O=(0,0,0) and end at P=(x,y,z)P=(x,y,z)P=(x,y,z), the vector has the same numbers as the point. This is the position vector of PPP:

OP→=⟨x,y,z⟩.\overrightarrow{OP}=\langle x,y,z\rangle. OP=⟨x,y,z⟩.

If you start somewhere else, say at the first of these two points,

P=(x,y,z),Q=(a,b,c),P=(x,y,z), \qquad Q=(a,b,c), P=(x,y,z),Q=(a,b,c),

subtract the coordinates of PPP from those of QQQ to find the change:

PQ→=⟨a−x,b−y,c−z⟩.\overrightarrow{PQ} =\langle a-x,b-y,c-z\rangle. PQ​=⟨a−x,b−y,c−z⟩.

Subtract in that order: endpoint minus starting point. Reversing the order describes the return trip, so it reverses the vector.

Vector arithmetic

Adding two vectors combines their displacements. Add the changes along each axis separately:

⟨x,y,z⟩+⟨a,b,c⟩=⟨x+a,y+b,z+c⟩.\langle x,y,z\rangle+\langle a,b,c\rangle =\langle x+a,y+b,z+c\rangle. ⟨x,y,z⟩+⟨a,b,c⟩=⟨x+a,y+b,z+c⟩.

To scale a vector, multiply every component by the same real number α\alphaα:

α⟨x,y,z⟩=⟨αx,αy,αz⟩.\alpha\langle x,y,z\rangle =\langle \alpha x,\alpha y,\alpha z\rangle. α⟨x,y,z⟩=⟨αx,αy,αz⟩.

When α>1\alpha>1α>1, the vector gets longer. When 0<α<10<\alpha<10<α<1, it gets shorter. Neither changes its direction. A negative multiplier reverses the direction as well; its absolute value tells you how much to scale the length.

Length, distance, and unit vectors

The norm is just the length. For the vector

v=⟨x,y,z⟩\mathbf v=\langle x,y,z\rangle v=⟨x,y,z⟩

apply the Pythagorean theorem:

∥v∥=x2+y2+z2.\boxed{\|\mathbf v\|=\sqrt{x^2+y^2+z^2}}. ∥v∥=x2+y2+z2​​.

If the vector starts at the origin, this is the distance to its endpoint. When you multiply the vector by a number, its length changes like this:

∥αv∥=∣α∣ ∥v∥.\|\alpha\mathbf v\|=|\alpha|\,\|\mathbf v\|. ∥αv∥=∣α∣∥v∥.

The absolute value matters: a negative multiplier reverses the vector, but doesn't give it a negative length.

To find the distance between two points, first find the vector between them, then take its length:

d(P,Q)=∥PQ→∥=(a−x)2+(b−y)2+(c−z)2.\boxed{ d(P,Q) =\|\overrightarrow{PQ}\| =\sqrt{(a-x)^2+(b-y)^2+(c-z)^2}. } d(P,Q)=∥PQ​∥=(a−x)2+(b−y)2+(c−z)2​.​

A unit vector has length 111. If v≠0\mathbf v\ne\mathbf0v=0, dividing by its norm keeps its direction and changes its length to 111:

u=v∥v∥.\boxed{\mathbf u=\frac{\mathbf v}{\|\mathbf v\|}}. u=∥v∥v​​.

That's what normalizing a vector means: keeping its direction and making its length one.

The standard basis

We only need three directions to describe any vector in space: one along each axis. Give each of those vectors length one. These are the standard basis vectors in R3\mathbb R^3R3, read “RRR three”:

i=⟨1,0,0⟩,j=⟨0,1,0⟩,k=⟨0,0,1⟩.\mathbf i=\langle1,0,0\rangle, \qquad \mathbf j=\langle0,1,0\rangle, \qquad \mathbf k=\langle0,0,1\rangle. i=⟨1,0,0⟩,j=⟨0,1,0⟩,k=⟨0,0,1⟩.

They point along the positive axes. To build any other vector, multiply each one by the component along that axis, then add:

⟨x,y,z⟩=xi+yj+zk.\langle x,y,z\rangle =x\mathbf i+y\mathbf j+z\mathbf k. ⟨x,y,z⟩=xi+yj+zk.

The same coordinate ideas work in R2\mathbb R^2R2 and, more generally, in Rn\mathbb R^nRn.

The dot product

For

v=⟨x1,y1,z1⟩,w=⟨x2,y2,z2⟩,\mathbf v=\langle x_1,y_1,z_1\rangle, \qquad \mathbf w=\langle x_2,y_2,z_2\rangle, v=⟨x1​,y1​,z1​⟩,w=⟨x2​,y2​,z2​⟩,

the dot product is

v⋅w=x1x2+y1y2+z1z2.\boxed{ \mathbf v\cdot\mathbf w =x_1x_2+y_1y_2+z_1z_2. } v⋅w=x1​x2​+y1​y2​+z1​z2​.​

The answer is a real number, not another vector. You can work with dot products using these rules. First, the dot product of a vector with itself is its squared length:

v⋅v=∥v∥2,\mathbf v\cdot\mathbf v=\|\mathbf v\|^2, v⋅v=∥v∥2,

Distribute over a sum:

u⋅(v+w)=u⋅v+u⋅w,\mathbf u\cdot(\mathbf v+\mathbf w) =\mathbf u\cdot\mathbf v+\mathbf u\cdot\mathbf w, u⋅(v+w)=u⋅v+u⋅w,

Switching the order doesn't change the result:

v⋅w=w⋅v,\mathbf v\cdot\mathbf w=\mathbf w\cdot\mathbf v, v⋅w=w⋅v,

You can pull a scalar multiplier outside the dot product:

(αv)⋅w=α(v⋅w)=v⋅(αw).(\alpha\mathbf v)\cdot\mathbf w =\alpha(\mathbf v\cdot\mathbf w) =\mathbf v\cdot(\alpha\mathbf w). (αv)⋅w=α(v⋅w)=v⋅(αw).

Angles between vectors

Let θ\thetaθ be the angle between two nonzero vectors v\mathbf vv and w\mathbf ww. The dot product connects their lengths to this angle:

v⋅w=∥v∥ ∥w∥cos⁡θ.\boxed{ \mathbf v\cdot\mathbf w =\|\mathbf v\|\,\|\mathbf w\|\cos\theta. } v⋅w=∥v∥∥w∥cosθ.​

Therefore,

cos⁡θ=v⋅w∥v∥ ∥w∥.\boxed{ \cos\theta =\frac{\mathbf v\cdot\mathbf w} {\|\mathbf v\|\,\|\mathbf w\|}. } cosθ=∥v∥∥w∥v⋅w​.​

Calculate the dot product, then divide by the product of the two lengths. That gives the cosine of the angle, not the angle itself. Use inverse cosine to finish.

Why the angle formula works

To see why the dot product contains angle information, place v\mathbf vv and w\mathbf ww at the same starting point. The vector between their tips is w−v\mathbf w-\mathbf vw−v. We can calculate its squared length in two ways. First, the law of cosines gives

∥w−v∥2=∥v∥2+∥w∥2−2∥v∥ ∥w∥cos⁡θ.\|\mathbf w-\mathbf v\|^2 =\|\mathbf v\|^2+\|\mathbf w\|^2 -2\|\mathbf v\|\,\|\mathbf w\|\cos\theta. ∥w−v∥2=∥v∥2+∥w∥2−2∥v∥∥w∥cosθ.

The dot product gives another expression for the same squared length:

∥w−v∥2=(w−v)⋅(w−v)=∥w∥2−2v⋅w+∥v∥2.\begin{aligned} \|\mathbf w-\mathbf v\|^2 &=(\mathbf w-\mathbf v)\cdot(\mathbf w-\mathbf v)\\ &=\|\mathbf w\|^2-2\mathbf v\cdot\mathbf w+\|\mathbf v\|^2. \end{aligned} ∥w−v∥2​=(w−v)⋅(w−v)=∥w∥2−2v⋅w+∥v∥2.​

These are two ways of calculating the same squared length, so set them equal. Cancel the squared lengths that appear on both sides and divide by the common coefficient. What remains is

v⋅w=∥v∥ ∥w∥cos⁡θ.\mathbf v\cdot\mathbf w =\|\mathbf v\|\,\|\mathbf w\|\cos\theta. v⋅w=∥v∥∥w∥cosθ.

Orthogonal vectors

For nonzero vectors, orthogonal means perpendicular. At a right angle, θ=π/2\theta=\pi/2θ=π/2, so

cos⁡(π2)=0.\cos\left(\frac\pi2\right)=0. cos(2π​)=0.

Thus,

v⋅w=0⟺v and w are orthogonal.\boxed{ \mathbf v\cdot\mathbf w=0 \quad\Longleftrightarrow\quad \mathbf v\text{ and }\mathbf w\text{ are orthogonal}. } v⋅w=0⟺v and w are orthogonal.​

For example,

⟨2,2,−1⟩⋅⟨5,−4,2⟩=2(5)+2(−4)+(−1)(2)=10−8−2=0.\begin{aligned} \langle2,2,-1\rangle\cdot\langle5,-4,2\rangle &=2(5)+2(-4)+(-1)(2)\\ &=10-8-2\\ &=0. \end{aligned} ⟨2,2,−1⟩⋅⟨5,−4,2⟩​=2(5)+2(−4)+(−1)(2)=10−8−2=0.​

The answer is zero, so these two nonzero vectors are perpendicular.

There's one convention to keep in mind. The zero vector has dot product zero with every vector, so we call it orthogonal to every vector too. But it has no direction, so we can't assign it an angle.

Scalar and vector projection

A projection answers this question: how much of v\mathbf vv points in the direction of w\mathbf ww? Assume w≠0\mathbf w\ne\mathbf0w=0.

The scalar projection, or component of v\mathbf vv along w\mathbf ww, is

comp⁡wv=v⋅w∥w∥=∥v∥cos⁡θ.\boxed{ \operatorname{comp}_{\mathbf w}\mathbf v =\frac{\mathbf v\cdot\mathbf w}{\|\mathbf w\|} =\|\mathbf v\|\cos\theta. } compw​v=∥w∥v⋅w​=∥v∥cosθ.​

The cosine version needs two nonzero vectors, because otherwise there's no angle to use. If the vector you're projecting is zero, use the dot-product version instead. It gives zero.

The sign tells you which way the projection points: positive along w\mathbf ww, negative the other way. This answer is still just a number.

To turn that signed length into a vector, multiply by the unit vector in the w\mathbf ww direction:

proj⁡wv=comp⁡wv(w∥w∥)=(v⋅w∥w∥)(w∥w∥).\begin{aligned} \operatorname{proj}_{\mathbf w}\mathbf v &=\operatorname{comp}_{\mathbf w}\mathbf v \left(\frac{\mathbf w}{\|\mathbf w\|}\right)\\ &=\left(\frac{\mathbf v\cdot\mathbf w}{\|\mathbf w\|}\right) \left(\frac{\mathbf w}{\|\mathbf w\|}\right). \end{aligned} projw​v​=compw​v(∥w∥w​)=(∥w∥v⋅w​)(∥w∥w​).​

Therefore,

proj⁡wv=v⋅w∥w∥2w.\boxed{ \operatorname{proj}_{\mathbf w}\mathbf v =\frac{\mathbf v\cdot\mathbf w}{\|\mathbf w\|^2}\mathbf w. } projw​v=∥w∥2v⋅w​w.​

If w\mathbf ww is already a unit vector, then ∥w∥=1\|\mathbf w\|=1∥w∥=1 and the formula simplifies to

proj⁡wv=(v⋅w)w.\operatorname{proj}_{\mathbf w}\mathbf v =(\mathbf v\cdot\mathbf w)\mathbf w. projw​v=(v⋅w)w.

A projection keeps only the part in one direction

Vector projection geometryVector v points above vector w. The projection of v onto w lies along w, and a dashed perpendicular segment joins the tip of v to the tip of the projection.
v
w
projw​v
The projection is parallel to w. The dashed remainder is perpendicular to w, so the original vector splits into a parallel part and a perpendicular part.

Example: projecting one vector onto another

Let

v=⟨1,1,2⟩,w=⟨−2,3,1⟩.\mathbf v=\langle1,1,2\rangle, \qquad \mathbf w=\langle-2,3,1\rangle. v=⟨1,1,2⟩,w=⟨−2,3,1⟩.

We're projecting the first vector onto the second, so the answer must be a multiple of the second. To find that multiple, we need the dot product and the squared length of the second vector. Start with the dot product:

v⋅w=−2+3+2=3.\mathbf v\cdot\mathbf w =-2+3+2=3. v⋅w=−2+3+2=3.

Now find the squared length of w\mathbf ww. Use the vector you're projecting onto, not the one you started with:

∥w∥2=(−2)2+32+12=14.\|\mathbf w\|^2 =(-2)^2+3^2+1^2 =14. ∥w∥2=(−2)2+32+12=14.

Put those two numbers into the projection formula:

proj⁡wv=314w=314⟨−2,3,1⟩=⟨−37,914,314⟩.\begin{aligned} \operatorname{proj}_{\mathbf w}\mathbf v &=\frac{3}{14}\mathbf w\\ &=\frac{3}{14}\langle-2,3,1\rangle\\ &=\boxed{\left\langle-\frac37,\frac9{14},\frac3{14}\right\rangle}. \end{aligned} projw​v​=143​w=143​⟨−2,3,1⟩=⟨−73​,149​,143​⟩​.​

The answer is a scalar multiple of w\mathbf ww, as it should be. This check won't catch every arithmetic error, but it will catch an answer that points off the line you're projecting onto.

The cross product

The cross product is the standard two-vector product used here in R3\mathbb R^3R3. Unlike the dot product, its output is a vector. For

v=⟨a1,a2,a3⟩,w=⟨b1,b2,b3⟩,\mathbf v=\langle a_1,a_2,a_3\rangle, \qquad \mathbf w=\langle b_1,b_2,b_3\rangle, v=⟨a1​,a2​,a3​⟩,w=⟨b1​,b2​,b3​⟩,

compute it component by component:

v×w=⟨a2b3−a3b2,a3b1−a1b3,a1b2−a2b1⟩.\boxed{ \mathbf v\times\mathbf w =\left\langle a_2b_3-a_3b_2, a_3b_1-a_1b_3, a_1b_2-a_2b_1 \right\rangle. } v×w=⟨a2​b3​−a3​b2​,a3​b1​−a1​b3​,a1​b2​−a2​b1​⟩.​

A useful memory aid is to expand this formal determinant across its first row:

v×w=∣ijka1a2a3b1b2b3∣.\mathbf v\times\mathbf w = \begin{vmatrix} \mathbf i&\mathbf j&\mathbf k\\ a_1&a_2&a_3\\ b_1&b_2&b_3 \end{vmatrix}. v×w=​ia1​b1​​ja2​b2​​ka3​b3​​​.

The cofactor signs are +++, −-−, +++. That middle minus is already built into the component formula above.

Example: computing a cross product

Let

v=⟨1,2,3⟩,w=⟨2,−1,1⟩.\mathbf v=\langle1,2,3\rangle, \qquad \mathbf w=\langle2,-1,1\rangle. v=⟨1,2,3⟩,w=⟨2,−1,1⟩.

Apply the component formula in the same order each time:

v×w=⟨2(1)−3(−1),3(2)−1(1),1(−1)−2(2)⟩=⟨5,5,−5⟩.\begin{aligned} \mathbf v\times\mathbf w &=\left\langle 2(1)-3(-1), 3(2)-1(1), 1(-1)-2(2) \right\rangle\\ &=\boxed{\langle5,5,-5\rangle}. \end{aligned} v×w​=⟨2(1)−3(−1),3(2)−1(1),1(−1)−2(2)⟩=⟨5,5,−5⟩​.​

The result should be perpendicular to both inputs. Two quick dot products check that:

⟨1,2,3⟩⋅⟨5,5,−5⟩=5+10−15=0,\langle1,2,3\rangle\cdot\langle5,5,-5\rangle=5+10-15=0, ⟨1,2,3⟩⋅⟨5,5,−5⟩=5+10−15=0, ⟨2,−1,1⟩⋅⟨5,5,−5⟩=10−5−5=0.\langle2,-1,1\rangle\cdot\langle5,5,-5\rangle=10-5-5=0. ⟨2,−1,1⟩⋅⟨5,5,−5⟩=10−5−5=0.

Cross-product properties

For vectors u,v,w∈R3\mathbf u,\mathbf v,\mathbf w\in\mathbb R^3u,v,w∈R3 and a scalar c∈Rc\in\mathbb Rc∈R,

u×(v+w)=u×v+u×w,(u+v)×w=u×w+v×w,(cv)×w=c(v×w)=v×(cw),v×w=−(w×v).\begin{aligned} \mathbf u\times(\mathbf v+\mathbf w) &=\mathbf u\times\mathbf v+\mathbf u\times\mathbf w,\\ (\mathbf u+\mathbf v)\times\mathbf w &=\mathbf u\times\mathbf w+\mathbf v\times\mathbf w,\\ (c\mathbf v)\times\mathbf w &=c(\mathbf v\times\mathbf w) =\mathbf v\times(c\mathbf w),\\ \mathbf v\times\mathbf w &=-(\mathbf w\times\mathbf v). \end{aligned} u×(v+w)(u+v)×w(cv)×wv×w​=u×v+u×w,=u×w+v×w,=c(v×w)=v×(cw),=−(w×v).​

The last line is anticommutativity: switching the order reverses the vector instead of leaving it unchanged. In particular, v×v=0\mathbf v\times\mathbf v=\mathbf0v×v=0.

The cross product is orthogonal to both inputs:

v⋅(v×w)=0,w⋅(v×w)=0.\mathbf v\cdot(\mathbf v\times\mathbf w)=0, \qquad \mathbf w\cdot(\mathbf v\times\mathbf w)=0. v⋅(v×w)=0,w⋅(v×w)=0.

If θ∈[0,π]\theta\in[0,\pi]θ∈[0,π] is the angle between two nonzero vectors, its magnitude is

∥v×w∥=∥v∥ ∥w∥sin⁡θ.\boxed{ \lVert\mathbf v\times\mathbf w\rVert =\lVert\mathbf v\rVert\,\lVert\mathbf w\rVert\sin\theta. } ∥v×w∥=∥v∥∥w∥sinθ.​

This is the area of the parallelogram with sides v\mathbf vv and w\mathbf ww: ∥v∥\lVert\mathbf v\rVert∥v∥ is the base and ∥w∥sin⁡θ\lVert\mathbf w\rVert\sin\theta∥w∥sinθ is the perpendicular height.

For two nonzero vectors,

v×w=0⟺v∥w.\mathbf v\times\mathbf w=\mathbf0 \quad\Longleftrightarrow\quad \mathbf v\parallel\mathbf w. v×w=0⟺v∥w.

Here parallel includes vectors that point in opposite directions. If either input is the zero vector, the cross product is also 0\mathbf00, but there is no angle or direction to compare.

Lines in space

A line needs a point and a nonzero direction vector. Let

P=(x0,y0,z0),p=⟨x0,y0,z0⟩,P=(x_0,y_0,z_0), \qquad \mathbf p=\langle x_0,y_0,z_0\rangle, P=(x0​,y0​,z0​),p=⟨x0​,y0​,z0​⟩,

and let v=⟨a,b,c⟩≠0\mathbf v=\langle a,b,c\rangle\ne\mathbf0v=⟨a,b,c⟩=0. The line through PPP in the direction of v\mathbf vv is

ℓ(t)=p+tv,t∈R.\boxed{ \boldsymbol\ell(t)=\mathbf p+t\mathbf v, \qquad t\in\mathbb R. } ℓ(t)=p+tv,t∈R.​

Writing the same equation one component at a time gives the parametric equations

x(t)=x0+at,y(t)=y0+bt,z(t)=z0+ct,t∈R.\boxed{ \begin{aligned} x(t)&=x_0+at,\\ y(t)&=y_0+bt,\\ z(t)&=z_0+ct, \end{aligned} \qquad t\in\mathbb R. } x(t)y(t)z(t)​=x0​+at,=y0​+bt,=z0​+ct,​t∈R.​

The same value of ttt belongs in all three coordinates. At t=0t=0t=0 the line passes through PPP; changing ttt adds a scalar multiple of one fixed direction vector.

Parallel or coincident lines

Suppose

ℓ1(s)=p1+sv1,ℓ2(t)=p2+tv2,\boldsymbol\ell_1(s)=\mathbf p_1+s\mathbf v_1, \qquad \boldsymbol\ell_2(t)=\mathbf p_2+t\mathbf v_2, ℓ1​(s)=p1​+sv1​,ℓ2​(t)=p2​+tv2​,

where both direction vectors are nonzero. If v2=cv1\mathbf v_2=c\mathbf v_1v2​=cv1​ for some c≠0c\ne0c=0, the lines have parallel directions. That still leaves two possibilities:

  • If p2−p1\mathbf p_2-\mathbf p_1p2​−p1​ is also a scalar multiple of v1\mathbf v_1v1​, then the second base point lies on the first line, so the lines are coincident: they are two descriptions of the same line.
  • Otherwise, they are distinct parallel lines.

If the direction vectors are not scalar multiples, the lines are not parallel. In three dimensions they may intersect, or they may be skew, meaning they neither intersect nor run parallel.

Planes in space

A plane through P=(x0,y0,z0)P=(x_0,y_0,z_0)P=(x0​,y0​,z0​) is determined by a nonzero normal vector n=⟨a,b,c⟩\mathbf n=\langle a,b,c\ranglen=⟨a,b,c⟩. For a variable point R=(x,y,z)R=(x,y,z)R=(x,y,z), write

p=⟨x0,y0,z0⟩,r=⟨x,y,z⟩.\mathbf p=\langle x_0,y_0,z_0\rangle, \qquad \mathbf r=\langle x,y,z\rangle. p=⟨x0​,y0​,z0​⟩,r=⟨x,y,z⟩.

The displacement r−p\mathbf r-\mathbf pr−p lies in the plane, so it must be perpendicular to the normal. This gives the point-normal equation

n⋅(r−p)=0.\boxed{ \mathbf n\cdot(\mathbf r-\mathbf p)=0. } n⋅(r−p)=0.​

In coordinates,

a(x−x0)+b(y−y0)+c(z−z0)=0.\boxed{ a(x-x_0)+b(y-y_0)+c(z-z_0)=0. } a(x−x0​)+b(y−y0​)+c(z−z0​)=0.​

Expanding gives another common form:

ax+by+cz=d,d=ax0+by0+cz0.\boxed{ax+by+cz=d}, \qquad d=ax_0+by_0+cz_0. ax+by+cz=d​,d=ax0​+by0​+cz0​.

The coefficients tell you a normal vector immediately: the plane ax+by+cz=dax+by+cz=dax+by+cz=d has normal vector ⟨a,b,c⟩\langle a,b,c\rangle⟨a,b,c⟩. Requiring this vector to be nonzero prevents the equation from collapsing to either every point or no points.

Example: the plane through three points

Three noncollinear points determine one plane. Let

P=(1,3,2),Q=(3,−1,6),R=(5,2,0).P=(1,3,2), \qquad Q=(3,-1,6), \qquad R=(5,2,0). P=(1,3,2),Q=(3,−1,6),R=(5,2,0).

First form two vectors that lie in the plane. Subtract the common starting point PPP:

PQ→=⟨2,−4,4⟩,PR→=⟨4,−1,−2⟩.\overrightarrow{PQ}=\langle2,-4,4\rangle, \qquad \overrightarrow{PR}=\langle4,-1,-2\rangle. PQ​=⟨2,−4,4⟩,PR=⟨4,−1,−2⟩.

Because the points are noncollinear, these vectors are not parallel, so their cross product is a nonzero normal vector:

n=PQ→×PR→=⟨(−4)(−2)−4(−1),4(4)−2(−2),2(−1)−(−4)(4)⟩=⟨12,20,14⟩.\begin{aligned} \mathbf n &=\overrightarrow{PQ}\times\overrightarrow{PR}\\ &=\left\langle (-4)(-2)-4(-1), 4(4)-2(-2), 2(-1)-(-4)(4) \right\rangle\\ &=\langle12,20,14\rangle. \end{aligned} n​=PQ​×PR=⟨(−4)(−2)−4(−1),4(4)−2(−2),2(−1)−(−4)(4)⟩=⟨12,20,14⟩.​

Use PPP as the known point in the point-normal equation:

12(x−1)+20(y−3)+14(z−2)=0.12(x-1)+20(y-3)+14(z-2)=0. 12(x−1)+20(y−3)+14(z−2)=0.

All coefficients share a factor of 222, so divide by 222 and expand:

6x+10y+7z=50.\boxed{6x+10y+7z=50}. 6x+10y+7z=50​.

As a check, each original point makes the left side equal 505050:

P:6+30+14=50,Q:18−10+42=50,R:30+20+0=50.\begin{aligned} P:&\quad 6+30+14=50,\\ Q:&\quad 18-10+42=50,\\ R:&\quad 30+20+0=50. \end{aligned} P:Q:R:​6+30+14=50,18−10+42=50,30+20+0=50.​

Source: https://notes.ohevan.com/notes/intermediate-calculus/04-vectors-and-geometry

© 2026 Evan Luo. All rights reserved.

Back to Intermediate Calculus

0 reads

·Last edited Sep 21, 2026
  • newsletter

  • about me

  • sponsor

© 2026 Evan Luo. All rights reserved.