Tutorials › Calculus III › Orthogonality as a Dot Product Criterion

Dot Products and Projections · Tutorial 56 of 999

Orthogonality as a Dot Product Criterion

Use the dot product to decide whether two nonzero vectors meet at a right angle, and understand why the zero vector requires separate care.

Beginner 8 min read

What You'll Learn

  • State the dot product criterion for perpendicular nonzero vectors
  • Explain why a zero dot product corresponds to a right angle
  • Test orthogonality by calculating component products and their sum
  • Solve for an unknown component that makes two vectors perpendicular
  • Recognize why the zero vector is excluded from the criterion
  • Avoid common sign and component-matching errors

Why a Dot Product Can Detect Perpendicularity

Perpendicularity is a geometric relationship: two nonzero vectors are perpendicular when the angle between their directions is a right angle. The dot product gives a direct way to test for that relationship using components, without first finding the angle itself.

This is useful because an angle calculation may require an inverse cosine, while an orthogonality test can often be completed with a few multiplications and an addition. The key is to use the criterion with its condition stated correctly: both vectors must be nonzero.

Definitions and the Criterion

For vectors \(\mathbf{u}=(u_1,u_2,u_3)\) and \(\mathbf{v}=(v_1,v_2,v_3)\), their dot product is the scalar

$$ \mathbf{u}\cdot\mathbf{v}=u_1v_1+u_2v_2+u_3v_3. $$

The angle between two nonzero vectors is the angle \(\theta\) in the interval from \(0\) to \(\pi\) determined by their directions. Two nonzero vectors are orthogonal, or perpendicular, when this angle is \(\frac{\pi}{2}\).

Theorem: If \(\mathbf{u}\) and \(\mathbf{v}\) are nonzero vectors, then they are perpendicular if and only if \(\mathbf{u}\cdot\mathbf{v}=0\).

“If and only if” means that each condition implies the other. For nonzero vectors, a zero dot product guarantees perpendicularity; conversely, perpendicular vectors have dot product zero.

Why the Criterion Works

The angle formula for nonzero vectors relates the dot product to the angle between them. In that formula, \(\|\mathbf{u}\|\) and \(\|\mathbf{v}\|\) are the magnitudes of the vectors. Both magnitudes are positive because neither vector is zero.

$$ \mathbf{u}\cdot\mathbf{v} = \|\mathbf{u}\|\,\|\mathbf{v}\|\cos\theta. $$

This identity gives a short proof of the theorem. If the vectors are perpendicular, then \(\theta=\frac{\pi}{2}\), and \(\cos(\frac{\pi}{2})=0\). Therefore their dot product is zero. In the other direction, suppose their dot product is zero. Since both magnitudes are positive, their product is positive, so the angle formula implies \(\cos\theta=0\). The only angle in the interval from \(0\) to \(\pi\) whose cosine is zero is \(\frac{\pi}{2}\). Thus the vectors are perpendicular. This proves both directions.

The nonzero condition matters in the proof: it lets us define the angle and ensures that the product of the magnitudes is not zero. The zero vector has dot product zero with every vector, but it has no direction and therefore no angle with another vector under this definition.

Practical takeaway: To test whether two nonzero vectors are perpendicular, calculate the dot product from their corresponding components. A result of zero means they are perpendicular; any nonzero result means they are not.

Testing Orthogonality from Components

For a component calculation, multiply the first component of one vector by the first component of the other, then do the same for the second and third components. Add those three products, keeping negative signs throughout. First make sure each vector is nonzero; then apply the theorem to the resulting scalar.

Worked Example: Testing Two Vectors with Negative Components

Determine whether \(\mathbf{u}=(2,-1,3)\) and \(\mathbf{v}=(1,5,1)\) are perpendicular.

Both vectors are nonzero: \(\mathbf{u}\) has first component \(2\ne0\), and \(\mathbf{v}\) has first component \(1\ne0\). Calculate the dot product by matching components:

$$ \begin{aligned} \mathbf{u}\cdot\mathbf{v} &=(2)(1)+(-1)(5)+(3)(1)\\ &=2-5+3\\ &=-3+3\\ &=0. \end{aligned} $$

Since the vectors are nonzero and their dot product is zero, the theorem shows that they are perpendicular. The negative second component contributes \(-5\); retaining that sign is essential to the cancellation.

