Tutorials › Calculus III › Splitting Vectors Into Parallel and Perpendicular Parts

Dot Products and Projections · Tutorial 62 of 999

Splitting Vectors Into Parallel and Perpendicular Parts

Use projection to split a vector into its component along a chosen direction and the perpendicular remainder.

Beginner 9 min read

What You'll Learn

  • Find the parallel component of a vector along any specified nonzero direction.
  • Compute the perpendicular component by subtracting the parallel component.
  • Verify a decomposition by checking its sum and dot product.
  • Explain why the perpendicular remainder is orthogonal to the chosen direction.
  • Prove that the parallel-perpendicular decomposition is unique.
  • Recognize and correct a common denominator error in projection calculations.

Why Split a Vector?

A vector can combine motion or displacement in several directions. If one direction is singled out, it is often useful to separate the part of the vector that runs along that direction from the part that points across it. The first part is parallel to the chosen direction; the second is perpendicular to it.

This separation is useful because the two components answer different questions. The parallel component records how much of the vector lies along the chosen direction, including whether it points with or against that direction. The perpendicular component records what remains after that parallel contribution is removed.

In this tutorial, the chosen direction is represented by a nonzero vector \(\mathbf{u}\), and the vector being split is \(\mathbf{v}\). The decomposition works in two or three dimensions, and the same formulas apply in any Euclidean coordinate space.

The Parallel and Perpendicular Components

For vectors \(\mathbf{a}\) and \(\mathbf{b}\), the dot product is computed by multiplying corresponding components and adding the results. The squared length of a vector is its dot product with itself. A vector is perpendicular to a nonzero vector exactly when their dot product is zero.

Assume \(\mathbf{u}\ne\mathbf{0}\). Then \(\mathbf{u}\cdot\mathbf{u}>0\), so the denominator in the following formula is nonzero. The projection of \(\mathbf{v}\) onto \(\mathbf{u}\) is its parallel component.

Definition: The parallel component of \(\mathbf{v}\) in the direction of nonzero \(\mathbf{u}\) is \(\mathbf{v}_{\parallel}=\dfrac{\mathbf{v}\cdot\mathbf{u}}{\mathbf{u}\cdot\mathbf{u}}\mathbf{u}\). The perpendicular component is the remainder \(\mathbf{v}_{\perp}=\mathbf{v}-\mathbf{v}_{\parallel}\). Thus \(\mathbf{v}=\mathbf{v}_{\parallel}+\mathbf{v}_{\perp}\).

The coefficient multiplying \(\mathbf{u}\) is a scalar. It tells us how far to scale \(\mathbf{u}\) to obtain the parallel component. A positive coefficient gives a component pointing in the same direction as \(\mathbf{u}\); a negative coefficient gives one pointing in the opposite direction. A zero coefficient means the original vector is already perpendicular to \(\mathbf{u}\).

The formula does not require \(\mathbf{u}\) to have length one. In fact, its denominator is \(\mathbf{u}\cdot\mathbf{u}\), not the length of \(\mathbf{u}\). This makes the decomposition independent of which nonzero scale is used to represent the chosen direction.

Why the Remainder Is Perpendicular

The key fact is that subtracting the parallel component leaves a vector whose dot product with \(\mathbf{u}\) is zero. This follows directly from the definition and the linearity of the dot product.

$$ \begin{aligned} \mathbf{v}_{\perp}\cdot\mathbf{u} &=(\mathbf{v}-\mathbf{v}_{\parallel})\cdot\mathbf{u}\\ &=\mathbf{v}\cdot\mathbf{u} -\left(\frac{\mathbf{v}\cdot\mathbf{u}}{\mathbf{u}\cdot\mathbf{u}}\mathbf{u}\right)\cdot\mathbf{u}\\ &=\mathbf{v}\cdot\mathbf{u} -\frac{\mathbf{v}\cdot\mathbf{u}}{\mathbf{u}\cdot\mathbf{u}} (\mathbf{u}\cdot\mathbf{u})\\ &=0. \end{aligned} $$

Because \(\mathbf{u}\ne\mathbf{0}\), a zero dot product means that \(\mathbf{v}_{\perp}\) is perpendicular to \(\mathbf{u}\). Also, \(\mathbf{v}_{\parallel}\) is a scalar multiple of \(\mathbf{u}\), so it is parallel to \(\mathbf{u}\) (or is the zero vector). Together with \(\mathbf{v}=\mathbf{v}_{\parallel}+\mathbf{v}_{\perp}\), these facts establish that the formula really does split \(\mathbf{v}\) into the required parts.

Worked Examples

Worked Example: A Decomposition with Integer Components

Decompose \(\mathbf{v}=\langle 3,1,2\rangle\) into components parallel and perpendicular to \(\mathbf{u}=\langle 1,1,0\rangle\).

First calculate the dot products:

$$ \mathbf{v}\cdot\mathbf{u} =(3)(1)+(1)(1)+(2)(0)=4, \qquad \mathbf{u}\cdot\mathbf{u} =(1)^2+(1)^2+(0)^2=2. $$

The coefficient of \(\mathbf{u}\) is \(4/2=2\). Therefore the parallel component is

