Section 1.2. Angles and the Dot Product. The Calculus of Functions of Several Variables

Similar documents
Section 1.1. Introduction to R n

1.3. DOT PRODUCT If θ is the angle (between 0 and π) between two non-zero vectors u and v,

Section 1.4. Lines, Planes, and Hyperplanes. The Calculus of Functions of Several Variables

Figure 1.1 Vector A and Vector F

The Dot and Cross Products

Vector Math Computer Graphics Scott D. Anderson

One advantage of this algebraic approach is that we can write down

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z

Linear Algebra Notes for Marsden and Tromba Vector Calculus

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

9 Multiplication of Vectors: The Scalar or Dot Product

5.3 The Cross Product in R 3

Numerical Analysis Lecture Notes

Vectors Math 122 Calculus III D Joyce, Fall 2012

Chapter 17. Orthogonal Matrices and Symmetries of Space

Recall that two vectors in are perpendicular or orthogonal provided that their dot

Lecture 14: Section 3.3

Dot product and vector projections (Sect. 12.3) There are two main ways to introduce the dot product

Unified Lecture # 4 Vectors

Algebra and Geometry Review (61 topics, no due date)

Inner Product Spaces

6. Vectors Scott Surgent (surgent@asu.edu)

Similarity and Diagonalization. Similar Matrices

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

3. INNER PRODUCT SPACES

Solutions to Exercises, Section 5.1

Inner Product Spaces and Orthogonality

Definition: A vector is a directed line segment that has and. Each vector has an initial point and a terminal point.

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Vector Algebra II: Scalar and Vector Products

Solving Quadratic Equations

Lecture L3 - Vectors, Matrices and Coordinate Transformations

THREE DIMENSIONAL GEOMETRY

MAT 1341: REVIEW II SANGHOON BAEK

Trigonometric Functions and Triangles

BALTIC OLYMPIAD IN INFORMATICS Stockholm, April 18-22, 2009 Page 1 of?? ENG rectangle. Rectangle

Section 4.4 Inner Product Spaces

Linear Algebra: Vectors

PYTHAGOREAN TRIPLES KEITH CONRAD

Geometry of Vectors. 1 Cartesian Coordinates. Carlo Tomasi

Higher Education Math Placement

SOLVING TRIGONOMETRIC EQUATIONS

1 Inner Products and Norms on Real Vector Spaces

MATH 304 Linear Algebra Lecture 20: Inner product spaces. Orthogonal sets.

Mathematics 205 HWK 6 Solutions Section 13.3 p627. Note: Remember that boldface is being used here, rather than overhead arrows, to indicate vectors.

Equations Involving Lines and Planes Standard equations for lines in space

α = u v. In other words, Orthogonal Projection

8-3 Dot Products and Vector Projections

Math 215 HW #6 Solutions

Solving Simultaneous Equations and Matrices

Parallel and Perpendicular. We show a small box in one of the angles to show that the lines are perpendicular.

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

13.4 THE CROSS PRODUCT

Angles and Quadrants. Angle Relationships and Degree Measurement. Chapter 7: Trigonometry

Chapter 20. Vector Spaces and Bases

A vector is a directed line segment used to represent a vector quantity.

Section V.3: Dot Product

6. LECTURE 6. Objectives

17. Inner product spaces Definition Let V be a real vector space. An inner product on V is a function

Lectures notes on orthogonal matrices (with exercises) Linear Algebra II - Spring 2004 by D. Klain

AP Physics - Vector Algrebra Tutorial

FURTHER VECTORS (MEI)

Mathematics Course 111: Algebra I Part IV: Vector Spaces

MODERN APPLICATIONS OF PYTHAGORAS S THEOREM

Vocabulary Words and Definitions for Algebra

Exact Values of the Sine and Cosine Functions in Increments of 3 degrees

Sect Solving Equations Using the Zero Product Rule

ex) What is the component form of the vector shown in the picture above?

