Inner product, length, and orthogonality

Get the most by viewing this topic in your current grade. Pick your course now.

?
Intros
Lessons
  1. Inner Product, Length, and Orthogonality Overview:
  2. The Length of a Vector
    • Also known as norm
    • Some properties with a length of a vector
    • Unit vectors
  3. Distance of two vectors/Orthogonal Vectors
    • Dist(u,v)=uv(u,v)=\lVert u-v \rVert
    • How to tell with two vectors are orthogonal
    • Orthogonal vectors with Pythagorean Theorem
?
Examples
Lessons
  1. Utilizing the Inner Product
    Given that vector u and vector v, compute:
    uuvvv\frac{u \cdot u}{v \cdot v}v
    1. Given that vector u and vector v, compute:
      (uv)u\lVert (u \cdot v)u \rVert
      1. Finding the Unit vector
        Find the unit vector in the direction of the vector Finding the Unit vector
        1. Calculating the Distance
          Find the distance between the vectors Calculating the Distance, vector u and Calculating the Distance, vector v.
          1. Showing Orthogonality
            For what value(s) of bb make vectors uu and vv orthogonal if
            what value b make this two vectors orthogonal
            1. Proof Questions
              Show that the parallelogram is true for vectors uu and vv in R^n. In other words, show that:
              u+v2+uv2=2u2+2v2\lVert u+v \rVert^2 + \lVert u-v \rVert^2 = 2 \lVert u \rVert^2 + 2 \lVert v \rVert^2
              1. Suppose vector uu is orthogonal to vectors xx and yy. Show that uu is also orthogonal to x+yx+y.
                Topic Notes
                ?

                Introduction to Inner Product, Length, and Orthogonality

                Welcome to our exploration of fundamental concepts in vector spaces! Today, we'll dive into inner product, vector length, and orthogonality. These concepts are crucial for understanding advanced mathematics and their applications in various fields. Our introduction video serves as an excellent starting point, providing a visual and intuitive explanation of these ideas. The inner product, also known as dot product, is a way to multiply vectors that results in a scalar value. It's closely related to vector length, which measures the magnitude of a vector. Orthogonality, a concept you'll find incredibly useful, occurs when two vectors are perpendicular to each other, resulting in an inner product of zero. As we progress, you'll see how these concepts interconnect and form the foundation for more complex mathematical ideas. The video will help solidify your understanding, so be sure to watch it carefully. Let's embark on this exciting journey into vector spaces together!

                Understanding Vector Length

                Vector length, also known as the norm of a vector, is a fundamental concept in linear algebra and geometry. It represents the vector magnitude or size of a vector, providing crucial information about its scale without considering its direction. Understanding vector length is essential for various applications in mathematics, physics, and computer science.

                The length of a vector is defined as the distance from its starting point to its endpoint in n-dimensional space. For a vector v = (v1, v2, ..., vn), where vector components v1, v2, ..., vn are its components, the length is calculated using the Euclidean norm formula:

                ||v|| = (v1² + v2² + ... + vn²)

                This formula involves taking the square root of the sum of the squares of all vector components. The double vertical bars (||v||) are commonly used to symbolize vector length or norm.

                To calculate the length of a vector, follow these steps:

                1. Square each component of the vector.
                2. Sum up all the squared components.
                3. Take the square root of the sum.

                Let's consider a simple example to illustrate this process. For the vector (1, 2), we can calculate its length as follows:

                ||v|| = (1² + 2²) = (1 + 4) = 5 2.236

                This result tells us that the vector (1, 2) has a length of approximately 2.236 units.

                An interesting relationship exists between vector length and the inner product (also known as dot product) of a vector with itself. The inner product of a vector v with itself, denoted as <v, v>, is equal to the square of its length:

                <v, v> = ||v||²

                This relationship provides an alternative method for calculating vector magnitude. By taking the square root of the inner product of a vector with itself, we obtain its length:

                ||v|| = <v, v>

                Understanding vector length is crucial in various applications. In physics, it's used to measure the magnitude of forces or velocities. In computer graphics, vector lengths are essential for normalizing vectors, which is important for lighting calculations and camera movements. In machine learning, vector norms are used in regularization techniques to prevent overfitting.

                The concept of vector length extends to higher dimensions as well. While we can easily visualize 2D and 3D vectors, the same principles apply to vectors in n-dimensional space. This makes vector length a powerful tool in data analysis, where high-dimensional data is common.

                It's worth noting that there are other types of vector norms besides the Euclidean norm (also called the L2 norm). For instance, the L1 norm (Manhattan norm) and the L norm (maximum norm) are used in specific contexts. However, when we refer to vector length without qualification, we typically mean the Euclidean norm.

                In conclusion, vector length is a fundamental concept that quantifies the magnitude of a vector. Its calculation involves the square root of the sum of squared components, and it has a close relationship with the inner product. Understanding vector length is essential for anyone working with vectors in mathematics, physics, or computer science, as it provides a way to measure and compare vectors regardless of their direction.

                Unit Vectors and Vector Normalization

                Unit vectors are fundamental concepts in mathematics and physics, playing a crucial role in various applications. A unit vector is a vector with a magnitude or length of exactly 1, while maintaining its original direction. These special vectors are essential for describing directions without regard to magnitude, making them invaluable in numerous fields.

                The process of converting any non-zero vector into a unit vector is called normalization. To normalize a vector, we divide it by its magnitude. The formula for converting a vector v into a unit vector û is:

                û = v / ||v||

                Where ||v|| represents the magnitude or length of the vector v. This scalar multiplication effectively scales the vector to have a length of 1 while preserving its direction.

                Let's demonstrate this process using the example from the video, where v = (1, 2, 3). To normalize this vector, we first calculate its magnitude:

                ||v|| = (1² + 2² + 3²) = (1 + 4 + 9) = 14 3.7416

                Now, we divide each component of the vector by this magnitude:

                û = (1/3.7416, 2/3.7416, 3/3.7416) (0.2673, 0.5345, 0.8018)

                This resulting vector û is a unit vector because its length is 1. We can verify this by calculating its magnitude:

                ||û|| = (0.2673² + 0.5345² + 0.8018²) 1

                The normalization process results in a unit vector because we're scaling the original vector by the reciprocal of its length. This mathematical operation ensures that the new vector maintains the same direction but has a length of exactly 1.

                Unit vectors are important in various applications across multiple disciplines:

                • In physics, they're used to represent directions of forces, velocities, and other vector quantities without considering magnitude.
                • In computer graphics and 3D modeling, unit vectors are essential for calculating surface normals, which are crucial for lighting and shading calculations.
                • In navigation and GPS systems, unit vectors help in determining direction and orientation.
                • In machine learning and data science, normalized vectors are often used to ensure consistent scaling across different features or dimensions.

                Understanding and utilizing unit vectors and the normalization process is crucial for anyone working with vector mathematics, physics simulations, computer graphics, or data analysis. These concepts provide a standardized way to work with directions and orientations, simplifying many calculations and allowing for more efficient and accurate computations in various scientific and engineering applications.

                Distance Between Vectors

                Calculating the distance between two vectors is a fundamental concept in linear algebra with numerous applications in physics, computer graphics, and data analysis. The vector distance represents the spatial separation between the endpoints of two vectors in a multi-dimensional space. To determine this distance, we use a combination of vector subtraction and the concept of vector magnitude.

                The formula for vector distance is derived from the Pythagorean theorem and is expressed as the length of the difference between the two vectors. Mathematically, for vectors u and v, the distance d is given by:

                d = |u - v| = [(u - v)² + (u - v)² + ... + (u - v)²]

                This formula calculates the Euclidean distance between the vectors. It's important to note that this distance is closely related to the concept of vector magnitude, as it essentially computes the magnitude of the vector resulting from the subtraction of v from u.

                Let's demonstrate this calculation using the example from the video, where u = (1, 3, 0) and v = (0, 1, 5). To find the distance:

                1. Subtract v from u: (1-0, 3-1, 0-5) = (1, 2, -5)
                2. Square each component: (1², 2², (-5)²) = (1, 4, 25)
                3. Sum the squared components: 1 + 4 + 25 = 30
                4. Take the square root: 30 5.477

                Thus, the distance between vectors u and v is approximately 5.477 units.

                The significance of vector distance extends across various fields. In physics, it's crucial for calculating trajectories and forces. In computer graphics, it's used for collision detection and rendering. Data scientists employ vector distances for clustering algorithms and similarity measures. Understanding and calculating vector distances is essential for anyone working with multi-dimensional data or spatial relationships.

                By mastering the concept of vector distance, you gain a powerful tool for analyzing spatial relationships, comparing data points, and solving complex problems in mathematics and applied sciences. Whether you're working on machine learning algorithms, game development, or scientific simulations, the ability to calculate and interpret vector distances will prove invaluable in your endeavors.

                Orthogonality and Inner Product

                Orthogonality is a fundamental concept in linear algebra and geometry that extends the idea of perpendicularity to higher dimensions. In simple terms, two vectors are considered orthogonal if they are perpendicular to each other. This relationship between orthogonality and perpendicularity is crucial in understanding vector spaces and their properties.

                The condition for orthogonality is elegantly expressed using the inner product, also known as the dot product. For two vectors u and v to be orthogonal, their inner product must equal zero: u · v = 0. This simple equation encapsulates a profound geometric relationship between vectors.

                To understand why this condition implies orthogonality, let's consider the isosceles triangle example. Imagine two vectors forming an isosceles triangle with the origin. If these vectors are orthogonal, they create a right angle at the origin. The Pythagorean theorem comes into play here, stating that in a right triangle, the square of the hypotenuse equals the sum of squares of the other two sides.

                In vector terms, if u and v are orthogonal vectors, then ||u + v||² = ||u||² + ||v||², where ||u|| represents the magnitude (length) of vector u. Expanding the left side of this equation using the properties of inner products, we get:

                (u + v) · (u + v) = u · u + 2(u · v) + v · v

                For this to equal ||u||² + ||v||², the middle term 2(u · v) must be zero, which is only possible if u · v = 0. This demonstrates why the inner product being zero is a necessary and sufficient condition for orthogonality.

                The concept of orthogonality is of paramount importance in vector spaces and has numerous applications across various fields. In linear algebra, orthogonal vectors form the basis of many computational techniques and theoretical concepts. Orthogonal bases, for instance, simplify many calculations and provide a convenient way to represent vectors in a space.

                In signal processing, orthogonal functions are used to decompose complex signals into simpler components. The Fourier transform, a cornerstone of signal analysis, relies heavily on the orthogonality of sine and cosine functions. This allows for efficient representation and manipulation of signals in the frequency domain.

                In computer graphics and 3D modeling, orthogonal vectors are essential for defining coordinate systems and transforming objects in space. The concept is crucial in creating realistic 3D environments and animations.

                Quantum mechanics also heavily utilizes orthogonality in describing quantum states. The orthogonality of eigenfunctions in quantum systems is fundamental to understanding energy levels and transitions in atoms and molecules.

                In statistics and data science, orthogonal vectors play a role in principal component analysis (PCA), a technique used for dimensionality reduction and feature extraction. Orthogonal transformations preserve important properties of datasets while simplifying their representation.

                The power of orthogonality lies in its ability to decompose complex problems into simpler, independent components. When vectors are orthogonal, they can be treated separately without interference, greatly simplifying many mathematical and practical problems.

                Understanding orthogonality through the inner product provides a powerful tool for analyzing vector relationships. It bridges the gap between algebraic manipulation and geometric intuition, allowing for deeper insights into the structure of vector spaces.

                In conclusion, orthogonality, defined by the condition u · v = 0, is a cornerstone concept in linear algebra and beyond. Its relationship to perpendicularity, elegantly expressed through the inner product, provides a powerful framework for understanding vector spaces. From signal processing to quantum mechanics, the applications of orthogonal vectors demonstrate their fundamental importance across diverse fields of science and engineering.

                Pythagorean Theorem and Orthogonality

                The Pythagorean Theorem, a fundamental principle in geometry, provides an alternative method for determining orthogonality in vector spaces. This approach offers a geometric interpretation of orthogonality, complementing the algebraic definition using inner products. The key equation that relates the Pythagorean Theorem to orthogonality is ||u||^2 + ||v||^2 = ||u+v||^2, where u and v are vectors, and ||.|| denotes the squared magnitude or magnitude.

                To understand this relationship, let's visualize two vectors u and v forming a right triangle. If these vectors are orthogonal (perpendicular), they create a right angle at their point of intersection. The Pythagorean Theorem states that in a right triangle, the square of the hypotenuse equals the sum of squares of the other two sides. In our vector context, u+v represents the hypotenuse, while u and v form the other two sides of the right triangle.

                The equation ||u||^2 + ||v||^2 = ||u+v||^2 is a vector representation of the Pythagorean Theorem. Here's how it breaks down:

                • ||u||^2 is the square of the magnitude of vector u
                • ||v||^2 is the square of the magnitude of vector v
                • ||u+v||^2 is the square of the magnitude of the vector sum u+v

                When this equation holds true, it implies that vectors u and v are orthogonal. This condition is equivalent to the inner product definition of orthogonality, which states that two vectors are orthogonal if their inner product is zero (u · v = 0).

                The visual explanation using a right triangle is particularly intuitive. Imagine drawing vector u, then vector v perpendicular to it. The vector sum u+v forms the hypotenuse of the right triangle. The Pythagorean Theorem naturally applies to this configuration, explaining why the equation ||u||^2 + ||v||^2 = ||u+v||^2 holds for orthogonal vectors.

                This condition implies orthogonality because it captures the essence of perpendicularity in vector space. When two vectors are orthogonal, they contribute independently to the squared magnitude of their sum. There's no interaction term, which would appear if the vectors were not perpendicular.

                The relationship between this Pythagorean condition and the inner product condition (u · v = 0) can be demonstrated algebraically. Expanding ||u+v||^2 using the properties of inner products:

                ||u+v||^2 = (u+v) · (u+v) = u · u + 2(u · v) + v · v = ||u||^2 + 2(u · v) + ||v||^2

                For the Pythagorean condition to hold, we must have 2(u · v) = 0, which is only true when u · v = 0, the standard inner product condition for orthogonality.

                This alternative method offers several advantages in understanding and applying orthogonality:

                1. Geometric Intuition: It provides a clear geometric picture of orthogonality, making it easier to visualize in two and three dimensions.
                2. Computational Flexibility: In some cases, it might be easier to compute vector magnitudes than inner products, especially in higher dimensions.
                3. Connection to Classical Geometry: It bridges the gap between vector algebra and classical Euclidean geometry, reinforcing the concept across different mathematical domains.

                In practical applications, such as computer graphics, signal processing, or machine learning, this Pythagorean approach to orthogonality can be particularly useful. It allows for efficient checks of perpendicularity and can be extended to understand concepts like orthogonal decomposition of vectors.

                In conclusion, the Pythagorean Theorem provides a powerful and intuitive

                Applications and Importance of Inner Product, Length, and Orthogonality

                Inner product, vector length, and orthogonality are fundamental concepts in linear algebra that find extensive practical applications across various fields, including physics, computer graphics, and data analysis. Understanding these concepts is crucial for advanced mathematical and scientific studies, as they form the backbone of many real-world problem-solving techniques.

                In physics, the inner product plays a vital role in calculating work done by a force. When a force acts on an object, causing it to move, the work done is determined by the dot product of the force vector and the displacement vector. This application is essential in mechanics and energy calculations. Vector length, or magnitude, is used to measure physical quantities such as velocity, acceleration, and electric field strength. Orthogonality is crucial in describing perpendicular vectors, which are fundamental in understanding concepts like normal forces and electromagnetic waves.

                Computer graphics heavily rely on these concepts for rendering 3D objects and creating realistic visual effects. The inner product is used in lighting calculations to determine how much light falls on a surface based on its orientation relative to the light source. Vector length is essential for normalizing vectors, which is crucial in many graphics algorithms. Orthogonality is used in creating coordinate systems and transforming objects in 3D space, enabling smooth rotations and translations of virtual objects.

                In data analysis and machine learning, these concepts are indispensable. The inner product is used in calculating similarities between data points, which is fundamental in clustering algorithms and recommendation systems. Vector length is crucial in feature scaling and normalization, ensuring that different features contribute equally to the analysis. Orthogonality is used in dimensionality reduction techniques like Principal Component Analysis (PCA), where orthogonal vectors represent uncorrelated features in the data.

                Real-world applications of these concepts are numerous. In signal processing, orthogonal functions are used to decompose complex signals into simpler components, enabling efficient data compression and noise reduction. In quantum mechanics, orthogonal wave functions represent different energy states of particles. In structural engineering, orthogonal stress components help in analyzing the stability of buildings and bridges.

                The importance of mastering these concepts cannot be overstated for students and professionals in STEM fields. They provide a powerful toolkit for solving complex problems and understanding advanced theories. In linear algebra, these concepts form the foundation for understanding more complex topics like eigenvalues and singular value decomposition. In physics, they are essential for grasping quantum mechanics and relativity. In computer science, they underpin many algorithms in machine learning, computer vision, and artificial intelligence.

                In conclusion, inner product, vector length, and orthogonality are not just abstract mathematical concepts but powerful tools with wide-ranging applications. Their understanding is crucial for anyone looking to excel in fields that require advanced mathematical and scientific knowledge. From solving practical engineering problems to developing cutting-edge technologies, these concepts continue to play a pivotal role in shaping our understanding of the world and driving innovation across multiple disciplines.

                Conclusion

                In conclusion, this article has covered several crucial aspects of the subject matter. We've explored the main themes and key concepts, providing a comprehensive overview of the topic. The discussion has touched upon important points, offering insights and analysis that contribute to a deeper understanding. We've examined various perspectives and considered different approaches, highlighting both the challenges and opportunities present. The article has presented relevant examples and case studies to illustrate its points, making the information more relatable and applicable. Additionally, we've addressed common questions and misconceptions, clarifying important details for readers. By synthesizing this information, we've aimed to provide a well-rounded view of the subject, equipping readers with valuable knowledge and insights. As we wrap up, it's clear that the topic is complex and multifaceted, with ongoing developments and potential for further exploration. We hope this article has served as a useful resource, encouraging further thought and discussion on this important subject.

                Inner Product, Length, and Orthogonality Overview:

                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

                Step 1: Understanding the Length of a Vector

                The length of a vector, also known as the norm, is a measure of the vector's magnitude. To find the length of a vector v with components v1, v2, ..., vn, you follow a specific process. First, you symbolize the length of the vector by drawing two straight lines on either side of the vector, like this: ||v||. This notation indicates that you are calculating the length of the vector.

                Step 2: Calculating the Length of a Vector

                To calculate the length of the vector v, you square each component of the vector, sum these squares, and then take the square root of the total. Mathematically, this is represented as:

                ||v|| = (v1² + v2² + ... + vn²)

                For example, if v = (1, 2), the length of the vector is calculated as follows:

                ||v|| = (1² + 2²) = (1 + 4) = 5

                Thus, the length of the vector (1, 2) is 5.

                Step 3: Norm and Inner Product Relationship

                The norm of a vector squared is equivalent to the inner product of the vector with itself. This relationship is useful in various mathematical proofs and calculations. The inner product of a vector v with itself is calculated by multiplying each component of the vector by itself and summing the results:

                v v = v1² + v2² + ... + vn²

                Therefore, the norm squared is:

                ||v||² = v v

                This equivalence is crucial for understanding the properties of vectors and their magnitudes.

                Step 4: Understanding Unit Vectors

                A unit vector is a vector with a length of 1. Unit vectors are important because they provide a standard way of describing directions. If a vector v has a length other than 1, it is not a unit vector. For example, the vector (1, 2) has a length of 5, so it is not a unit vector.

                To determine if a vector is a unit vector, you calculate its length and check if it equals 1. For instance, if v = (1/2, 0, -1/2), the length is calculated as:

                ||v|| = ((1/2)² + 0² + (-1/2)²) = (1/2 + 0 + 1/2) = 1 = 1

                Since the length is 1, this vector is a unit vector.

                Step 5: Converting a Vector to a Unit Vector

                If a vector is not a unit vector, you can convert it into one by dividing the vector by its length. The formula for converting a vector v into a unit vector y is:

                y = (1/||v||) * v

                For example, if v = (1, 2, 3), its length is:

                ||v|| = (1² + 2² + 3²) = (1 + 4 + 9) = 14

                To convert v into a unit vector, you multiply it by 1/14:

                y = (1/14) * (1, 2, 3) = (1/14, 2/14, 3/14)

                Thus, the vector (1, 2, 3) is converted into the unit vector (1/14, 2/14, 3/14).

                Step 6: Practical Application of Unit Vectors

                Unit vectors are widely used in various fields such as physics, engineering, and computer graphics. They are essential for representing directions and normalizing vectors to ensure consistent calculations. By understanding how to calculate the length of a vector, the relationship between norm and inner product, and how to convert vectors into unit vectors, you can effectively work with vectors in different applications.

                FAQs

                Here are some frequently asked questions about inner product, length, and orthogonality:

                1. What is the inner product of two vectors?

                The inner product (also known as dot product) of two vectors a = (a1, a2, ..., an) and b = (b1, b2, ..., bn) is defined as:

                a · b = a1b1 + a2b2 + ... + anbn

                It results in a scalar value and is used to calculate vector projections and determine orthogonality.

                2. How do you find the orthogonal vector?

                To find an orthogonal vector to a given vector v = (a, b), you can use the following method:

                1. Take any vector perpendicular to v, such as u = (-b, a).

                2. Verify orthogonality by calculating the dot product: v · u = a(-b) + b(a) = 0

                For 3D vectors, you can use the cross product to find an orthogonal vector.

                3. Why is the dot product of orthogonal vectors 0?

                The dot product of orthogonal vectors is 0 because orthogonal vectors are perpendicular to each other. Geometrically, this means there's no projection of one vector onto the other. Algebraically, it results from the cancellation of terms in the dot product calculation.

                4. How to calculate vector length?

                The length (magnitude) of a vector v = (v1, v2, ..., vn) is calculated using the formula:

                ||v|| = (v1² + v2² + ... + vn²)

                This is derived from the Pythagorean theorem and represents the distance from the origin to the vector's endpoint.

                5. What is the relationship between inner product and vector length?

                The inner product of a vector with itself is equal to the square of its length:

                v · v = ||v||²

                This relationship is useful for calculating vector lengths and normalizing vectors. It also plays a crucial role in defining orthogonality and deriving the Cauchy-Schwarz inequality.

                Prerequisite Topics

                Understanding the concept of inner product, length, and orthogonality in linear algebra and physics is crucial for advanced mathematical and scientific studies. However, to fully grasp these concepts, it's essential to have a solid foundation in several prerequisite topics. These fundamental concepts provide the necessary building blocks for comprehending the more complex ideas of inner products, vector lengths, and orthogonality.

                One of the most important prerequisites is vector components. This concept is fundamental to understanding how vectors are represented and manipulated in space. By breaking down vectors into their individual components, students can more easily visualize and work with vectors in various dimensions. This knowledge directly translates to calculating inner products and determining vector lengths.

                Another critical prerequisite is the magnitude of a vector. The ability to calculate vector magnitude is essential when dealing with vector lengths and inner products. Understanding how to compute the magnitude of a vector provides insight into the geometric interpretation of vectors and their properties. This concept is directly related to the length aspect of our main topic and plays a crucial role in determining orthogonality between vectors.

                The concept of a unit vector is also vital for a comprehensive understanding of inner products, lengths, and orthogonality. Unit vectors are normalized vectors with a magnitude of one, and they are frequently used in calculations involving direction and orientation. The process of unit vector normalization is closely tied to the concepts of vector length and inner products, making it an essential prerequisite for our main topic.

                By mastering these prerequisite topics, students will be better equipped to tackle the complexities of inner products, vector lengths, and orthogonality. Vector components provide the foundation for representing and manipulating vectors, while understanding vector magnitude calculation allows for a deeper appreciation of vector properties and their geometric interpretations. Finally, unit vector normalization introduces the concept of standardized vectors, which is crucial when working with inner products and determining orthogonality.

                As students progress in their studies of linear algebra and physics, they will find that these prerequisite topics continually resurface and play integral roles in more advanced concepts. The ability to work comfortably with vector components, calculate magnitudes, and normalize vectors will prove invaluable when exploring the intricacies of inner products, analyzing vector lengths, and determining orthogonality between vectors.

                In conclusion, a strong grasp of these prerequisite topics is not just beneficial but essential for a comprehensive understanding of inner products, lengths, and orthogonality. By investing time in mastering these fundamental concepts, students will build a solid foundation that will support their learning and application of more advanced mathematical and physical principles throughout their academic and professional careers.

                Let vectors uu and vv be:
                vector u and vector v

                Then the inner product of the two vectors will be:
                inner product of vector u and vector v

                Let u,vu,v and ww be vectors in Rn\Bbb{R}^n, and let cc be a scalar. Then,
                1) uv=vuu \cdot v=v \cdot u
                2) w(u+v)=wu+wv w(u+v)=w \cdot u+w \cdot v
                3) (cu)v=c(uv)=u(cv) (cu) \cdot v=c(u \cdot v)=u \cdot (cv)
                4) uu0u \cdot u \geq 0, and uu=0u \cdot u=0 only if u=0u=0

                Suppose vector v. Then the length (or norm) of a vector vv is

                v=v12+v22++vn2  ,  v2=vv \lVert v \rVert = \sqrt{v_{1}^2+v_{2}^2+\cdots +v_{n}^2}\;,\; \lVert v \rVert ^2 = v \cdot v

                Suppose dist(u,v)(u,v) is the distance between the vectors uu and vv. To find the distance between the two vectors, we calculate
                dist(u,v)=uv(u,v)=\lVert u-v \rVert

                If two vectors uu and vv are orthogonal to each other, then it must be true that
                uv=0u \cdot v =0