58
MAT 1339 Vectors Material

MAT 1339 Vectors Material - University of Ottawa

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MAT 1339 Vectors Material - University of Ottawa

MAT 1339 Vectors Material

Page 2: MAT 1339 Vectors Material - University of Ottawa

Chapter 1

Goals

� to understand the difference between scalars and vectors

� to understand the various ways of describing the direction of a vector (and be able toconvert between them)

� to be able to add (and subtract) vectors geometrically and understand the propertiesof addition

� to understand scalar multiplication of vectors and its properties

� to be able to use vector addition to solve some physical problems

� to be able to resolve a vector into perpendicular components

Introduction to Vectors

The first thing we need to do is distinguish vectors from scalars.

A scalar is a quantity that describes magnitude or size only, like numbers (eg√

2, 1/3, −7),temperature (eg 12◦C), area (eg the area of a rectangle with sides of length 2 cm and 4 cmis 8 cm2), speed (eg 80 km/h) or distance (eg my friend’s house is 600 m away from mine).

A vector is a quantity that has both magnitude and direction, like velocity (eg 80 km/h East),displacement (eg my friend’s house is 600 m North of mine) or force (eg 20 N downward).

Example:See if you can distinguish whether the following are scalars or vectors:(i) my cat’s mass is 4.6 kg(ii) the acceleration of gravity is g = 9.8 m/s2 downward(iii) a boat is sailing at 10 knots westward(iv) my nephew has 37 video games

(i) mass is a scalar – but be careful, if I had said my cat weighs 45 N, that would be a forceand hence a vector (the direction would be downward)(ii) a vector since there is magnitude and direction

2

Page 3: MAT 1339 Vectors Material - University of Ottawa

3

(iii) a vector since there is magnitude and direction(iv) this is just a number, so a scalar

We can represent a vector in different ways:(i) in words, like 5 km East(ii) in a diagram as a geometric vector

A

B

(iii) in a symbolic way as ~v (the arrow above the letter denotes that v is a vector, not ascalar)

If we mean a directed line segment from point A (called the starting or initial point or tail)to point B (called the end or terminal point or tip or head) like in the diagram above, we

write ~AB.

The magnitude or size or length of a vector is written using absolute value bars, so themagnitude of vector ~v is |~v|.

Example:The magnitude of the vector 2 cm at an angle of 20◦ to the horiziontal is its length, 2 cm.

20 horizontal2 cm

The direction of a vector can be expressed in different ways. In our example above, thedirection was specified by an angle, which is measured counterclockwise (ccw) with respectto the horizontal.

Or we could use true or azimuth bearing, which is a three-digit (includes leading zeros ifneeded) angle measured clockwise (cw) from North. So North is 000◦, East is 090◦, South is180◦ and West is 270◦. Our example above is 2 cm 070◦.

Or we could use quadrant bearing, which is an angle between 0◦ and 90◦ east or west of thenorth-south line. Our example would be 2 cm N70◦E.

Example:

35

N

E

|v| = 5 m/s

Page 4: MAT 1339 Vectors Material - University of Ottawa

4

This is 5 m/s at 215◦ to the horizontal (or 5 m/s at −145◦ to the horizontal) or 5 m/s at abearing of 235◦ or 5 m/s S55◦W.Can you see where these angles are coming from ?

Two vectors are said to be parallel if they have the same or opposite directions (but notnecessarily the same magnitude)

Example:In trapezoid ABCD,

A B

CD

~AB ‖ ~DC (and ~AB ‖ ~CD).

Two vectors that have the same direction and magnitude are said to be equivalent or equal(their actual locations in space do not matter).

Example:In parallelogram PQRS,

P Q

RS

vectors ~PS and ~QR are equivalent, which we write as ~PS = ~QR.We also have that ~SP = ~RQ, ~PQ = ~SR and ~QP = ~RS.

Opposite vectors have the same magnitude but opposite direction (again, locations do notmatter). The opposite of vector ~v is written as −~v.

So, in the parallelogram above, ~PS = − ~RQ, ~PQ = − ~RS, ~QR = − ~SP and ~SR = − ~QP .

Addition and Subtraction of Vectors

If we add two (or more) vectors, we obtain a single vector, often called the resultant, whichis the same as the original vectors applied one after another.

Page 5: MAT 1339 Vectors Material - University of Ottawa

5

Let’s see this through an example.

Example:Suppose you walked 400 m East and then 500 m South.

400 m

500 m

theta

tan θ =500

400=

5

4, so θ = arctan(5/4) ≈ 51.3◦.

Then, with the help of Pythagoras and trigonometry, we know that this is equivalent tohaving walked

√(400)2 + (500)2 ≈ 640.3 m in direction S38.7◦E.

This shows us how we can add vectors – by joining them head to tail.

Suppose we have vectors ~a and ~b

a b

to add them and produce the vector ~a+~b, we move ~b so that its tail touches the head of ~a

ab

a+b

and then the vector ~a+~b is the vector that joins the tail of ~a to the tip of ~b.

Can you see how this is exactly what we did in the walking example above ?

Also, notice this

ab

b+a

ie ~a+~b = ~b+ ~a and so vector addition is commutative.

Vector addition is also associative, ie (~a+~b) + ~c = ~a+ (~b+ ~c) and so the order in which weadd vectors does not matter (but it will when we subtract vectors below).

Page 6: MAT 1339 Vectors Material - University of Ottawa

6

Do we do anything special if the vectors are parallel ? No, we do exactly the same thing.

a b

a+b

a

ba+b

To subtract vectors, we simply recognize that subtraction is adding the negative, which isthe opposite when dealing with vectors, so ~a−~b = ~a+ (−~b).

a

b-b

a

-ba-b

Notice that we could also do this

a

ba-b

we can find ~a−~b by joining the vectors tail to tail and joining the head of ~b to the head of ~a.

But then

a

bb-a

the vector ~b− ~a is the opposite of ~a−~b and so order in subtraction does matter (just as itdoes with scalars).

Page 7: MAT 1339 Vectors Material - University of Ottawa

7

Suppose we take any vector ~v and subtract it from itself,

v-v

the resultant is ~v − ~v = ~0, called the zero vector, which has length or magnitude equal to 0and points in no specific direction.

The identity property for vector addition should then be clear, ~v +~0 = ~v = ~0 + ~v.

Can you see how the properties of vector addition seem to be very similar to those of scalar(number) addition ?

Example:Consider the parallelogram ABCD with diagonals AC and BD that intersect at E.

A B

E

D C

We can write vectors in the figure as sums and differences of others, like ~DB = ~DA + ~AB,~DC = ~DE + ~EC, ~AE = ~DE − ~DA, and so on...

Try writing some others this way.