Math 4310 Handout - Quotient Vector Spaces

Math 0980 Chapter Objectives. Chapter 1: Introduction to Algebra: The Integers.

Mechanics 1: Vectors

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Prentice Hall Mathematics: Algebra Correlated to: Utah Core Curriculum for Math, Intermediate Algebra (Secondary)

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form

25 The Law of Cosines and Its Applications

Problem set on Cross Product

5.3 SOLVING TRIGONOMETRIC EQUATIONS. Copyright Cengage Learning. All rights reserved.

Solutions to Math 51 First Exam January 29, 2015

JUST THE MATHS UNIT NUMBER 8.5. VECTORS 5 (Vector equations of straight lines) A.J.Hobson

Example SECTION X-AXIS - the horizontal number line. Y-AXIS - the vertical number line ORIGIN - the point where the x-axis and y-axis cross

13. Write the decimal approximation of 9,000,001 9,000,000, rounded to three significant

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.

Orthogonal Diagonalization of Symmetric Matrices

WHEN DOES A CROSS PRODUCT ON R n EXIST?

MATH 095, College Prep Mathematics: Unit Coverage Pre-algebra topics (arithmetic skills) offered through BSE (Basic Skills Education)

Two vectors are equal if they have the same length and direction. They do not

In this this review we turn our attention to the square root function, the function defined by the equation. f(x) = x. (5.1)

Vector has a magnitude and a direction. Scalar has a magnitude

discuss how to describe points, lines and planes in 3 space.

Logo Symmetry Learning Task. Unit 5

Vector Algebra CHAPTER 13. Ü13.1. Basic Concepts

Math 1B, lecture 5: area and volume

Solutions to Practice Problems

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Section 9.5: Equations of Lines and Planes

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Equations, Inequalities & Partial Fractions

Section Inner Products and Norms

by the matrix A results in a vector which is a reflection of the given

Transcription:

The Calculus of Functions of Several Variables Section 1.2 Angles and the Dot Product Suppose x = (x 1, x 2 ) and y = (y 1, y 2 ) are two vectors in R 2, neither of which is the zero vector 0. Let α and β be the angles between x and y and the positive horizontal axis, respectively, measured in the counterclockwise direction. Supposing α β, let θ = α β. Then θ is the angle between x and y measured in the counterclockwise direction, as shown in Figure 1.2.1. From the subtraction formula for cosine we have cos(θ) = cos(α β) = cos(α) cos(β) + sin(α) sin(β). (1.2.1) Now cos(α) = x 1 x, cos(β) = y 1 y, and Thus, we have sin(α) = x 2 x, sin(β) = y 2 y. cos(θ) = x 1y 1 x y + x 2y 2 x y = x 1y 1 + x 2 y 2 x y. (1.2.2) x α θ β y Figure 1.2.1 The angle between two vectors 1 Copyright c by Dan Sloughter 2001

2 Angles and the Dot Product Section 1.2 y θ x Figure 1.2.2 The angle between x = (2, 1) and y = (1, 3) Example Let θ be the smallest angle between x = (2, 1) and y = (1, 3), measured in the counterclockwise direction. Then, by (1.2.2), we must have cos(θ) = (2)(1) + (1)(3) x y = 5 = 1. 5 10 2 Hence θ = cos 1 ( 1 2 ) = π 4. See Figure 1.2.2. With more work it is possible to show that if x = (x 1, x 2, x 3 ) and y = (y 1, y 2, y 3 ) are two vectors in R 3, neither of which is the zero vector 0, and θ is the smallest positive angle between x and y, then cos(θ) = x 1y 1 + x 2 y 2 + x 3 y 3 (1.2.3) x y The term which appears in the numerators in both (1.2.2) and (1.2.3) arises frequently, so we will give it a name. Definition If x = (x 1, x 2,..., x n ) and y = (y 1, y 2,..., y n ) are vectors in R n, then the dot product of x and y, denoted x y, is given by x y = x 1 y 1 + x 2 y 2 + + x n y n. (1.2.4) Note that the dot product of two vectors is a scalar, not another vector. Because of this, the dot product is also called the scalar product. It is also an example of what is called an inner product and is often denoted by x, y.

