TactivergeLite

Lite / Textbooks / The Mathematics of Machines / Chapter 3

3. Trigonometry and periodic motion

Version 1 · Technically checked (automated checks only) · 4 source lessons · Full interactive version

Introduction

Robot arms, wheels and waves all turn angles into lengths. Trigonometry starts with similar triangles, whose side ratios depend only on the angle, and names those ratios sine, cosine and tangent. Measuring angles in radians then puts sine and cosine on the unit circle, and a point going round that circle gives the sinusoids that describe anything that repeats.

Figure 3.1. The unit circle at 30° (described in words)

A circle of radius 1 centred at the origin. A radius at 30 degrees (π/6 radians) ends at the point (cos 30°, sin 30°) = (0.866, 0.5). The horizontal leg is labelled cos θ and the vertical leg sin θ.

Explanation

Built from 4 School lessons. Each part is the lesson's own explanation.

3.1 Same shape, different size: similar triangles

You can't climb the crane, but you have a 1.5 m pole and a sunny afternoon. How do you measure the crane's height without leaving the ground?

What makes triangles similar

Two triangles are similar if their angles match. Then every side of one is the matching side of the other multiplied by the same scale factor k. If one triangle has sides 3, 4, 5 cm and a similar one has a 6 cm shortest side, k = 2 and the others are 8 and 10 cm.

Ratios inside a triangle are fixed

Because every side scales by k, any ratio of two sides of the same triangle, such as height ÷ base, stays the same. Sun rays hit a pole and a crane at the same angle, so height ÷ shadow is the same for both: measure the pole and both shadows, and the crane's height follows.

Areas scale by k²

Area is a length times a length, so it scales by k × k = k². A model at half size (k = 0.5) has a quarter of the area. Volumes scale by k³, which is why a half-size model of a solid part weighs only an eighth as much.

Common mix-ups

Open the Lite lesson: Same shape, different size: similar triangles

3.2 sin, cos and tan are just ratios

A 10 cm robot link tilted at 30° lifts its tip 5 cm. Make the link twice as long at the same angle. How high does the tip go?

Label the sides first

Mark the angle θ you care about. The hypotenuse is the longest side, opposite the right angle (for a robot link, the link itself). The opposite side is across from θ. The adjacent side is next to θ but isn't the hypotenuse. Mislabelled sides cause most trig mistakes.

Three ratios, one angle

sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse and tan θ = opposite ÷ adjacent. Because the hypotenuse is the longest side, sin and cos are never bigger than 1. Some to remember: sin 30° = 0.5, cos 60° = 0.5, tan 45° = 1, sin 90° = 1.

From ratios to robot parts

Rearrange: a link of length L at angle θ reaches L · cos θ across and L · sin θ up. A 12 cm link at 30° lifts its tip 12 × 0.5 = 6 cm. Your calculator must be in degrees for these; next lesson you will meet radians, which most code uses.

Derivation: Why each angle has its own ratios
  1. Take any right-angled triangle with an angle θ. Its three angles are θ, 90° and 90° − θ.

  2. Any other right-angled triangle with the same θ has the same three angles, so the two triangles are similar.

  3. In similar triangles every side is scaled by the same k, so a ratio like opposite ÷ hypotenuse cancels k out: (k·o) ÷ (k·h) = o ÷ h.

  4. So the ratio depends only on θ. We name them: sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse, tan θ = opposite ÷ adjacent (SOH CAH TOA).

  5. Rearranged for a link of length L: vertical part = L · sin θ, horizontal part = L · cos θ.

Common mix-ups

Open the Lite lesson: sin, cos and tan are just ratios

3.3 Radians and the unit circle

Why would anyone measure a full turn as 6.283… instead of a nice round 360?

What a radian is

Wrap the radius of a circle around its edge: the angle it covers is 1 radian (about 57.3°). A full circle's edge is 2π radii long, so a full turn is 2π rad = 360°, and π rad = 180°. To convert: degrees × π/180 = radians; radians × 180/π = degrees. Arc length is simply s = r·θ when θ is in radians.