Check: The three component products are \(2\), \(-5\), and \(3\), whose sum is \(2+(-5)+3=0\). The criterion therefore applies exactly as stated.

Worked Example: Recognizing When the Dot Product Is Not Zero

Determine whether \(\mathbf{a}=(1,2,-2)\) and \(\mathbf{b}=(3,-1,4)\) are perpendicular.

Both vectors are nonzero. Their dot product is

$$ \begin{aligned} \mathbf{a}\cdot\mathbf{b} &=(1)(3)+(2)(-1)+(-2)(4)\\ &=3-2-8\\ &=1-8\\ &=-7. \end{aligned} $$

The result is \(-7\), not zero, so the vectors are not perpendicular. A negative dot product is not itself the test for perpendicularity; the decisive condition is equality to zero.

Check: Reversing the order gives \(\mathbf{b}\cdot\mathbf{a}=(3)(1)+(-1)(2)+(4)(-2)=3-2-8=-7\), consistent with the symmetry of the dot product. It remains nonzero, so the conclusion is unchanged.

Finding a Component That Makes Vectors Perpendicular

The criterion also turns a geometric condition into an equation. If one component is unknown, write the dot product in terms of that component and set the expression equal to zero. This is valid because the theorem says that a zero dot product is equivalent to perpendicularity when the vectors involved are nonzero.

Worked Example: Solving for an Unknown Component

Find \(k\) so that \(\mathbf{p}=(k,2,-1)\) and \(\mathbf{q}=(3,-1,4)\) are perpendicular.

The vector \(\mathbf{q}\) is nonzero. For the value \(k\) we find, we must also verify that \(\mathbf{p}\) is nonzero. First impose the zero-dot-product condition:

$$ \begin{aligned} \mathbf{p}\cdot\mathbf{q} &=(k)(3)+(2)(-1)+(-1)(4)\\ &=3k-2-4\\ &=3k-6. \end{aligned} $$

Set this expression equal to zero and solve:

$$ \begin{aligned} 3k-6&=0,\\ 3k&=6,\\ k&=2. \end{aligned} $$

At \(k=2\), \(\mathbf{p}=(2,2,-1)\), which is nonzero. Substitute the value into the dot product to check the result:

$$ \begin{aligned} (2,2,-1)\cdot(3,-1,4) &=(2)(3)+(2)(-1)+(-1)(4)\\ &=6-2-4\\ &=0. \end{aligned} $$

Both vectors are nonzero and the checked dot product is zero. Therefore \(k=2\) makes the vectors perpendicular.

A Common Mistake: Losing a Negative Sign

It is easy to get a wrong answer by treating every component product as positive. For example, with \(\mathbf{u}=(2,-1,3)\) and \(\mathbf{v}=(1,5,1)\), an incorrect calculation might replace \((-1)(5)\) by \(+5\) and conclude

$$ 2+5+3=10, $$

then say the vectors are not perpendicular. The error is that multiplying a negative number by a positive number gives a negative product. The correct calculation is

$$ (2)(1)+(-1)(5)+(3)(1)=2-5+3=0. $$

Thus the vectors are perpendicular. A reliable habit is to write each component product with its signs before adding. Also check that components are paired by position: first with first, second with second, and third with third.

Why This Criterion Matters

The dot product criterion connects a geometric idea to an arithmetic test. It lets you determine orthogonality using components without calculating magnitudes, finding an inverse cosine, or estimating an angle. It is also useful when the goal is to choose or solve for a component that makes two directions perpendicular.

Keep the logical order clear. The theorem applies to two nonzero vectors. First calculate the dot product accurately; then interpret the result. A zero value is exactly the desired condition. A nonzero value, positive or negative, rules out perpendicularity. If one of the vectors is zero, the dot product is automatically zero, but that fact alone does not make it a perpendicular direction.

Check Your Understanding

Use the dot product criterion, and state whether the vectors in each test are nonzero.

  1. Are \((1,2,1)\) and \((2,-1,0)\) perpendicular? Show the component products.
  2. Are \((3,0,-1)\) and \((1,2,2)\) perpendicular? Explain what the dot product tells you.
  3. Find \(k\) so that \((k,1,2)\) and \((2,-4,1)\) are perpendicular, and verify your value.
  4. Why does a zero dot product not establish perpendicularity if one of the vectors is the zero vector?
  5. What sign error could change the outcome of a dot product calculation, and how can you guard against it?