# Question Video: Finding the Component of a Vector Mathematics

Consider the points π΄(5, β1, β8) and π΅(β3, β9, β6). Find the component of the vector π = β5π’ β 2π£ + 2π€ in the direction ππ rounded to the nearest hundredth.

02:39

### Video Transcript

Consider the points π΄ five, negative one, negative eight and π΅ negative three, negative nine, negative six. Find the component of the vector π equals negative five π’ minus two π£ plus two π€ in the direction ππ rounded to the nearest hundredth.

Okay, in this exercise, we have this vector π and points π΄ and π΅ that all exist in three-dimensional space. If we say that this is point π΄ and this point π΅, then the vector ππ goes from point π΄ to point π΅ like this. We want to figure out how much this given vector π overlaps with the vector ππ. To start solving for this, letβs figure out the components of this vector ππ. This is a vector given by the coordinates of π΅ minus the coordinates of π΄. We substitute those given coordinates in. And when we perform this subtraction, we have negative three minus five, thatβs negative eight, negative nine minus negative one, that also is negative eight, and then negative six minus negative eight. That equals positive two. The components of vector ππ are negative eight, negative eight, two.

Knowing this, we can now write vector π in the same notation using brackets. Itβs negative five, negative two, positive two. Letβs now remember that if we want to solve in general for the component of a vector π in the direction of another vector π, that equals the dot product of the vectors divided by the magnitude of the second vector. When we calculate this, weβre computing whatβs called the scalar projection of π onto π. Applying this relationship to our scenario, what we want to calculate is π dot ππ over the magnitude of ππ. This will give us the component of vector π in the direction of ππ. Plugging in for the known values of these vectors gives us this.

Note that weβre using the fact that the magnitude of a vector equals the square root of the sum of the squares of its components. We can carry out this calculation first in our numerator by multiplying together corresponding components of these vectors and second in our denominator, squaring these components of the vector ππ. Carrying this out gives us in our numerator 40 plus 16 plus four and in our denominator the square root of 64 plus 64 plus four. This equals 60 divided by the square root of 132. This is our exact answer, but we want to report our final result rounded to the nearest hundredth. Calculating this fraction then, to the nearest hundredth, itβs equal to 5.22. This is the component of the vector π in the direction ππ.