Textbooks/The Mathematics of Machines/Chapter 3
3Trigonometry and periodic motion
Version 1 · Technically checked (automated checks only) · 4 source lessons · 8 practice items
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.
Explanation
This chapter is built from 4 School lessons. Each part below is the lesson's own explanation; open the lesson for its predict-and-discover activities.
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
- Scaling a shape changes its angles too.
✓ Scaling changes lengths only. Angles describe shape, so similar shapes have identical angles. - A half-size model has half the area and half the mass.
✓ Area scales by k² (a quarter) and volume, so mass, by k³ (an eighth).
Open the full 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
Take any right-angled triangle with an angle θ. Its three angles are θ, 90° and 90° − θ.
Any other right-angled triangle with the same θ has the same three angles, so the two triangles are similar.
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.
So the ratio depends only on θ. We name them: sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse, tan θ = opposite ÷ adjacent (SOH CAH TOA).
Rearranged for a link of length L: vertical part = L · sin θ, horizontal part = L · cos θ.
Common mix-ups
- A longer link at the same angle has a bigger sin θ.
✓ sin θ depends only on the angle. A longer link has a bigger height, but the ratio height ÷ length is the same. - The hypotenuse is whichever side is not touching the angle.
✓ The hypotenuse is always the longest side, opposite the right angle. The side not touching θ is the opposite side.
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
- Sine and cosine only make sense for angles inside a right-angled triangle.
✓ On the unit circle they're defined for every angle, positive or negative, any size. - Radians are just a different number for the same thing, so it doesn't matter which you use.
✓ Software and formulas like s = r·θ assume radians. Mixing them up gives silently wrong results.
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
- A bigger amplitude means a faster oscillation.
✓ Amplitude sets the size; ω alone sets the period T = 2π/ω. - Frequency f and angular frequency ω are the same number.
✓ ω = 2πf. A 1 Hz motion has ω ≈ 6.28 rad/s.
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
Interactive figure (online). Description: 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².
Interactive figure (online). Description: 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.
Interactive figure (online). Description: 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).
Laboratory
Everything runs in your browser. No kit, nothing mains-powered. Simulations are simplified educational models.
Playground lab
Playground: Robotic kinematics
Set one joint angle and predict the tip's x and y with L·cos θ and L·sin θ before reading them off.
Open Playground: Robotic kinematics →Equation Lab exploration
Equation Lab: Oscillator
Change the spring stiffness and read how the period of the sinusoid changes.
Open Equation Lab: Oscillator →
Guided practice
Answers are checked on the server; wrong answers get a hint and another try. Signed in, solved items also count towards the source lesson.
- 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? (m)
- 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?
- The hypotenuse
- The opposite side
- The adjacent side
- tan 45° = 1. A line rises at 45° and goes 8 cm across. How far up does it go, in cm? (cm)
- Convert 60° to radians (3 decimal places). (rad)
- At θ = 250°, what are the signs of (cos θ, sin θ)?
- (+, +)
- (−, +)
- (−, −)
- (+, −)
- A wheel of radius 0.1 m turns through 3 radians. How far does its rim travel, in metres? (m)
- y(t) = 5 sin(4t). What is the period, in seconds? (3 decimal places) (s)
- A motor vibration repeats every 0.02 s. What is its frequency, in hertz? (Hz)
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 verified videos. Nothing loads from YouTube until you press play.
- Similar triangle basics | Similarity | Geometry | Khan Academy (Khan Academy)
- Similarity to define sine, cosine, and tangent | Basic trigonometry | Trigonometry | Khan Academy (Khan Academy)
- Introduction to radians | Unit circle definition of trig functions | Trigonometry | Khan Academy (Khan Academy)
Chapter summary
- Similar triangles have equal angles, so their side ratios are equal.
- sin θ = opposite/hypotenuse, cos θ = adjacent/hypotenuse, tan θ = opposite/adjacent.
- One radian is the angle that cuts off an arc equal to the radius; 180° = π radians.
- On the unit circle the point at angle θ is (cos θ, sin θ), and the signs follow the quadrant.
- A·sin(ωt + φ) repeats every T = 2π/ω seconds, so f = ω/(2π).
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.
- 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.
- Pythagoras' theorem
- In a right-angled triangle, the square of the hypotenuse equals the sum of the squares of the other two sides.
- 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.
Definitions from the 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
- Both measurements with units
- Both calculations
- An uncertainty estimate for each
- A sentence on which method you trust more and why
Keep your work in your Engineering Journal; it stays private unless you choose to share it.
References
- Jay Abramson (2015). Algebra and Trigonometry. OpenStax. Link ↗
- K. A. Stroud and Dexter J. Booth (2013). Engineering Mathematics, 7th edition. Palgrave Macmillan.
Further reading from the source lessons
- Radian (Wikipedia) ↗Definition, history and why science uses it.
- Simple harmonic motion (Wikipedia) ↗The physics behind sinusoidal oscillation and its link to circles.
Publication record
- Version
- 1
- Status
- Technically checked (automated checks only)
- Technical review
- Automated checks only, last run 2026-11-29. No human, educator or mentor review is claimed.src/content/textbooks/textbooks.test.ts: schema, every lesson, diagram, practice item, video, Field Guide entry, lab and reference resolves; figure numbers recomputed; no practice answers in client payloads.
- Written by
- Compiled and written by the Tactiverge team with AI assistance, from Tactiverge School lessons that were themselves written with AI assistance.
- Licence
- All rights reserved by the founders unless a licence is approved.
- Corrections
- None recorded yet.Spotted a mistake? Use “Report a problem” on any chapter, or see the corrections page.