24
2d geometry 2d geometry points, lines, vectors points, lines, vectors

Sim tec th1 vector basics

Embed Size (px)

Citation preview

Page 1: Sim tec th1 vector basics

2d geometry2d geometrypoints, lines, vectorspoints, lines, vectors

Page 2: Sim tec th1 vector basics

2

Geometric primitives

• point• line• line segment• polygon

Page 3: Sim tec th1 vector basics

3

Coordinate system

• geometry versus algebra• point: pair of numbers• line: equation

Equation of line l?

Page 4: Sim tec th1 vector basics

4

Equation of a line

• slope: a• y-intercept: b• vertical lines: no representation

y=ax+b

Page 5: Sim tec th1 vector basics

5

Vector: geometrically

• directed line segment• magnitude: length• direction

AB

Page 6: Sim tec th1 vector basics

6

vector: algebraically

• pair of numbers• displacement in two directions

=

21

v

Page 7: Sim tec th1 vector basics

7

point versus vector

• point A = (-1,2)

• vector

• mathematically equivalent• conceptually different

−=

21

OA

point

vector

Page 8: Sim tec th1 vector basics

8

vector addition

++

db

ca =

d

c +

b

a

34

= 21

+ 13

Page 9: Sim tec th1 vector basics

9

vector inversion

−−

ba

= ba

Page 10: Sim tec th1 vector basics

10

vector subtraction

−−

=

−−

+

tysx

ts

yx

= ts

yx

Page 11: Sim tec th1 vector basics

11

pointToPoint vector

a - b AB

b a- AB

OB AO AB

=

⇒+=

⇒+=

x

y

O

a

b

A (a1,a2)

B (b1,b2)

Page 12: Sim tec th1 vector basics

12

scalar multiplication

=

=

a

a

a

aa

2

1

2

1

λ

λλλ

=

6

3

2

13

Page 13: Sim tec th1 vector basics

13

vector equation of a line

=

r

r

s

s

yx

2

1

2

1 + λx = s + λr

x1 = s + rx2 = s + 2rx3 = s – rx4 = s + ½r

Page 14: Sim tec th1 vector basics

14

direction and place

direction Vector: r

place Vector: sx = s + λr

Page 15: Sim tec th1 vector basics

15

parametric equations

rλs y

rλ +sx

22

11

+=

=

=

r

r λ +

s

s

y

x

2

1

2

1

+=

rλ +s

rλs

y

x

22

11

parameter: λ

Page 16: Sim tec th1 vector basics

16

line through two points

line AB: x = a + λ(b - a)

a - b ABr ==

a OAs ==

Page 17: Sim tec th1 vector basics

17

Exercise

• Given two points A=(-1,2) en B=(3,-1)• Give the (normal) equation of line l

through A and B• Give the vector equation of line l

Page 18: Sim tec th1 vector basics

18

equation to vectors

=

25

2-0

yx

λ +

21052 52 −=⇔=− xyyx

22

5

−==

λλ

y

x

ThenChoose

vector equation:

equation:

Page 19: Sim tec th1 vector basics

19

vectors to equation

−=

1

4

3

1

y

x λ + vector equation:

parametric equations: λ

λ +

+=

=

3y4-1x

λ

λ +

+=

=

4124y4-1x

eliminate λ: 134 −=− yx⇒

what do you notice when you compare direction vector and equation?

Page 20: Sim tec th1 vector basics

20

intersection of two lines

two equations: yx

yx

−=−

=−

53

623basic skills

−=

14

31

yx

λ + two vector equations:

=

32

111

yx

μ +

different parameters!

hard work

Page 21: Sim tec th1 vector basics

21

intersection (2)

=

12

16

yx

λ +

33 =− yx

vector equation line m:

equation line l:

y

x

yx

−=+=

=−

λλ

1

26

33

combine equations:

3 equations and 3 unknowns

Page 22: Sim tec th1 vector basics

22

substitution method

y

x

yx

−=+=

=−

λλ

1

26

33substitute x and y

3)1()26(3 =−−+ λλ

33 =− yx

gives

solve for λ:

2

147

31618

−=⇔−=

⇔=+−+

λλ

λλ

Page 23: Sim tec th1 vector basics

23

solution

y

x

yx

−=+=

=−

λλ

1

26

33 find x and y:( ) 2226 =−⋅+=x

( ) 321 =−−=y2−=λ

intersection (2,3)

Page 24: Sim tec th1 vector basics

24

exercise

• reader exercise 2.5.a

=

1-

4 +

2

1

y

line m: 3x + 2y = -3

line l: