You are on page 1of 13

Dot product

From Wikipedia, the free encyclopedia Jump to: navigation, search "Scalar product" redirects here. For the abstract scalar product, see Inner product space. For the operation on comple vector spaces, see !ermitian form. For the product of a vector and a scalar, see scalar multiplication. In mathematics, the dot product is an algebraic operation that takes t"o e#ual$length se#uences of numbers %usually coordinate vectors& and returns a single number obtained by multiplying corresponding entries and then summing those products. 'he name is derived from the centered dot "" that is often used to designate this operation( the alternative name scalar product emphasi)es the scalar %rather than vector& nature of the result. *t a basic level, the dot product is used to obtain the cosine of the angle bet"een t"o vectors. 'he principal use of this product is the inner product in a +uclidean vector space: "hen t"o vectors are e pressed on an orthonormal basis, the dot product of their coordinate vectors gives their inner product. For this geometric interpretation, scalars must be taken to be real numbers( "hile the dot product can be defined in a more general setting %for instance "ith comple numbers as scalars& many properties "ould be different. 'he dot product contrasts %in three dimensional space& "ith the cross product, "hich produces a vector as result.

Contents
,hide

. /efinition 0 1eometric interpretation o 0.. Scalar pro2ection o 0.0 3otation 4 5hysics 6 5roperties 7 'riple product e pansion 8 5roof of the geometric interpretation 9 1enerali)ation o 9.. 1enerali)ation to tensors : See also ; + ternal links

[edit] Definition
'he dot product of t"o vectors a < ,a., a0, ... , an- and b < ,b., b0, ... , bn- is defined as:

"here = denotes summation notation and n is the dimension of the vector space. In dimension 0, the dot product of vectors ,a,b- and ,c,d- is ac > bd. Similarly, in a dimension 4, the dot product of vectors ,a,b,c- and ,d,e,f- is ad > be > cf. For e ample, the dot product of t"o three$dimensional vectors ,., 4, ?7- and ,6, ?0, ?.- is

'he dot product can also be obtained via transposition and matri multiplication as follo"s:

"here both vectors are interpreted as column vectors, and a' denotes the transpose of a, in other "ords the corresponding ro" vector.

[edit] Geometric interpretation

is the scalar pro2ection of Since , then

onto

. .

In +uclidean geometry, the dot product of vectors e pressed in an orthonormal basis is related to their length and angle. For such a vector , the dot product is the s#uare of the length of , or

"here

denotes the length %magnitude& of . If

is another such vector,

"here @ is the angle bet"een them. 'his formula can be rearranged to determine the si)e of the angle bet"een t"o non)ero vectors:

'he AauchyBSch"ar) ine#uality guarantees that the argument of arccos is valid. Cne can also first convert the vectors to unit vectors by dividing by their magnitude:

then the angle @ is given by

'he terminal points of both unit vectors lie on the unit circle. 'he unit circle is "here the trigonometric values for the si trig functions are found. *fter substitution, the first vector component is cosine and the second vector component is sine, i.e. %cosx,sinx& for some angle x. 'he dot product of the t"o unit vectors then takes %cosx,sinx& and %cosy,siny& for angles x and y and returns "here x ? y < @. *s the cosine of ;DE is )ero, the dot product of t"o orthogonal vectors is al"ays )ero. Foreover, t"o vectors can be considered orthogonal if and only if their dot product is )ero, and they have non$null length. 'his property provides a simple method to test the condition of orthogonality. Sometimes these properties are also used for "defining" the dot product, especially in 0 and 4 dimensions( this definition is e#uivalent to the above one. For higher dimensions the formula can be used to define the concept of angle. 'he geometric properties rely on the basis being orthonormal, i.e. composed of pair"ise perpendicular vectors "ith unit length.

[edit] Scalar projection

If both and have length one %i.e., they are unit vectors&, their dot product simply gives the cosine of the angle bet"een them. If only is a unit vector, then the dot product gives , i.e., the magnitude of the pro2ection of in the direction of , "ith a minus sign if the direction is opposite. 'his is called the scalar pro2ection of onto , or scalar component of in the direction of %see figure&. 'his property of the dot product has several useful applications %for instance, see ne t section&. If neither nor of is is a unit vector, then the magnitude of the pro2ection of in the direction , as the unit vector in the direction of is .

[edit] Rotation
* rotation of the orthonormal basis in terms of "hich vector is represented is obtained "ith a multiplication of by a rotation matri . 'his matri multiplication is 2ust a compact representation of a se#uence of dot products. For instance, let

the same space


and , "ith

be t"o different orthonormal bases of obtained by 2ust rotating , ,

represent vector in terms of , ,

represent the same vector in terms of the rotated basis , , be the rotated basis vectors , , represented in terms of . to is performed as follo"s:

'hen the rotation from

Gotice that the rotation matri is assembled by using the rotated basis vectors , , as its ro"s, and these vectors are unit vectors. Hy definition, consists of a se#uence of dot products bet"een each of the three ro"s of and vector . +ach of these dot products determines a scalar component of in the direction of a rotated basis vector %see previous section&. If is a ro" vector, rather than a column vector, then vectors in its columns, and must post$multiply : must contain the rotated basis

[edit] Physics
In physics, vector magnitude is a scalar in the physical sense, i.e. a physical #uantity independent of the coordinate system, e pressed as the product of a numerical value and a physical unit, not 2ust a number. 'he dot product is also a scalar in this sense, given by the formula, independent of the coordinate system. + ample:

Fechanical "ork is the dot product of force and displacement vectors. Fagnetic flu is the dot product of the magnetic field and the area vectors.

[edit] Properties
'he follo"ing properties hold if a, b, and c are real vectors and r is a scalar. 'he dot product is commutative:

'he dot product is distributive over vector addition:

'he dot product is bilinear:

When multiplied by a scalar value, dot product satisfies:

%these last t"o properties follo" from the first t"o&. '"o non$)ero vectors a and b are orthogonal if and only if a I b < D. Jnlike multiplication of ordinary numbers, "here if ab < ac, then b al"ays e#uals c unless a is )ero, the dot product does not obey the cancellation la": If a I b < a I c and a K 0, then "e can "rite: a I %b ? c& < D by the distributive la"( the result above says this 2ust means that a is perpendicular to %b ? c&, "hich still allo"s %b ? c& K 0, and therefore b K c.

5rovided that the basis is orthonormal, the dot product is invariant under isometric changes of the basis: rotations, reflections, and combinations, keeping the origin fi ed. 'he above mentioned geometric interpretation relies on this property. In other "ords, for an orthonormal space "ith any number of dimensions, the dot product is invariant under a coordinate transformation based on an orthogonal matri . 'his corresponds to the follo"ing t"o conditions:

'he ne" basis is again orthonormal %i.e., it is orthonormal e pressed in the old one&. 'he ne" base vectors have the same length as the old ones %i.e., unit length in terms of the old basis&.

If a and b are functions, then the derivative of a I b is a' I b > a I b'

[edit] riple product e!pansion


Fain article: 'riple product 'his is a very useful identity %also kno"n as "a#ran#e's formula& involving the dot$ and cross$products. It is "ritten as

"hich is easier to remember as "H*A minus A*H", keeping in mind "hich vectors are dotted together. 'his formula is commonly used to simplify vector calculations in physics.

[edit] Proof of the #eometric interpretation


Aonsider the element of Rn

3epeated application of the 5ythagorean theorem yields for its length L$L

Hut this is the same as

so "e conclude that taking the dot product of a vector $ "ith itself yields the s#uared length of the vector.

"emma %

Go" consider t"o vectors a and b e tending from the origin, separated by an angle @. * third vector c may be defined as

creating a triangle "ith sides a, b, and c. *ccording to the la" of cosines, "e have

Substituting dot products for the s#uared lengths according to Memma ., "e get (1) Hut as c N a ? b, "e also have , "hich, according to the distributive la", e pands to (2) Ferging the t"o c I c e#uations, (1) and (2), "e obtain

Subtracting a I a > b I b from both sides and dividing by ?0 leaves

O.+./.

[edit] Generali&ation
'he inner product generali)es the dot product to abstract vector spaces and is usually denoted by . /ue to the geometric interpretation of the dot product the norm LLaLL of a vector a in such an inner product space is defined as

such that it generali)es length, and the angle @ bet"een t"o vectors a and b by

In particular, t"o vectors are considered orthogonal if their inner product is )ero

For vectors "ith comple entries, using the given definition of the dot product "ould lead to #uite different geometric properties. For instance the dot product of a vector "ith itself can be an arbitrary comple number, and can be )ero "ithout the vector being the )ero vector( this in turn "ould have severe conse#uences for notions like length and angle. Fany geometric properties can be salvaged, at the cost of giving up the symmetric and bilinear properties of the scalar product, by alternatively defining

"here bi is the comple con2ugate of bi. 'hen the scalar product of any vector "ith itself is a non$negative real number, and it is non)ero e cept for the )ero vector. !o"ever this scalar product is not linear in b %but rather con2ugate linear&, and the scalar product is not symmetric either, since . 'his type of scalar product is nevertheless #uite useful, and leads to the notions of !ermitian form and of general inner product spaces. 'he Frobenius inner product generali)es the dot product to matrices. It is defined as the sum of the products of the corresponding components of t"o matrices having the same si)e.

[edit] Generali&ation to tensors


'he dot product bet"een a tensor of order n and a tensor of order m is a tensor of order n>m$0. 'he dot product is calculated by multiplying and summing across a single inde in both tensors. If and are t"o tensors "ith element representation the elements of the dot product are given by and

'his definition naturally reduces to the standard vector dot product "hen applied to vectors, and matri multiplication "hen applied to matrices.

Cccasionally, a double dot product is used to represent multiplying and summing across t"o indices. 'he double dot product bet"een t"o 0nd order tensors is a scalar. /ot produk /ari Wikipedia, ensiklopedia bebas Mangsung ke: navigasi, cari "5roduk skalar" beralih ke halaman ini. Jntuk produk skalar abstrak, melihat ruang produk batin. Jntuk operasi pada ruang vektor kompleks, lihat bentuk !ermitian. Jntuk produk dari vektor dan skalar, lihat perkalian skalar. /alam matematika, produk dot operasi al2abar yang membutuhkan dua sama pan2ang urutan nomor %biasanya koordinat vektor& dan mengembalikan sebuah angka tunggal yang diperoleh dengan mengalikan entri yang sesuai dan kemudian men2umlahkan produk tersebut. Gama ini berasal dari titik berpusat "I" yang sering digunakan untuk menun2uk operasi ini( produk skalar nama alternatif menekankan skalar %bukan vektor& sifat dari hasilnya. 5ada tingkat dasar, produk dot digunakan untuk memperoleh nilai cosinus dari sudut antara dua vektor. 5enggunaan utama dari produk ini adalah produk dalam dalam ruang vektor +uclidean: ketika dua vektor dinyatakan pada sebuah basis ortonormal, hasilkali titik dari vektor$ vektor koordinat mereka memberikan produk batin mereka. Jntuk interpretasi geometris, skalar harus diambil untuk bilangan real, sedangkan hasilkali titik dapat didefinisikan dalam pengaturan yang lebih umum %misalnya dengan bilangan kompleks sebagai skalar& banyak properti akan berbeda. 5roduk titik kontras %dalam tiga dimensi ruang& dengan produk silang, yang menghasilkan suatu vektor sebagai hasilnya. Isi ,SembunyikanI . /efinisi I Interpretasi 1eometris 0 o 0,. proyeksi skalar o 0.0 3otasi I 4 Fisika I 6 5roperties I 7 ekspansi 'riple produk I 8 Hukti interpretasi geometrik I 9 1eneralisasi o 9.. 1eneralisasi untuk tensor I : Mihat 2uga I ; 5ranala luar ,Sunting- /efinisi !asilkali titik dari dua vektor a < ,a., a0, ... , Sebuah- dan b < ,b., b0, ... ,- Filiar didefinisikan sebagai: mana = menun2ukkan pen2umlahan notasi dan n adalah dimensi dari ruang vektor. /alam dimensi 0, dot product vektor ,a, b- dan ,c, d- ac > bd ini. /emikian pula, dalam dimensi 4, dot product vektor ,a, b, c- dan ,d, e, f- adalah iklan > akan > cf. Sebagai contoh, dot product dari dua tiga$dimensi vektor ,, ., 4 $7- dan ,6, $0, $.- adalah