Section 1.2 Angles and the Dot Product 3 Example If x = (1, 2, 3, 2) and y = ( 1, 2, 3, 5), then x y = (1)( 1) + (2)(2) + ( 3)(3) + ( 2)(5) = 1 + 4 9 10 = 16. The next proposition lists some useful properties of the dot product. Proposition For any vectors x, y, and z in R n and scalar α, x y = y x, (1.2.5) and x (y + z) = x y + x z, (1.2.6) (αx) y = α(x y), (1.2.7) 0 x = 0, (1.2.8) x x 0, (1.2.9) x x = 0 only if x = 0, (1.2.10) x x = x 2. (1.2.11) These properties are all easily verifiable using the properties of real numbers and the definition of the dot product and will be left to Problem 9 for you to check. At this point we can say that if x and y are two nonzero vectors in either R 2 or R 3 and θ is the smallest positive angle between x and y, then cos(θ) = x y x y. (1.2.12) We would like to be able to make the same statement about the angle between two vectors in any dimension, but we would first have to define what we mean by the angle between two vectors in R n for n > 3. The simplest way to do this is to turn things around and use (1.2.12) to define the angle. However, in order for this to work we must first know that 1 x y x y 1, since this is the range of values for the cosine function. This fact follows from the following inequality. Cauchy-Schwarz Inequality For all x and y in R n, x y x y. (1.2.13) To see why this is so, first note that both sides of (1.2.13) are 0 when y = 0, and hence are equal in this case. Assuming x and y are fixed vectors in R n, with y 0, let t be a real number and consider the function f(t) = (x + ty) (x + ty). (1.2.)

4 Angles and the Dot Product Section 1.2 By (1.2.9), f(t) 0 for all t, while from (1.2.6), (1.2.7), and (1.2.11), we see that f(t) = x x + x ty + ty x + ty ty = x 2 + 2(x y)t + y 2 t 2. (1.2.15) Hence f is a quadratic polynomial with at most one root. Since the roots of f are, as given by the quadratic formula, it follows that we must have Thus and so 2(x y) ± 4(x y) 2 4 x 2 y 2 2 y 2, 4(x y) 2 4 x 2 y 2 0. (1.2.16) (x y) 2 x 2 y 2, (1.2.17) x y x y. (1.2.18) Note that x y = x y if and only if there is some value of t for which f(t) = 0, which, by (1.2.8) and (1.2.10), happens if and only if x + ty = 0, that is, x = ty, for some value of t. Moreover, if y = 0, then y = 0x for any x in R n. Hence, in either case, the Cauchy-Schwarz inequality becomes an equality if and only if either x is a scalar multiple of y or y is a scalar multiple of x. With the Cauchy-Schwarz inequality we have 1 x y x y 1 (1.2.19) for any nonzero vectors x and y in R n. Thus we may now state the following definition. Definition the angle between x and y. If x and y are nonzero vectors in R n, then we call ( ) x y θ = cos 1 x y (1.2.20) Example Suppose x = (1, 2, 3) and y = (1, 2, 2). Then x y = 1 4+6 = 3, x =, and y = 3, so if θ is the angle between x and y, we have Hence, rounding to four decimal places, cos(θ) = 3 3 = 1. θ = cos 1 ( 1 ) = 1.3002.