Example:We can simplify expressions like the following:((~u+ ~v)− ~u)− ~v= ((~v + ~u)− ~u)− ~v (commutativity)= ((~v + ~u) + (−~u))− ~v (subtraction is adding opposite)= (~v + (~u+ (−~u))− ~v (associativity)= (~v +~0)− ~v (opposites add to zero vector)= ~v − ~v (identity property)= ~v + (−~v)= ~0

Multiplying a Vector by a Scalar

If we take a vector ~v and multiply it by a scalar k (any real number), we are performingscalar multiplication and have produced the scalar multiple k~v. The vector k~v will be |k|times as long as ~v and it will be parallel to ~v.

Page 8: MAT 1339 Vectors Material - University of Ottawa

8

The magnitude of k~v is |k~v| = |k||~v|.If k > 0, k~v is in the same direction as ~v.If k < 0, k~v is in the opposite direction to ~v.If |k| > 1, k~v is longer than ~v.If |k| < 1, k~v is shorter than ~v.

Example:

v

2v

(-1/2)v

Vectors that are parallel are also said to be collinear because they would lie on a straightline when arranged tail to head. But then they would also be scalar multiples of each other.

u

v

ie there is some k ∈ R such that ~u = k~v.

The properties of scalar multiplication are, for any vectors ~u and ~v and scalars k and c,(i) k(~u+ ~v) = k~u+ k~v (distributivity)(ii) k(c~v) = (kc)~v (associativity)(iii) 1~v = ~v (identity)

Example:2(3~u− ~v) + 4~v= 2(3)~u+ 2(−~v) + 4~v= 6~u− 2~v + 4~v= 6~u+ (−2 + 4)~v= 6~u+ 2~v

A vector of the form s~u + t~v (where s and t are scalars) is called a linear combination ofvectors ~u and ~v.

Page 9: MAT 1339 Vectors Material - University of Ottawa

9

Like we have in the examples above and below.

Example:In the trapezoid ABCD, ~AB ‖ ~DC and DC = 4AB.

A B

CD

u

v

If we let ~DA = ~u and ~AB = ~v, then we can write ~DC = 4~v, ~AC = ~AD + ~DC = −~u + 4~vand ~BC = ~BA+ ~AD + ~DC = −~v + (−~u) + 4~v = −~u+ 3~v

The idea of linear combinations of vectors is central to linear algebra.

Applications of Vector Addition

Two vectors that are perpendicular to each other and add together to give a vector ~v arecalled rectangular vector components of ~v.

Example:A cannonball of mass 100 kg is fired horizontally out of a cannon with a force of 2500 N.Gravity will act vertically (downward) with a force of (9.8 m/s2)(100 kg) = 980 kgm/s2 =980 N.

So we have

2500 N

980 NF

theta

and the horizontal force of 2500 N and the vertical of 980 N are rectangular components ofthe resultant force ~F .

The magnitude of the resultant force is |~F | =√

(2500)2 + (980)2 ≈ 2685 N.

The direction is at angle θ below the horizontal, where tan θ =980

2500=

98

250=

49

125,

so θ = arctan(49/125) ≈ 21.4◦.

Page 10: MAT 1339 Vectors Material - University of Ottawa

10

An equilibrant vector ~E is a vector that balances another vector or combination of vectors

and hence is equal in magnitude and opposite in direction to the resultant ~R.

u

v

RE

We need to understand this idea to solve tension problems.

Tension is the equilibrant force in a rope or chain that keeps an object in place (or station-nary).

Example:A picture that weighs 60 N is hanging from a wire (attached to the picture frame) placed ona hook on the wall such that the hook is in the centre of the wire and the two segments ofwire have an angle of 120◦ between them.

So we have

T1 T2

theta

60

60 N

by symmetry, the tensions in the two wire segments will be equal in magnitude, ie | ~T1| = | ~T2|and the angles they make with the horizontal must also be equal.

In fact, θ = 180◦ − 90◦ − 60◦ = 30◦.

The 60 N weight of the picture is the resultant of the system, so we must have that~T1 + ~T2 = 60 N upward.

We can redraw the system as

Page 11: MAT 1339 Vectors Material - University of Ottawa

11

T1

T2

60 N

alpha

30

we have an isosceles triangle where α = 60◦ and hence the triangle must actually be equilat-eral. Thus | ~T1| = | ~T2| = 60 N.

Resolution of Vectors into Rectangular Components

Any vector can be resolved into rectangular (perpendicular) components, typically horizontaland vertical.

Suppose we have a vector ~v at angle θ to the horizontal

v

theta

it can be resolved into its horizontal component ~vh and vertical component ~vv, where~v = ~vh + ~vv (and ~vh ⊥ ~vv).

v

theta

v_v

v_h

then trigonometry tells us that |~vh| = |~v| cos θ and |~vv| = |~v| sin θ.

Example:A child pulls a wagon with a force of 40 N at an angle of 25◦ to the horizontal.Then the horizontal component has magnitude | ~Fh| = |~F | cos θ = (40)(cos(25◦)) ≈ 36.3 N

and the vertical component has magnitude | ~Fv| = |~F | sin θ = (40)(sin(25◦)) ≈ 16.9 N.

Example:An object that weighs 75 N is resting on an inclined plane that makes an angle of 15◦ withthe horizontal.

Page 12: MAT 1339 Vectors Material - University of Ottawa

12

f

75 N

15

n

Since the object is at rest, there is a frictional force ~f acting parallel to the ramp and anormal force ~n acting perpendicularly to the ramp that balances the weight (ie the force ofgravity).

So we have

f

n75 N

15

and so |~f | = (75)(sin(15◦)) ≈ 19.4 N and |~n| = (75)(cos(15◦)) ≈ 72.4 N.

Page 13: MAT 1339 Vectors Material - University of Ottawa

13

Practice Problems

1. Express the vector ~v as the sum or difference of the other two vectors ~x and ~y.

(a)

v

x

y

(b)

v

yx

2. ABCD is a parallelogram with diagonals AC and BD intersecting at E.

A B

E

D C

Express the following as a single vector:(a) ~AB + ~BC

(b) ~BC − ~BA

(c) ~DA+ ~AE − ~DC

3. ABCDEF is a regular hexagon with centre G.

A B

C

DE

F G

Page 14: MAT 1339 Vectors Material - University of Ottawa

14

Express the following as a single vector:(a) ~AB + ~BG+ ~GF

(b) ~AF − ~AG+ ~FE

(c) ~DG+ ~GA− ~DC − ~CB

4. Let X, Y , Z and O represent any four points.(a) Express ~XY , ~Y Z and ~ZX in terms of ~OX, ~OY and ~OZ.

(b) Express ~XY + ~Y Z in terms of ~OX and ~OY (use answers from (a)).

(c) Show that ~XY + ~Y Z + ~ZX = ~0.

5. Simplify each expression.(a) ~x+ ~y − 2~x+ 3~y(b) 2(~x− ~y) + 4(~y − ~x)(c) 3(~x+ ~y)− 2(~x− ~y)− 5~x

6. An airplane is flying at airspeed 300 km/h on a heading of 270◦. There is a wind blowingat 40 km/h from direction 000◦. What is the plane’s ground velocity ?

7. An object weighing 250 N is hanging from two chains. The longer one is attached to theceiling at angle 45◦ and the shorter one to a wall at an angle of 30◦ to the wall. Calculatethe tensions in the two chains.

8. A ferry must cross a river that is 1 km wide to a point directly across. The ferry cantravel at 10 km/h relative to the water. There is a current in the river of 7 km/h. Whatheading should the ferry take ?

9. Determine the horizontal and vertical components of each force.(a) 200 N at an angle of 20◦ ccw from the horizontal(b) 18 N at angle 15◦ cw from vertical

10. An airplane is moving with velocity 400 km/h in direction N25◦W. Calculate the west-ward displacement of the plane after two hours.

Page 15: MAT 1339 Vectors Material - University of Ottawa

15

Practice Problems Solutions

1. (a) ~v = ~x+ ~y(b) ~v = ~y − ~x

2. (a) ~AC

(b) ~AC

(c) ~DE − ~DC = ~CE

3. (a) ~AF

(b) ~GE

(c) ~BA

4.X

Y

OZ

(a) ~XY = ~OY − ~OX~Y Z = ~OZ − ~OY~ZX = ~OX − ~OZ

(b) ~XY + ~Y Z = ( ~OY − ~OX) + ( ~OZ − ~OY ) = ~OZ − ~OX

(c) ~XY + ~Y Z + ~ZX = ( ~OZ − ~OX) + ( ~OX − ~OZ) = ~0

5. (a) 4~y − ~x(b) 2~y − 2~x(c) 5~y − 4~x

6.

theta

300 km/h

40 km/h

Page 16: MAT 1339 Vectors Material - University of Ottawa

16

the ground velocity is the resultant

ground speed is√

(40)2 + (300)2 ≈ 303 km/h

tan(θ) =40

300=

2

15, so θ ≈ 7.6◦

so the ground velocity is 303 km/h S82.8◦W or on heading 262.4◦

7. the system looks like

45 30

250 N

T1T2

which we can redraw as

250 NT2

T1

105

45

30

~T1 + ~T2 = 250 N upward

use the sine law to get| ~T1|

sin(30◦)=

250 N

sin(105◦), so | ~T1| ≈ 129.4 N

and| ~T2|

sin(45◦)=

250 N

sin(105◦), so | ~T2| ≈ 183 N

8.

1 kmcurrent 7 km/h

Page 17: MAT 1339 Vectors Material - University of Ottawa

17

7 km/h

10 km/htheta

the ferry should head in a direction that makes an angle of sin(θ) =7

10,

so θ = arcsin(7/10) ≈ 44.4◦

9. (a)

20

200 N

| ~Fh| = (200 N) cos(20◦) ≈ 188 N

| ~Fv| = (200 N) sin(20◦) ≈ 68.4 N

(b)

15

18 N

| ~Fh| = (18 N) sin(15◦) ≈ 4.7 N

| ~Fv| = (18 N) cos(15◦) ≈ 17.4 N

10.N

E

400 km/h

25

Page 18: MAT 1339 Vectors Material - University of Ottawa

18

the westward velocity component is | ~vw| = (400 km/h) sin(25◦) ≈ 169 km/h

so after two hours, the plane has travelled 338 km westward

Page 19: MAT 1339 Vectors Material - University of Ottawa

Chapter 2

Goals

� to understand how to represent vectors in two- and three-dimensional space in Carte-sian form and perform the operations of addition(subtraction) and scalar multiplicationon them

� to understand both the bracket [a, b, c] and aı + b + ck representations of Cartesianvectors and be able to use both notations

� to be able to perform the dot product of two vectors and understand its properties

� to be able to use the dot product in applications, such as calculating work done orvector projections

� to be able to perform the cross product of two vectors and understand its properties

� to be able to use the cross product in applications, such as calculating torque

Cartesian Vectors

Consider any vector ~v in the plane – its initial and terminal points, Q and R, can be definedusing Cartesian coordinates. If we translate ~v so that its tail is at the origin O, then its headwill be at some point P , with coordinates (a, b). This representation of ~v (ie ~OP ) is calledthe position vector [a, b].

y

x

R

Q

O

P=(a,b)

a

b

19

Page 20: MAT 1339 Vectors Material - University of Ottawa

20

And any vector with the same magnitude and direction can be represented as [a, b].

If we resolve ~v = [a, b] into horizontal and vertical vector components, we’ll have a vector oflength a along the x-axis and one of length b along the y-axis (which will add up to ~v).

We define the unit vectors ı and to be vectors of length 1 (hence the use of the word unit)that point in the positive x and y directions, respectively.

y

xi

j

1

1

So ı has position vector [1, 0] and it’s [0, 1] for and so we can write that ı = [1, 0] and = [0, 1].

Then the horizontal and vertical components of ~v are ~vh = aı = a[1, 0] = [a, 0] and~vv = b = b[0, 1] = [0, b]. And thus ~v = ~vh + ~vv = [a, 0] + [0, b] = [a, b] or ~v = aı+ b.And we also see that |~v| =

√a2 + b2 (by Pythagoras).

Example:

y

x2

3

The vector [2, 3] has horizontal component of length 2, vertical component of length 3 andlength or magnitude

√(2)2 + (3)2 =

√13. It can be written as [2, 3] = [2, 0] + [0, 3] =

2[1, 0] + 3[0, 1] = 2ı+ 3.

Suppose we add vectors ~u = [u1, u2] and ~v = [v1, v2]:~u+ ~v = [u1, u2] + [v1, v2]= [u1, 0] + [0, u2] + [v1, 0] + [0, v2]= u1ı+ u2+ v1ı+ v2= (u1 + v1)ı+ (u2 + v2)= (u1 + v1)[1, 0] + (u2 + v2)[0, 1]= [u1 + v1, u2 + v2]

Page 21: MAT 1339 Vectors Material - University of Ottawa

21

Once we understand how we add vectors in this manner, we do not have to write out allthese details.

And scalar multiplication is k~v = k[v1, v2] = k(v1ı+ v2) = kv1ı+ kv2 = [kv1, kv2].

So the opposite of ~v is −~v = [−v1,−v2].

Example:Suppose ~u = [2, 7] and ~v = [1, 3], then(i) ~u+ ~v = [2 + 1, 7 + 3] = [3, 10] = 3ı+ 10(ii) ~u− ~v = [2− 1, 7− 3] = [1, 4] = ı+ 4(iii) −3~v = [−3(1),−3(3)] = [−3,−9] = −3ı− 9(iv) 2~u+ 4~v = [4, 14] + [4, 12] = [8, 26] = 8ı+ 26

Given any vector ~v = [v1, v2] = v1ı + v2, we can always find a unit vector in the same

direction by dividing by the magnitude, ie v =~v

|~v|=

v1ı+ v2√v21 + v22

and one in the opposite

direction by multiplying by −1, ie −v.

Example:

If ~v = [−2, 3], then v =[−2, 3]√

(−2)2 + (3)2= 1√

13[−2, 3] = 1√

13(−2ı+ 3).

Suppose we have two points P1 = (x1, y1) and P2 = (x2, y2),

y

x

P1 = (x1,y1)

P2 = (x2,y2)

then the vector that joins P1 to P2 is ~P1P2 = ~OP2− ~OP1 = [x2, y2]−[x1, y1] = [x2−x1, y2−y1]and | ~P1P2| =

√(x2 − x1)2 + (y2 − y1)2 (which is the distance between the points).

Example:The vector that joins point A = (−1, 0) to point B = (5, 2) is ~AB = [5− (−1), 2− 0] = [6, 2]and its length is

√(6)2 + (2)2 =

√40 = 2

√10.

We have also seen that the horizontal and vertical vector components are expressible as|~vh| = |~v| cos θ and |~vv| = |~v| sin θ, where θ is the angle (measured counterclockwise) thevector makes with the positive x-axis.

Page 22: MAT 1339 Vectors Material - University of Ottawa

22

y

xtheta

v

v_h

v_v

~v = [v1, v2] = [|~vh|, |~vv|] = [|~v| cos θ, |~v| sin θ] = |~v| cos θı+ |~v| sin θ = |~v|(cos θı+ sin θ)

Can you then see that v = cos θı+ sin θ ?

Example:A force of 150 N at 15◦ to the horizontal is then~F = [|~F | cos θ, |~F | sin θ] = [(150) cos(15◦), (150) sin(15◦)] ≈ [144.9, 38.8] N = 144.9ı+38.8 N.

The Dot Product

The dot product of two vectors ~u and ~v is defined to be ~u · ~v = |~u||~v| cos θ (read as ~u dot ~v),where θ is the acute (0 ≤ θ ≤ 180◦) angle between the vectors ~u and ~v when arranged tailto tail.

theta

u

v|u|cos(theta)

The dot product will clearly be commutative, ie ~u ·~v = ~v ·~u. Also, the dot product producesa scalar (not vector) result and represents a measurement of the projection of one vectoronto the other, or of the tendency of the vectors to point in the same direction.

Example:

40

|v| = 92

|u| = 75

~u · ~v = (75)(92) cos(40◦) ≈ 5286

Page 23: MAT 1339 Vectors Material - University of Ottawa

23

We can notice some of the properties of the dot product immediately:(i) if ~u or ~v is ~0, then ~u · ~v = 0(ii) also if θ = 90◦, then ~u · ~v = 0 (vectors are orthogonal)(iii) if 0 < θ < 90◦, then ~u · ~v > 0 (vectors point in same general direction)(iv) but if 90◦ < θ < 180◦, then ~u · ~v < 0 (vectors point in generally opposite directions)(v) if θ = 0, then ~u · ~v = |~u||~v| (and so ~v · ~v = |~v|2)(vi) if θ = 180◦, then ~u · ~v = −|~u||~v|(vii) ı · = · ı = 0

The dot product is used to calculate work, which is the product of the magnitude of dis-placement of an object with the magnitude of the force applied in the direction of motion.

Example:A child pulls a sled 40 m up a hill with a force of 125 N at an angle of 20◦ to the surface ofthe hill.

A

Bhill40 m

F

20

The work done isW = (displacement)(horizontal component of force)

= | ~AB||~F | cos(20◦)

= ~AB · ~F= (40 m)(125 N) cos(20◦)≈ 4698 J.

Other properties of the dot product are:(i) if ~u 6= ~0 and ~v 6= ~0, then ~u · ~v = 0 if and only if ~u ⊥ ~v(ii) for any scalar k, (k~u) · ~v = k(~u · ~v) = ~u · (k~v) (associative)(iii) ~u · (~v + ~w) = ~u · ~v + ~u · ~w and (~u+ ~v) · ~w = ~u · ~w + ~v · ~w (distributive)

There is a nice way to calculate ~u · ~v using the Cartesian representations of the vectors.

u

vw

theta

By the cosine law, |~w|2 = |~u|2 + |~v|2 − 2|~u||~v| cos θ = |~u|2 + |~v|2 − 2~u · ~v.But ~w = ~u− ~v, so we have~u · ~v = 1

2(|~u|2 + |~v|2 − |~u− ~v|2)

Page 24: MAT 1339 Vectors Material - University of Ottawa

24

= 12(u21 + u22 + v21 + v22 − ((u1 − v1)2 + (u2 − v2)2))

= 12(u21 + u22 + v21 + v22 − u21 + 2u1v1 − v21 − u22 + 2u2v2 − v22)

= u1v1 + u2v2

ie ~u · ~v = [u1, u2] · [v1, v2] = u1v1 + u2v2

Example:(i) [−2, 4] · [3, 2] = (−2)(3) + (4)(2) = −6 + 8 = 2(ii) Suppose ~u = [0, 2] and ~v = [7, 3],then ~u · ~v = (0)(7) + (2)(3) = 6and (3~u− ~v) · (~u+ 5~v) = [−7, 3] · [35, 17] = (−7)(35) + (3)(17) = −245 + 51 = −194.

Applications of the Dot Product

Let’s look at what the dot product can do for us. We have already seen that the work doneby a force ~F in direction of a displacement ~s = ~AB is W = ~F · ~s.

Example:A force of 30 N is acting in the direction of the vector ~v = [3, 2] and is exerted on an objectmoving from point (0, 2) to point (2, 7) (distances measured in metres). What is the workdone ?

A unit vector in the direction of ~v is v =~v

|~v|=

[3, 2]√(3)2 + (2)2

= 1√13

[3, 2].

So the force is ~F = (30 N)v = 30√13

[3, 2] = 30√13

(3ı+ 2) N.

The displacement is ~s = (2− 0)ı+ (7− 2) = 2ı+ 5 m.

So the work done isW = ~F · ~s = 30√

13(3ı+ 2) · (2ı+ 5) J = 30√

13((3)(2) + (2)(5)) J = 480√

13J ≈ 133 J.

Since the dot product is ~u·~v = |~u||~v| cos θ, we have that cos θ =~u · ~v|~u||~v|

and so θ = arccos

(~u · ~v|~u||~v|

)and hence we can find the angle between the vectors.

Example:The angle between the vectors ~u = [6,−2] and ~v = [−1, 4] is

θ = arccos

(~u · ~v|~u||~v|

)= arccos

([6,−2] · [−1, 4]√

(6)2 + (−2)2√

(−1)2 + (4)2

)= arccos

((6)(−1) + (−2)(4)√

40√

17

)

Page 25: MAT 1339 Vectors Material - University of Ottawa

25

= arccos

(−14√40√

17

)≈ 122.5◦.

The shadow of one vector ~v onto another ~u is called the projection of ~v on ~u and is writtenproj~u~v.

theta

uproj_u(v)

v

If the angle between the vectors, θ, is less than 90◦, then proj~u~v is the component of ~v inthe direction of ~u and thus

proj~u~v = |~v| cos θ u = |~v| cos θ

(~u

|~u|

)=

(|~v||~u|

cos θ

)~u.

theta

u

v

proj_u(v)

If 90◦ < θ < 180◦, proj~u~v is in the direction opposite to ~u and thus

proj~u~v = |~v| cos(180◦ − θ)(−u) = |~v|(− cos θ)

(−~u|~u|

)=

(|~v||~u|

cos θ

)~u

(the same formula as above).

And so proj~u~v =

(|~v||~u|

cos θ

)~u =

(|~v||~u| cos θ

|~u||~u|

)~u =

(~v · ~u~u · ~u

)~u.

Example:The projection of ~v = 2ı− 4 on ~u = ı+ 3 is

proj~u~v =

(~v · ~u~u · ~u

)~u

=

((2ı− 4) · (ı+ 3)

(ı+ 3) · (ı+ 3)

)(ı+ 3)

=

((2)(1) + (−4)(3)

(1)(1) + (3)(3)

)(ı+ 3)

=

(−10

10

)(ı+ 3)

= (−1)(ı+ 3)= −ı− 3= −~u.

Page 26: MAT 1339 Vectors Material - University of Ottawa

26

Notice that if θ = 90◦, proj~u~v = ~0 as there is no shadow of ~v on ~u or, equivalently, there isno component of ~v in the direction of ~u.

u

v

We can use the dot product to calculate other quantities. For example, suppose the CandyStore sold 40 bags of jelly beans and 25 giant jawbreakers one week. Then we could representthese sales with the vector [40, 25]. If a bag of jelly beans sells for $1.25 and a giant jawbreakerfor 50¢, we could represent these prices with the vector [1.25, 0.50]. The dot product of thesevectors [40, 25] · [1.25, 0.50] = (40)(1.25) + (25)(0.50) = $62.50 would be the revenue fromthese sales.

Vectors in Three-Space

The three-dimensional Cartesian coordinate system is

z

y

x

this system is called right-handed since, if we were to curl the fingers of our right hand fromthe x-axis towards the y-axis, our thumb would point in the direction of the z-axis.

Points are specified by ordered triples P = (x, y, z). The axes divide space into 8 octants,the one where all three coordinates are positive is called the first octant (but there is noagreement on how to label the remaining seven). The origin O = (0, 0, 0) is the point wherethe three axes intersect.

Example:The point (2, 3,−1) is 2 units in front, 3 units to the right and 1 unit below the origin.

The unit vectors in 3-space are ı = [1, 0, 0], = [0, 1, 0] and k = [0, 0, 1].

Page 27: MAT 1339 Vectors Material - University of Ottawa

27

z

y

x

ij

k

The position vector of the point P = (x, y, z) is ~v = ~OP (from the origin O to the point P ).~OP = [x, y, z] = xı+ y+ zk.

x

y

z

O

P

The magnitude (or length) of the vector would be |~v| =√x2 + y2 + z2 (from Pythagoras).

Example:The vector ~v = [2, 4,−1] = 2ı+ 4− k has magnitude |~v| =

√(2)2 + (4)2 + (−1)2 =

√21.

A scalar multiple of vector ~v = [v1, v2, v3] is k~v = [kv1, kv2, kv3], where k ∈ R and which is avector collinear with ~v.

Example:For what value of c is ~u = [2, c, 1] collinear with ~v = [4, 6, 2] ?For ~u to be collinear with ~v, it must be a scalar multiple of it, ie ~u = k~vor [2, c, 1] = k[4, 6, 2] = [4k, 6k, 2k] or 2 = 4k, c = 6k and 1 = 2k.So clearly k = 1/2 and thus c = 3.

For two vectors ~u = [u1, u2, u3] and ~v = [v1, v2, v3], ~u + ~v = [u1 + v1, u2 + v2, u3 + v3] and~u− ~v = [u1 − v1, u2 − v2, u3 − v3].

And the vector from point P1 = (x1, y1, z1) to point P2 = (x2, y2, z2) is~P1P2 = [x2 − x1, y2 − y1, z2 − z1].

Example:Suppose ~u = 2ı− + 3k and ~v = ı+ 3− 4k, then(i) ~u+ ~v = (2 + 1)ı+ (−1 + 3)+ (3− 4)k = 3ı+ 2− k(ii) ~v − ~u = (1− 2)ı+ (3− (−1))+ (−4− 3)k = −ı+ 4− 7k(iii) 2~u−3~v = 2(2ı− + 3k)−3(ı+ 3−4k) = (4ı−2+ 6k)− (3ı+ 9−12k) = ı−11+ 18k

(iv) A unit vector in the direction of ~u is u =~u

|~u|=

2ı− + 3k√(2)2 + (−1)2 + (3)2

= 1√14

(2ı− +3k).

Page 28: MAT 1339 Vectors Material - University of Ottawa

28

The dot product of ~u = [u1, u2, u3] and ~v = [v1, v2, v3] is ~u·~v = |~u||~v| cos θ = u1v1+u2v2+u3v3.

Example:(i) If ~u = [−1, 5, 0] and ~v = [2, 6,−1], then ~u · ~v = (−1)(2) + (5)(6) + (0)(−1) = 28.(ii) What is the angle bewteen ~u = ı− 2+ 3k and ~v = 4ı+ 7+ k ?

θ = arccos

(~u · ~v|~u||~v|

)= arccos

((1)(4) + (−2)(7) + (3)(1)√

(1)2 + (−2)2 + (3)2√

(4)2 + (7)2 + (1)2

)= arccos

(−7√

14√

66

)≈ 103.3◦.

Are you comfortable with the two notations for vectors ?

Two nonzero vectors ~u and ~v are orthogonal if and only if ~u · ~v = 0. So if we want to find avector orthogonal (perpendicular) to a given one, we use the dot product to help us.

Example:Find a vector orthogonal to ~p = [2,−3, 5].Let ~v = [x, y, z] be a vector orthogonal to ~p, then ~p · ~v = 0, which means that[2,−3, 5] · [x, y, z] = 0 or 2x− 3y + 5z = 0. So there are infinitely many vectors orthogonalto ~p (all of which will lie in the same plane) and we can pick any solution to the equation,say ~v = [1,−1,−1].

The Cross Product

Now, we’ll define a vector operation that will produce a vector result. The cross product oftwo vectors ~u and ~v is defined to be ~u× ~v = |~u||~v| sin θ n (which is read as ~u cross ~v) whereθ is the acute angle between ~u and ~v and n is a unit vector perpendicular to both ~u and ~vsuch that ~u, ~v and n form a right-handed system (curling the fingers of the right hand from~u towards ~v gives the thumb pointing in the direction of n).

u

v

u x v

theta

n

Page 29: MAT 1339 Vectors Material - University of Ottawa

29

Immediately, we have that ~v× ~u = |~v||~u| sin θ (−n) = −~u×~v and hence the cross product isnot commutative.

If ~u = [u1, u2, u3] and ~v = [v1, v2, v3], we calculate the components of ~u× ~v this way~u× ~v = [u2v3 − u3v2, u3v1 − u1v3, u1v2 − u2v1].

There is a visual way to remember how to do the calculation:

Can you see how to use it ?

Example:If ~u = 2ı− + 3k and ~v = ı+ 3+ 4k, then~u× ~v = ((−1)(4)− (3)(3))ı+ ((3)(1)− (2)(4))+ ((2)(3)− (−1)(1))k = −13ı− 5+ 7k,also (~u× ~v) · ~u = [−13,−5, 7] · [2,−1, 3] = (−13)(2) + (−5)(−1) + (7)(3) = 0,and (~u× ~v) · ~v = [−13,−5, 7] · [1, 3, 4] = (−13)(1) + (−5)(3) + (7)(4) = 0and so ~u× ~v is orthogonal to both ~u and ~v (as it should be).

The magnitude of the cross product |~u× ~v| = |~u||~v| sin θ is equal to the area of the parallel-ogram formed by ~u and ~v.

u

v

h

theta

The area is A = |~v|h = |~v||~u| sin θ.

So the area of the parallelogram formed by ~u and ~v in our example above is√(−13)2 + (−5)2 + (7)2 =

√243 ≈ 15.6.

Suppose that ~u× ~v = ~0, what would have to be true ?Either ~u = ~0 or ~v = ~0 or ~u and ~v are parallel (ie θ = 0) and there is k ∈ R such that ~u = k~v.

Other properties of the cross product are:(i) ~u× (~v + ~w) = ~u× ~v + ~u× ~w (distributive)(ii) (~u+ ~v)× ~w = ~u× ~w + ~v × ~w (distributive)(iii) k(~u× ~v) = (k~u)× ~v = ~u× (k~v) (associative)

Page 30: MAT 1339 Vectors Material - University of Ottawa

30

We can use the cross product to find the angle between vectors (though using the dot product

would be easier) as |~u×~v| = |~u||~v| sin θ means that sin θ =|~u× ~v||~u||~v|

and so θ = arcsin

(|~u× ~v||~u||~v|

).

For our example, |~u| =√

(2)2 + (−1)2 + (3)2 =√

14 and |~v| =√

(1)2 + (3)2 + (4)2 =√

26,

so θ = arcsin

(15.6√14√

26

)≈ 54.9◦.

Since ı = [1, 0, 0] and = [0, 1, 0],ı× = [(0)(0)− (0)(1), (0)(0)− (1)(0), (1)(1)− (0)(0)]= [0, 0, 1]= k.

Can you see this visually from the coordinate system ?

Applications of the Dot and Cross Products

The formulas for work and projection are the same in 3-space as they are in 2-space.

Example:A force ~F = [20, 100, 75] N acts on an object with displacement ~d = [2, 4, 5] m, so the work

done is W = ~F · ~d = [20, 100, 75] · [2, 4, 5] = (20)(2) + (100)(4) + (75)(5) = 815 J.Gravity acts in direction −k (ie downward), so the work done against gravity is[0, 0, 75] · [0, 0, 5] = 375 J.

Example:The projection of ~v = [2,−1, 3] on ~u = [3, 2, 7] is

proj~u~v =

(~v · ~u~u · ~u

)~u =

([2,−1, 3] · [3, 2, 7]

[3, 2, 7] · [3, 2, 7]

)[3, 2, 7]

=

((2)(3) + (−1)(2) + (3)(7)

(3)2 + (2)2 + (7)2

)[3, 2, 7]

= 2562

[3, 2, 7]

= 7562ı+ 50

62+ 175

62k.

Torque is a measure of the force ~F acting on an object that causes it to rotate and is given

by ~τ = ~r× ~F , where ~r is the torque arm, the vector from the pivot point to the point where

the force ~F acts.

Example:A wrench of length 30 cm is used to tighten a bolt. A force of 50 N is applied in a clockwisedirection at an angle of 75◦ to the handle.

Page 31: MAT 1339 Vectors Material - University of Ottawa

31

30 cm

75

50 N

orr

F

75

30 cm

50 N

so the torque is ~τ = ~r× ~F = |~r||~F | sin θ n = (0.3 m)(50 N) sin(75◦) n ≈ 14.5 Nm inward (thebolt is being tightened).

We use Nm as the units of the vector torque and not J which is used for the scalar energy.

If we have the vectors ~u, ~v and ~w, we can define the scalar triple product to be ~w ·~u×~v (thecross product has to be done first in order for the product to make sense). This representsthe volume of the parallelopiped formed by the vectors. We use absolute value bars if theresult is negative.

Example:The volume of the parallelopiped formed by ~u = [1, 1, 1], ~v = [2, 2, 4] and ~w = [3, 1, 6] is~w · ~u× ~v = [3, 1, 6] · [1, 1, 1]× [2, 2, 4]= [3, 1, 6] · [(1)(4)− (1)(2), (1)(2)− (1)(4), (1)(2)− (1)(2)]= [3, 1, 6] · [2,−2, 0]= (3)(2) + (1)(−2) + (6)(0)= 4

Page 32: MAT 1339 Vectors Material - University of Ottawa

32

Practice Problems

1. Express each vector in the aı+ b+ ck form.(a) [2, 0, 7](b) [−1,

√2, 3]

(c) [2,−1, 6](d) [0,−5, 0]

2. Express each vector in the [a, b, c] form.(a) 6ı− k(b)√

2+ 2k(c) ı+ + k(d) 2ı− 4− 3k

3. Find a unit vector in the direction of each given vector.(a) [2, 7,−1](b) [0, 3, 0](c) ı+ + k(d) 4ı− + 2k

4. If ~u = [2, 1,−1], ~v = [1,−2, 3] and ~w = [−3, 0, 2], find the following.(a) 2~u− ~v + 3~w(b) 3(~u− 2~w) + 4(~v + ~w)(c) ~u · (3~w)(d) ~v · ~w(e) ~u× (~v + ~w)(f) ~v × ~u+ ~w(g) ~v · ~w × (2~u)(h) 2(~u · ~v) + 6~w · ~v × ~u

5. If ~u = 3ı−2k and ~v = ı+2+ k, find both proj~u~v and proj~v~u. What is the angle betweenthe vectors ?

6. Use the cross product to find the angle bewteen the vectors in question 5.

7. A force ~F = 4ı + 6 + k N is applied to move an object from point (1, 2, 0) to point(7, 11,−2) (measured in metres). What is the work done ?

8. 40 N is applied (clockwise) at an angle of 75◦ to a 18 cm long wrench. Find the torque.

9. Find the volume of the parallelopiped formed by the vectors ~u = [1, 1, 0], ~v = [−2, 0, 1]and ~w = [1, 1, 4].

10. Find a vector that is perpendicular to both ~u = ı+ + k and ~v = 2ı− + 3k.

Page 33: MAT 1339 Vectors Material - University of Ottawa

33

Practice Problems Solutions

1. (a) 2ı+ 7k(b) −ı+

√2+ 3k

(c) 2ı− + 6k(d) −5

2. (a) [6, 0,−1](b) [0,

√2, 2]

(c) [1, 1, 1](d) [2,−4,−3]

3. (a) |[2, 7,−1]| =√

(2)2 + (7)2 + (−1)2 = 3√

6, so v = 13√6[2, 7,−1]

(b) |[0, 3, 0]| =√

(0)2 + (3)2 + (0)2 = 3, so v = [0, 1, 0]

(c) |ı+ + k| =√

(1)2 + (1)2 + (1)2 =√

3, so v = 1√3(ı+ + k)

(d) |4ı− + 2k| =√

(4)2 + (−1)2 + (2)2 =√

21, so v = 1√21

(4ı− + 2k)

4. (a) 2~u− ~v + 3~w = [4, 2,−2]− [1,−2, 3] + [−9, 0, 6] = [−6, 4, 1]

(b) 3(~u− 2~w) + 4(~v + ~w) = 3[8, 1,−5] + 4[−2,−2, 5] = [16,−5, 5]

(c) ~u · (3~w) = [2, 1,−1] · [−9, 0, 6] = (2)(−9) + (1)(0) + (−1)(6) = −24

(d) ~v · ~w = (1)(−3) + (−2)(0) + (3)(2) = 3

(e) ~u× (~v + ~w) = [2, 1,−1]× [−2,−2, 5]= [(1)(5)− (−1)(−2), (−1)(−2)− (2)(5), (2)(−2)− (−1)(−2)] = [3,−8,−2]

(f) ~v × ~u+ ~w = [(−2)(−1)− (3)(1), (3)(2)− (1)(−1), (1)(1)− (−2)(2)] + [−3, 0, 2]= [−1, 7, 5] + [−3, 0, 2] = [−4, 7, 7]

(g) ~v · ~w × (2~u) = [1,−2, 3] · [(0)(−2)− (2)(2), (2)(4)− (−3)(−2), (−3)(2)− (0)(4)]= [1,−2, 3] · [−4, 2,−6] = (1)(−4) + (−2)(2) + (3)(−6) = −26

(h) 2(~u · ~v) + 6~w · ~v × ~u = 2((2)(1) + (−2)(1) + (3)(−1)) + 6[−3, 0, 2] · [−1, 7, 5]= −6 + 6((−3)(−1) + (0)(7) + (2)(5)) = −6 + 78 = 72

5. proj~u~v =

(~v · ~u~u · ~u

)~u =

((ı+ 2+ k) · (3ı− 2k)

(3ı− 2k) · (3ı− 2k)

)(3ı− 2k)

Page 34: MAT 1339 Vectors Material - University of Ottawa

34

=

((1)(3) + (2)(0) + (1)(−2)

(3)(3) + (0)(0) + (−2)(−2)

)(3ı− 2k) = 1

13(3ı− 2k)

proj~v~u =

(~u · ~v~v · ~v

)~v =

(1

(ı+ 2+ k) · (ı+ 2+ k)

)(ı+ 2+ k)

=

(1

(1)(1) + (2)(2) + (1)(1)

)(ı+ 2+ k) = 1

6(ı+ 2+ k)

since ~u · ~v = |~u||~v| cos θ,

θ = arccos

(~u · ~v|~u||~v|

)= arccos

(1√

13√

6

)≈ 83.5◦

6. ~u× ~v = [(0)(1)− (−2)(2), (−2)(1)− (3)(1), (3)(2)− (0)(1)] = [4,−5, 6]so |~u× ~v| =

√(4)2 + (−5)2 + (6)2 ≈ 8.77

since |~u× ~v| = |~u||~v| sin θ,

θ = arcsin

(|~u× ~v||~u||~v|

)= arcsin

(8.77√13√

6

)≈ 83.2◦

(the small difference in the angle in the two calculations is caused by round-off error)

7. the displacement is ~d = (7− 1)ı+ (11− 2)+ (−2− 0)k = 6ı+ 9− 2k

so the work is W = ~F · ~d = (4ı+ 6+ k) · (6ı+ 9− 2k) = (4)(6) + (6)(9) + (1)(−2) = 76 J

8. ~τ = ~r × ~F = |~r||~F | sin θn = (0.18)(40) sin(75◦) inward ≈ 6.95 Nm inward

9. ~u× ~v = [(1)(1)− (0)(0), (0)(−2)− (1)(1), (1)(0)− (1)(−2)] = [1,−1, 2]then ~w · ~u× ~v = [1, 1, 4] · [1,−1, 2] = (1)(1) + (1)(−1) + (4)(2) = 8,so the parallelopiped has a volume of 8 cubic units

10. one way: ~u× ~v = [(1)(3)− (1)(−1), (1)(2)− (1)(3), (1)(−1)− (1)(2)] = [4,−1,−3]another way: let ~w = [x, y, z], then we need ~u · ~w = 0 and ~v · ~w = 0,so we must have x+ y + z = 0 and 2x− y + 3z = 0, but there are infinitely many solutions,so we could take any one of them(all of them are scalar multiples of [4,−1,−3])

Page 35: MAT 1339 Vectors Material - University of Ottawa

Chapter 3

Goals

� to be able to recognize the various forms (scalar, parameter, vector) of the equations forlines in two- and three-space and planes (three-space) and be able to convert betweenthem

� to understand the properties of lines and planes, including parallelism and perpendic-ularity and be able to solve distance problems

� to understand the physical properties for the intersections of lines in two- and three-space, lines and planes (three-space) and planes (three-space) and see the connectionwith solutions of linear systems of equations

� to understand how to perform elimination on the augmented matrix representing alinear system to find the solution

Equations of Lines in Two– and Three–Space

In two-space, a line can be given in slope-intercept form y = mx+b or with the scalar equationAx+By + C = 0.

Example:

1 3x

y

6

12

y = 2x + 6

35

Page 36: MAT 1339 Vectors Material - University of Ottawa

36

The line y = 2x + 6 has slope m = 2 and y-intercept b = 6. Its scalar equation form wouldbe 2x− y + 6 = 0.

r_0 r

m

We can represent this line with a vector equation. A direction vector parallel to the line is~m = [1, 2]. A position vector that has its tip on the line would be ~r0 = [1, 8] (since the point(1, 8) is on the line). Another position vector ~r = [3, 12] also touches the line (since (3, 12)is on the line). Then, if we let ~s be the vector joining (1, 8) to (3, 12), we would have that~r = ~r0+~s. But since ~s is parallel to ~m, we have that ~r = ~r0+t~m. In this particular case, t = 2– can you see that ? If we were to let t vary, we could get any other point on the line, so wehave that the vector equation of the line is ~r = ~r0 + t~m, t ∈ R or [x, y] = [x0, y0] + t[m1,m2].Notice that this is not unique – we can use any point (x0, y0) on the line and any directionvector ~m parallel to it.

If we separate the components, we have the parametric equations of the line, x = x0 + tm1,y = y0 + tm2, t ∈ R.

So for our example above, x = 1 + t and y = 8 + 2t.

Example:Is the point (−1, 4) on the line ? How about the point (2, 9) ?If (−1, 4) is on the line, then we must have that −1 = 1 + t and 4 = 8 + 2t for the samevalue of t. So, yes, (−1, 4) is on the line since t = −2 satisfies both equations.For the other point, 2 = 1 + t requires t = 1 but 9 = 8 + 2t requires that t = 1/2 (ie not thesame value) so the point (2, 9) is not on the line.

Example:Find the vector equation of the line passing through the points P1 = (−1, 2) and P2 = (2,−4).

We need a direction vector, so we use ~m = ~P1P2 = [3,−6]. We can use either point, so take~r0 = [−1, 2] and thus ~r = ~r0 + t~m is [x, y] = [−1, 2] + t[3,−6] (and then P2 corresponds tot = 1 ).

Two lines L1 and L2 are parallel if they have the same slope and are coincident if they arethe same line. For lines in vector equation form, they will be parallel if the direction vectors

Page 37: MAT 1339 Vectors Material - University of Ottawa

37

are parallel.

So the lines in our two examples above are not parallel, whereas the linesL1 ~r = (2 + 3t)ı+ (1− 2t) and L2 ~r = (6− 6t)ı+ (4 + 4t) are parallel.(The notation has changed – can you see what you need to see to see that the lines are par-allel ?)

Let’s go back to our example y = 2x + 6. We know that ~m = [1, 2] is a direction vectorfor the line, so any vector ~n that is perpendicular to ~m (ie ~m · ~n = 0 ) will be normal orperpendicular to the line, like ~n = [2,−1]. But notice the scalar equation 2x− y+ 6 = 0. Inother words, given the scalar equation Ax+ By + C = 0 for a line, the vector ~n = [A,B] isnormal to it.

What do we do in three-space ?First of all, a scalar equation of three variables Ax + By + Cz + D = 0 describes a planein three-space, not a line, so we do not have a scalar equation, nor do we have a slope-intercept form. But we do have a vector equation and parametric equations. The line pass-ing through P0 = (x0, y0, z0) with direction vector ~m = [m1,m2,m3] is ~r = ~r0 + t~m, t ∈ Ror [x, y, z] = [x0, y0, z0]+t[m1,m2,m3] or x = x0+tm1, y = y0+tm2 and z = z0+tm3 for t ∈ R.

Example:The line passing through P1 = (1, 0, 5) and P2 = (4, 2, 1) has ~m = [3, 2,−4], so~r = [4, 2, 1] + t[3, 2,−4] (and then P1 corresponds to t = −1 ).Does (10, 5,−7) lie on the line ?4 + 3t = 10 =⇒ t = 22 + 2t = 5 =⇒ t = 3/21− 4t = −7 =⇒ t = 2 so no, it does not.

All of the vectors normal to a line in two-space are parallel, but this is not the case in three-space.

x

y

n_1

n_2

Page 38: MAT 1339 Vectors Material - University of Ottawa

38

x

y

z

n_1

n_2

Equations of Planes

Example:Consider the scalar equation x+y−z−2 = 0. if we set two of the coordinates equal to 0, wecan see where the graph of the object would cross the axes. If y = z = 0, x+ (0)− (0)− 2 =0 =⇒ x = 2, so the x-intercept is 2. If x = z = 0, (0) + y − (0) − 2 = 0 =⇒ y = 2,so the y-intercept is 2. If x = y = 0, (0)+(0)−z−2 = 0 =⇒ z = −2, so the z-intercept is−2.

x

y

z

(0,2,0)

(0,0,-2)

(2,0,0)

This object is certainly not a line. The graph of this equation is a plane, a flat, two-dimensional surface in three-space that extends off to infinity in every direction.

Other points on the plane are P = (2, 2, 2), Q = (0, 7, 5), R = (6, 3, 7) and S = (4, 0, 2).There are infinitely many points on the plane – can you see that these points satisfy theequation ?However, the point (10, 5, 7) is not on the plane as (10) + (5)− (7)− 2 6= 0 (ie the point doesnot satisfy the equation).

Using the points on the plane, we can find direction vectors that are parallel to the plane(and not to each other). For example, ~PQ = [−2, 5, 3] and ~RS = [−2,−3,−5].

Suppose we have two non-parallel direction vectors ~a and ~b on a plane.

Page 39: MAT 1339 Vectors Material - University of Ottawa

39

P_0

a

b

P

sb

ta

Then, the vector from any point P0 = (x0, y0, z0) to any other point P = (x, y, z) on the

plane can be represented by a linear combination of the direction vectors, ie ~P0P = t~a+ s~b,where t, s ∈ R. But since ~P0P = [x, y, z]− [x0, y0, z0], we can rearrange the vector equation

to write [x, y, z] = [x0, y0, z0]+t~a+s~b = [x0, y0, z0]+t[a1, a2, a3]+s[b1, b2, b3] or ~r = ~r0+t~a+s~band we have the vector equation of a plane.

So for our example above, we can take P0 = (2, 2, 2), ~a = [−2, 5, 3] and ~b = [−2,−3,−5], so[x, y, z] = [2, 2, 2] + t[−2, 5, 3] + s[−2,−3,−5]. Notice that if t = −1/4 and s = 1/4, we have[x, y, z] = [2, 0, 0], the position vector of the x-intercept.

The parametric equations of a plane would be x = x0 + ta1 + sb1, y = y0 + ta2 + sb2 andz = z0 + ta3 + sb3 where t, s ∈ R.

So for our example, x = 2− 2t− 2s, y = 2 + 5t− 3s and z = 2 + 3t− 5s. Picking values fort and s will give us other points on the plane, like if t = 1 and s = −2, we’ll have (4, 13, 15).Can you see that this does satisfy the original scalar equation ?

Example:Let’s find the equation of the plane that contains the line [x, y, z] = [2, 1, 4] + t[2, 3, 4] and isparallel to the line [x, y, z] = [7, 4, 2] + s[−1, 0, 6].Since the first line lies on the plane, we can use (2, 1, 4) as the point on the plane and [2, 3, 4]as a direction vector. Since the plane is parallel to the second line and [−1, 0, 6] is not parallelto [2, 3, 4] (not a scalar multiple of it), we can use [−1, 0, 6] as the second direction vector. Avector equation for the plane would be [x, y, z] = [2, 1, 4] + p[2, 3, 4] + q[−1, 0, 6] for p, q ∈ R.Or, in parametric form, x = 2 + 2p− q, y = 1 + 3p and z = 4 + 4p+ 6q.

Properties of Planes

Suppose we know a point P0 = (x0, y0, z0) on a plane and that the vector ~n = [A,B,C] =Aı+B+ Ck is normal (perpendicular or orthogonal) to the plane.

Page 40: MAT 1339 Vectors Material - University of Ottawa

40

n = [A,B,C]

P_0 = (x_0, y_0, z_0)P = (x,y,z)

If we take any point P = (x, y, z) on the plane, then the vector ~P0P = [x− x0, y− y0, z− z0]is parallel to the plane and perpendicular to ~n. Thus ~P0P · ~n = 0.So [x− x0, y − y0, z − z0] · [A,B,C] = 0or A(x− x0) +B(y − y0) + C(z − z0) = 0or Ax+By + Cz + (−Ax0 −By0 − Cz0) = 0or Ax + By + Cz + D = 0 where D = −Ax0 − By0 − Cz0 is a constant. This is thescalar equation of the plane.

Example:The plane containing the point P0 = (4,−2, 3) and having normal vector ~n = [1,−2, 1] hasscalar equation (1)x+(−2)y+(1)z+(−(1)(4)−(−2)(−2)−(1)(3)) = 0 or x−2y+z−11 = 0,which is also written as x− 2y + z = 11.

Example:Find the scalar equation of the plane containing the points P = (2, 1, 4), Q = (4, 0, 3) andR = (3, 4,−2).

The vectors ~PQ = [2,−1,−1] and ~PR = [1, 3,−6] are vectors on the plane. Then ~PQ× ~PRwill be normal to the plane, so~n = [2,−1,−1]× [1, 3,−6]= [(−1)(−6)− (−1)(3), (−1)(1)− (2)(−6), (2)(3)− (−1)(1)]= [9, 11, 7].The scalar equation has the form 9x+11y+7z+D = 0. We can plug any of the three pointsin to find D. Let’s use Q = (4, 0,−3), then 9(4) + 11(0) + 7(3) +D = 0 =⇒ D = −57 andthe scalar eqaution of the plane is 9x+ 11y + 7z = 57.

Intersections of Lines in Two– and Three–Space

For two lines L1 and L2 in two-space, there are three possibilities.

Page 41: MAT 1339 Vectors Material - University of Ottawa

41

x

yL1

L2

(i) The lines intersect at a single point.

x

y

L1

L2

(ii) The lines are coincident (and hence intersect at infinitely many points).

x

y

L1

L2

(iii) The lines are parallel and distinct (and hence do not intersect).

There is a direct connection to linear systems of two equations in two unknowns.

(a) Consider2x+ 3y = 43x+ 4y = 9

we can rewrite the system as an augmented matrix

Page 42: MAT 1339 Vectors Material - University of Ottawa

42

[2 3 43 4 9

]where the first row represents the first equation and the second row represents the secondequation. The first column represents x and the second column represents y. The verticalbar represents the equalities and the last column represents the constants on the right-handsides of the equations. This is simply a shorthand notation for the system of equationswhere we keep track of the coefficients. We perform elementary row operations like mul-tiplying or dividing a row by a nonzero scalar constant, interchanging rows or adding orsubtracting multiples of one row from another. The goal is to change the matrix into itsreduced row echelon form (RREF), where the first nonzero entry in each row is a 1, called aleading 1 or pivot. Each leading 1 is strictly to the right of any leading 1 in a row above it andall other elements in a column that contains a leading 1 are zero (so both above and below theleading 1). Any zero rows must appear at the bottom of the matrix. When we have reducedrow echelon form, we will be able to read the solution of the linear system right out of thematrix. The procedure to reduce a matrix to this form is called Gauss-Jordan elimination.[

2 3 43 4 9

]R1/2 (create leading 1 in first row)[

1 3/2 23 4 9

]R2 − 3R1 (clear column under leading 1)[

1 3/2 20 −1/2 3

]R2 ×−2 (make leading 1 in second row)[

1 3/2 20 1 −6

]R1 − (3/2)R2 (clear column above leading 1)[

1 0 110 1 −6

]this is RREF, the solution is x = 11 and y = −6.

These lines intersect at a single point, which is a unique solution.

(b) Consider2x+ 3y = 46x+ 9y = 12

as a matrix[2 3 46 9 12

]R1/2[

1 3/2 26 9 12

]R2 − 6R1[

1 3/2 20 0 0

](RREF)

we have a row of zeros and the solution is x+(3/2)y = 2, which means that there are infinitely

Page 43: MAT 1339 Vectors Material - University of Ottawa

43

many solutions (these lines are coincident). Let y = t be a parameter, then x + (3/2)t = 2or x = 2 − (3/2)t. So the parametric equations of the line of solutions are x = 2 − (3/2)tand y = t and the vector equation would be [x, y] = [2, 0] + t[−3/2, 1].

(c) Consider2x+ 3y = 46x+ 9y = 16

as a matrix[2 3 46 9 16

]R1/2[

1 3/2 26 9 16

]R2 − 6R1[

1 3/2 20 0 4

]this system is inconsistent. The last row says 0x + 0y = 4, which is impossible, so there isno solution here (these lines are parallel).

If we have two lines L1 and L2 in three-space, there are four possibilities.

x

y

z

L1

L2

(i) The lines intersect at a single point (unique solution).

x

y

z

L1

L2

Page 44: MAT 1339 Vectors Material - University of Ottawa

44

(ii) The lines are coincident (there are infinitely many solutions).

x

y

z

L1

L2

(iii) The lines are parallel and distinct (no solution).

x

y

z

L1

L2

(iv) The lines are skew – they are distinct, not parallel and do not intersect (no solution).

Example:The lines L1 [x, y, z] = [2, 3, 4] + t[1, 1, 3] and L2 [x, y, z] = [1, 0,−1] + s[1, 1, 3] are parallel(same direction vector). Are they coincident or distinct ?If they are coincident, every point on L1 would be on L2, so all we have to do is check if(2, 3, 4) is on L2. The parametric equations for L2 are x = 1 + s, y = s and z = −1 + 3s. Ifwe substitute the point (2, 3, 4) in, 2 = 1 + s =⇒ s = 13 = s =⇒ s = 3and 4 = −1 + 3s =⇒ s = 5/3 and so the point is not on L2 and the lines are distinct.

Example:Find the point of intersection of L1 ~r = [2, 1, 5] + t[3, 1,−2] and L2 ~r = [0, 3, 1] + s[5,−1, 2]These lines are not parallel because their direction vectors are not parallel.We write the lines in parametric form x = 2 + 3t, y = 1 + t and z = 5 − 2t; and x = 5s,y = 3 − s and z = 1 + 2s. We look for a point of intersection by equating the coordinates2 + 3t = 5s, 1 + t = 3− s and 5− 2t = 1 + 2s. This system has a unique solution s = t = 1.Plugging these values for the parameters into the equations for the lines yields the point ofintersection (5, 2, 3) (which is a unique solution).

Page 45: MAT 1339 Vectors Material - University of Ottawa

45

Example:Are the lines L1 [x, y, z] = [2, 1, 5] + t[3, 1,−2] and L2 [x, y, z] = [1, 3, 2] + s[5,−1, 2] skew ?The lines are not parallel, so we check for a point of intersection.2 + 3t = 1 + 5s =⇒ 3t− 5s = −11 + t = 3− s =⇒ t+ s = 2and 5−2t = 2+2s =⇒ 2t+2s = 3, which contradicts the previous equation, so this systemis inconsistent and there is no point of intersection. ∴ the lines are skew.

The shortest distance between two skew lines L1 and L2 would be the length of the commonperpendicular | ~AB|.

L1

L2

A

B

P1

P2

Suppose we have points P1 and P2 on the lines, then if ~n is any vector in the direction of~AB, we would have that proj~n ~P1P2 = ~AB. But | ~AB| is the length we want, so

| ~AB| = |proj~n ~P1P2| =| ~P1P2 · ~n||~n|

. We can find a normal vector ~n that is perpendicular to

both lines by taking the cross product of the direction vectors of the lines, ie ~n = ~m1 × ~m2.

Example:For our skew lines above, ~m1 = [3, 1,−2] and ~m2 = [5,−1, 2].So ~n = ~m1 × ~m2

= [3, 1,−2]× [5,−1, 2]= [(1)(2)− (−2)(−1), (−2)(5)− (3)(2), (3)(−1)− (1)(5)]= [0,−16,−8].We can divide by −8 and use ~n = [0, 2, 1] for convenience.

Use the points on the lines P1 = (2, 1, 5) and P2 = (1, 3, 2) to get ~P1P2 = [−1, 2,−3].

So | ~AB| = |~P1P2 · ~n||~n|

=|[−1, 2,−3] · [0, 2, 1]|√

(0)2 + (2)2 + (1)2

=|(−1)(0) + (2)(2) + (−3)(1)|√

5

= 1/√

5 ≈ 0.45 (so the lines are close).

Page 46: MAT 1339 Vectors Material - University of Ottawa

46

Intersections of Lines and Planes

If we have a line and a plane in three-space, there are three possibilities.

(i) The line intersects the plane at a single point (unique solution).

(ii) The line lies on the plane (so they intersect at infinitely many points and there are in-finitely many solutions).

(iii) The line is parallel to the plane (but not on it), so the line does not intersect the plane(no solution).

Example:Dose the line x = 2 + t, y = 6− t and z = 3 + 2t intersect the plane 2x+ 3y + 5z = 55 ? Ifyes, at what point ?We plug the parametric equations of the line into the scalar equation of the plane to see ifthere is a solution.2(2 + t) + 3(6− t) + 5(3 + 2t) = 554 + 2t+ 18− 3t+ 15 + 10t = 559t = 18 =⇒ t = 2Since there is a single solution for t, the line and plane intersect at the single point (4, 4, 7).

Example:Is the line ~r = [2, 3, 1] + t[1, 5,−2] parallel to the plane 3x+ y + 4z = 13 ? If yes, is the line

Page 47: MAT 1339 Vectors Material - University of Ottawa

47

in the plane or not ?The direction vector of the line is ~m = [1, 5,−2] = ı + 5 − 2k and a normal vector of theplane is ~n = [3, 1, 4] = 3ı+ + 4k.Let’s check ~m · ~n = [1, 5,−2] · [3, 1, 4] = (1)(3) + (5)(1) + (−2)(4) = 0.Since ~m · ~n = 0, ~m ⊥ ~n and hence the line is parallel to the plane.Let’s check for points of intersection.3(2 + t) + (3 + 5t) + 4(1− 2t) = 136 + 3t+ 3 + 5t+ 4− 8t = 1313 + 0t = 130t = 0Since all values of t satisfy this equation, there are infinitely many points of intersection andhence the line does lie on the plane.

The line would be parallel to the plane 3x+ y + 4z = 10 as well, but it would not lie on it.3(2 + t) + (3 + 5t) + 4(1− 2t) = 1013 + 0t = 100t = −3Which has no solution.

If a line is parallel to a plane, but not on it, how far apart are they ? Suppose we have apoint P on the line and a point Q on the plane.

n

P

Q

d

If ~n is a normal vector to the plane, then the projection of ~PQ onto ~n would be the perpen-

dicular distance d from P to the plane. So we have d =| ~PQ · ~n||~n|

(which is similar to what

we did for the skew lines).

Example:How far is the line ~r = [2, 3, 1] + t[1, 5,−2] from the plane 3x+ y + 4z = 10 ?

Take P = (2, 3, 1) and Q = (2, 0, 1), then ~PQ = [0,−3, 0] and we know ~n = [3, 1, 4].

So d =|[0,−3, 0] · [3, 1, 4]|√

(3)2 + (1)2 + (4)2

=|(0)(3) + (−3)(1) + (0)(4)|√

26

Page 48: MAT 1339 Vectors Material - University of Ottawa

48

= 3/√

26 ≈ 0.59 (so pretty close).

Intersections of Planes

If we have two planes in three-space, there are three possibilities.

(i) They intersect in a line (infinitely many solutions with one parameter).

(ii) They are coincident (infinitely many solutions with two parameters).

(iii) They are parallel and distinct (no solution).

A system of two equations in three unknowns is either inconsistent (has no solution) or hasinfinitely many solutions – a unique solution is not possible (two planes cannot intersect ata single point).

Example:Consider the planes 2x+ 2y + z = 7 and x+ y + z = 6.The normals for the planes are not parallel, so the planes are not parallel and hence theymust intersect.Let’s solve for the line of intersection. We’ll rewrite the system as a matrix.

Page 49: MAT 1339 Vectors Material - University of Ottawa

49

[1 1 1 62 2 1 7

]R2 − 2R1[

1 1 1 60 0 −1 −5

]R2 ×−1[

1 1 1 60 0 1 5

]R1 −R2[

1 1 0 10 0 1 5

](RREF)

The solution is x+ y = 1, z = 5.Let y = t, then x = 1− t, y = t and z = 5 are the parametric equations of the line.The vector equation is [x, y, z] = [1, 0, 5] + t[−1, 1, 0].

Example:Consider the planes x− 2y + 3z = 10 and 2x− 4y + 6z = 12.The normals are parallel, so the planes are parallel. But are they coincident or distinct ?[

1 −2 3 102 −4 6 12

]R2 − 2R1[

1 −2 3 100 0 0 −8

]This is an inconsistent system, so there is no solution and the planes are distinct.

The planes x− 2y + 3z = 10 and 2x− 4y + 6z = 20 are coincident – can you see that ?

For three planes, there are six possibilities. There are three where the linear system isconsistent (has solutions).

Page 50: MAT 1339 Vectors Material - University of Ottawa

50

(i) The planes intersect at a single point (unique solution).

(ii) The planes intersect in a line (infinitely many solutions with one parameter).

(iii) The planes are coincident (infinitely many solutions with two parameters).

And there are three where the system is inconsistent (no solutions).

(iv) The planes are parallel (and at least two are distinct).

Page 51: MAT 1339 Vectors Material - University of Ottawa

51

(v) Two of the planes are parallel (and distinct), but the third is not parallel.

(vi) The planes intersect in pairs.

The normals in the situations would have to be:(i) not parallel, nor coplanar(ii) coplanar, but not parallel(iii) parallel(iv) parallel(v) two are parallel(vi) coplanar, but not parallel.

Example:Consider the planes x+ 2y + 3z = 10, 2x+ 3y − z = 4 and 3x+ 4y + 5z = 12.

Page 52: MAT 1339 Vectors Material - University of Ottawa

52

1 2 3 102 3 −1 43 4 5 12

R2 − 2R1, R3 − 3R1 1 2 3 100 −1 −7 −160 −2 −4 −18

R2 ×−1 1 2 3 100 1 7 160 −2 −4 −18

R3 + 2R2 1 2 3 100 1 7 160 0 10 14

R3/10 1 2 3 100 1 7 160 0 1 7/5

R1 − 3R3, R2 − 7R3 1 2 0 29/50 1 0 31/50 0 1 7/5

R1 − 2R2 1 0 0 −33/50 1 0 31/50 0 1 7/5

(RREF)

These planes intersect at a single point (−33/5, 31/5, 7/5).

Example:Consider the planes x+ y − 2z = 4, 2x+ 2y − 4z = 6 and 3x+ 5y + 2z = 10. 1 1 −2 4

2 2 −4 63 5 2 10

R2 − 2R1, R3 − 3R1 1 1 −2 40 0 0 −20 2 8 −2

This is an inconsistent system, so there is no solution.Can you see that two of the planes are parallel but distinct ?

Example:Consider the planes x− 5y + 2z = 10, x+ 7y − 2z = −6 and 8x+ 5y + z = 20. 1 −5 2 10

1 7 −2 −68 5 1 20

R2 −R1, R3 − 8R1

Page 53: MAT 1339 Vectors Material - University of Ottawa

53

1 −5 2 100 12 −4 −160 45 −15 −60

R2/12 1 −5 2 100 1 −1/3 −4/30 45 −15 −60

R3 − 45R2 1 −5 2 100 1 −1/3 −4/30 0 0 0

R1 + 5R2 1 0 1/3 10/30 1 −1/3 −4/30 0 0 0

(RREF)

So we have x+ (1/3)z = 10/3 and y − (1/3)z = −4/3.Let z = t be the parameter, then we have x = 10/3− (1/3)t, y = −4/3 + (1/3)t and z = tor ~r = [10/3,−4/3, 0] + t[−1/3, 1/3, 1] and the planes intersect in a line.

Page 54: MAT 1339 Vectors Material - University of Ottawa

54

Practice Problems

1. Given the line in vector or parametric form, convert it to the other.(a) x = 2 + t, y = 7− 5t, z = 2t(b) [x, y, z] = [3, 4,−2] + t[2,−1, 0]

2. Write the vector and parametric forms of the line parallel to 2ı− 3+ k passing throughthe point (4, 1,−3). Does the line pass through the points (16,−17, 3) and (5, 2,−2) ?

3. Write all three forms of the equation of the plane passing through the point (−2, 1, 3)with normal vector ~n = ı− 2+ 4k.

4. Write all three forms of the equation of the plane containing the points (1, 1, 4), (−2,−1, 0)and (3, 2,−5). Is the point (9, 5, 3) on the plane ?

5. Determine if the lines intersect and write the solutions if they do.(a) ~r = [2, 3,−1] + t[2,−1, 2] and ~r = [1, 4, 6] + s[4,−2, 4](b) x = 2 + t, y = −3− 2t, z = 4− t and x = 3 + s, y = 1 + s, z = 17 + 6s

6. Show that the lines [x, y, z] = [1, 0,−1] + s[2, 3,−4] and [x, y, z] = [8, 1, 3] + t[4,−5, 1] areskew and find the distance between them.

7. Does the line intersect the plane ? If yes, give the solution.(a) x = 2 + t, y = 1− 2t, z = 3− t and 4x+ y + 2z = 10(b) x = 1 + 2t, y = −2 + 3t, z = 4− t and x+ y + 5z = 19(c) ~r = [2, 0,−4] + t[1, 5,−1] and x+ 2y + z = 6

8. What is the distance between the point (3, 2,−1) and the plane 2x+ 3y + z = 8 ?

9. Find the line of intersection of the planes x+ 2y + z = 12 and 2x− y + 3z = 4.

10. How do the planes intersect ?(a) x+ 2y + z = 4, 2x− y + z = 7 and 3x+ 2y + 2z = 8(b) x+ 2y + z = 4, 2x+ 4y + 2z = 8 and 3x+ y + 3z = 6(c) x+ 2y + z = 4, 5x+ 6y − z = −2 and 2x+ 4y + 2z = 3

Page 55: MAT 1339 Vectors Material - University of Ottawa

55

Practice Problems Solutions

1. (a) [x, y, z] = [2, 7, 0] + t[1,−5, 2](b) x = 3 + 2t, y = 4− t, z = −2

2. the line is ~r = [4, 1,−3] + t[2,−3, 1] or x = 4 + 2t, y = 1− 3t, z = −3 + t16 = 4 + 2t =⇒ t = 6−17 = 1− 3t =⇒ t = 63 = −3 + t =⇒ t = 6, so yes, (16,−17, 3) is on the line5 = 4 + 2t =⇒ t = 1/22 = 1− 3t =⇒ t = −1/3−2 = −3 + t =⇒ t = 1, so no, (5, 2,−2) is not on the line

3. since the normal is ~n = [1,−2, 4], we have A = 1, B = −2 and C = 4 and the scalarequation is x− 2y + 4z +D = 0

plug in the point (−2)−2(1)+4(3)+D = 0 =⇒ D = −8 and so the plane is x−2y+4z = 8

next, find two other points on the plane – let’s use (0, 0, 2) and (8, 0, 0)

then we have direction vectors [−2, 1, 1] and [−10, 1, 3]

so the vector equation is [x, y, z] = [−2, 1, 3] + s[−2, 1, 1] + t[−10, 1, 3]and the parametric equations are x = −2− 2s− 10t, y = 1 + s+ t, z = 3 + s+ 3t

4. we have direction vectors ~a = [−3,−2,−4] and ~b = [2, 1,−9]so the vector equation is ~r = [1, 1, 4] + t[−3,−2,−4] + s[2, 1,−9]and the parametric equations x = 1− 3t+ 2s, y = 1− 2t+ s, z = 4− 4t− 9s

a normal to the plane is ~n = ~a×~b = [−3,−2,−4]× [2, 1,−9] = [22,−35, 1]so the scalar equation has the form 22x− 35y + z +D = 0

plug in the point (1, 1, 4) to see 22(1)− 35(1) + (4) +D = 0 =⇒ D = 9so the plane is 22x− 35y + z = −9

plug (9, 5, 3) into the equation 22(9)−35(5)+(3) = 26 6= −9, so no, (9, 5, 3) is not on the plane

5. (a) the lines are parallel, so they are either distinct or coincidentis the point (2, 3,−1) on the second line ?2 = 1 + 4s =⇒ s = 1/43 = 4− 2s =⇒ s = 1/2−1 = 6 + 4s =⇒ s = −7/4, so no, that point is not on the second line, so the lines are

Page 56: MAT 1339 Vectors Material - University of Ottawa

56

distinct and there is no intersection

(b) the lines are not parallel, so they are either skew or intersect at a pointequate the coordinates 2 + t = 3 + s =⇒ t− s = 1−3− 2t = 1 + s =⇒ −2t− s = 44− t = 17 + 6s =⇒ −t− 6s = 13the solution s = −2, t = −1 satisfies all three, so there is a (unique) point of intersection(1,−1, 5)

6. the lines are not parallel, so if they do not intersect at a single point, they must be skew

write the parametric forms and equate the coordinates to get1 + 2s = 8 + 4t =⇒ 2s− 4t = 7 (#1.)3s = 1− 5t =⇒ 3s+ 5t = 1 (#2.)−1− 4s = 3 + t =⇒ −4s− t = 4 (#3.)

but then 2× (#1.) + (#3.) gives that −9t = 18 =⇒ t = −2 =⇒ s = −1/2, but that doesnot satisfy (#2.), so there is no point of intersection

we have P1 = (1, 0,−1) and P2 = (8, 1, 3) so ~P1P2 = [7, 1, 4]

the normal is ~n = [2, 3,−4]× [4,−5, 1] = [−17,−18,−22]

so the distance is d =| ~P1P2 · ~n||~n|

=|[7, 1, 4] · [−17,−18,−22]|√(−17)2 + (−18)2 + (−22)2

= 225/√

1097 ≈ 6.79

7. (a) plug the line into the plane4(2 + t) + (1− 2t) + 2(3− t) = 8 + 4t+ 1− 2t+ 6− 2t = 15 6= 10the line and plane are parallel, but the line does not lie on the planecan you see that from the equations ?

(b) (1 + 2t) + (−2 + 3t) + 5(4− t) = 1 + 2t− 2 + 3t+ 20− 5t = 19the line lies on the plane, so every point on the line is a solution

(c) (2 + t) + 2(5t) + (−4− t) = 2 + t+ 10t− 4− t = −2 + 10t = 6 if t = 4/5so there is a point of intersection (14/5, 4,−24/5)

8. we can take the point (0, 0, 8) on the plane, so then ~PQ = [−3,−2, 9]

so d =| ~PQ · ~n||~n|

=|[−3,−2, 9] · [2, 3, 1]|√

(2)2 + (3)2 + (1)2= 3/

√14 ≈ 0.80

Page 57: MAT 1339 Vectors Material - University of Ottawa

57

9.

[1 2 1 122 −1 3 4

]R2 − 2R1[

1 2 1 120 −5 1 −20

]R2/− 5[

1 2 1 120 1 −1/5 4

]R1 − 2R2[

1 0 7/5 40 1 −1/5 4

]let z = t, then we have x = 4− (7/5)t, y = 4 + (1/5)t, z = t

10.

1 2 1 42 −1 1 73 2 2 8

R2 − 2R1, R3 − 3R1 1 2 1 40 −5 −1 −10 −4 −1 −4

R2/− 5 1 2 1 40 1 1/5 1/50 −4 −1 −4

R3 + 4R2 1 2 1 40 1 1/5 1/50 0 −1/5 −16/5

R3 ×−5 1 2 1 40 1 1/5 1/50 0 1 16

R1 −R3, R2 − (1/5)R3 1 2 0 −120 1 0 −30 0 1 16

R1 − 2R2 1 0 0 −60 1 0 −30 0 1 16

so there is a single point of intersection (−6,−3, 16)

(b)

1 2 1 42 4 2 83 1 3 6

R2 − 2R1, R3 − 3R1 1 2 1 40 0 0 00 −5 0 −6

R2 ↔ R3 1 2 1 40 −5 0 −60 0 0 0

R2/− 5

Page 58: MAT 1339 Vectors Material - University of Ottawa

58

1 2 1 40 1 0 6/50 0 0 0

R1 − 2R2 1 0 1 8/50 1 0 6/50 0 0 0

let z = t, then we have x = 8/5− t, y = 6/5, z = tand the planes intersect in a linetwo of the planes are coincident – can you see that ?

(c)

1 2 1 45 6 −1 −22 4 2 3

R2 − 5R1, R3 − 2R1 1 2 1 40 −4 −6 −220 0 0 −5

this system is inconsistent, so there is no solutiontwo of the planes are parallel and distinct – can you see that ?