Everything You Need in One Place
Homework problems? Exam preparation? Trying to grasp a concept or just brushing up the basics? Our extensive help & practice library have got you covered.
Learn and Practice With Ease
Our proven video lessons ease you through problems quickly, and you get tonnes of friendly practice on questions that trip students up on tests and finals.
Instant and Unlimited Help
Our personalized learning platform enables you to instantly find the exact walkthrough to your specific type of question. Activate unlimited help now!
Make math click 🤔 and get better grades! 💯Join for Free
- Inner Product, Length, and Orthogonality Overview:
- The Length of a Vector
• Also known as norm
• Some properties with a length of a vector
• Unit vectors
- Distance of two vectors/Orthogonal Vectors
• How to tell with two vectors are orthogonal
• Orthogonal vectors with Pythagorean Theorem
- Utilizing the Inner Product
Given that and , compute:
- Given that and , compute:
- Finding the Unit vector
Find the unit vector in the direction of the vector
- Calculating the Distance
Find the distance between the vectors and .
- Showing Orthogonality
For what value(s) of b make vectors u and v orthogonal if
- Proof Questions
Show that the parallelogram is true for vectors u and v in R^n. In other words, show that:
- Suppose vector u is orthogonal to vectors x and y. Show that u is also orthogonal to x+y.
Inner product, length and orthogonality
The time has come for us to work on vectors. As we know, a vector is a mathematical object with a magnitude and a direction. We know how to represent vectors geometrically in coordinate systems, and we know how to make a few calculations with them, let look at one of its main characteristics (length) and then continue with one of the operations that can be performed with them: the inner product.
The length of a vector The length of a vector, which is also called its norm refers simply to the magnitude of the vector. So, what is that in simple words? Just as the word length defines it, the length is just that; for example: if you have a vector you know this is represented geometrically as an arrow, thus its length will be the quantity measured of the distance from where the vector tail starts to its arrow-tip. This is what we call its magnitude, its length or its norm (any of the three words can be used interchangeably, but the standard in mathematics textbooks is usually the word magnitude since it is intuitive to think this quantity gives us the size of a vector).
The formula to calculate the magnitude of a vector v goes as follows:
In this case v12,v22,...,vn2 represent the variables of the vector, in other words, if you have a vector v in terms of x and y, then: x=v1 and y=v2, therefore, its magnitude (length) formula would be:
And important identity to remember about the magnitude of a vector is that the multiplication of a vector by itself is equal to the square of the magnitude of the vector:
This makes sense since multiplying a vector by itself means that you will multiply each term in the vector by itself. These multiplications by themselves will always produce positive results, because no matter if a term inside the vector is positive or negative: a positive times a positive produces a positive same as a negative times a negative produces a positive, thus, this is the same as obtaining the magnitude of the vector and just square it.
Talking about magnitudes of vectors, there exist vectors that can have a magnitude of one, those vectors are called unit vectors.
Knowing this, it is important to know the notations used to represent vector magnitudes, vectors and unit vectors. Notice that in equation 1 the magnitude (length or norm) is denoted with the letter coming from the name of the vector enclosed in between of two vertical lines, the magnitude can actually be represented in many different ways. In the next table we show you the most common ways vectors and magnitudes are represented:
And so, we can now understand the formula for a unit vector:
Vector v can be written as: vˉ or v.
The magnitude of vector v can be written as: v,∣v∣or∥v∥.
And the unit vector v is written as: v^.
Note that during this lessons problem equations we will usually denote vectors just by their letter name instead of putting an arrow or bold caps (this is due to differences within software symbols and lack of the appropriate symbols in certain tools), for that reason, we will make sure to denote the magnitude of a vector as the letter name enclosed by two vertical lines in order to be able to differentiate them always.
What is inner product?If we think of two column vectors being multiplied as vector spaces, the inner product happens to be the dot product which can be defined as:
Where uT is the transpose of vector u and v is simply the vector v.
Therefore, if we have the two vectors u and v defined as follows:
Then the inner product of the two vectors is:
Inner product propertiesJust as the square of the magnitude of a vector identity shown in equation 3 is useful, we have a few inner product properties listed below. These properties can be of aid later in the lesson while solving problems.
What is dot productMathematically speaking, the dot product definition is:
The inner product is a generalization which can also be defined as the dot product, or scalar product (due to the result it produces when vectors are being multiplied this way). The dot product formula as seen in equation 8 aids in the definition of orthogonality, which is the quality of two elements such as vectors of being perpendicular to each other.
In this case, we can know if a pair of vectors are perpendicular (or orthogonal) to each other by computing its dot product since: The dot product of perpendicular vectors is equal to zero.
The other way around also helps us in obtaining information from euclidean spaces and vectors, since one can obtain the angle between vectors by using dot product.
Cross product vs dot productWhen multiplying vectors there are two different kind of basic multiplications, the dot product and the cross product. The main difference between them is that the result of a vector dot product is a scalar and the result of a cross product is a vector perpendicular to the plane of the two original vectors. We will go deeper into this topic in later lessons, but for now it is important you remember that the result of each operation gives these two multiplications their nicknames: the vector dot product is also called the scalar product, while the cross product is also called the vector product.
For this section we will work out through various examples where we are to compute (or use) the inner product of two vectors to solve the given problems.
Example 1Given the vectors u and v as shown below:
Compute the operation: v⋅vu⋅uv
We start by computing the dot product of vector u by itself:
Now computing the dot product of vector v by itself:
These two resulting numbers allow us to perform the division of the dot products quite easily (note how all of the elements entering this operation were vectors and the result is a scalar, this is why the inner product space is called the scalar product of vectors):
And so, we finish our calculations by multiplying by vector v to obtain a final vector as follows:
Example 2Given the vectors u and v as shown below:
Compute the operation: ∥(u⋅v)u∥
Notice that since the multiplications we are to perform are all surrounded by double vertical lines, it means we are about to obtain a magnitude as a final solution for this operation. We start by computing the dot product of vectors u and v:
Multiplying this result by vector u as asked:
Now we just need to compute the absolute magnitude of this resulting vector in order to obtain our final result:
And so, our final answer is a scalar (which makes sense since we are finding the length of the vector found in equation 16), this scalar is equal to the square root of 1,400. You could finish off and perform the square root on this number, but it is not necessary, to avoid the messiness of a number with decimals we can just keep the answer as it is.
Example 3Find the unit vector in the direction of the vector v as defined below:
To solve this problem we make use of equation 4, the equation for a unit vector, thus, we have to find the magnitude of vector v first:
Given that we don't want to deal with decimal numbers, we leave the result as is with the square root sign, and now we perform the division to find the unit vector v^:
Example 4Find the distance between the vectors u and v as they are defined below:
In order to find the distance between two vectors we must subtract the vectors in question and then obtain the absolute magnitude of the resulting one, in other words, we must obtain the vector that would represent the distance between one and the other, and then the absolute magnitude is computed in order to know the length (in quantity) of such distance.
The process can be summarized in the next operation:
Notice how the equation above can be read as: the distance between vectors u and v is equal to the absolute magnitude of the subtraction of those two vectors, equal to the absolute magnitude of the vector resulting from the subtraction of the two vectors. Then, we perform the magnitude calculation to obtain the final result:
And so, the distance between vectors u and v is equal to the square root of 50.
Remember that subtracting means finding the difference between two quantities, in this case, between the two vectors. Since we will obtain the magnitude of the resulting vector from the subtraction, it does not matter the order in which you perform the subtraction of the vectors for this particular case. This is because the order of a vector subtraction affects the direction of the resulting vector, but it does not affect its magnitude and so, either you perform the subtraction as u−v or v−u will not matter for this case.
You can prove this by performing the operations once more but now using the other order in the vector subtraction, we do encourage you to check it out!.
Example 5What value(s) of b make vectors u and v orthogonal if they are defined as shown below:
Remember the orthogonality condition says that for two vectors to be orthogonal, their dot product must be zero, thus: u⋅v=0.
And so, we can paraphrase the question to: what values of b will produce a dot product of 2 vectors u and v equal to zero? Well, let us find out!
If we perform the dot product of u and v and set it equal to zero, we can then solve for the b value that will agree with that condition:
And we find that if b is equal to 2, then the dot product of u and v will be zero, and so, they will be orthogonal.
Example 6Show that the parallelogram is true for vectors u and v in Rn. In other words, show that:
This problem is all about playing with the terms around following the dot product rules, and so, we are to remember the dot product properties before we start:
- ∥v∥2=v⋅v→ square magnitude identity
- w(v+v)=w⋅u+w⋅v→ distributive property
- u⋅v=v⋅u→ commutative property
Knowing this, let us work through the left hand side of equation 26 in order to solve it until we arrive to the result on its right hand side. First we simplify by using the magnitude identity:
Then we use the distributive property to break down the expression even more:
And finally, using the commutative property:
This is as simple as we can go when trying to break down the left hand side of equation 26, but the great thing about this is that if we use the magnitude identity once more, but backwards and we will obtain:
Which proves that equation 26 holds true.
Example 7Suppose vector u is orthogonal to vectors x and y. Show that u is also orthogonal to x+y.
To solve this particular problem we need to realize that if vector u is orthogonal to vectors x and y, then the next conditions hold true: u⋅x=0 and u⋅y=0. And so, for u to be orthogonal to x+y, then we need to prove that u⋅(x+y)=0. So let us compute that:
As you can see above, due to the distributive property, we can distribute the dot inner product of u with x and y separately. Since we know that both of those product are zero (is the initial condition of this question) then, the result is that the dot product u⋅(x+y) is also equal to zero, making u orthogonal to x+y.
To finalize this lesson we would like to recommend you to visit the next wonderful notes on the inner product, length and orthogonality and this handout on the same topic containing some extra example problems.
This is it for our lesson of today, see you in the next one!
Then the inner product of the two vectors will be:
Let u,v and w be vectors in Rn, and let c be a scalar. Then,
4) u⋅u≥0, and u⋅u=0 only if u=0
Suppose . Then the length (or norm) of a vector v is
Suppose dist(u,v) is the distance between the vectors u and v. To find the distance between the two vectors, we calculate
If two vectors u and v are orthogonal to each other, then it must be true that