Sine and cosine live on a circle

Draw a circle of radius 1 centred on the origin. Go anticlockwise through angle θ from +x. The point you land on is (cos θ, sin θ). That's the definition, and it works for every angle, including 200° and −30°. The triangle definitions (opposite over hypotenuse) are the special case 0° < θ < 90°.

Signs by quadrant

Quadrant 1 (0–90°): both positive. Quadrant 2 (90–180°): cos negative, sin positive. Quadrant 3 (180–270°): both negative. Quadrant 4 (270–360°): cos positive, sin negative. And always cos²θ + sin²θ = 1, because the point sits on a circle of radius 1.

Common mix-ups

Open the Lite lesson: Radians and the unit circle

3.4 Periodic motion: A·sin(ωt + φ)

A piston, a pendulum and a flapping wing repeat forever. Three numbers describe all of them. Which three?

The shadow of a circle

A point going round a circle of radius A at a steady ω radians per second has height y(t) = A·sin(ωt + φ), where φ is its starting angle. Its shadow on a wall bobs up and down: that is simple periodic (harmonic) motion. A crank pin, a wheel's valve and a rotating cam all make exactly this.

Three numbers

Amplitude A: the biggest distance from the middle. Angular frequency ω (rad/s): how fast the angle grows. One cycle is 2π, so the period T = 2π/ω and the frequency f = 1/T = ω/2π (in hertz). Phase φ: where in the cycle it starts; a positive φ shifts the wave earlier by φ/ω seconds.

Reading a graph

Peak height (from the middle line) = A. Time between two peaks = T, so ω = 2π/T. Where the wave crosses upwards through zero, compared with t = 0, gives the phase. Always check your calculator is in radians: ωt + φ is an angle in radians.

Common mix-ups

Open the Lite lesson: Periodic motion: A·sin(ωt + φ)

Worked examples

Same shape, different size: similar triangles: example 1

A 1.2 m stick casts a 0.8 m shadow. A wind turbine tower nearby casts a 40 m shadow at the same time. How tall is the tower?

Solution

Similar triangles: 1.2 ÷ 0.8 = h ÷ 40, so h = 1.2 × 40 ÷ 0.8 = 60 m.

Same shape, different size: similar triangles: example 2

A plate drawn at 1 : 2 has an area of 600 mm² on paper. What is the real plate's area?

Solution

Lengths scale by 2, so area scales by 2² = 4: 600 × 4 = 2400 mm².

sin, cos and tan are just ratios: example 1

A 15 cm link points 60° above horizontal. How high is its tip above the joint?

Solution

Up = L sin θ = 15 × sin 60° ≈ 15 × 0.866 ≈ 13.0 cm.

sin, cos and tan are just ratios: example 2

A ramp rises 1 m over 4 m across. What is tan of its angle?

Solution

tan θ = opposite ÷ adjacent = 1 ÷ 4 = 0.25. (The angle itself is about 14°: you'll find it with tan⁻¹ next lesson.)

Radians and the unit circle: example 1

A servo turns 2.5 rad. Is that more or less than half a turn, and how many degrees?

Solution

Half a turn is π ≈ 3.14 rad, so less. 2.5 × 180/π ≈ 143.2°.

Periodic motion: A·sin(ωt + φ): example 1

A test rig shakes a sensor with y(t) = 4 sin(10t) mm. Find the amplitude, period and frequency.

Solution

A = 4 mm. ω = 10 rad/s, so T = 2π/10 ≈ 0.628 s and f = 1/T ≈ 1.59 Hz.

Interactive figures, in words

Figure 3.2 from Same shape, different size: similar triangles

Choose 'Scale it'. Change the scale factor k and watch the table: every side multiplies by k, but height ÷ base and the angle stay put. Then set k = 2 and compare the areas. Predict first: does the area double?

The 'Scale it' tool draws a right-angled triangle and a scaled copy on top of it. Sliders set the base, height and scale factor k. A table lists the sides, the ratio height ÷ base, the angle and the area for both triangles: sides multiply by k, the ratio and angle stay the same, and the area multiplies by k².

Figure 3.3 from sin, cos and tan are just ratios

Fix the angle at 30° and slide the link length from 5 to 30 cm: the sides change, the three ratios don't. Then try the shelf challenges: predict the angle with sin θ = height ÷ length before you slide.

The diagram draws a robot link from a shoulder joint at an angle you set, with a dashed horizontal line (adjacent side) and a dashed vertical line (opposite side) making a right-angled triangle. Sliders set the link length and the angle. A table shows sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse and tan θ = opposite ÷ adjacent with the current numbers; changing the length changes the sides but not the ratios.

Figure 3.4 from Radians and the unit circle

On the unit circle, step θ from 0° to 355°. Watch the blue cos bar and orange sin bar. Find the four angles where one of them is exactly 0. Where is cos negative? Where are both negative? Note θ in radians at 90°, 180° and 360°.

The unit-circle explorer draws a circle of radius 1 with a point at angle θ. A blue horizontal bar shows cos θ and an orange vertical bar shows sin θ. The readout gives θ in degrees and radians, both values and the quadrant. At 0°, 90°, 180° and 270° the point is at (1, 0), (0, 1), (−1, 0) and (0, −1).

The interactive versions are in the full chapter.

Laboratory

These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.

Practice

Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.

  1. A 1.5 m pole casts a 2 m shadow. At the same moment a tree casts a 12 m shadow. How tall is the tree, in metres?
    Answer it in “Same shape, different size: similar triangles”
  2. A robot link is tilted at angle θ above the horizontal. Relative to θ, which side is the vertical drop from the tip down to the horizontal line?
    Answer it in “sin, cos and tan are just ratios”
  3. tan 45° = 1. A line rises at 45° and goes 8 cm across. How far up does it go, in cm?
    Answer it in “sin, cos and tan are just ratios”
  4. Convert 60° to radians (3 decimal places).
    Answer it in “Radians and the unit circle”
  5. At θ = 250°, what are the signs of (cos θ, sin θ)?
    Answer it in “Radians and the unit circle”
  6. A wheel of radius 0.1 m turns through 3 radians. How far does its rim travel, in metres?
    Answer it in “Radians and the unit circle”
  7. y(t) = 5 sin(4t). What is the period, in seconds? (3 decimal places)
    Answer it in “Periodic motion: A·sin(ωt + φ)”
  8. A motor vibration repeats every 0.02 s. What is its frequency, in hertz?
    Answer it in “Periodic motion: A·sin(ωt + φ)”

Engineering applications

Where is the gripper?

A one-link arm of length L at angle θ puts its tip at x = L·cos θ, y = L·sin θ. Every robot's forward kinematics is built from this one idea, repeated link by link.

Wheel odometry

A wheel of radius r that turns through θ radians rolls a distance r·θ. Measuring angles in radians makes this formula work with no conversion factor.

Watch (optional)

Streaming video uses a lot of data. Everything you need is in the text.

Summary

Glossary

Sine, cosine and tangent
In a right-angled triangle, sine is opposite over hypotenuse, cosine is adjacent over hypotenuse and tangent is opposite over adjacent, each a function of the angle. Field Guide
Radians and degrees
A radian is the angle at which the arc length equals the radius. A full turn is 2π radians, which is 360 degrees. Field Guide
Pythagoras' theorem
In a right-angled triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. Field Guide
Frequency and period
Frequency is how many cycles happen per second; the period is the time for one cycle. Each is the reciprocal of the other. Field Guide

Project: Measure a height without climbing

Measure the height of a tall object (a tree, a lamp post, a building) using a known distance along the ground and a measured angle, then check it with a second method based on similar triangles and shadows. Compare the two results and explain the difference.

Deliverables

Write it up on paper or in your own notes. Lite never stores what you write.

References

Further reading from the lessons

← 2. Functions as models4. Vectors →