# Dot Product and Angles

Mathematics I · Matrices and Vectors · https://tryals.app/learn/mathematics-i/dot-product-and-angles

## The Dot Product & Geometry

The **dot product** combines two vectors into a single **number**, answering how aligned they are. For $u = (u_1, u_2)$ and $v = (v_1, v_2)$:

$$u \cdot v = u_1 v_1 + u_2 v_2$$

It connects algebra to geometry via the identity $u \cdot v = \|u\|\|v\|\cos\theta$, where $\theta$ is the angle between them. Rearranging this gives the **angle** formula:

$$\cos\theta = \frac{u \cdot v}{\|u\|\|v\|}$$

The dot product also recovers length: $u \cdot u = \|u\|^2$. It enables **projection**, measuring how far one vector extends along another via $\frac{u \cdot v}{\|v\|}$.

| Angle Type | Dot Product Sign | Geometric Meaning |
| --- | --- | --- |
| **Acute** ($\theta < 90^\circ$) | **Positive** | Vectors broadly agree |
| **Right** ($\theta = 90^\circ$) | **Zero** | **Orthogonal** (perpendicular) |
| **Obtuse** ($\theta > 90^\circ$) | **Negative** | Vectors broadly oppose |

## Tests, Inequalities, & Pitfalls

The **orthogonality test** is a workhorse: two nonzero vectors are perpendicular **exactly when** their dot product is zero, requiring no trigonometry.

The operation is also bound by the **Cauchy–Schwarz inequality**, stating $|u \cdot v| \le \|u\|\|v\|$. This fundamental rule guarantees that $\cos\theta$ never exceeds $1$ in magnitude.

**Common Pitfalls to Avoid:**

* **Wrong output type:** The dot product yields a **scalar**, never a vector.
* **Zero confusion:** **Orthogonal** means $u \cdot v = 0$. A positive or negative result always indicates an acute or obtuse angle, never a right angle.

Wherever you need to measure alignment, projection, or perpendicularity, the dot product is the universal tool.

## Practice questions

3 of this lesson's 9 practice questions, with answers. The full set is in the app.

### 1. Let u = (1, 2, -2). Select every vector below that is orthogonal to u.

A. (3, 0, 2)
B. (2, 0, 1)
C. (1, 1, 1)
D. (2, -1, 0)
E. (0, 1, 1)

**Answer:** B. (2, 0, 1); D. (2, -1, 0); E. (0, 1, 1)

**Why:** (2, 0, 1) gives 2 + 0 - 2 = 0; (2, -1, 0) gives 2 - 2 + 0 = 0; (0, 1, 1) gives 0 + 2 - 2 = 0. The other two give 1 and -1, so their angles with u are merely near a right angle, not equal to one. In space a whole plane of vectors is orthogonal to u, so several answers being correct is expected.

Page: https://tryals.app/practice/mathematics-i/dot-product-and-angles/let-u-1-2-2-select-every-vector-below-that-is-orthogonal-to-u

### 2. The dot product of two non-zero vectors is zero exactly when they are perpendicular.

**Answer:** True

**Why:** True. With both magnitudes non-zero, $\cos\theta = 0$ forces $\theta = 90°$. That equivalence is what makes the dot product the computational test for orthogonality, no angles measured, and it is the basis of projection, of least squares, and of checking a basis is orthonormal.

Page: https://tryals.app/practice/mathematics-i/dot-product-and-angles/the-dot-product-of-two-non-zero-vectors-is-zero-exactly-when-they-are

### 3. The dot product of two perpendicular vectors is zero. Why is *zero* the natural signal for a right angle rather than some other special value?

A. Because the definition was chosen so that right angles would give zero
B. Because zero is the smallest possible value the dot product can take
C. Because at 90° neither vector has any component along the other
D. Because perpendicular vectors have zero length in one coordinate

**Answer:** C. Because at 90° neither vector has any component along the other

**Why:** The dot product prices alignment, and perpendicular vectors have none, the shadow of one on the other has zero length. That is why orthogonality is such a computational gift: an inner product of zero means the two directions carry genuinely independent information, which is what makes Fourier analysis and least squares work.

Page: https://tryals.app/practice/mathematics-i/dot-product-and-angles/the-dot-product-of-two-perpendicular-vectors-is-zero-why-is-zero-the
