Dot Product and Inner Product

Dot Product and Inner Product

Dot product and inner product ZdenˇekDvoˇr´ak February 24, 2015 1 Dot (scalar) product of real vectors n Definition 1. Let u = (α1; : : : ; αn) and v = (β1; : : : ; βn) be vectors from R . The dot product of u and v is u v = α β + α β + ::: + αnβn: · 1 1 2 2 n Definition 2. The Euclidean norm of v = (α ; : : : ; αn) R is 1 2 q v = α2 + α2 + ::: + α2 = pv v: j j 1 2 n · v θ u Lemma 1 (Geometric interpretation). For any u; v Rn such that the angle between u and v is θ, 2 u v = u v cos θ: · j jj j Proof. Note that the dot product is commutative and linear in both argu- ments, and thus (u v) (u v) = u (u v) v (u v) − · − · − − · − = (u u u v) (v u v v) · − · − · − · = u u + v v 2u v · · − · Recall that in a triangle 1 v c u v b − θ θ u a we have c2 = a2 + b2 2ab cos θ; − and thus u v 2 = u 2 + v 2 2 u v cos θ: j − j j j j j − j jj j It follows that u 2 + v 2 u v 2 u v cos θ = j j j j − j − j j jj j 2 u u + v v (u v) (u v) = · · − − · − 2 u u + v v (u u + v v 2u v) = · · − · · − · 2 2u v = · 2 v = u v: · Uses of dot product: Determining the angle betweenθ two vectors:u • u v θ = arccos · u v j jj j Two vectors are perpendicular iff their dot product is 0. • 2 Orthogonal projection: • v p θ u The projection p of u on v (where θ is the angle between u and v) has norm u v u cos θ = · j j v j j and the same direction as v, hence v u v u v p = · = · v: v · v v v j j j j · Determining coordinates in an orthogonal basis (projections to basis • vectors). Example 1. Let u = (p2=2; p2=2) and u = ( p2=2; p2=2). Determine 1 2 − the coordinates of (3; 5) with respect to the basis B = u1; u2. (3, 5) u2 u1 Note that u1 u2 = 0 (the vectors u1 and u2 are perpendicular) and u1 = u = 1. Hence,· the coordinates are j j j 2j (3; 5) u = 4p2 · 1 3 and (3; 5) u = p2 · 2 2 Inner product spaces Recall: R: the field of real numbers • C: the field of complex numbers • complex conjugation: • { α + βi = α βi − { x + y = x + y { xy = x y p { xx = x 2, where α + βi = α2 + β2 j j j j Definition 3. Let F be either R or C. Inner product space is a vector space V over F, together with an inner product ; : V2 F h· ·i ! satisfying the following axioms: positive definiteness For all v V, v; v is a non-negative real number, and v; v = 0 if and only if2v = oh. i h i linearity in the first argument For all u; v; w V and α F, 2 2 u + v; w = u; w + v; w h i h i h i αu; w = α u; w h i h i conjugate commutativity For all u; v V, 2 u; v = v; u : h i h i Remark: o; v = 0 = v; o for every v V. • h i h i 2 If F = R, then • 4 { the last axiom states commutativity u; v = v; u , and h i h i { ; is linear in the second argument as well h· ·i w; u + v = w; u + w; v h i h i h i w; αu = α w; u h i h i If F = C, then • w; u + v = u + v; w h i h i = u; w + v; w h i h i = u; w + v; w h i h i = w; u + w; v h i h i w; αu = αu; w h i h i = α u; w h i = α u; w h i = α w; u : h i { ; is not linear in the second argument, because of the conjuga- tionh· ·i in scalar multiplication. Example 2. Dot product gives an inner product on Rn. • Another example of possible inner product on R2: • (α ; α ); (β ; β ) = 2α β + α β α β α β h 1 2 1 2 i 1 1 2 2 − 1 2 − 2 1 2 2 { positive definiteness: (α1; α2); (α1; α2) = α1 + (α1 α2) 0, and equal to 0 if and onlyh if α = 0 andi α α = 0 − α =≥ 0. 1 1 − 2 ) 2 Complex dot product on Cn: • (α ; : : : ; αn) (β ; : : : ; βn) = α β + ::: + αnβn: 1 · 1 1 1 Standard inner product on the space of continuous functions f :[α; β] • R: ! Z β f; g = f(x)g(x)dx h i α 5 Definition 4. Let V be an inner product space. Vectors u; v V are orthogonal if u; v = 0. We write u v. 2 h i ? Example 3. (1; 0) and (0; 1) are orthogonal with respect to the dot product, since • (1; 0) (0; 1) = 0. · (1; 0) and (0; 1) are not orthogonal with respect to the inner product • (α ; α ); (β ; β ) = 2α β + α β α β α β ; h 1 2 1 2 i 1 1 2 2 − 1 2 − 2 1 since (1; 0); (0; 1) = 1. h i − f(x) = sin x and g(x) = 1 are orthogonal with respect to the standard • inner product on the space of continuous functions from [0; 2π]: Z 2π Z 2π 2π f(x)g(x)dx = sin x dx = [ cos x]0 = cos 0 cos(2π) = 0: 0 0 − − Theorem 2 (Pythagoras theorem). Let V be an inner product space and let u; v V. If u v, then 2 ? u; u + v; v = u + v; u + v : h i h i h i Proof. u + v; u + v = u; u + v; v + u; v + v; u h i h i h i h i h i = u; u + v; v ; h i h i since u; v = 0 and v; u = u; v = 0. h i h i h i Theorem 3 (Cauchy-Schwarz inequality). Let V be an inner product space. Then for all u; v V, 2 u; v 2 u; u v; v ; j h i j ≤ h i h i and if u and v are linearly independent, then the inequality is sharp. Proof. The claim is clearly true if v = o, hence assume that v; v > 0. h i 6 v w z u Let w = hu;vi v and z = u w. Then hv;vi − u; v z; v = u h iv; v h i − v; v h i u; v = u; v h iv; v h i − v; v h i u; v = u; v h i v; v h i − v; v h i h i = 0; and thus v z and w z. Since u ?= w + z, Pythagoras? theorem implies u; u = w; w + z; z h i h i h i w; w ≥ h i u; v u; v = h i h i v; v v; v v; v h i h i h 2 i u; v = h i v; v v; v h i h i u; v 2 = j h i j ; v; v h i and thus u; u v; v u; v 2: h i h i ≥ j h i j hu;vi The equality holds only if z = o, i.e., if u = hv;vi v, which implies that u and v are linearly dependent. Example 4. Let x1; : : : ; xn be positive real numbers. Prove that (x + ::: + x )2 x2 + ::: + x2 1 n ; 1 n ≥ n 7 where the equality holds if and only if x1 = x2 = ::: = xn. Proof. We apply the Cauchy-Schwarz inequality for the dot product of u = (x1; : : : ; xn) and v = (1;:::; 1): (x2 + ::: + x2 )n = (u u)(v v) 1 n · · (u v)2 ≥ · 2 = (x1 + ::: + xn) ; where the equality only holds if u and v are linearly dependent, i.e., x1 = ::: = xn. Definition 5. Let V be a vector space over a field F R; C . A function s : V R is a norm if 2 f g ! s(v) 0 for every v V, and s(v) = 0 if and only if v = o. • ≥ 2 s(αv) = α s(v) for every v V and α F. • j j 2 2 s(u + v) s(u) + s(v) for every u; v V (triangle inequality). • ≤ 2 Definition 6. The norm induced by an inner product is p v = v; v : k k h i If ; is the dot product, then is the Euclidean norm. • h· ·i k · k Pythagoras theorem reformulated using the norm: if u v, then • ? u 2 + v 2 = u + v 2 k k k k k k Cauchy-Schwarz inequality reformulated using the norm: • u; v u v j h i j ≤ k kk k The triangle inequality holds because of Cauchy-Schwarz: • u + v 2 = u + v; u + v k k h i = u 2 + v 2 + u; v + v; u k k k k h i h i u 2 + v 2 + 2 u; v ≤ k k k k j h i j u 2 + v 2 + 2 u v ≤ k k k k k kk k = ( u + v )2 k k k k 8.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us