Section 1.2 Angles and the Dot Product 5 Example Suppose x = (2, 1, 3, 1) and y = ( 2, 3, 1, 4). Then x y = 8, x = 15, and y = 30, so if θ is the angle between x and y, we have, rounding to four decimal places, ( ) 8 θ = cos 1 = 1.9575. 15 30 Example Let x be a vector in R n and let α k, k = 1, 2,..., n, be the angle between x and the kth axis. Then α k is the angle between x and the standard basis vector e k. Thus cos(α k ) = x e k x e k = x k x. That is, cos(α 1 ), cos(α 2 ),..., cos(α n ) are the direction cosines of x as defined in Section 1.1. For example, if x = (3, 1, 2)in R 3, then x = and the direction cosines of x are cos(α 1 ) = 3, cos(α 2 ) = 1, and giving us, to four decimal places, and cos(α 3 ) = 2, α 1 = 0.6405, α 2 = 1.3002, α 3 = 1.0069. Note that if x and y are nonzero vectors in R n with x y = 0, then the angle between x and y is cos 1 (0) = π 2. This is the motivation behind our next definition. Definition Vectors x and y in R n are said to be orthogonal (or perpendicular), denoted x y, if x y = 0. It is a convenient convention of mathematics not to restrict the definition of orthogonality to nonzero vectors. Hence it follows from the definition, and (1.2.8), that 0 is orthogonal to every vector in R n. Moreover, 0 is the only vector in R n which has this property, a fact you will be asked to verify in Problem 12. Example The vectors x = ( 1, 2) and y = (1, 2) are both orthogonal to z = (2, 1) in R 2. Note that y = x and, in fact, any scalar multiple of x is orthogonal to z.

6 Angles and the Dot Product Section 1.2 Example In R 4, x = (1, 1, 1, 1) is orthogonal to y = (1, 1, 1, 1). As in the previous example, any scalar multiple of x is orthogonal to y. Definition We say vectors x and y are parallel if x = αy for some scalar α 0. This definition says that vectors are parallel when one is a nonzero scalar multiple of the other. From our proof of the Cauchy-Schwarz inequality we know that it follows that if x and y are parallel, then x y = x y. Thus if θ is the angle between x and y, cos(θ) = x y x y = ±1. That is, θ = 0 or θ = π. Put another way, x and y either point in the same direction or they point in opposite directions. Example The vectors x = (1, 3) and y = ( 2, 6) are parallel since x = 1 2y. Note that x y = 20 and x y = 10 40 = 20, so x y = x y. It follows that the angle between x and y is π. Two basic results about triangles in R 2 and R 3 are the triangle inequality (the sum of the lengths of two sides of a triangle is greater than or equal to the length of the third side) and the Pythagorean theorem (the sum of the squares of the lengths of the legs of a right triangle is equal to the square of the length of the other side). In terms of vectors in R n, if we picture a vector x with its tail at the origin and a vector y with its tail at the tip of x as two sides of a triangle, then the remaining side is given by the vector x + y. Thus the triangle inequality may be stated as follows. Triangle inequality If x and y are vectors in R n, then x + y x + y. (1.2.21) The first step in verifying (1.2.21) is to note that, using (1.2.11) and (1.2.6), x + y 2 = (x + y) (x + y) = x x + 2(x y) + y y = x 2 + 2(x y) + y 2. (1.2.22) Since x y x y by the Cauchy-Schwarz inequality, it follows that x + y 2 x 2 + 2 x y + y 2 = ( x + y ) 2, from which we obtain the triangle inequality by taking square roots. Note that in (1.2.22) we have x + y 2 = x 2 + y 2 if and only if x y = 0, that is, if and only if x y. Hence we have the following famous result.

Section 1.2 Angles and the Dot Product 7 Pythagorean theorem Vectors x and y in R n are orthogonal if and only if x + y 2 = x 2 + y 2. (1.2.23) Perhaps the most important application of the dot product is in finding the orthogonal projection of one vector onto another. This is illustrated in Figure 1.2.3, where w represents the projection of x onto y. The result of the projection is to break x into the sum of two components, w, which is parallel to y, and x w, which is orthogonal to y, a procedure which is frequently very useful. To compute w, note that if θ is the angle between x and y, then x y w = x cos(θ) = x x y = x y y = x u, (1.2.24) where u = is the direction of y. Hence w = x u u when 0 θ π 2, which is when x u > 0, and w = x u u when π 2 < θ π, which is when x u < 0. Thus, in either case, w = (x u)u. y y x x w θ w y Figure 1.2.3 Orthogonal projection Definition Given vectors x and y, y 0, in R n, the vector w = (x u)u, (1.2.25) where u is the direction of y, is called the orthogonal projection, or simply projection, of x onto y. We also call w the component of x in the direction of y and x u the coordinate of x in the direction of y. In the special case where y = e k, the kth standard basic vector, k = 1, 2,..., n, we see that the coordinate of x = (x 1, x 2,..., x n ) in the direction of y is just x e k = x k, the kth coordinate of x.

8 Angles and the Dot Product Section 1.2 Example Suppose x = (1, 2, 3) and y = (1, 4, 0). Then the direction of y is u = 1 17 (1, 4, 0), so the coordinate of x in the direction of y is x u = 1 17 (1 + 8 + 0) = 9 17. Thus the projection of x onto y is w = 9 u = 9 (1, 4, 0) = 17 17 ( 9 17, 36 ) 17, 0. Problems 1. Let x = (3, 2), y = ( 2, 5), and z = (4, 1). Compute each of the following. (a) x y (b) 2x y (c) x (3y z) (d) z (x + 5y) 2. Let x = (3, 2, 1), y = ( 2, 3, 5), and z = ( 1, 4, 1). Compute each of the following. (a) x y (b) 2x y (c) x (3y z) (d) z (x + 5y) 3. Let x = (3, 2, 1, 2), y = ( 2, 3, 4, 5), and z = ( 1, 4, 1, 2). Compute each of the following. (a) x y (b) 2x y (c) x (3y z) (d) z (x + 5y) 4. Find the angles between the following pairs of vectors. First find your answers in radians and then convert to degrees. (a) x = (1, 2), y = (2, 1) (b) z = (3, 1), w = ( 3, 1) (c) x = (1, 1, 1), y = ( 1, 1, 1) (d) y = ( 1, 2, 4), z = (2, 3, 1) (e) x = (1, 2, 1, 2), y = (2, 1, 2, 1) (f) x = (1, 2, 3, 4, 5), z = (5, 4, 3, 2, 1) 5. The three points (2, 1), (1, 2), and ( 2, 1) determine a triangle in R 2. Find the measure of its three angles and verify that their sum is π. 6. Given three points p, q, and r in R n, the vectors q p, r p, and q r describe the sides of the triangle with vertices at p, q, and r. For each of the following, find the measure of the three angles of the triangle with vertices at the given points. (a) p = (1, 2, 1), q = ( 1, 1, 2), r = ( 1, 3, 1) (b) p = (1, 2, 1, 1), q = ( 1, 1, 2, 3), r = ( 1, 3, 1, 2)

Section 1.2 Angles and the Dot Product 9 7. For each of the following, find the angles between the given vector and the coordinate axes. (a) x = ( 2, 3) (b) w = ( 1, 2, 1) (c) y = (2, 3, 1, 1) (d) x = (1, 2, 3, 4, 5) 8. For each of the following, find the coordinate of x in the direction of y and the projection w of x onto y. In each case verify that y (x w). (a) x = ( 2, 4), y = (4, 1) (b) x = (4, 1, 4), y = ( 1, 3, 1) (c) x = ( 4, 3, 1), y = (1, 1, 6) (d) x = (1, 2, 4, 1), y = (2, 1, 2, 3) 9. Verify properties (1.2.5) through (1.2.11) of the dot product. 10. If w is the projection of x onto y, verify that y is orthogonal to x w. 11. Write x = (1, 2, 3) as the sum of two vectors, one parallel to y = (2, 3, 1) and the other orthogonal to y. 12. Suppose x is a vector with the property that x y = 0 for all vectors y in R n, y x. Show that it follows that x = 0.