Dot product

From Academic Kids

(Redirected from Inner product)

In mathematics, the dot product (also known as the scalar product and the inner product) is a sesquilinear function (·) : V × V → F, where V is a vector space over the field F, having some further properties. A formal definition is found in the article inner product space.

In other words, it maps a pair of vectors to a scalar (i.e. an element of the field). The inner product of a and b is sometimes denoted <a, b> or <a|b>.

Missing image
Scalarproduct.gif

It is intuitively defined as

<math> \mathbf{a} \cdot \mathbf{b} = |\mathbf{a}| \, |\mathbf{b}| \cos \theta \;<math>,

where |x| denotes the norm (or length) of x and θ is the angle between the two vectors.

Note: A formal definition of dot product is somewhat different from this; there, the angle between a and b is defined by the above equality.

Thus, the dot product of two perpendicular vectors is always zero. If a and b are both unit vectors (i.e., of length 1), the dot product simply gives the cosine of the angle between them. Thus, given two vectors, the angle between them can be found by rearranging the above formula:

<math> \cos{\theta} = \frac{\mathbf{a \cdot b}}{|\mathbf{a}| \, |\mathbf{b}|} <math>

This can be understood very easily: The first vector is projected onto the second vector (the order does not matter as the dot-product is commutative) by calculating the dot-product, and afterwards "normalized" by dividing the obtained scalar value of the numerator by their scalar lengths. Thus the scalar value of the fraction must be less than or equal to 1 and can be easily translated into a angular value (As the trigonometric functions are really nothing more than Taylor approximated functions to achieve a seamless translation table of lengths into angle values and vice versa (arcsin,...). Further information is on the sine page).

It should be noted that the geometric interpretation of the inner product is generally only used for <math>\mathbb{R}^n<math> with <math>n \le 3<math>. When working in higher dimensions, in spaces over other fields, or with modules, the only definition of the inner product is the following: <math>\left \langle \mathbf{a}, \mathbf{b} \right \rangle = \sum_{i=1}^n a_ib_i<math>

The dot product is particularly used in the calculation of net force. If b is a unit vector, then the dot product gives the projection of a in the direction b. In mechanics, this gives the component of a force in that direction.

Work is the dot product of force and displacement.

Properties

The definition has the following consequences. The dot product is commutative:

<math> \mathbf{a} \cdot \mathbf{b} = \mathbf{b} \cdot \mathbf{a} \;<math>.

Two non-zero vectors a and b are perpendicular if and only if a · b = 0. The dot product is bilinear:

<math>
   \mathbf{a} \cdot (r\mathbf{b} +  \mathbf{c}) 

= r(\mathbf{a} \cdot \mathbf{b}) +(\mathbf{a} \cdot \mathbf{c}) \;<math>.

From these it follows directly that the dot product of two vectors a = [a1 a2 a3] and
b = [b1 b2 b3] given in coordinates can be computed particularly easily as

<math> \mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3 \; <math>,

or, using matrix multiplication and treating the vectors as 1-by-3 matrices,

<math> \mathbf{a} \cdot \mathbf{b} = \mathbf{a b}^T \;<math>

where bT denotes the transpose of the matrix b.

The dot product satisfies all the axioms of an inner product. In an abstract vector space, the notion of angle between the elements of the space can be defined in terms of the inner product.

Proof that the two forms of definition are equivalent

We have already shown that the theorem

<math> \mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3 \; <math>

follows from the definition

<math> \mathbf{a} \cdot \mathbf{b} = |\mathbf{a}| |\mathbf{b}| \cos \theta \;<math>.

To prove that these are two equivalent ways of defining the dot product, we shall now instead use the former to derive the latter.

Note: This proof is shown for 3-dimensional vectors, but is readily extendable to n-dimensional vectors given mutually perpendicular unit vectors.

Consider a vector

<math> \mathbf{v} = v_1 \mathbf{i} + v_2 \mathbf{j} + v_3 \mathbf{k} \; <math>.

Repeated application of the Pythagorean theorem yields

<math> v^2 = v_1^2 + v_2^2 + v_3^2 \;<math>.

But this is the same as

<math> \mathbf{v} \cdot \mathbf{v} = v_1^2 + v_2^2 + v_3^2 \;<math>,

so we conclude that taking the dot product of a vector v with itself yields the squared length of the vector.

Lemma 1
<math> \mathbf{v} \cdot \mathbf{v} = v^2 \; <math>.

Now consider two vectors a and b extending from the origin, separated by an angle θ. A third vector c may be defined as

<math> \mathbf{c} \equiv \mathbf{a} - \mathbf{b} \;<math>,

creating a triangle with sides a, b, and c. According to the law of cosines, we have

<math> c^2 = a^2 + b^2 - 2 ab \cos \theta \;<math>.

Substituting dot products for the squared lengths according to Lemma 1, we get

<math>
 \mathbf{c} \cdot \mathbf{c} 

= \mathbf{a} \cdot \mathbf{a} + \mathbf{b} \cdot \mathbf{b} - 2 ab \cos\theta \; <math>.                   (1) But as cab, we also have

<math>
 \mathbf{c} \cdot \mathbf{c} 

= (\mathbf{a} - \mathbf{b}) \cdot (\mathbf{a} - \mathbf{b}) \;<math>, which, according to the distributive law, expands to

<math>
 \mathbf{c} \cdot \mathbf{c} 

= \mathbf{a} \cdot \mathbf{a} + \mathbf{b} \cdot \mathbf{b} -2(\mathbf{a} \cdot \mathbf{b}) \; <math>.                     (2) Merging the two c · c equations, (1) and (2), we obtain

<math>
 \mathbf{a} \cdot \mathbf{a} 

+ \mathbf{b} \cdot \mathbf{b} -2(\mathbf{a} \cdot \mathbf{b}) = \mathbf{a} \cdot \mathbf{a} + \mathbf{b} \cdot \mathbf{b} - 2 ab \cos\theta \; <math>. Subtracting a · a + b · b from both sides and dividing by −2 leaves

<math> \mathbf{a} \cdot \mathbf{b} = ab \cos\theta \; <math>,

Q.E.D.

See also

es:producto_escalar fr:produit scalaire hu:Skalris szorzat ja:内積 nl:Inwendig product pl:iloczyn skalarny ru:Скалярное произведение sl:skalarni produkt zh:点积

Navigation

Academic Kids Menu

  • Art and Cultures
    • Art (http://www.academickids.com/encyclopedia/index.php/Art)
    • Architecture (http://www.academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (http://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (http://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools