Download Lecture notes

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Location arithmetic wikipedia , lookup

John Wallis wikipedia , lookup

Elementary mathematics wikipedia , lookup

Mathematics and architecture wikipedia , lookup

Cartesian coordinate system wikipedia , lookup

Pythagorean theorem wikipedia , lookup

History of trigonometry wikipedia , lookup

Weber problem wikipedia , lookup

Transcript
Math Basics for Robotics –
Trigonometry
Long Wang
1
Triangles
Q1: What does a triangle have?
2
Triangles
𝑏
𝑙1
π‘Ž
Q1: What does a triangle have?
πœ™
πœƒ
3 vertices: π‘Ž, 𝑏, 𝑐
3 sides: 𝑙1 , 𝑙2 , 𝑙3
3 angles (interior): πœƒ, πœ™, πœ“
𝑙2
𝑙3
πœ“
𝑐
3
Triangles
𝑏
𝑙3
π‘Ž
Q1: What does a triangle have?
πœ™
πœƒ
3 vertices: π‘Ž, 𝑏, 𝑐
3 sides: 𝑙1 , 𝑙2 , 𝑙3
3 angles (interior): πœƒ, πœ™, πœ“
𝑙1
𝑙2
πœ“
𝑐
𝑒π‘₯π‘‘π‘’π‘Ÿπ‘–π‘œπ‘Ÿ
4
Interior Angle Addition
𝑏
𝑙1
π‘Ž
Fact #1 to remember:
πœ™
πœƒ
𝑙2
𝑙3
πœ“
The sum of the measures
of the interior angles of a
triangle is always 180
degrees
𝑐
πœƒ + πœ™ + πœ“ = 180∘
5
Centers of a Triangle - Centroid
Def. #1 to remember:
𝑏
𝑙1
π‘Ž
What is a centroid?
Think it as center of mass, geometric
center, or β€œaverage” position of all
the vertices.
πœ™
πœƒ
The centroid of a triangle the intersection of the
three medians.
𝑙2
𝑙3
πœ“
𝑐
6
Centers of a Triangle - Centroid
Def. #1 to remember:
𝑏
𝑙1
π‘Ž
What is a centroid?
Think it as center of mass, geometric
center, or β€œaverage” position of all
the vertices.
πœ™
πœƒ
The centroid of a triangle the intersection of the
three medians.
𝑙2
𝑙3
πœ“
𝑐
7
Example 1
𝑏
𝑙1
π‘Ž
πœ™
πœƒ
1) Pick arbitrary 3 vertices;
2) Connect them with 3 edges;
3) Label vertices, edges and angles;
4) Measure all of them.
5) Find the centroid of your triangle
𝑙2
𝑙3
πœ“
𝑐
8
Special Triangle – Right Triangle
𝑏
𝑙3
πœ™
𝑙1
πœƒ
π‘Ž
𝑙2
A right triangle is a triangle
in which one angle is a right
angle (that is, a 90-degree
angle).
𝑐
Hypotenuse - the side opposite to the right angle.
Legs - the sides adjacent to the right angle.
Adjacent/opposite leg – need to pick an angle first.
9
Special Triangle – Right Triangle
𝑏
𝑙3
πœ™
𝑙1
πœƒ
π‘Ž
𝑙2
A right triangle is a triangle
in which one angle is a right
angle (that is, a 90-degree
angle).
𝑐
Hypotenuse - 𝑙3
Legs - 𝑙1 , 𝑙2
For angle πœƒ, the adjacent leg is 𝑙2 ,
and the opposite leg is 𝑙1 .
10
Special Triangle – Right Triangle
𝑏
Fact #2 to remember:
𝑙3
πœ™
𝑙1
πœƒ and πœ™ are complementary.
πœƒ
π‘Ž
𝑙2
𝑐
Complementary angles are
angle pairs whose measures
sum to one right angle
πœƒ + πœ™ = 90∘
11
Special Triangle – Right Triangle
𝑏
Fact #2 to remember:
𝑙3
πœ™
𝑙1
πœƒ and πœ™ are complementary.
πœƒ
π‘Ž
𝑙2
𝑐
Complementary angles are
angle pairs whose measures
sum to one right angle
πœƒ + πœ™ = 90∘
Quiz: what was the previous fact to remember?
Can we use it to prove this fact?
12
Special Triangle – Right Triangle
𝑏
𝑙3
πœ™
πœƒ
π‘Ž
𝑙2
Fact #3 to remember:
𝑙1 The square of the hypotenuse
is equal to the sum of the
𝑐 squares of the other two sides.
β€œPythagorean Theorem”
𝑙12 + 𝑙22 = 𝑙32
13
Example 2
𝑏
𝑙3
πœ™
𝑙1
πœƒ
π‘Ž
𝑙2
𝑐
1) Use ruler/triangle/grid paper to draw a right
triangle whose legs are:
β€’ 3 and 4
β€’ 5 and 12
β€’ 8 and 15
2) Measure the length of hypotenuse
3) Are your findings consistent with Fact #3?
14
Cosine, Sine, Tangent
π‘œ
πœƒ
π‘Ž
β€’ Sine = Opposite / Hypotenuse
β€’ Cosine = Adjacent / Hypotenuse
β€’ Tangent = Opposite / Adjacent
β€’ sin πœƒ = π‘œ β„Ž
β€’ cos πœƒ = π‘Ž β„Ž
β€’ tan πœƒ = π‘œ/π‘Ž
Reminder: sine, cosine, tangent
are defined only in right triangles
15
Example 3
𝑏
𝑙3
πœ™
𝑙1
πœƒ
π‘Ž
Given
β€’ 𝑙1 = 1
β€’ 𝑙2 = 2
Solve
𝑙2
𝑐
β€’ cos πœ™=?
β€’ πœƒ=?
16
Example 3
𝑏
𝑙3
πœ™
𝑙1
Given
β€’ 𝑙1 = 1
β€’ 𝑙2 = 2
πœƒ
π‘Ž
𝑙2
𝑐
Solve
β€’ 𝑙3 = 𝑙12 + 𝑙22 = 5
β€’ cos πœ™ = 𝑙1 𝑙3 = 1/ 5
1
β€’ πœƒ = arctan(𝑙1 /𝑙2 ) = arctan = 26.6∘
2
17
Special Triangle - Equilateral
Fact #4 to remember:
Special properties of equilateral triangle
β€’ All three sides have equal lengths
β€’ Each angle = 60∘
β€’ Median = Altitude = Bisector
18
Special Triangle - Equilateral
Fact #4 to remember:
Special properties of equilateral triangle
β€’ All three sides have equal lengths
β€’ Each angle = 60∘
β€’ Median = Altitude = Bisector
β€’
=30∘ ,
=60∘
19
Special Triangle - Equilateral
Fact #4 to remember:
Special properties of equilateral triangle
β€’ All three sides have equal lengths
β€’ Each angle = 60∘
β€’ Median = Altitude = Bisector
β€’
=30∘ ,
=60∘
Example 4
In the equilateral triangle above, if the length of each
side is 10 cm, what is the length of the red line segment.
20
Law of Cosine
Law of Cosine
𝑀2 = 𝑄 2 + 𝐿2 βˆ’ 2𝑄𝐿 cos πœ™
How do we use this equation?
21
Law of Cosine
Law of Cosine
𝑀2 = 𝑄 2 + 𝐿2 βˆ’ 2𝑄𝐿 cos πœ™
OR
𝐿2 + 𝑄 2 βˆ’π‘€2
cos πœ™ =
2𝑄𝐿
Law of Cosine tells us:
1) the third side can be solved if we know two
sides and the angle between them
2) Each angle can be solved if we know all
three sides
22
Example 5
𝑄=2
𝐿=3
Solve
πœƒ =?
𝑀=4
23
Example 5
𝑄=2
𝐿=3
Solve
πœƒ =?
𝑀=4
Solve
β€’
β€’
𝑄 2 +𝑀2 βˆ’πΏ2
22 +42 βˆ’32
cos πœƒ =
=
2𝑀𝑄
2βˆ—2βˆ—4
11
πœƒ = arccos = 46.6∘
16
=
11
16
24
Coordinates system
A coordinate system is a system
which uses one or more numbers,
or coordinates, to uniquely
determine the position of a point.
25
Coordinates system
(-1,3)
(3,1)
A coordinate system is a system
which uses one or more numbers,
or coordinates, to uniquely
determine the position of a point.
(3,-2)
26
Coordinates system
Def. #2 to remember:
(-1,3)
(3,1)
The two axes divide the plane
into four infinite regions, called
quadrants.
(3,-2)
27
Coordinates system
Def. #2 to remember:
(-1,3)
II
(-,+)
I
(+,+) (3,1)
III
(-,-)
IV
(+,-)
The two axes divide the plane
into four infinite regions, called
quadrants.
28
Coordinates system
𝑦
𝑦1
π‘œ
Q1: How to find the
coordinates (numbers) of a
point that is not on the grid?
(π‘₯1 , 𝑦1 )
π‘₯1
π‘₯
29
Coordinates system
𝑦
𝑦1
π‘œ
Q1: How to find the
coordinates (numbers) of a
point that is not on the grid?
(π‘₯1 , 𝑦1 )
π‘₯1
Q2: How to find the distance
from origin to point (π‘₯1 , 𝑦1 )of
a point that is not on the grid?
π‘₯
30
Coordinates system
𝑦
𝑦2
𝑦1
π‘œ
Q1: How to find the
coordinates (numbers) of a
point that is not on the grid?
(π‘₯2 , 𝑦2 )
(π‘₯1 , 𝑦1 )
π‘₯1 π‘₯2
π‘₯
Q2: How to find the distance
from origin to point (π‘₯1 , 𝑦2 )of
a point that is not on the grid?
Q3: How to find the distance
from point (π‘₯1 , 𝑦2 ) to point
(π‘₯2 , 𝑦2 )?
31
Coordinates system
𝑦
(π‘₯2 , 𝑦2 )
𝑦2
|𝑦2 βˆ’ 𝑦1 |
𝑦1
(π‘₯1 , 𝑦1 )
|π‘₯2 βˆ’ π‘₯1 |
π‘œ
π‘₯1
π‘₯2
π‘₯
Solutions
β€’ 𝐿1 = π‘₯12 + 𝑦12
β€’ 𝐿12 = π‘₯2 βˆ’ π‘₯1
2
+ 𝑦2 βˆ’ 𝑦1
2
32
Example 6
𝑦
Given the side length π‘Ž, find
the coordinates of three
vertices.
The coordinate system origin is
at the centroid, and the y axis is
aligned with one median.
π‘₯
33
Example 6
𝑦
(π‘₯2 , 𝑦2 )
β€’ π‘₯2 = 0
β€’ 𝑦2 = π‘Ÿ
π‘₯
(π‘₯3 , 𝑦3 )
π‘Ž
2
β€’ π‘₯3 = βˆ’π‘Ÿ cos 30∘
β€’ 𝑦3 = βˆ’π‘Ÿ sin 30∘
π‘Ž
β€’ π‘Ÿ = cos 30∘
2
π‘Ž
2
(π‘₯1 , 𝑦1 )
β€’ π‘₯1 = π‘Ÿ cos 30∘
β€’ 𝑦1 = βˆ’π‘Ÿ sin 30∘
π‘Ž
β€’ π‘Ÿ = cos 30∘
2
34
Redefine cosine, sine, tangent – unit circle
Question: How do we define cosine,
sine and tangent, if the angle is bigger
than 90∘ , or even bigger than 180∘ ?
35
Redefine cosine, sine, tangent – unit circle
A unit circle is a circle with a radius of one.
𝑦
π‘₯
36
Redefine cosine, sine, tangent – unit circle
A unit circle is a circle with a radius of one.
(π‘₯, 𝑦)
πœƒ
β€’ πœƒ = 45∘
π‘₯
β€’ cos πœƒ =
β€’ sin πœƒ =
π‘Ÿ
𝑦
π‘Ÿ
37
Redefine cosine, sine, tangent – unit circle
A unit circle is a circle with a radius of one.
β€’ πœƒ = 135∘
π‘₯
β€’ cos πœƒ =
(π‘₯, 𝑦)
πœƒ
β€’ sin πœƒ =
π‘Ÿ
𝑦
π‘Ÿ
38
Redefine cosine, sine, tangent – unit circle
A unit circle is a circle with a radius of one.
β€’ πœƒ = 225∘
π‘₯
β€’ cos πœƒ =
(π‘₯, 𝑦)
πœƒ
β€’ sin πœƒ =
π‘Ÿ
𝑦
π‘Ÿ
39
Redefine cosine, sine, tangent – unit circle
A unit circle is a circle with a radius of one.
β€’ πœƒ = 315∘
π‘₯
β€’ cos πœƒ =
(π‘₯, 𝑦)
πœƒ
β€’ sin πœƒ =
π‘Ÿ
𝑦
π‘Ÿ
40
Special lines of a Triangle
𝑏
𝑙1
π‘Ž
πœ™
πœƒ
Median a line segment joining a vertex to the
midpoint of the opposing side.
𝑙2
𝑙3
πœ“
Altitude a line segment through a vertex
and perpendicular to the
opposing side.
𝑐
41