MAE101-ALG-Chapter 4 - Vector Geometry
MAE101-ALG-Chapter 4 - Vector Geometry
Chapter 4
Vector geometry
Contents
4.1 Vectors and Lines
4.2 Projections and Planes
4.3 More on the Cross Product
4.4 Linear Operations on R^3
4.5 An application in Computer Graphics
Vertor in R3
(1) v x2 y 2 z 2
(2) v = 0 if and only if ||v|| =0
(3) ||av|| = |a| ||v|| for all scalars a.
2
1
14 .
2 2 2
If v then v 2 1 3
3
3
Similarly if v in 2-space then v 32 4 5
2
4
Geometric Vectors
Definition 4.1
Suppose that A and B are
any two points in R3. In
Figure 4 the line segment
from A to B is denoted AB
and is called the geometric
vector from A to B. Point A
is called the tail of AB , B
is called the tip of AB , and
the length of AB
is denoted AB .
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
Theorem 3
If v and w have a common tail, then v - w
is the vector from the tip of w to the tip of v.
Theorem 4
Let P1 x1 , y1 , z1 and P2 x2 , y2 , z2 be two
points. Then:
x2 x1
PP y y
1. 1 2 2 1
z2 z1
2. The distance between P1 and P2 is
x2 x1 y2 y1 z2 z1
2 2 2
EXAMPLE 3
Scalar Multiplication
If a is a real number and v 0 is a vector then:
(1) The length of av is ||av||=|a| ||v||.
(2) If av 0, the direction of av is
the same as if a 0,
oppostite to if a 0.
Scalar Multiplication
A vector u is called a unit vector if ∥u∥ = 1. Then
1 0 0
i 0 , j 1 , and k 0
0 0 1
are unit vectors, called the coordinate vectors.
EXAMPLE 4
1
If v ≠ 0 then v is the unique unit vector in the same
v
direction as v.
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
Definition 4.2
EXAMPLE 7
Given points P(2, -1, 4), Q(3, -1, 3), A(0, 2, 1), and B(1, 3, 0),
determine if PQ and AB are parallel.
Lines in Space
We call a nonzero vector d ≠ 0 a direction vector for the
line if it is parallel to AB for some pair of distinct points
A and B on the line.
Examples 8
Find the equations of the line through the points P0(2, 0, 1)
and P1(4, -1, 1).
Examples 9
Find the equations of the line through P0(3, -1, 2) parallel to
the line with equations
x = -1 + 2t
y=1+t
z = -3 + 4t
Examples 10
Determine whether the following lines intersect and, if so, find
the point of intersection.
x 1 3t x 1 s
y 2 5t y 3 4s
z 1 t z 1 s
Theorem 6
Pythagoras’ Theorem
Given a right-angled triangle with hypotenuse c and sides a
and b, then a2 + b2 = c2
Theorem 2
Let v and w be nonzero vectors. If θ is the angle between v
and w, then
v · w = ∥v∥∥w∥cos θ
1. u1 is parallel to d.
2. u2 = u - u1 is orthogonal to d.
3. u = u1 + u2.
1
direction vector d 1 .
0
Also find the point Q that lies on the line and is closest to P.
Solution 8
We see geometrically that the point Q on the line is closest
to P, so the distance is 1
QP u u1 1 3
1
To find the coordinates of Q, let p0 and q denote the vectors
of P0 and Q, respectively. Then
2 0
p0 0 and q p0 u1 2
1 1
Definition 4.7
A nonzero vector n is called a normal for a plane if it is orthogonal
to every vector in the plane.
EXAMPLE 9
Find an equation of the plane through P0(1, -1, 3) with
3
n 1 as normal.
2
EXAMPLE 10
Example 11
Find the shortest distance from the point P(2, 1, -3) to the
plane with equation 3x - y + 4z = 1. Also find the point Q on
this plane closest to P.
Solution 11
Solution 11
4 26
Hence the distance is QP u1 . To calculate the
13
point Q, let
x 0
q y and p0 1
z 0
be the vectors of Q and P0. Then 38
13
0 2 3
4 9
q p0 u u1 1 2 1
13 13
0 3 4
23
This gives the coordinates of Q(38/13, 13/9, -13/23). 13
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
product v1 × v2 by
y1 z2 z1 y2
v1 v2 z1 x2 x1 z2
x1 y2 y1 x2
i x1 x2
v1 v2 det j y1 y2 x1 x2 x1 x2
y1 y2 i j k
z1 z2 z1 z2 y1 y2
k z1 z2
EXAMPLE 12
2 1
Let v1 1 and v 2 = 3 , find v1 × v 2 .
4 7
Theorem 5
Let v and w be vectors in R3.
1. v × w is a vector orthogonal to both v and w.
2. If v and w are nonzero, then v × w = 0 if and only if v
and w are parallel.
EXAMPLE 13
Find the equation of the plane through P(1, 3, -2), Q(1, 1, 5),
and R(2, -2, 3).
x0 x1 x2
If u y0 , v y1 , and w y2
z0 z1 z2
x0 x1 x2
then u v w det y0 y1 y2
z0 z1 z2
Theorem 4
If u and v are two nonzero vectors and θ is the angle
between u and v, then
1. ∥u × v∥ = ∥u∥∥v∥ sin θ = area of the parallelogram
determined by u and v.
2. u and v are parallel if and only if u × v = 0.
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
Definition 4.9
A linear transformation
T: n
n
Theorem 1
If T : 3 3 is distance preserving, and if T(0) = 0, then
T is linear.
1 1 m
and Pm has matrix
1 m2 m m2
Theorem 2
Let L denote the line through the origin in R3 with direction
a
vector d b 0 . Then PL and QL are both linear and
c
a 2 ab ac
1 2
PL has matrix 2
ab b bc ,
a b c
2 2
ac bc c 2
a 2 b2 c 2 2ab 2ac
1
QL has matrix 2 ab b 2
a 2
c 2
2bc .
a 2 b2 c2
2ac 2bc c 2 a 2 b 2
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
a 2 b2 c 2 2ab 2ac
1
2
2ab b2 a 2 c 2 2bc .
a b c
2 2
2ac 2bc c 2 a 2 b 2
Theorem 3
Let M denote the plane through the origin in R3 with normal
a
n b 0 . Then PM and QM are both linear and
c
b 2 c 2 ab ac
1
PM has matrix 2
ab a2 c2 bc ,
a b c
2 2
ac bc a 2 b 2
b 2 c 2 a 2 2ab 2ac
1
QM has matrix 2
2ab a 2 c2 b2 2bc .
a b c
2 2
2ac 2bc a 2 b 2 c 2
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
b 2 c 2 ab ac
1
2
ab a2 c2 bc ,
a b c
2 2
ac bc a 2 b 2
Rotation
The rotation of R3 about the Z axis through an angle θ
from the X axis to Y axis
R θ has matrix
cos sin 0
A sin cos 0
0 0 1
EXAMPLE 4
2
Find the rotation of v 5 about the z axis through
4
1
cos sin 0
A sin cos 0
0 0 1
Theorem 5
1 1 2
w 2 , u 1 , v 0
1 0 1
1 0 2
A 1 1 0
2 1 1
4.5. An Application to
Computer Graphics
Vertex 1 2 3 4 5
0 6 5 1 3
D
0 0 3 3 9
where the columns are the coordinates of the
vertices in order
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
Example
a 0 x
A X
0 1 y
x TX AX a 0 x ax
y 0 1 y y
a>1:X-expansion of R2
0<a<1:X-compression of R2
Mathematics for Engineering
ĐẠI HỌC FPT CẦN THƠ
Example
Example
1 0 x
A X
0 b y
x TX AX 1 0 x x
y 0 b y by
b>1:Y-expansion of R2
0<b<1:Y-compression of R2
Example
1 a x
A X
0 1 y
a>0: Positive
X-shear of R2
x TX AX 1 a x x ay
y 0 1 y y
a<0: Negative
X-shear of R2
Example