$$ \mathbf{v}_{\parallel} =2\langle 1,1,0\rangle =\langle 2,2,0\rangle. $$

Subtract it from the original vector to find the perpendicular component:

$$ \mathbf{v}_{\perp} =\langle 3,1,2\rangle-\langle 2,2,0\rangle =\langle 1,-1,2\rangle. $$

Check that the components add to the original vector and that the remainder is perpendicular:

$$ \langle 2,2,0\rangle+\langle 1,-1,2\rangle =\langle 3,1,2\rangle, \qquad \langle 1,-1,2\rangle\cdot\langle 1,1,0\rangle =1-1+0=0. $$

Both checks hold, so the decomposition is correct.

Worked Example: A Negative Parallel Coefficient

Decompose \(\mathbf{v}=\langle 2,-3,3\rangle\) into components parallel and perpendicular to \(\mathbf{u}=\langle 1,1,0\rangle\). The calculation will also show how a negative coefficient affects the direction.

Calculate the numerator and denominator in the projection coefficient:

$$ \mathbf{v}\cdot\mathbf{u} =(2)(1)+(-3)(1)+(3)(0)=-1, \qquad \mathbf{u}\cdot\mathbf{u} =1^2+1^2+0^2=2. $$

The coefficient is \(-1/2\), so the parallel component points opposite to \(\mathbf{u}\):

$$ \mathbf{v}_{\parallel} =-\frac12\langle 1,1,0\rangle =\left\langle-\frac12,-\frac12,0\right\rangle. $$

Subtract this component from \(\mathbf{v}\):

$$ \begin{aligned} \mathbf{v}_{\perp} &=\langle 2,-3,3\rangle -\left\langle-\frac12,-\frac12,0\right\rangle\\ &=\left\langle 2+\frac12,-3+\frac12,3\right\rangle\\ &=\left\langle\frac52,-\frac52,3\right\rangle. \end{aligned} $$

Check the sum and perpendicularity:

$$ \left\langle-\frac12,-\frac12,0\right\rangle +\left\langle\frac52,-\frac52,3\right\rangle =\langle 2,-3,3\rangle, \qquad \left\langle\frac52,-\frac52,3\right\rangle \cdot\langle 1,1,0\rangle =\frac52-\frac52+0=0. $$

The negative coefficient is consistent with the negative dot product: the parallel contribution points against the chosen direction. The checks confirm both components.

Worked Example: A Non-Unit Direction and Fractional Components

Decompose \(\mathbf{v}=\langle 1,2,1\rangle\) relative to the non-unit direction \(\mathbf{u}=\langle 2,1,2\rangle\).

Compute the required dot products without assuming \(\mathbf{u}\) is a unit vector:

$$ \mathbf{v}\cdot\mathbf{u} =(1)(2)+(2)(1)+(1)(2)=6, \qquad \mathbf{u}\cdot\mathbf{u} =2^2+1^2+2^2=9. $$

The projection coefficient is \(6/9=2/3\). Thus

$$ \begin{aligned} \mathbf{v}_{\parallel} &=\frac23\langle 2,1,2\rangle\\ &=\left\langle\frac43,\frac23,\frac43\right\rangle. \end{aligned} $$

Subtract coordinate by coordinate to obtain the perpendicular component:

$$ \begin{aligned} \mathbf{v}_{\perp} &=\langle 1,2,1\rangle -\left\langle\frac43,\frac23,\frac43\right\rangle\\ &=\left\langle-\frac13,\frac43,-\frac13\right\rangle. \end{aligned} $$

Verify that the sum recovers \(\mathbf{v}\) and that the remainder has zero dot product with \(\mathbf{u}\):

$$ \left\langle\frac43,\frac23,\frac43\right\rangle +\left\langle-\frac13,\frac43,-\frac13\right\rangle =\langle 1,2,1\rangle, \qquad \left\langle-\frac13,\frac43,-\frac13\right\rangle \cdot\langle 2,1,2\rangle =-\frac23+\frac43-\frac23=0. $$

The vector \(\mathbf{u}\) has squared length \(9\), not \(1\), and using that correct denominator gives the stated decomposition.

The Decomposition Is Unique

The formula produces a valid split, but it is also the only possible split with a parallel part in the direction of \(\mathbf{u}\) and a perpendicular remainder. This matters: the component vectors are determined by \(\mathbf{v}\) and the chosen direction, not by an arbitrary choice in the calculation.

Theorem: If \(\mathbf{u}\ne\mathbf{0}\), there is exactly one way to write \(\mathbf{v}=\mathbf{p}+\mathbf{q}\) where \(\mathbf{p}\) is a scalar multiple of \(\mathbf{u}\) and \(\mathbf{q}\cdot\mathbf{u}=0\). It is given by \(\mathbf{p}=\dfrac{\mathbf{v}\cdot\mathbf{u}}{\mathbf{u}\cdot\mathbf{u}}\mathbf{u}\) and \(\mathbf{q}=\mathbf{v}-\mathbf{p}\).

