# Nakafa Framework: LLM URL: /en/subject/university/bachelor/ai-ds/linear-methods/scalar-product Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/university/bachelor/ai-ds/linear-methods/scalar-product/en.mdx Output docs content for large language models. --- export const metadata = { title: "Scalar Product", description: "Understand scalar products in vector spaces: bilinear forms, positive definite matrices, Hermitian properties, and real vs complex implementations.", authors: [{ name: "Nabil Akbarazzima Fatih" }], date: "07/13/2025", subject: "Linear Methods of AI", }; ## Definition of Scalar Product A scalar product is a fundamental operation that allows us to compute the "multiplication" between two vectors with the result being a scalar number. Through every positive definite matrix, we can define a scalar product on vector spaces. A scalar product on complex vector space is a sesquilinear Hermitian form that is positive definite with three main properties. ### Sesquilinear Property For all vectors and scalars , the scalar product satisfies: This property is called sesquilinear because it is semilinear in the first argument and linear in the second argument. ### Hermitian Property For all vectors , the following holds: ### Positive Definite Property For all vectors , the following holds: Thus, a scalar product is a sesquilinear Hermitian form that is positive definite on . ## Scalar Product on Real Space If is a positive definite matrix, then the mapping: has the following properties: 1. **Bilinear**: For all vectors and scalars , the following holds: This property is called bilinear because it is linear in both arguments. 2. **Symmetric**: For all vectors , the following holds: 3. **Positive Definite**: For all vectors , the following holds: Thus, a scalar product is a symmetric bilinear form that is positive definite on . ## Scalar Product on Complex Space Generalization to complex space involves the important role of complex conjugate. If is a positive definite matrix, then the mapping: has the same properties as the general definition above, namely sesquilinear in the first argument, linear in the second argument, Hermitian with complex conjugate, and positive definite. This shows that when we move to complex space, the complex conjugate plays an important role in maintaining a consistent scalar product structure. ## Matrix Representation An important result in scalar product theory is that every scalar product can be expressed in the form of an appropriate matrix. Every scalar product on as well as on can be expressed in the form: through an appropriate positive definite matrix or . The elements of matrix can be computed as: where is the standard basis vector. ## Example of Standard Scalar Product The simplest example is the standard scalar product that uses the identity matrix . The standard scalar product is defined as: This standard scalar product is obtained by using the identity matrix as its representation matrix, so that all required properties are satisfied naturally. > Through the relationship between scalar products and positive definite matrices, we can construct various types of scalar products that suit specific application needs.