# 6.4 — Dot-product identities and decomposition

Source: https://cca.twango.dev/Precalculus-Honors/homework/chapter-6/6.4-2

# 6.4 — Dot-product identities and decomposition

Continuation of [[6.4-1]]. Student work by James Ding.

## 29 — Orthogonal-basis decomposition

$v=2\mathbf i-3\mathbf j$, $a=4\mathbf i+\mathbf j$, $b=\mathbf i-4\mathbf j$. The page checks $a\cdot b=0$.

$$a\cdot v=4(2)+1(-3)=5,\qquad a\cdot a=17,$$
$$b\cdot v=1(2)+(-4)(-3)=14,\qquad b\cdot b=17.$$

$$\boxed{v=\frac5{17}a+\frac{14}{17}b}.$$

## 31 — Commutativity

Let $a=a_1\mathbf i+a_2\mathbf j$ and $b=b_1\mathbf i+b_2\mathbf j$.

$$a\cdot b=a_1b_1+a_2b_2=b_1a_1+b_2a_2=b\cdot a.$$

The handwritten intermediate line has $b_2a_1$ once; the final reordered equality uses the correct second components.

## 33 — Scaling both inputs

$$ra=ra_1\mathbf i+ra_2\mathbf j,\qquad sb=sb_1\mathbf i+sb_2\mathbf j.$$

$$
(ra)\cdot(sb)=(ra_1)(sb_1)+(ra_2)(sb_2)
=rs(a_1b_1+a_2b_2)
=(rs)(a\cdot b).
$$

## 35 — Difference of squared magnitudes

$$a+b=(a_1+b_1)\mathbf i+(a_2+b_2)\mathbf j,$$
$$a-b=(a_1-b_1)\mathbf i+(a_2-b_2)\mathbf j.$$

Then

$$
(a+b)\cdot(a-b)
=(a_1+b_1)(a_1-b_1)+(a_2+b_2)(a_2-b_2)
$$
$$
=a_1^2-b_1^2+a_2^2-b_2^2
=(a_1^2+a_2^2)-(b_1^2+b_2^2)
=a\cdot a-b\cdot b.
$$

## 37 — Squared magnitude of a sum

$$|a+b|^2=(a_1+b_1)^2+(a_2+b_2)^2,$$
$$|a|^2=a_1^2+a_2^2,\qquad |b|^2=b_1^2+b_2^2.$$

Expanding the first expression gives

$$
a_1^2+2a_1b_1+b_1^2+a_2^2+2a_2b_2+b_2^2
=|a|^2+2(a\cdot b)+|b|^2.
$$

## 39 — Perpendicular diagonals imply equal magnitudes

Starting with the written condition $(a+b)\cdot(a-b)=0$,

$$a_1^2-b_1^2+a_2^2-b_2^2=0,$$

so

$$a_1^2+a_2^2=b_1^2+b_2^2.$$

Taking nonnegative square roots gives $\boxed{|a|=|b|}$.
