Escolar Documentos
Profissional Documentos
Cultura Documentos
Istanbul, 2017
1.Cartesian Coordinate
nD Space
nD Space: n (typically)
n: number of dimensions
Examples:
■ 1D space: time, along a line or curve
■ 2D space: plane, sphere
■ 3D space: the world we live in
■ 4D space: 3D + time
Solid Analytic Geometry
y (x,y) (x,y)
x
Standard Screen (output, input)
Octants
■ The 3-D system can have either a right-handed or
a left-handed orientation.
𝑟= 𝑥2 + 𝑦2
x
𝑦
𝜃 = tan−1
𝑥
Then a points are represented by a radius (r) and an angle (θ)
Points on a Plane
r
14
First of all you can go back and forth between
Cartesian and polar coordinates by the familiar
x r cos r x 2 y 2
y r sin arctan( y / x)
Converting Polar to Rectangular
x = r cos θ x
y = r sin θ
Example:
Try A 2, = ( ___, ___ )
4
16
Converting Rectangular to Polar
By Pythagorean theorem x
r 2 = x2 + y2
y
By trigonometry tan
1
x
Example:
Try this one … for (2, 1)
r = ______
θ = ______
17
Example:
Write Polar Equation in Rectangular Form
18
Answer:
Write Polar Equation in Rectangular Form
Given r = 2 sin θ
We know r y
sin
2 r
Thus
r 2y
2
And x2 y 2 2 y
19
Example:
Write Rectangular Equation in Polar Form
Consider 2x – 3y = 6 x r cos
y r sin
As before, use y
definitions tan 1
x
r 2 x2 y 2
2 r cos 3 r sin 6
r 2 cos 3sin 6
6
r
2 cos 3sin
20
Problem 1: Convert Equation from Rectangular to Polar Form
2x 2 + 2y 2 - x + y = 0
Let us rewrite the equations as follows:
2 (x 2 + y 2) - x + y = 0
We now use the formulas giving the relationship between
polar and rectangular coordinates:
R 2= x 2 + y 2, y = R sin t and x = R cos t:
2 (R 2) - R cos t + R sin t = 0
Factor out R
R (2 R - cos t + sin t) = 0
The above equation gives:
R=0
or
2 R - cos t + sin t = 0
The equation R = 0 is the pole. But the pole is included in the graph of the
second equation 2 R - cos t + sin t = 0 (check that for t = π / 4 , R = 0). We
therefore can keep only the second equation.
2 R - cos t + sin t = 0
Or: R = (1 / 2)(cos t - sin t) 21
Problem 2: Convert the equation x + y = 0 to polar
form.
Solution to Problem 2: x + y = 0
R cos t + R sin t = 0
Factor out R: R ( cos t + sin t ) = 0
The above equation gives: R = 0
or cos t + sin t = 0
The equation R = 0 is the pole. But the pole is included in the
graph of the second equation cos t + sin t = 0 since this equation
is independent of R. We therefore keep only the second
equation.
cos t + sin t = 0
The above equation may be written as.
tan t = - 1
Solve for t to obtain: t = 3 pi / 4
All points of the form (R , 3 pi / 4) are on the graph of the above
equation.
It is the equation of a line in polar form.
22
3D coordinates 1
3D Cartesian coordinates:
z (x,y,z) (x,y,z)
z
y x
x y
Right-handed Left-handed
3D Cartesian coordinates 1a
3D coordinates 2
3D Cartesian coordinates:
x (thumb) y (index)
y (index) x (thumb)
Right-handed Left-handed
3D coordinates 3
Spherical coordinates, also called spherical polar coordinates
Define θ to be the azimuthal angle in the x y -plane from the x-axis with 0≤ 𝜃 < 2𝜋
(denoted λ when referred to as the longitude), ф to be the polar angle (also known
as the zenith angle and colatitude, with ф=90𝑜 − 𝛿 where 𝛿 is the latitude) from
the positive z-axis with 0≤ ∅ ≤ 𝜋, and r to be distance (radius) from a point to
the origin. This is the convention commonly used in mathematics.
Spherical coordinates
The spherical coordinates (r,θ,Φ) are related to the Cartesian coordinates
(x,y,z) by:
𝑟= 𝑥2 + 𝑦2 + 𝑧2
𝑦
𝜃 = tan−1
𝑥
𝑧
∅ = cos−1
𝑟
x r cos sin
y r sin sin
z r cos
z (x,y,z)
r : azimuth or longitude
x y : elevation or latitude
Also : / 2
: colatitude
3D coordinates 3a
AZIMUTH
Points
34
Introduction
Many quantities in geometry and physics, such as area,
time, and temperature, can be represented by a single real
number. Other quantities, such as force and velocity,
involve both magnitude and direction and cannot be
completely characterized by a single real number. To
represent such a quantity, you can use a directed line
segment, as shown in Figure 1.
Figure 1
35
Introduction
The set of all directed line segments that are equivalent to a
given directed line segment is a vector v in the plane,
written (meaning start at P and go towards/through Q):
36
Example 1 – Equivalent Directed Line Segments
P(0, 0) to Q(3, 2)
R(1, 2) to S(4, 4)
as shown in Figure 2.
Show that u = v.
Figure 2
37
Example 1 – Solution
From the Distance Formula, it follows that and have the
same magnitude.
So, and have the same magnitude and direction, and it follows that u = v.
38
Component Form of a Vector
39
Component Form of a Vector
The directed line segment whose initial point is the origin is
often the most convenient representative of a set of
equivalent directed line segments. This representative of
the vector v is in standard position.
40
Component Form of a Vector
The coordinates v1 and v2 are the components of v. If both
the initial point and the terminal point lie at the origin, then
v is the zero vector and is denoted by
41
Component Form of a Vector
Two vectors and are equal if and
only if u1 = v1 and u2 = v2.
42
Example 1 – Finding the Component Form of a Vector
Solution:
Let
and
as shown in Figure 3.
Figure 3
43
Example 1 – Solution cont’d
v1 = q1 – p1 = –1 – 4 = – 5
v2 = q2 – p2 = 5 – (–7) = 12.
= 13.
44
Vector Operations
45
Vector Operations
The two basic vector operations are scalar multiplication
and vector addition. Geometrically, the product of a
vector v and a scalar k is the vector that is |k| times as long
as v. If k is positive, then kv has the same direction as v,
and if k is negative, then kv has the opposite direction of v,
as shown in Figure 6.21.
Figure 6.21
46
Vector Operations
To add two vectors u and v geometrically, first position
them (without changing their lengths or directions) so that
the initial point of the second vector v coincides with the
terminal point of the first vector u (head to tail). The sum
u+v is the vector formed by joining the initial point of the
first vector u with the terminal point of the second vector v,
as shown in Figure 4.
Figure 4
47
Vector Operations
The vector u + v is often called the resultant of vector
addition
48
Vector Operations
The negative of is
–v = (–1)v
Negative
Difference
49
Example 3 – Vector Operations
Let and and find each of the
following vectors.
a. 2v b. w – v c. v + 2w
Solution:
a. Because you have
50
Example 3(b) – Solution cont’d
A sketch of w – v is shown in
Figure 6. Note that the figure
shows the vector difference
w – v as the sum w + (– v).
Figure 6
51
Example 3(c) – Solution cont’d
A sketch of v + 2w is shown in
Figure 7. Read next slide, but do
not copy it down.
Figure 7
52
Vector Operations
53
Unit Vectors
54
Unit Vectors
In many applications of vectors, it is useful to find a unit
vector that has the same direction as a given nonzero
vector v. To do this, you can divide v by its length to obtain:
55
Example 4 – Finding a Unit Vector
Find a unit vector in the direction of .
Solution:
The unit vector in the direction of v is
56
Example 4 – Solution cont’d
57
Unit Vectors
The unit vectors and are called the standard
unit vectors and are denoted by
and
Figure 8
58
Unit Vectors
These vectors can be used to represent any vector
as follows.
Let u be the vector with initial point (2, –5) and terminal
point (–1, 3). Write u as a linear combination of the
standard unit vectors i and j.
Solution:
Begin by writing the component form of the vector u.
60
Direction Angles
61
Direction Angles
If u is a unit vector such that is the angle (measured
counterclockwise) from the positive x-axis to u, then the
terminal point of u lies on the unit circle and you have as:
Figure 9 62
Direction Angles
Suppose that u is a unit vector with direction angle . If
is any vector that makes an angle with the
positive x-axis, then it has the same direction as u and you
can write:
where
63
Direction Angles
Because it follows
that the direction angle for v is determined from
Quotient identity
Simplify.
64
Example 7 – Finding Direction Angles of Vectors
u = 3i + 3j
Solution:
The direction angle is
Figure 10
65
Vectors
•Vector Equation of a Line
a=xi+yj+zk
Revise: Position Vectors
z A In 2D and 3D, all points
have position vectors
a
y
e.g. The position vector of point A
x
o
a y
z
x a = xi + yj + zk
Revise: Parallel Vectors
-20 i + 30 j
-10 i + 15 j 2a
-2 i + 3 j
Vectors with a scaler
applied are parallel
1/ a
5
i.e. with a different
magnitude but same
direction
Vector Equation of a line (2D)
A
a (any point Any parallel vector (to line)
it passes
through)
o
x
A line can be identified by a linear combination
of a position vector and a free vector
Vector Equation of a line (2D)
A
a (any point
it passes
through)
o
x
A line can be identified by a linear combination
of a position vector and a free vector
Vector Equation of a line (2D)
A line can be identified by a linear combination
y of a position vector and a free vector
b = pi + qj
A
[]4
2
[]2
4
3. linear combination
of a position vector
and a free vector
[] [] []
x
y
= 2
4
+t 4
2
Equation Scaler (any number)
Sketch this line and find its equation
[] [] []
x
y
= 1 +t
2
1
3 y = 3x - 1
When t=0
[] []
x
y
=
1
2
[]1
3
x=1, y=2 []
1
2
When t=1
[] []
x
y
= 2
5
x=2, y=5
Equations of straight lines
y = 3x - 1
….. is a Cartesian Equation
of a straight line
[ ] =[ ] [ ]
x
y
1
2
+t
1
3
r =[ 7
3
+t] [] 2
5
[ ] =[ ] [ ]
x 7 2 Equations of form y= mx+c
y 3 +t 5
y= 2.5x + c
When t = 0
3 = 2.5 x 7 + c
[][]
x
y = 3
7 x=7
y=3
c = -14.5
y= 2.5x – 14.5
Convert this Vector Equation into Cartesian form (2)
r =[ ] []
7
3
+t
2
5
[ ] =[ ]+ t [ ]
x
y
7
3
2
5
Convert to x = 7 + 2t
Parametric
equations y = 3 + 5t
5x = 35 + 10t
Eliminate ‘t’ 2y = 6 + 10t
subtract 5x – 2y = 29
Convert this Cartesian equation into a Vector equation
y = 4x + 3 Want something
like this ……….
r =[ a
] []
b +t
1
m
Any
point the
When x=0, y = 4 x 0 + 3 = 3 direction
vector
[]
0
3
= Any
point
(y-b)=m(x-a)
(𝑦 − 3) = 4(𝑥 − 0)
Increase in y = 4
Gradient (m) = 4 Gradient =
Increase in x 1
[]1 represents
r =[
4 the direction 0
] []
3 +t
1
4
Convert this Cartesian equation into a Vector equation
Easier Method
y = 4x + 3
Write: y - 3 = 4x = t
t = 4x x= 1/
4 t
t=y-3 y= 3 + t
[ ] =[ ] [ ]
x 0 1/
3 +t
4 Can replace
y 1 with a parallel
vector
r =[ ] []
0
3 +t
1
4
Summary
y
A line can be identified (any point it
A passes through)
by a linear combination
of a position vector a
Any parallel
and a free [direction] vector vector (to line)
o
x
r =[ a
] []
b +t
1
m
Any
point the
direction
Equations of form y-b=m(x-a)
vector
Line goes through (a,b) with gradient m
Vectors (3D) 1
■ Vector:
– “arrow”
– multiple interpretations (displacement, velocity, force, …)
– has a magnitude and direction
– has no position
■ Notation: V also V, v, v and v , 𝑉
■ (Vx, Vy, Vz) also (x, y, z), (x1, x2, x3)
Vectors (2D) 2
V P2 P1
y
P2 ( x2 x1 , y2 y1 )
y2
(Vx , V y )
P1
y1
V: directed line segment, or
difference between two points
x1 x2 x
Vectors 3
Length of a vector:
V V V x
2
y
2
(2D : Pythagoras )
d x 2 x1 y 2 y1 z 2 z1
2 2 2
Example
d x 2 x1 y 2 y1 z 2 z1
2 2 2
d 2 1 4 0 3 2
2 2 2
1 16 25 42
Midpoint Formula
■ Find the midpoint of the line segment joining (5, -2, 3) and (0, 4, 4)
5 ,1, 7
2 2
Equation of a Sphere
■ x2 + y2 + z2 – 2x + 4y – 6z +8 = 0
y y
W V+W
W
V
V
x x
y y
2V
V
x x
y V
P t
V V W V W cos
VxWx V yW y VzWz
|W| cos
|V|
Vector multiplication 2
Scalar product:
V W V W cos
VxWx V yW y VzWz
Commutative : V W W V
Distributive : V (W Z) V W V Z
Associative : V (W Z) (V W ) Z ?
Example:
Find cos θ between:
Vector multiplication 3
Anticommut ative : V W W V
Not associative : V (W Z) (V W) Z
Distributi ve : V (W Z) V W V Z
Vector multiplication 4
V W n V W sin
VW (VyWz VzWy ,
W VzWx VxWz ,
VxWy VyWx )
n V ⅈ 𝑗 𝑘
𝑣𝑥 𝑣𝑦 𝑣𝑧
𝑤𝑥 𝑤𝑦 𝑤𝑧
Definition
The cross product is defined as the vector perpendicular to
two given vectors A and B separated by an angle and is
shown by:
Anti-commutative:
a x b = -b x a
Distributive over addition:
a x (b + c) = a x b + a x c
Compatible with scalar multiplication:
(ra) x b = a x (rb) = r(a x b)
Not associative, but satisfies the Jacobi identity:
a x (b x c) + b x (c x a) + c x (a x b) = 0
Cross product is only valid in R3 and R7
Matrix Solving Method
The first row is the standard basis vectors and must appear in the order
given here. The second row is the components of u [u1 u2 u3] and the
third row is the components of v [v1 v2 v3].
Given two vectors u and v, u x v equals the determinant of the matrix.
Vector Cross Product
Q W=P–Q
W P Q’ = Q + 2W
y
W
Q’
= 2P – Q
or: = P + (P – Q )
x We don’t need
coordinates!
Exercise 1
■ Given a point P.
■ Requested: Reflect a point Q with respect to P.
Q Alternative
P P is halfway Q and Q’:
Q’
P = (Q + Q’)/2
2P = Q + Q’
Q’ = 2P – Q
Exercise 2
■ Given a line L: L(t) = P + Vt .
■ Requested: Reflect a point Q with respect to L.
Q We know:
W Q’ = Q + 2 W
V L(t)
y P W W = L(t) – Q
t Q’
W. V = 0
x
Exercise 2
We know: Substitute to get t:
L(t) = P + Vt (L(t) – Q).V = 0
Q’ = Q + 2W (P + Vt – Q).V = 0
W = L(t) – Q V .Vt + (P – Q).V = 0
W. V = 0 t = ((Q – P).V) / (V .V)
Then:
Q’ = Q + 2 (P + Vt – Q)
= 2P – Q + 2V((Q – P).V / V .V)
Steps to be made
Q R’
R
Circle in space
y
C() C()
r
B B
A
P A x P
A = (R – Q) / |R – Q|
B = (R – Q)(P – Q) / | (R – Q)(P – Q) |
R’ = Q + |R – Q| cos A + |R – Q| sin B
P
B
Q R’
A
R
Use:
• Scalar product, cross product
• coordinate independent definitions
• vector algebra
Don’t use:
• arccos, arcsin
• y = f(x)
What is a matrix?
Matrix:
- Mathematical objects with operations
u x vx wx
M U V W u y vy w y
u z vz wz W
3 x 12 4 10 3 x 4 2
example :
6 2 y 2 0 8 2 y
Scalar Matrix addition
a11 a12 a1c b11 b12 b1c
a a2c b21 b22 b2c
21 a22
M AB
a r1 a r 2 arc br1 br 2 brc
a11 b11 a12 b12 a1c b1c
a b a22 b22 a2c b2c
21 21 , i.e., mij aij bij
ar1 br1 ar 2 br 2 arc brc
2 3 2 1 3 3 2 2 3 4 11 16
1 4 1 2 1 1 4 3 1 2 4 4 13 16
3 4
0 5 0 1 5 3 0 2 5 4 15 20
i=3 j=2 i=3, j=2
Matrix Matrix multiplication
Example:
4
A 1 2 3 , B 5
6
AB
BA
Matrix Matrix multiplication
Example:
4
A 1 2 3 , B 5
6
4
AB 1 2 3 5 1 4 2 5 3 6 32
6
BA
Matrix Matrix multiplication
Example:
4
A 1 2 3 , B 5 AB BA
6
4
AB 1 2 3 5 1 4 2 5 3 6 32
6
4 4 1 4 2 4 3 4 8 12
BA 5 1 2 3 5 1 5 2 5 3 5 10 15
6 6 1 6 2 6 3 6 12 18
Matrix Transpose
a11 a12 a1c
a Transpose matrix:
a a
M 21 22 2c
Interchange rows and columns.
r c matrix M c r matrix MT
r1
a a r2 a rc
T1 4 x
1 2 3 2 5 ,
examples : [x y z ]T y
4 5 6 3 6 z
Matrix Inverse
Simple algebra puzzle. Let ax = b. What is x?
If
1
3 2 2 1
5 4
5 / 2 3 / 2
Then
3 2 2 1 3 2 2 5 / 2 3 1 2 3 / 2 1 0
5 4 5 / 2 3 / 2 5 2 4 5 / 2 5 1 4 3 / 2 0 1
Matrix Inverse examples
1
a b
c d ?
1
a b 1 d b 1
c d ad bc c We write with out:
a ad bc
a b d b ad bc ab ba 1 0
c d c (ad bc)
a ab ba cb ad 0 1
1
2 1
4 2 ? Does not exist, cannot be inverted.
Matrix Inverse
- Does not always exist
- In general: if determinant = | M | = 0, matrix
cannot be inverted
- Inverse for n = 1 and n = 2: easy
- Inverse for higher n: use library function
- Important special case: orthonormal matrix.
Overview
• Coordinates, points, vectors
– definitions, operations, examples
• Matrices
– definitions, operations, examples