Académique Documents
Professionnel Documents
Culture Documents
Points in Rn : R, R2 , R3 ,
Points Coordinate vectors
MATH1151 Algebra
A/Prof Rob Womersley
addition a + b
commutative a + b = b + a
associative a + (b + c) = (a + b) + c
scalar multiplication a, R
Distance
Geometric Vectors
Arrays
Basis vectors
MATH1151 (Algebra)
...
Coordinate system
Distance between points
R4 ,
Session 1, 2014
1 / 16
MATH1151 (Algebra)
Points in R
Session 1, 2014
2 / 16
Points in R2
Points in R2
Points in R
3
4
Choose
Specify
Choose
Choose
origin O
units of length
x direction
y direction at right angles to x direction ( 2 anticlockwise)
Origin 0
4
y
Order A < B
y
3.5
>
3.5
>
2.5
2.5
y2
(x , y )
1.5
x
0.5
3 / 16
> x
1
1
Session 1, 2014
1
C
0.5
0.5
http://mars.jpl.nasa.gov/msp98/news/mco991110.html
MATH1151 (Algebra)
(x2, y2)
1.5
In 1999 the Mars Climate orbiter crashed into the surface of Mars. The
root cause was a a failed translation of English units into metric.
>
0.5
0.5
0.5
MATH1151 (Algebra)
1.5
2.5
3.5
1
1
0.5
0.5
1.5
2.5
3.5
Session 1, 2014
4 / 16
Points in R2
Points in R3
R3 Space
Cartesian Geometry
Coordinate system
Choose origin O
z1
A (x1, y1, z1)
dist(A, B) =
p
(x2 x1 )2 + (y2 y1 )2
O
y
Easy
Independent of choice of coordinate system
Coordinate directions must be a right angles
MATH1151 (Algebra)
5 / 16
MATH1151 (Algebra)
Distance
Distance
Session 1, 2014
6 / 16
Distance
Length of vectors
1
2
n
X
2
n
Distance in R3
Point A, coordinate vector (x1 , y1 , z1 )
Point B, coordinate
vector (x2 , y2 , z2 )
p
dist(A, B) = (x2 x1 )2 + (y2 y1 )2 + (z2 z1 )2
Independent of choice of coordinate system
Distance in
j=1
Rn
n
X
= (bj aj )2
1 + 4 + 0 + 16 = 21
u
|u|
j=1
MATH1151 (Algebra)
b
u=
Session 1, 2014
7 / 16
MATH1151 (Algebra)
1
b
a = (1, 2, 0, 4)
21
Session 1, 2014
8 / 16
Geometric Vectors
Geometric Vectors
Geometric Vectors
Ar
MATH1151 (Algebra)
+b
a
b + a
Session 1, 2014
9 / 16
MATH1151 (Algebra)
Geometric Vectors
Session 1, 2014
10 / 16
Geometric Vectors
Scalar R, vector a
!
!
!
!
!
!
!
!
1.5a
2
3a
!
!
Session 1, 2014
a2 j
a1 i
MATH1151 (Algebra)
|a|
MATH1151 (Algebra)
Session 1, 2014
12 / 16
Arrays
Arrays
Arrays
2
a = (2, 0, 1)
and
b= 0
1
Both have 3 elements, each a real number, and ai = bi , i = 1, 2, 3
Is a = b? No, a is a row vector, b is a column vector
Definition (Array)
An array A is an rectangular block of numbers with m rows and n
columns where Aij refers to the element in row i and column j for
1 i m and 1 j n.
a = [1 2 3 4]
size(a)
size(A)
b = [1; 2; 3; 4]
whos
x1
x2
x Rn
x = . = (x1 , x2 , . . . , xn )T
.
.
size(b)
numel(A)
Example (Matlab)
MATH1151 (Algebra)
xn
Session 1, 2014
13 / 16
MATH1151 (Algebra)
e1 = (1, 0)T R2
Rn :
e1 = (1, 0, 0, . . . , 0, 0)T Rn
e2 = (0, 1, 0, . . . , 0, 0)T Rn
..
..
.
.
e1 = (1, 0, 0)T R3
T
e2 = (0, 1, 0) R
en = (0, 0, 0, . . . , 0, 1)T Rn
e3 = (0, 0, 1)T R3
(ej )i = 1 if i = j, (ej )i = 0 if i 6= j
Unit length |ej | = 1,
Linear combination
14 / 16
Basis vectors
Session 1, 2014
Basis vectors
Basis vectors in Rn
e2 = (0, 1)T R2
R3 :
Basis vectors
Basis vectors in R2 , R3
R2 : Basis vectors
Session 1, 2014
= (a1 , a2 , a3 , . . . , an )T Rn
= a1 e1 + a2 e2 + an en =
15 / 16
MATH1151 (Algebra)
n
X
aj ej
j=1
Session 1, 2014
16 / 16