Linear AlgebraDot and Cross Products2 of 5
Dot and Cross Products · 2

Length, Distance and Unit Vectors

A vector gives us steps along the grid, and we want to find the straight-line length of the arrow from start to finish.

1

Finding the length of a vector

For a vector like v=[34]\main{v} = \main{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}, walking 3\main{3} steps right and 4\main{4} steps up forms the two legs of a right triangle with the vector itself as the hypotenuse. What happens when we add a third step straight up, like w=[3412]\main{w} = \main{\begin{bmatrix} 3 \\ 4 \\ 12 \end{bmatrix}}, or move to even more dimensions?

x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
v\htmlClass{lc-blue}{v}
Finding the length of a vector
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
v=[34]\htmlClass{lc-blue}{v} = \htmlClass{lc-blue}{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
∥v∥=?\htmlClass{lc-blue}{\|v\|} = {?}
Text solution
Square each coordinate and add them upIn 3D, the base diagonal 32+42\sqrt{\main{3}^2 + \main{4}^2} and the vertical step 12\main{12} form a second right triangle, and squaring the base diagonal cancels its square root so all three squared coordinates add together directly.
(32+42)2+122=32+42+122=9+16+144=169\displaystyle \begin{aligned} &\left(\sqrt{\main{3}^2 + \main{4}^2}\right)^2 + \main{12}^2 \\ &= \main{3}^2 + \main{4}^2 + \main{12}^2 \\ &= 9 + 16 + 144 \\ &= 169 \end{aligned}
Take the square root to get the lengthWe write double bars around the vector so its length doesn't look like the absolute value of a single number.
∥w∥⏟norm (length)\displaystyle \underbrace{\main{\|w\|}}_{\text{norm (length)}} =32+42+122\displaystyle = \sqrt{\main{3}^2 + \main{4}^2 + \main{12}^2} =169\displaystyle = \sqrt{169} =13\displaystyle = 13
2

Length and the dot product

Squaring coordinates works whenever we know the numbers inside the vector. What if we don't have the coordinates at all, only that ∥u∥=3\first{\|u\|} = \first{3}, ∥v∥=5\second{\|v\|} = \second{5}, and u⋅v=1\first{u} \cdot \second{v} = 1, and we want to find the length of the sum, ∥u+v∥\|\first{u} + \second{v}\|?

Length and the dot product
u\htmlClass{lc-green}{u}
v\htmlClass{lc-pink}{v}
u+v\htmlClass{lc-green}{u} + \htmlClass{lc-pink}{v}
∥u∥=3∥v∥=5u⋅v=1∥u+v∥=?\begin{aligned} \htmlClass{lc-green}{\|u\|} &= \htmlClass{lc-green}{3} \\[3pt] \htmlClass{lc-pink}{\|v\|} &= \htmlClass{lc-pink}{5} \\[3pt] \htmlClass{lc-green}{u} \cdot \htmlClass{lc-pink}{v} &= 1 \\[3pt] \|\htmlClass{lc-green}{u} + \htmlClass{lc-pink}{v}\| &= {?} \end{aligned}

Taking the dot product of any vector with itself multiplies each coordinate by itself and adds them up, which is the exact same sum of squares inside the length formula:

∥v∥\displaystyle \main{\|v\|} =v⋅vor∥v∥2\displaystyle = \sqrt{\main{v} \cdot \main{v}} \qquad \text{or} \qquad \main{\|v\|}^2 =v⋅v\displaystyle = \main{v} \cdot \main{v}
Text solution
Rewrite the squared length as a dot productSquaring the length first gets rid of the square root and turns ∥u+v∥2\|\first{u} + \second{v}\|^2 into a dot product we can expand.
∥u+v∥2\displaystyle \|\first{u} + \second{v}\|^2 =(u+v)⋅(u+v)\displaystyle = (\first{u} + \second{v}) \cdot (\first{u} + \second{v})
Expand the dot product and plug in the known lengths and dot productSince u⋅v\first{u} \cdot \second{v} and v⋅u\second{v} \cdot \first{u} are the same number, the two middle terms combine into 2(u⋅v)2(\first{u} \cdot \second{v}), while u⋅u\first{u} \cdot \first{u} and v⋅v\second{v} \cdot \second{v} become the squared lengths ∥u∥2\first{\|u\|}^2 and ∥v∥2\second{\|v\|}^2.
∥u+v∥2=u⋅u+u⋅v+v⋅u+v⋅v=∥u∥2+2(u⋅v)+∥v∥2=32+2(1)+52=9+2+25=36\displaystyle \begin{aligned} \|\first{u} + \second{v}\|^2 &= \first{u} \cdot \first{u} + \first{u} \cdot \second{v} \\ &\qquad + \second{v} \cdot \first{u} + \second{v} \cdot \second{v} \\ &= \first{\|u\|}^2 + 2(\first{u} \cdot \second{v}) + \second{\|v\|}^2 \\ &= \first{3}^2 + 2(1) + \second{5}^2 \\ &= 9 + 2 + 25 \\ &= 36 \end{aligned}
Take the square root to get the lengthThe expansion gives the squared length, so we take the square root at the end.
∥u+v∥\displaystyle \|\first{u} + \second{v}\| =36\displaystyle = \sqrt{36} =6\displaystyle = 6

So the shortcut arrow u+v\first{u} + \second{v} has a length of 66, which is shorter than 3+5=8\first{3} + \second{5} = 8 because u\first{u} and v\second{v} meet at an angle instead of pointing in the exact same direction.

Even when the lengths ∥u∥=3\first{\|u\|} = \first{3} and ∥v∥=5\second{\|v\|} = \second{5} stay fixed, the length ∥u+v∥\|\first{u} + \second{v}\| varies between 22 and 88 as the angle between the vectors changes. That's because the 2(u⋅v)2(\first{u} \cdot \second{v}) term grows when they point together and shrinks when they work against each other.

Even when two vectors keep their lengths of 3 and 5, the length of their sum stretches anywhere from 2 to 8 depending on whether they point the same way or work against each other.
3

Distance between two vectors

The distance between two vectors u\first{u} and v\second{v} is the straight-line length between their tips. Let's find the distance between u=[15]\first{u} = \first{\begin{bmatrix} 1 \\ 5 \end{bmatrix}} and v=[41]\second{v} = \second{\begin{bmatrix} 4 \\ 1 \end{bmatrix}}.

Distance between two vectors
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
u=[15]\htmlClass{lc-green}{u} = \htmlClass{lc-green}{\begin{bmatrix} 1 \\ 5 \end{bmatrix}}
v=[41]\htmlClass{lc-pink}{v} = \htmlClass{lc-pink}{\begin{bmatrix} 4 \\ 1 \end{bmatrix}}
?\htmlClass{lc-blue}{?}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
6\htmlClass{lc-mute}{6}
Text solution
Subtract the vectors to get the arrow from one tip to the otherTaking where we end up minus where we started gives the horizontal and vertical steps from the tip of u\first{u} to the tip of v\second{v}.
v−u=[41]−[15]=[4−11−5]=[3−4]\displaystyle \second{v} - \first{u} = \second{\begin{bmatrix} 4 \\ 1 \end{bmatrix}} - \first{\begin{bmatrix} 1 \\ 5 \end{bmatrix}} = \begin{bmatrix} \second{4} - \first{1} \\ \second{1} - \first{5} \end{bmatrix} = \main{\begin{bmatrix} 3 \\ -4 \end{bmatrix}}
Find the length of that difference vectorSubtracting in the reverse order (u−v=[−34]\first{u} - \second{v} = \main{\begin{bmatrix} -3 \\ 4 \end{bmatrix}}) points the arrow the other way, and the flipped signs disappear as soon as we square the coordinates.
Distance=∥v−u∥=32+(−4)2=9+16=25=5\displaystyle \begin{aligned} \text{Distance} &= \|\second{v} - \first{u}\| \\ &= \sqrt{\main{3}^2 + (\main{-4})^2} \\ &= \sqrt{9 + 16} \\ &= \sqrt{25} \\ &= 5 \end{aligned}

The distance ∥v−u∥\|\second{v} - \first{u}\| depends only on the gap between the two tips: as the tip of v\second{v} moves around a circle centered at the tip of u\first{u}, the vector v\second{v} and its length ∥v∥\second{\|v\|} change while the distance ∥v−u∥\|\second{v} - \first{u}\| stays the same.

Moving the tip of one vector in a circle around the tip of the other changes the first vector and its length, while the distance between the two tips stays the same.
4

How scaling changes length

Now suppose we multiply a vector by a scalar c\scalar{c}. If a vector u\main{u} has length ∥u∥=4\main{\|u\|} = \main{4}, what is the length of −3u\scalar{-3}\main{u}?

How scaling changes length
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
v=[34]\htmlClass{lc-blue}{v} = \htmlClass{lc-blue}{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
5\htmlClass{lc-blue}{5}
∥2v∥=?\htmlClass{lc-blue}{\|\htmlClass{lc-violet}{2}v\|} = {?}

Multiplying a vector by c\scalar{c} multiplies every coordinate by c\scalar{c}, so c2\scalar{c^2} factors out of the sum of squares and comes out of the square root as c2=∣c∣\sqrt{\scalar{c^2}} = \scalar{|c|}:

∥cv∥\displaystyle \main{\|\scalar{c}v\|} =∣c∣ ∥v∥\displaystyle = \scalar{|c|}\,\main{\|v\|}
Text solution
Take the absolute value of the scalarMultiplying by −3\scalar{-3} flips the arrow to point in the opposite direction, but a length is never negative, so it scales by ∣−3∣\scalar{|{-}3|}.
∣−3∣\displaystyle \scalar{|{-}3|} =3\displaystyle = \scalar{3}
Multiply by the original lengthWe don't need any coordinates of u\main{u} because the original length scales directly by ∣c∣\scalar{|c|}.
∥−3u∥\displaystyle \main{\|\scalar{{-}3}u\|} =∣−3∣ ∥u∥\displaystyle = \scalar{|{-}3|}\,\main{\|u\|} =3×4\displaystyle = \scalar{3} \times \main{4} =12\displaystyle = 12
5

Unit vectors and normalizing

A unit vector is a vector with a length of 11. When we only care about the direction a vector points and not how long it is, we want a unit vector pointing in the exact same direction. Let's find the unit vector in the same direction as v=[34]\main{v} = \main{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}.

Unit vectors and normalizing
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
v=[34]\htmlClass{lc-blue}{v} = \htmlClass{lc-blue}{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
5\htmlClass{lc-blue}{5}
∥v^∥=1v^=?\begin{aligned} \htmlClass{lc-blue}{\|\hat{v}\|} &= 1 \\[3pt] \htmlClass{lc-blue}{\hat{v}} &= {?} \end{aligned}

Dividing a vector by its own length shrinks or stretches it to a length of 11 in the same direction, which we call normalizing:

v^⏟unit vector\displaystyle \underbrace{\main{\hat{v}}}_{\text{unit vector}} =1∥v∥v\displaystyle = \scalar{\frac{1}{\|v\|}}\main{v}

The hat on v^\main{\hat{v}} shows that this vector has a length of 11.

Text solution
Find the length of the vectorThis tells us what number we need to divide by so the length becomes 11.
∥v∥\displaystyle \main{\|v\|} =32+42\displaystyle = \sqrt{\main{3}^2 + \main{4}^2} =9+16\displaystyle = \sqrt{9 + 16} =25\displaystyle = \sqrt{25} =5\displaystyle = 5
Divide each coordinate by the lengthMultiplying v\main{v} by 15\scalar{\frac{1}{5}} keeps the 3\main{3}-to-4\main{4} ratio between the steps while scaling the length from 55 down to 11.
v^=15[34]=[3545]\displaystyle \main{\hat{v}} = \scalar{\frac{1}{5}}\main{\begin{bmatrix} 3 \\ 4 \end{bmatrix}} = \main{\begin{bmatrix} \tfrac{3}{5} \\ \tfrac{4}{5} \end{bmatrix}}

Stretching or shrinking v\main{v} along the same line changes ∥v∥\main{\|v\|} without changing v^\main{\hat{v}}, and rotating v\main{v} moves v^\main{\hat{v}} around the unit circle at a constant length of 11.

Dividing a vector by its own length keeps its unit vector on the circle at length 1, so changing the vector's length leaves the unit vector still while turning it moves the unit vector around the circle.
6

All unit vectors parallel to a vector

Normalizing gives the single unit vector pointing in the same direction as v\main{v}. What if we want every scalar c\scalar{c} that turns v=[34]\main{v} = \main{\begin{bmatrix} 3 \\ 4 \end{bmatrix}} into a unit vector, or all unit vectors parallel to v\main{v}?

All unit vectors parallel to a vector
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
v=[34]\htmlClass{lc-blue}{v} = \htmlClass{lc-blue}{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}
5\htmlClass{lc-blue}{5}
∥cv∥=1c=?\begin{aligned} \htmlClass{lc-blue}{\|\htmlClass{lc-violet}{c}v\|} &= 1 \\[3pt] \htmlClass{lc-violet}{c} &= {?} \end{aligned}
Text solution
Set the scaled length equal to 11Using the scaling rule with ∥v∥=5\main{\|v\|} = \main{5} keeps the absolute value bars on c\scalar{c}.
∥cv∥=∣c∣ ∥v∥=1∣c∣⋅5=1∣c∣=15\displaystyle \begin{aligned} \main{\|\scalar{c}v\|} = \scalar{|c|}\,\main{\|v\|} &= 1 \\ \scalar{|c|} \cdot \main{5} &= 1 \\ \scalar{|c|} &= \scalar{\frac{1}{5}} \end{aligned}
Write both positive and negative solutionsBoth +15\scalar{+\frac{1}{5}} and −15\scalar{-\frac{1}{5}} have an absolute value of 15\scalar{\frac{1}{5}}, giving one unit vector in the same direction as v\main{v} and a second unit vector in the opposite direction along the same line.
c=15  ⟹  [3545],c=−15  ⟹  [−35−45]\displaystyle \scalar{c} = \scalar{\frac{1}{5}} \implies \main{\begin{bmatrix} \tfrac{3}{5} \\ \tfrac{4}{5} \end{bmatrix}}, \qquad \scalar{c} = \scalar{-\frac{1}{5}} \implies \main{\begin{bmatrix} -\tfrac{3}{5} \\ -\tfrac{4}{5} \end{bmatrix}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
v=[34]\htmlClass{lc-blue}{v = \begin{bmatrix} 3 \\ 4 \end{bmatrix}}
5\htmlClass{lc-blue}{5}
[3545]\htmlClass{lc-blue}{\begin{bmatrix} \tfrac{3}{5} \\[4pt] \tfrac{4}{5} \end{bmatrix}}
[−35−45]\htmlClass{lc-blue}{\begin{bmatrix} -\tfrac{3}{5} \\[4pt] -\tfrac{4}{5} \end{bmatrix}}
7

Scaling a vector to any length

Once we can shrink a vector to a unit vector of length 11, we can use it to make a vector of any length in that direction. Let's find a vector of length 10\scalar{10} in the same direction as a=[1−22]\main{a} = \main{\begin{bmatrix} 1 \\ -2 \\ 2 \end{bmatrix}}.

Scaling a vector to any length
a=[1−22]\htmlClass{lc-blue}{a} = \htmlClass{lc-blue}{\begin{bmatrix} 1 \\ -2 \\ 2 \end{bmatrix}}
?\htmlClass{lc-blue}{?}
10\htmlClass{lc-violet}{10}
Text solution
Find the current length of the vectorSquare the coordinates, add them up, and take the square root to see how long a\main{a} is right now.
∥a∥\displaystyle \main{\|a\|} =12+(−2)2+22\displaystyle = \sqrt{\main{1}^2 + (\main{-2})^2 + \main{2}^2} =1+4+4\displaystyle = \sqrt{1 + 4 + 4} =9\displaystyle = \sqrt{9} =3\displaystyle = 3
Normalize the vector to length 11Divide each coordinate by 3\scalar{3} to get the unit vector a^\main{\hat{a}} in the same direction.
a^=13[1−22]=[13−2323]\displaystyle \main{\hat{a}} = \scalar{\frac{1}{3}}\main{\begin{bmatrix} 1 \\ -2 \\ 2 \end{bmatrix}} = \main{\begin{bmatrix} \tfrac{1}{3} \\ -\tfrac{2}{3} \\ \tfrac{2}{3} \end{bmatrix}}
Multiply by the target lengthScale the length-11 vector by 10\scalar{10} to get length 10\scalar{10} in the same direction (or multiply by −10\scalar{-10} if you want length 10\scalar{10} in the opposite direction).
10a^=10[13−2323]=[103−203203]\displaystyle \scalar{10}\main{\hat{a}} = \scalar{10}\main{\begin{bmatrix} \tfrac{1}{3} \\ -\tfrac{2}{3} \\ \tfrac{2}{3} \end{bmatrix}} = \main{\begin{bmatrix} \tfrac{10}{3} \\ -\tfrac{20}{3} \\ \tfrac{20}{3} \end{bmatrix}}

Key concepts

Everything here comes down to whether you are working with coordinates or with lengths and directions:

Finding length when you have coordinates

Square every coordinate, add them up, and take the square root. For v=[34]\main{v} = \main{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}, ∥v∥=32+42=5\main{\|v\|} = \sqrt{\main{3}^2 + \main{4}^2} = 5. When you want the distance between two vectors like u=[15]\first{u} = \first{\begin{bmatrix} 1 \\ 5 \end{bmatrix}} and v=[41]\second{v} = \second{\begin{bmatrix} 4 \\ 1 \end{bmatrix}}, don't memorize a separate formula: subtract first to get the difference vector v−u=[3−4]\second{v} - \first{u} = \main{\begin{bmatrix} 3 \\ -4 \end{bmatrix}}, then find its length ∥v−u∥=5\|\second{v} - \first{u}\| = 5.

Finding length when you don't have coordinates

Don't look for coordinates if a problem gives you lengths and dot products instead. For a scaled vector, multiply the length by the absolute value of the scalar: ∥cv∥=∣c∣ ∥v∥\main{\|\scalar{c}v\|} = \scalar{|c|}\,\main{\|v\|}, so ∥u∥=4\main{\|u\|} = \main{4} gives ∥−3u∥=∣−3∣(4)=12\main{\|\scalar{{-}3}u\|} = \scalar{|{-}3|}(\main{4}) = 12. For the length of a sum like ∥u+v∥\|\first{u} + \second{v}\| (when given ∥u∥=3\first{\|u\|} = \first{3}, ∥v∥=5\second{\|v\|} = \second{5}, and u⋅v=1\first{u} \cdot \second{v} = 1), expand the dot product: start from ∥v∥2=v⋅v\main{\|v\|}^2 = \main{v} \cdot \main{v} to write ∥u+v∥2=(u+v)⋅(u+v)=∥u∥2+2(u⋅v)+∥v∥2=36\|\first{u} + \second{v}\|^2 = (\first{u} + \second{v}) \cdot (\first{u} + \second{v}) \\ = \first{\|u\|}^2 + 2(\first{u} \cdot \second{v}) + \second{\|v\|}^2 = 36, then take the square root to get ∥u+v∥=6\|\first{u} + \second{v}\| = 6.

Changing length while keeping direction

Divide a vector by its own length to normalize it to a unit vector of length 11 in the same direction, v^=1∥v∥v=[3545]\main{\hat{v}} = \scalar{\frac{1}{\|v\|}}\main{v} = \main{\begin{bmatrix} \tfrac{3}{5} \\ \tfrac{4}{5} \end{bmatrix}} (use both ±1∥v∥v\scalar{\pm\frac{1}{\|v\|}}\main{v} if asked for all parallel unit vectors). To make a vector of any target length k\scalar{k}, normalize to length 11 first and then multiply by k\scalar{k} (or −k\scalar{-k} for the opposite direction): for a=[1−22]\main{a} = \main{\begin{bmatrix} 1 \\ -2 \\ 2 \end{bmatrix}} with ∥a∥=3\main{\|a\|} = 3, length 10\scalar{10} in the same direction is 10a^=[103−203203]\scalar{10}\main{\hat{a}} = \main{\begin{bmatrix} \tfrac{10}{3} \\ -\tfrac{20}{3} \\ \tfrac{20}{3} \end{bmatrix}}.

8

Practice

1

Find the length of the vector v=[1−224]\main{v} = \main{\begin{bmatrix} 1 \\ -2 \\ 2 \\ 4 \end{bmatrix}}.

Four coordinates work just like two or three: what do you do to each coordinate before adding them together?

Square each coordinate and add them upWatch the negative coordinate: (−2)2=+4(\main{-2})^2 = +4, whereas writing −22=−4-2^2 = -4 subtracts 44 and gives the wrong answer 17\sqrt{17}.
12+(−2)2+22+42\displaystyle \main{1}^2 + (\main{-2})^2 + \main{2}^2 + \main{4}^2 =1+4+4+16\displaystyle = 1 + 4 + 4 + 16 =25\displaystyle = 25
Take the square rootDon't stop at the squared length 2525.
∥v∥\displaystyle \main{\|v\|} =25\displaystyle = \sqrt{25} =5\displaystyle = 5
2

Find the distance between u=[−142]\first{u} = \first{\begin{bmatrix} -1 \\ 4 \\ 2 \end{bmatrix}} and v=[118]\second{v} = \second{\begin{bmatrix} 1 \\ 1 \\ 8 \end{bmatrix}}.

Before finding any length, what single vector connects the tip of u\first{u} to the tip of v\second{v}?

Subtract the vectors to find the arrow between their tipsBe careful with the negative sign in the first coordinate: 1−(−1)=2\second{1} - (\first{-1}) = 2, whereas dropping the minus sign gives 00 and leads to 45\sqrt{45}. (Also don't find ∥u∥\first{\|u\|} and ∥v∥\second{\|v\|} separately and subtract them.)
v−u=[118]−[−142]=[2−36]\displaystyle \second{v} - \first{u} = \second{\begin{bmatrix} 1 \\ 1 \\ 8 \end{bmatrix}} - \first{\begin{bmatrix} -1 \\ 4 \\ 2 \end{bmatrix}} = \main{\begin{bmatrix} 2 \\ -3 \\ 6 \end{bmatrix}}
Find the length of the difference vector
∥v−u∥\displaystyle \|\second{v} - \first{u}\| =22+(−3)2+62\displaystyle = \sqrt{\main{2}^2 + (\main{-3})^2 + \main{6}^2} =4+9+36\displaystyle = \sqrt{4 + 9 + 36} =49\displaystyle = \sqrt{49} =7\displaystyle = 7
3

A vector u\main{u} has length ∥u∥=6\main{\|u\|} = \main{6}. What is the length of −4u\scalar{-4}\main{u}?

How does multiplying a vector by a negative number change its direction and its length?

Multiply the length by the absolute value of the scalarMultiplying directly by −4\scalar{-4} gives −24-24, which is impossible because a length cannot be negative.
∥−4u∥\displaystyle \main{\|\scalar{{-}4}u\|} =∣−4∣ ∥u∥\displaystyle = \scalar{|{-}4|}\,\main{\|u\|} =4×6\displaystyle = \scalar{4} \times \main{6} =24\displaystyle = 24
4

Find the unit vector v^\main{\hat{v}} in the same direction as v=[−815]\main{v} = \main{\begin{bmatrix} -8 \\ 15 \end{bmatrix}}.

How long is v\main{v} right now, and what do you divide v\main{v} by to shrink that length down to 11?

Find the length of v\main{v}Remember to take the square root of 289289 rather than dividing the vector by 289289.
∥v∥\displaystyle \main{\|v\|} =(−8)2+152\displaystyle = \sqrt{(\main{-8})^2 + \main{15}^2} =64+225\displaystyle = \sqrt{64 + 225} =289\displaystyle = \sqrt{289} =17\displaystyle = 17
Divide each coordinate of v\main{v} by 17\scalar{17}Keep the negative sign on −8\main{-8}: squaring made (−8)2(\main{-8})^2 positive when finding the length, but dropping the minus sign here gives [8171517]\begin{bmatrix} \tfrac{8}{17} \\ \tfrac{15}{17} \end{bmatrix}, which points in a different direction.
v^=117[−815]=[−8171517]\displaystyle \main{\hat{v}} = \scalar{\frac{1}{17}}\main{\begin{bmatrix} -8 \\ 15 \end{bmatrix}} = \main{\begin{bmatrix} -\tfrac{8}{17} \\ \tfrac{15}{17} \end{bmatrix}}
5

Find all scalars c\scalar{c} that turn v=[30−4]\main{v} = \main{\begin{bmatrix} 3 \\ 0 \\ -4 \end{bmatrix}} into a unit vector.

Set ∥cv∥=∣c∣ ∥v∥=1\main{\|\scalar{c}v\|} = \scalar{|c|}\,\main{\|v\|} = 1. Which two numbers have that absolute value?

Find the length of v\main{v}
∥v∥\displaystyle \main{\|v\|} =32+02+(−4)2\displaystyle = \sqrt{\main{3}^2 + \main{0}^2 + (\main{-4})^2} =9+0+16\displaystyle = \sqrt{9 + 0 + 16} =25\displaystyle = \sqrt{25} =5\displaystyle = 5
Solve ∣c∣ ∥v∥=1\scalar{|c|}\,\main{\|v\|} = 1 for c\scalar{c}Dropping the absolute value bars gives only c=15\scalar{c} = \scalar{\tfrac{1}{5}} and misses the unit vector pointing in the opposite direction.
∣c∣⋅5\displaystyle \scalar{|c|} \cdot \main{5} =1  ⟹  ∣c∣\displaystyle = 1 \implies \scalar{|c|} =15  ⟹  c\displaystyle = \scalar{\frac{1}{5}} \implies \scalar{c} =15 and c\displaystyle = \scalar{\frac{1}{5}} \text{ and } \scalar{c} =−15\displaystyle = \scalar{-\frac{1}{5}}
6

Find the vector of length 14\scalar{14} that points in the opposite direction of a=[23−6]\main{a} = \main{\begin{bmatrix} 2 \\ 3 \\ -6 \end{bmatrix}}.

First turn a\main{a} into a unit vector of length 11. Then what scalar stretches it to length 14\scalar{14} while flipping its direction?

Find the length of a\main{a} and normalize to length 11(Multiplying a\main{a} by −14\scalar{-14} without dividing by ∥a∥=7\main{\|a\|} = 7 first would give [−28−4284]\begin{bmatrix} -28 \\ -42 \\ 84 \end{bmatrix}, which has length 9898 instead of 14\scalar{14}.)
∥a∥=22+32+(−6)2=4+9+36=49=7  ⟹  a^=[2737−67]\displaystyle \main{\|a\|} = \sqrt{\main{2}^2 + \main{3}^2 + (\main{-6})^2} = \sqrt{4 + 9 + 36} = \sqrt{49} = 7 \implies \main{\hat{a}} = \main{\begin{bmatrix} \tfrac{2}{7} \\ \tfrac{3}{7} \\ -\tfrac{6}{7} \end{bmatrix}}
Multiply the unit vector by −14\scalar{-14}Use −14\scalar{-14} rather than +14\scalar{+14} (which gives [46−12]\begin{bmatrix} 4 \\ 6 \\ -12 \end{bmatrix} in the same direction) so the vector flips to the opposite direction.
−14a^=−14[2737−67]=[−4−612]\displaystyle \scalar{-14}\main{\hat{a}} = \scalar{-14}\main{\begin{bmatrix} \tfrac{2}{7} \\ \tfrac{3}{7} \\ -\tfrac{6}{7} \end{bmatrix}} = \main{\begin{bmatrix} -4 \\ -6 \\ 12 \end{bmatrix}}
7

Suppose ∥u∥=2\first{\|u\|} = \first{2}, ∥v∥=5\second{\|v\|} = \second{5}, and u⋅v=−2\first{u} \cdot \second{v} = -2. Find ∥u+v∥\|\first{u} + \second{v}\|.

Without coordinates, start with ∥u+v∥2=(u+v)⋅(u+v)\|\first{u} + \second{v}\|^2 = (\first{u} + \second{v}) \cdot (\first{u} + \second{v}) and expand the dot product.

Expand the squared length and plug in the given valuesRemember to square ∥u∥\first{\|u\|} and ∥v∥\second{\|v\|} (using 22 and 55 directly gives 33) and to double the middle term 2(u⋅v)2(\first{u} \cdot \second{v}) (forgetting the 22 gives 2727).
∥u+v∥2=∥u∥2+2(u⋅v)+∥v∥2=22+2(−2)+52=4−4+25=25\displaystyle \begin{aligned} \|\first{u} + \second{v}\|^2 &= \first{\|u\|}^2 + 2(\first{u} \cdot \second{v}) + \second{\|v\|}^2 \\ &= \first{2}^2 + 2(-2) + \second{5}^2 \\ &= 4 - 4 + 25 \\ &= 25 \end{aligned}
Take the square rootDon't stop at ∥u+v∥2=25\|\first{u} + \second{v}\|^2 = 25.
∥u+v∥\displaystyle \|\first{u} + \second{v}\| =25\displaystyle = \sqrt{25} =5\displaystyle = 5