Chapter 13
Trigonometric Functions: define angle-ratio relations as functions (sin, cos, tan)
Trigonometric functions are like a precise ruler that shows how side-length ratios change as an angle changes. They are essential for expressing periodic phenomena such as clock cycles and seasons. This regularity supports wave motion, signal analysis, and modern AI techniques such as positional encoding.
On the unit circle, rotating by angle moves the point as .
sin θ: vertical height
sin(θ) = -0.87
cos θ: horizontal length
cos(θ) = 0.50
tan θ: slope ratio
tan(θ) = -1.73
Current at θ:sinθ = -0.87cosθ = 0.50tanθ = -1.73
Core relation: tanθ = sinθ / cosθ (cosθ ≠ 0)
On the unit circle, the horizontal projection is , the vertical projection is , and the slope ratio is .
- Create angle and locate point on the circle.
- The x-coordinate of is , and the y-coordinate is .
- When , read slope using .
What are trigonometric functions?
Concept: In a right triangle, trigonometric functions describe side ratios as functions of angle . In formulas: , , .
Intuition (Ferris wheel analogy): On the unit circle (radius 1), after rotating by , your position is . So is horizontal position and is vertical position.
Math explanation: The unit-circle equation is . Substituting gives the core identity . Also, slope is rise over run, so .
Practical bridge: Many real datasets are cyclic (day/night, seasons, direction). Instead of feeding raw linear numbers, encode them with trigonometric features so models learn smooth circular structure. For beginners, convert time first using 24 hours = 360 degrees before connecting to .
It resolves cyclic boundary problems. For example, 23:00 and 00:00 are close in time but far apart as raw numbers. Using encoding preserves their circular closeness.
It is foundational in Transformer positional encoding, where mixtures of sinusoidal frequencies provide order-aware representations.
It is the core language of wave and frequency modeling, which underpins signal processing and time-series AI.
Convert angle/time to radians, then use paired features as model input.
Apply trigonometric encoding to cyclic data such as weekdays, seasons, and direction to remove discontinuities.
Cosine similarity also uses the same trigonometric intuition. For vectors , similarity is , where the key is direction over magnitude. If directions align, ; if orthogonal, ; if opposite, . This is why recommendation systems, embedding search, and RAG retrieval use cosine similarity to find semantically close items even when raw lengths differ.
This set minimizes repeated question types, so identify type first. Solve in order: (1) type identification (coordinate/sign/period/identity/ML encoding) →
(2) choose unit-circle coordinate or formula →
(3) calculate and verify sign.
As in Chapter 04 style reasoning, start from definitions and narrow down step by step. Typical order is easy (coordinate/sign) → medium (period/sums/identity) → hard (ML encoding/composite). For time questions, converting with 24 hours = 360 degrees is safer than starting from raw arithmetic.
Example problems and step-by-step solutions:
- ProblemExample 1 (Easy). On the unit circle, what is the y-coordinate at ?
- SolutionPoint is , so y-coordinate is . Therefore .
- ProblemExample 2 (Medium). What is the period (degrees) of ?
- SolutionUse with : .
- ProblemExample 3 (Hard). For , find .
- Solution, so , and .
| Problem | Solution |
|---|---|
| Example 1 (Easy). On the unit circle, what is the y-coordinate at ? | Point is , so y-coordinate is . Therefore . |
| Example 2 (Medium). What is the period (degrees) of ? | Use with : . |
| Example 3 (Hard). For , find . | , so , and . |
How to solve by type
- TypeUnit-circle coordinate
- DescriptionAsk for x, y, or
- How to get the answerLocate standard angle, read ,
- TypeQuadrant sign
- DescriptionDetermine + / - of function values
- How to get the answerCheck signs of x,y by quadrant, then infer , ,
- TypePeriod calculation
- Description
- How to get the answerPeriod in degrees is
- TypeIdentity/composite
- Description, sums/ratios
- How to get the answerApply identity, then substitute
- TypeML application (beginner)
- DescriptionTime/direction encoding
- How to get the answerConvert with 24h=360° first, then connect to
| Type | Description | How to get the answer |
|---|---|---|
| Unit-circle coordinate | Ask for x, y, or | Locate standard angle, read , |
| Quadrant sign | Determine + / - of function values | Check signs of x,y by quadrant, then infer , , |
| Period calculation | Period in degrees is | |
| Identity/composite | , sums/ratios | Apply identity, then substitute |
| ML application (beginner) | Time/direction encoding | Convert with 24h=360° first, then connect to |
Example (Unit-circle coordinate)
At , find .
Solution
1) Point at is
2)
So the answer is -1.
Example (Quadrant sign)
In Quadrant II, what is the sign of ?
Solution
1) In QII, ,
2) So
So the answer is negative.
Example (Period calculation)
Find the period (degrees) of .
Solution
1) Use period formula
2) With ,
So the answer is 45.
Example (ML application, without direct arithmetic)
For , when a day (24h) is mapped to 360°, what is the angle and ?
Solution
1) 24h = 360°, so 1h = 15°
2) 6h =
3)
So the answer is 1.
(Equivalent formula form: .)