MATH 12 CLASS 2 NOTES, SEP Contents. 2. Dot product: determining the angle between two vectors 2

Similar documents
F F. proj cos( ) v. v proj v

MATH 12 CLASS 4 NOTES, SEP

1 Review of the dot product

Vectors are used to represent quantities such as force and velocity which have both. and. The magnitude of a vector corresponds to its.

(arrows denote positive direction)

11.4 Dot Product Contemporary Calculus 1

Review of Coordinate Systems

Vector equations of lines in the plane and 3-space (uses vector addition & scalar multiplication).

15. LECTURE 15. I can calculate the dot product of two vectors and interpret its meaning. I can find the projection of one vector onto another one.

Math 32A Discussion Session Week 2 Notes October 10 and 12, 2017

Chapter 1E - Complex Numbers

Linear Algebra. Alvin Lin. August December 2017

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4

MAT 1339-S14 Class 8

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

What you will learn today

12.1 Three Dimensional Coordinate Systems (Review) Equation of a sphere

Worksheet 1.4: Geometry of the Dot and Cross Products

Course Notes Math 275 Boise State University. Shari Ultman

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

The geometry of least squares

12.1. Cartesian Space

Chapter 3. The Scalar Product. 3.1 The scalar product using coördinates

Vectors and the Geometry of Space

Lecture 1.4: Inner products and orthogonality

12.5 Equations of Lines and Planes

Math 416, Spring 2010 More on Algebraic and Geometric Properties January 21, 2010 MORE ON ALGEBRAIC AND GEOMETRIC PROPERTIES

Dot Products. K. Behrend. April 3, Abstract A short review of some basic facts on the dot product. Projections. The spectral theorem.

MATH 1020 WORKSHEET 12.1 & 12.2 Vectors in the Plane

Chapter 3 Kinematics in Two Dimensions; Vectors

Section 13.4 The Cross Product

Exercise Solutions for Introduction to 3D Game Programming with DirectX 10

Vectors and Plane Geometry

Dot product. The dot product is an inner product on a coordinate vector space (Definition 1, Theorem

Vectors and their uses

Notes on multivariable calculus

The Dot Product

Give a geometric description of the set of points in space whose coordinates satisfy the given pair of equations.

Vector Geometry. Chapter 5

LECTURE 2: CROSS PRODUCTS, MULTILINEARITY, AND AREAS OF PARALLELOGRAMS

4.1 Distance and Length

MTH 2310, FALL Introduction

Matrix-Vector Products and the Matrix Equation Ax = b

Math 290-2: Linear Algebra & Multivariable Calculus Northwestern University, Lecture Notes

7.1 Projections and Components

Detailed objectives are given in each of the sections listed below. 1. Cartesian Space Coordinates. 2. Displacements, Forces, Velocities and Vectors

Vectors Part 1: Two Dimensions

Student Exploration: Vectors

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

CHAPTER 4 VECTORS. Before we go any further, we must talk about vectors. They are such a useful tool for

Introduction to Vectors

Last week we presented the following expression for the angles between two vectors u and v in R n ( ) θ = cos 1 u v

Quantities which have only magnitude are called scalars. Quantities which have magnitude and direction are called vectors.

Exam 1 Review SOLUTIONS

94 CHAPTER 3. VECTORS AND THE GEOMETRY OF SPACE

MATH 32A: MIDTERM 1 REVIEW. 1. Vectors. v v = 1 22

Math Linear Algebra

MAT2342 : Introduction to Applied Linear Algebra Mike Newman, fall Projections. introduction

Linear Algebra I. Ronald van Luijk, 2015

10.2,3,4. Vectors in 3D, Dot products and Cross Products

Math The Dot Product

Vector Basics, with Exercises

Distance in the Plane

Lecture 3: Linear Algebra Review, Part II

MITOCW ocw-18_02-f07-lec02_220k

Approximations - the method of least squares (1)

(1) Recap of Differential Calculus and Integral Calculus (2) Preview of Calculus in three dimensional space (3) Tools for Calculus 3

5. A triangle has sides represented by the vectors (1, 2) and (5, 6). Determine the vector representing the third side.

MTAEA Vectors in Euclidean Spaces

Distances in R 3. Last time we figured out the (parametric) equation of a line and the (scalar) equation of a plane:

Covariance and Dot Product

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note 21

Vector calculus background

6. Vectors. Given two points, P 0 = (x 0, y 0 ) and P 1 = (x 1, y 1 ), a vector can be drawn with its foot at P 0 and

Name: ID: Math 233 Exam 1. Page 1

Geometric Interpretation of Vectors

VECTORS AND THE GEOMETRY OF SPACE

The Cross Product of Two Vectors

Math 241, Exam 1 Information.

Three-Dimensional Coordinate Systems. Three-Dimensional Coordinate Systems. Three-Dimensional Coordinate Systems. Three-Dimensional Coordinate Systems

Linear Algebra: Homework 3

Math 291-2: Lecture Notes Northwestern University, Winter 2016

v = v 1 2 +v 2 2. Two successive applications of this idea give the length of the vector v R 3 :

Vectors a vector is a quantity that has both a magnitude (size) and a direction

v = ( 2)

11.1 Three-Dimensional Coordinate System

Vectors. Examples of vectors include: displacement, velocity, acceleration, and force. Examples of scalars include: distance, speed, time, and volume.

Notes: Vectors and Scalars

Graphical Analysis; and Vectors

Vector Algebra II: Scalar and Vector Products

Usually, when we first formulate a problem in mathematics, we use the most familiar

Midterm 1 Review. Distance = (x 1 x 0 ) 2 + (y 1 y 0 ) 2.

Lecture 2 - Force Analysis

This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication.

MAHAPATRA218FALL12 ( MPMAHAPATRA218FALL12 )

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

Math (P)Review Part II:

1 Vectors and 3-Dimensional Geometry

Mechanics, Heat, Oscillations and Waves Prof. V. Balakrishnan Department of Physics Indian Institute of Technology, Madras

Overview. Motivation for the inner product. Question. Definition

Transcription:

MATH 12 CLASS 2 NOTES, SEP 23 2011 Contents 1. Dot product: definition, basic properties 1 2. Dot product: determining the angle between two vectors 2 Quick links to definitions/theorems Dot product definition Dot products and angles Scalar, vector projection equations We have defined vectors, defined some basic operations on vectors (vector addition and scalar multiplication), have geometric interpretations of these operations, and also talked a bit about the length of a vector. We want to continue our study of the geometry of vectors and three-dimensional space. A critical tool in the study of vectors is an operation known as the dot product. Its definition is straightforward, but its applications are surprisingly versatile. 1. Dot product: definition, basic properties Let v, w be two vectors in R n, with coordinates v 1,..., v n, w 1,..., w n. The dot product of v and w is defined to be the real number v 1 w 1 +... + v n w n = v w. In other words, we just multiply coordinates componentwise and then add them up. The following are some basic properties of dot products, which you can check for yourself using the definition. They basically suggest that the dot product obeys many of the same properties that usual multiplication of numbers obey. (v 1 + v 2 ) w = v 1 w + v 2 w. If c is a scalar, then (cv) w = v (cw) = c(v w). v v = v 2. Let v = 2, 3, 5. Then v v = 2 2 + 3 2 + 5 2 = 38. Let v = 2, 5, w = 5, 2. Then v w = 2 5 + 5 2 = 0. Let v = 1, 3, w = 21. Then v w = 1 2 + 3 1 = 1. The vector u is a unit vector if and only if u u = 1. The definition of dot product might seem somewhat arbitrary, but it turns out to have a strong geometric significance. Already we see that taking the dot product of a vector with itself yields the square of its length, which is a geometric property of a vector. 1

2 MATH 12 CLASS 2 NOTES, SEP 23 2011 2. Dot product: determining the angle between two vectors One of the key properties of the dot product is that it provides a way to calculate the angle between two vectors. In particular, we will constantly use the fact that the dot product provides a quick way to determine whether two vectors are perpendicular to each other. (We may also sometimes use the term orthogonal, which in this context is synonymous with perpendicular.) Consider two vectors a, b, and the third vector c = a b. These three vectors form a triangle; let θ be the angle between the vectors a, b. In particular, 0 < θ < π. Exercise 1. Show that cos θ = a b a b. You will want to use the law of cosines, which states that if a, b, c are the side lengths of a triangle, and θ the angle opposite the side of length c, then c 2 = a 2 + b 2 2ab cos θ. One can check that this formula holds true even if a, b are collinear, so that θ = 0 or π. It is clear from this formula that a b = a b if and only if a, b are scalar multiples of each other. So the dot product provides a quick way of determining the cosine of the angle between two vectors. In particular, because cos π/2 = 0, v w = 0 if and only if v, w are perpendicular to each other. Find the angle between the vectors 3, 5, 2 and 4, 2, 1. We calculate their dot product to be 3 4 + 5 ( 2) + 2 ( 1) = 0, so these vectors are perpendicular to each other. Find the angle between the vectors 3, 1 and 0, 5. We calculate their dot product to be 5, which by itself is not enough to answer this question, so we also calculate the norms of these vectors to be 2 and 5. Therefore cos θ = 5/(2 5) = 1/2, so the angle between these two vectors is π/3, or 60. Suppose v, w are two vectors with length 2, 7 and form an angle of 120 between them. What is v w? We can use the previous formula, in the form v w = v cos θ, to find v w = 2 7 cos 120 = 7. The orthogonality detecting property of the dot product is surprisingly versatile. For example, suppose we want to calculate the distance of a point P, say in R 2, from a line l. For simplicity, let us suppose that l passes through the origin. This distance is the length that P travels if we perpendicularly project P onto the line l. If we think of P as giving the tip of a vector v, and we think of the line l as containing the nonzero vector w (notice that we have lots of different possible choices for w), then what we want to do is decompose v into two pieces, called v and v, which are two vectors which sum to v, such that v w = 0. Then the distance of P from l will just be the length of v. We sometimes call v the (vector) projection of v onto w. Notice that v is actually parallel to w.

MATH 12 CLASS 2 NOTES, SEP 23 2011 3 How do we figure out what v is from v, w? We know that v, v, and v form a right-angled triangle with v as hypothenuse. Let θ be the angle between v and v. Because w is in the same direction as v, the angle between v and v is the same as the angle between v and w. Then we know that cos θ = v w v. On the other hand, the length of v is v cos θ, which by the above formula equals v w. This is sometimes called the scalar projection of v onto w, and tells you the length of the part of v which points in the same direction as w. Notice that this number can be negative, if v, w form an angle greater than 90. To find a formula for v, all we need to do is multiply the scalar projection (which is a scalar, not a vector) by a unit vector pointing in the same direction as w. We know how to calculate this; therefore, we get the formula v = v w w. This also gives a formula for v, since v + v = v. We sometimes write v as proj w v, with the notation indicating that we are projecting the vector v onto w. Suppose we want to project a vector v onto a unit vector u. Because u = 1, the above formula becomes proj u v = (v u) u, which evidently is simpler than the more general formula. However, remember, if you want to use this formula, u MUST be a unit vector! In R 2, the vectors i, j are the unit vectors 1, 0, 0, 1, respectively, and one has x, y = x i + y j. Let s calculate the projection of v = x, y onto i, j. In the former case, using the formula from the previous example, proj i v = ( x, y 1, 0 ) i = x i, which is what we expect. One can similarly calculate proj j v = y j.

4 MATH 12 CLASS 2 NOTES, SEP 23 2011 In R 3, i = 1, 0, 0, j = 0, 1, 0, k = 0, 0, 1. Strictly speaking, these i, j are different from those in the R 2 case, but the context should make it clear what dimensional space i, j live in should we choose to use this notation. Notice that proj w v does not change even if we multiply w by a nonzero scalar. Indeed, we see that replacing w with cw, where c 0, introduces a factor of c 2 in the numerator and a factor of c 2 in the denominator, which end up canceling out. Let s check that v, calculated using the formula v = v v, really is orthogonal to w. The main tool for detecting orthogonality is to take a dot product and check whether that product equals 0 or not, so let s calculate v w: v w = (v v ) w = v w v w w w = v w v w = 0. So v is orthogonal to w, as claimed! Compute the projection of v = 5, 0 onto the vector w = 2, 1. Using the previous formula for proj w v, proj w v = v w w = 10 2 2 2, 1 = 4, 2. 5 We can use this information to calculate the distance from (5, 0) to the line y = x/2. Notice that the vector 2, 1 lies on the line y = x/2 (ie, its coordinates satisfy y = x/2), so that proj w v will lie on this line as well. Then we know that v = 5, 0 4, 2 = 1, 2 is the component of v orthogonal to w, and that the distance from v to y = x/2 is given by the length of this vector. Since v = 5, the distance of (5, 0) to the line y = x/2 is 5. Alternatively, you could have calculated the distance of (5, 0) to the line y = x/2 using techniques from single variable calculus, by trying to minimize the distance function of (5, 0) to a generic point on y = x/2. This is a good exercise to do. Let s think about how we might describe a plane in R 3 using algebraic equations. Let V be a plane, which for simplicity, passes through the origin. A bit of geometric visualization should convince you that there is exactly one line passing through the origin which is perpendicular to the plane. For instance, if V is the xy plane, then this line would be the z-axis. Select a nonzero vector v = a, b, c which is on this line. The fact that this line is perpendicular to V is equivalent to saying that this line is perpendicular to any vector which lies on V, which is equivalent to saying that v is orthogonal to any x = x, y, z on V. In terms of the dot product, this means that v x = 0 ax + by + cz = 0. So the formula for a plane passing through the origin is defined by a single linear equation in the three variables x, y, z, whose coefficients a, b, c are the components of a nonzero vector a, b, c orthogonal to the plane. We ll come back to questions about planes in a few days.

MATH 12 CLASS 2 NOTES, SEP 23 2011 5 Vectors and the dot product have a natural interpretation in physics. Velocity, displacement, acceleration, and force are all expressed using the idea of vectors, because these not only have a magnitude, but also a direction. The dot product is well-suited for calculating work. If you have had physics, you might know that work is defined to be force times distance moved, at least if the force is in the same direction as the direction of motion. In contrast, a force which is orthogonal to a direction of motion of an object does no work on that object. More generally, W = F x, where F is force, and x is displacement. For example, suppose a force (such as a rope someone is pulling) is exerted at a 60 angle above the horizontal on an object which is moving in a horizontal direction. If this force has a magnitude of 100 N and the object travels 10 m, then the total amount of work is F x, which we can calculate using the formula F x = F x cos θ. In this case, W = 100 10 1/2 = 500 J.