To prove uniqueness, suppose \(\mathbf{v}=a\mathbf{u}+\mathbf{w}\), where \(a\) is a scalar and \(\mathbf{w}\cdot\mathbf{u}=0\). Take the dot product of both sides with \(\mathbf{u}\). Since \(\mathbf{w}\cdot\mathbf{u}=0\), this gives

$$ \mathbf{v}\cdot\mathbf{u} =(a\mathbf{u}+\mathbf{w})\cdot\mathbf{u} =a(\mathbf{u}\cdot\mathbf{u})+\mathbf{w}\cdot\mathbf{u} =a(\mathbf{u}\cdot\mathbf{u}). $$

Because \(\mathbf{u}\ne\mathbf{0}\), its squared length \(\mathbf{u}\cdot\mathbf{u}\) is positive. We can divide by it and obtain \(a=\dfrac{\mathbf{v}\cdot\mathbf{u}}{\mathbf{u}\cdot\mathbf{u}}\). Thus the parallel part must be \(a\mathbf{u}=\mathbf{v}_{\parallel}\). The equation \(\mathbf{v}=\mathbf{p}+\mathbf{q}\) then forces \(\mathbf{q}=\mathbf{v}-\mathbf{p}=\mathbf{v}_{\perp}\). No other pair can meet the conditions, completing the proof.

Special Cases and a Common Error

If \(\mathbf{v}\cdot\mathbf{u}=0\), the projection formula gives \(\mathbf{v}_{\parallel}=\mathbf{0}\), and the entire vector is perpendicular to the chosen direction. If \(\mathbf{v}\) is itself a scalar multiple of \(\mathbf{u}\), subtracting its projection leaves \(\mathbf{v}_{\perp}=\mathbf{0}\). These are useful checks, but the general formulas work in both cases as well.

A common mistake is to use the length of \(\mathbf{u}\) as the denominator in the vector projection formula. For example, with \(\mathbf{v}=\langle 3,1,2\rangle\) and \(\mathbf{u}=\langle 1,1,0\rangle\), the dot product is \(4\) and the length of \(\mathbf{u}\) is \(\sqrt{2}\). Using \(4/\sqrt{2}=2\sqrt{2}\) as the coefficient would give the supposed parallel part \(\langle 2\sqrt{2},2\sqrt{2},0\rangle\). The resulting remainder is not perpendicular, since

$$ \bigl(\langle 3,1,2\rangle-\langle 2\sqrt{2},2\sqrt{2},0\rangle\bigr) \cdot\langle 1,1,0\rangle =4-4\sqrt{2}\ne0. $$

The correction is to divide by \(\mathbf{u}\cdot\mathbf{u}=2\), the squared length, not by \(\|\mathbf{u}\|=\sqrt{2}\). The correct coefficient is \(4/2=2\), giving parallel component \(\langle 2,2,0\rangle\) and perpendicular remainder \(\langle 1,-1,2\rangle\), whose dot product with \(\mathbf{u}\) is zero.

How to Organize a Decomposition

For a reliable calculation, keep the two components distinct and verify their defining properties. The following sequence applies whenever the specified direction vector is nonzero.

1
Check the direction.
Confirm that \(\mathbf{u}\ne\mathbf{0}\), so \(\mathbf{u}\cdot\mathbf{u}\) is nonzero.
2
Find the parallel coefficient.
Calculate \((\mathbf{v}\cdot\mathbf{u})/(\mathbf{u}\cdot\mathbf{u})\).
3
Scale the direction vector.
Multiply \(\mathbf{u}\) by that coefficient to obtain \(\mathbf{v}_{\parallel}\).
4
Subtract to find the remainder.
Set \(\mathbf{v}_{\perp}=\mathbf{v}-\mathbf{v}_{\parallel}\).
5
Verify both conditions.
Check that the components add to \(\mathbf{v}\) and that \(\mathbf{v}_{\perp}\cdot\mathbf{u}=0\).

Why the Split Matters

The decomposition isolates the contribution of a vector along a selected direction without discarding the rest of the vector. This is valuable in geometry and in later applications where a direction has a particular role. The dot product determines the signed amount along that direction; subtraction preserves the remainder, and the zero dot product confirms that this remainder is perpendicular.

It is important not to confuse the parallel component with the whole vector, or the coefficient with the parallel vector itself. The coefficient is a number, while the parallel component is that number times \(\mathbf{u}\). A complete answer to a decomposition problem gives both vector components and shows that their sum and perpendicularity condition are satisfied.

Check Your Understanding

For each question, use the definitions and conditions in the tutorial. Verify component calculations rather than relying only on the projection formula.

  1. For \(\mathbf{v}=\langle 4,2,1\rangle\) and \(\mathbf{u}=\langle 1,1,0\rangle\), find both components and check their sum and dot product.
  2. What does a negative value of \(\dfrac{\mathbf{v}\cdot\mathbf{u}}{\mathbf{u}\cdot\mathbf{u}}\) tell you about the parallel component?
  3. Why must \(\mathbf{u}\) be nonzero for the decomposition formula to apply?
  4. Show that if \(\mathbf{v}\cdot\mathbf{u}=0\), then the parallel component is the zero vector.
  5. In one or two sentences, explain why the parallel-perpendicular decomposition is unique.