5roduk dot 2uga dapat diperoleh melalui transposisi dan perkalian matriks sebagai berikut: di mana kedua vektor ditafsirkan sebagai vektor kolom, dan a' menun2ukkan transpos dari, dengan kata lain vektor baris yang sesuai. ,Sunting- Interpretasi geometrik adalah proyeksi skalar dari ke. Se2ak, kemudian. /alam geometri +uclidean, dot product vektor dinyatakan dalam basis ortonormal terkait dengan pan2ang dan sudut. Jntuk seperti vektor, dot product adalah persegi pan2ang, atau mana menun2ukkan pan2ang %besar& dari. Jika vektor lain seperti, di mana @ adalah sudut antara mereka. Formula ini dapat disusun kembali untuk menentukan ukuran sudut antara dua vektor bukan$nol: Petidaksamaan Aauchy$Sch"ar) men2amin bah"a argumen *3ccCS berlaku. Satu dapat 2uga pertama mengkonversi vektor untuk vektor satuan dengan membagi dengan besarnya mereka: maka sudut @ diberikan oleh 'itik terminal dari kedua unit vektor terletak pada lingkaran satuan. Mingkaran unit mana nilai$nilai trigonometri untuk enam fungsi trigonometri ditemukan. Setelah substitusi, komponen vektor pertama adalah kosinus dan komponen vektor kedua adalah sinus, yaitu %cos , sin & untuk beberapa sudut . !asilkali titik dari dua vektor satuan kemudian mengambil %cos , sin & dan %nyaman, siny& untuk sudut dan y dan mengembalikan di mana $ y < @. Sebagai kosinus dari ;D E adalah nol, hasilkali titik dari dua vektor ortogonal selalu nol. Selain itu, dua vektor dapat dianggap ortogonal 2ika dan hanya 2ika hasilkali titiknya adalah nol, dan mereka memiliki pan2ang non$null. 5roperti ini menyediakan metode sederhana untuk mengu2i kondisi orthogonality. Padang$kadang sifat ini 2uga digunakan untuk "mendefinisikan" produk titik, terutama dalam 0 dan 4 dimensi( definisi ini setara dengan satu di atas. Jntuk dimensi lebih tinggi rumus dapat digunakan untuk mendefinisikan konsep sudut. Sifat$sifat geometrik mengandalkan dasar yang ortonormal, yaitu terdiri dari vektor tegak lurus berpasangan dengan satuan pan2ang. ,Sunting- proyeksi skalar Jika kedua dan memiliki pan2ang satu %yaitu, mereka adalah vektor$vektor satuan&, dot product mereka hanya memberikan kosinus dari sudut antara mereka. Jika hanya merupakan vektor satuan, maka hasilkali titik memberi, yaitu, besarnya proyeksi dalam arah, dengan tanda minus 2ika arah yang berla"anan. Ini disebut proyeksi

skalar dari ke, atau komponen skalar dari dalam arah %lihat gambar&. 5roperti dari produk dot memiliki beberapa aplikasi yang berguna %misalnya, lihat bagian berikutnya&. Jika tidak pula adalah vektor satuan, maka besarnya proyeksi dalam arah ini, sebagai vektor satuan dalam arah ini. ,Sunting- 3otasi Sebuah rotasi dasar ortonormal dalam hal mana vektor di"akili diperoleh dengan penggandaan oleh matriks rotasi. 5erkalian matriks ini hanya representasi kompak dari urutan produk titik. Fisalnya, biarkan I dan dua basis ortonormal berbeda dari ruang yang sama, dengan diperoleh dengan hanya memutar, I me"akili vektor dalam hal, I me"akili vektor yang sama dalam hal dasar diputar, I,,, men2adi vektor$vektor basis diputar,, di"akili dalam hal. Pemudian rotasi dari untuk dilakukan sebagai berikut: 5erhatikan bah"a matriks rotasi dirakit dengan menggunakan diputar vektor$vektor basis, sebagai baris, dan vektor$vektor adalah vektor satuan. Fenurut definisi, terdiri dari urutan produk titik antara masing$masing dari tiga baris dan vektor. Fasing$masing produk titik menentukan komponen skalar dari dalam arah vektor basis diputar %lihat bagian sebelumnya&. Jika adalah vektor baris, bukan vektor kolom, maka harus berisi vektor$vektor kolom diputar dasar dalam, dan harus posting$kalikan: ,Sunting- Fisika /alam fisika, besaran vektor adalah skalar dalam arti fisik, yaitu kuantitas fisik independen dari sistem koordinat, dinyatakan sebagai produk dari nilai numerik dan unit fisik, bukan hanya nomor. 5roduk dot 2uga skalar dalam arti ini, diberikan oleh rumus, independen dari sistem koordinat. Aontoh: I peker2aan Fekanikal adalah produk titik kekuatan dan vektor perpindahan. I fluks magnetik adalah hasilkali titik dari medan magnet dan vektor daerah. ,Sunting- 5roperties 5roperti berikut berlaku 2ika a, b,, dan c adalah vektor real dan r adalah skalar. 5roduk dot komutatif: 5roduk dot distributif lebih dari pen2umlahan vektor: 5roduk dot bilinear: Petika dikalikan dengan nilai skalar, dot product memenuhi: %Pedua terakhir ini mengikuti sifat dari dua pertama&. /ua non$nol vektor a dan b adalah ortogonal 2ika dan hanya 2ika a I b < D. 'idak seperti perkalian angka biasa, di mana 2ika ab < ac, maka b selalu sama dengan c kecuali adalah nol, produk titik tidak mematuhi hukum pembatalan: Jika I b < a I c K D dan, maka kita dapat menulis: a I %b $ c& < D dengan hukum distributif,

hasilnya di atas mengatakan ini hanya berarti bah"a tegak lurus terhadap %b $ c&, yang masih memungkinkan %b $ c& K D, dan karena itu b K c. *salkan dasar adalah ortonormal, produk dot invarian dalam perubahan isometrik dari dasar: rotasi, refleksi, dan kombinasi, men2aga asal tetap. Interpretasi geometrik yang disebutkan di atas bergantung pada properti ini. /engan kata lain, untuk ruang ortonormal dengan se2umlah dimensi, produk dot invarian diba"ah transformasi koordinat berdasarkan matriks ortogonal. !al ini sesuai dengan dua kondisi berikut: I /asar baru lagi ortonormal %misalnya, ia ortonormal dinyatakan dalam yang lama&. I Qektor$vektor basis baru memiliki pan2ang yang sama seperti yang lama %yaitu, satuan pan2ang dalam hal basis yang lama&. Jika a dan b adalah fungsi, maka turunan dari I b adalah RI b > a I bR ,Sunting- ekspansi produk 'riple *rtikel utama: produk 'riple Ini adalah identitas yang sangat berguna %2uga dikenal sebagai rumus Magrange& yang melibatkan titik$dan lintas$produk. !al ini ditulis sebagai yang lebih mudah untuk diingat sebagai "minus H*A A*H", tetap pikiran yang vektor bertitik bersama$sama. 3umus ini umumnya digunakan untuk menyederhanakan perhitungan vektor dalam fisika. ,Sunting- Hukti dari interpretasi geometris 5ertimbangkan unsur 3 Herulang penerapan hasil 'eorema 5ythagoras untuk pan2ang L v L 'api ini adalah sama seperti 2adi kami menyimpulkan bah"a mengambil hasilkali titik dari vektor v dengan dirinya sendiri menghasilkan pan2ang kuadrat dari vektor. Memma . Sekarang mempertimbangkan dua vektor a dan b membentang dari asal, dipisahkan oleh sudut @. * c vektor ketiga dapat didefinisikan sebagai menciptakan segitiga dengan sisi a, b,, dan c. Fenurut hukum kosinus, kita telah Fenggantikan produk dot pan2ang kuadrat menurut Memma ., kita mendapatkan %.& 'api sebagai c N a $ b, kita 2uga memiliki , yang menurut hukum distributif, memperluas untuk %0& 5enggabungan dua c I c persamaan, %.& dan %0&, kita memperoleh Fengurangkan suatu I a > b I b dari kedua belah pihak dan membaginya dengan daun $0 O.+./.

,Sunting- 1eneralisasi 5roduk dalam generali)es produk titik ke ruang vektor abstrak dan biasanya dilambangkan dengan. Parena interpretasi geometris dari dot product norma L L a L L dari sebuah vektor dalam seperti ruang hasilkali dalam yang didefinisikan sebagai sedemikian rupa sehingga generali)es pan2ang, dan sudut antara dua vektor @ a dan b dengan Secara khusus, dua vektor dianggap ortogonal 2ika produk batin mereka adalah nol Jntuk vektor dengan entri yang kompleks, menggunakan definisi yang diberikan dari dot product akan mengarah pada sifat geometrik sangat berbeda. Fisalnya hasilkali titik dari vektor dengan dirinya sendiri dapat men2adi bilangan kompleks se"enang$"enang, dan dapat nol tanpa vektor men2adi vektor nol, hal ini pada gilirannya akan memiliki konsekuensi berat bagi gagasan$gagasan seperti pan2ang dan sudut. Hanyak sifat geometrik dapat diselamatkan, pada biaya menyerah sifat bilinear simetris dan produk skalar, dengan alternatif mendefinisikan mana bi adalah kon2ugat kompleks bi. Faka produk skalar dari setiap vektor dengan dirinya sendiri adalah angka non$negatif yang nyata, dan itu adalah nol, kecuali untuk vektor nol. Gamun produk ini skalar tidak linear dalam b %melainkan kon2ugasi linear&, dan produk skalar tidak simetris baik, karena . Jenis produk skalar adalah tetap sangat berguna, dan mengarah ke pengertian tentang bentuk !ermitian dan umum ruang hasilkali dalam. 5roduk Frobenius dalam generali)es produk dot matriks. !al ini didefinisikan sebagai 2umlah dari produk komponen yang sesuai dari dua matriks memiliki ukuran yang sama. ,Sunting- 1eneralisasi untuk tensor /ot product antara tensor orde n dan tensor untuk m adalah tensor orde n > m$0. 5roduk dot dihitung dengan mengalikan dan men2umlahkan seluruh indeks tunggal di kedua tensor. Jika dan adalah dua tensor dengan per"akilan elemen dan elemen dari produk dot diberikan oleh /efinisi ini secara alami mengurangi untuk produk dot vektor standar ketika diterapkan pada vektor, dan perkalian matriks bila diterapkan pada matriks. Padang$kadang, produk dot ganda digunakan untuk me"akili mengalikan dan men2umlahkan di dua indeks. 5roduk dot ganda antara dua tensor untuk 0 adalah skalar.

You might also like