Trigonometry
Mathematics
Trigonometric Functions
Math Education
Angles

How do Trigonometric functions work?

Data Structures & Algorithms practice on Codemia

Step through 300 algorithm problems with animated visualisers that show the data structure changing as the code runs.

Practice algorithms

Trigonometric functions are a fundamental component of mathematics and have applications in various fields, including physics, engineering, and computer graphics. These functions provide a way to relate angles to ratios of two sides of a right triangle. In this article, we will explore how trigonometric functions work, diving into their definitions, properties, and applications.

Overview of Trigonometric Functions

The primary trigonometric functions are sine, cosine, and tangent. They are typically defined in the context of a right triangle or the unit circle. Other related functions, known as reciprocal functions, include secant, cosecant, and cotangent.

Definitions via Right Triangle

Consider a right triangle with an angle θθ, opposite side aa, adjacent side bb, and hypotenuse cc. The trigonometric functions are defined as follows:

  • Sine (sin\sin): sin(θ)=ac\sin(θ) = \frac{a}{c}
  • Cosine (cos\cos): cos(θ)=bc\cos(θ) = \frac{b}{c}
  • Tangent (tan\tan): tan(θ)=ab\tan(θ) = \frac{a}{b}

Reciprocal Functions

  • Cosecant (csc\csc): csc(θ)=1sin(θ)=ca\csc(θ) = \frac{1}{\sin(θ)} = \frac{c}{a}
  • Secant (sec\sec): sec(θ)=1cos(θ)=cb\sec(θ) = \frac{1}{\cos(θ)} = \frac{c}{b}
  • Cotangent (cot\cot): cot(θ)=1tan(θ)=ba\cot(θ) = \frac{1}{\tan(θ)} = \frac{b}{a}

Definitions on the Unit Circle

In the unit circle approach, a circle with a radius of 1 is centered at the origin of the coordinate plane, with θθ representing the angle from the positive x-axis. Points on the unit circle have coordinates (cos(θ),sin(θ))(\cos(θ), \sin(θ)). The unit circle allows for an easy extension of trigonometric functions to all real numbers beyond just angles of a right triangle.

Pythagorean Identity

A fundamental identity derived from trigonometric functions is the Pythagorean identity:

sin2(θ)+cos2(θ)=1\sin^2(θ) + \cos^2(θ) = 1 This identity holds true for any angle θθ and is crucial for simplifying expressions involving sine and cosine.

Trigonometric Function Properties

Periodicity

Trigonometric functions exhibit periodic behavior, which means they repeat their values over regular intervals. For sine and cosine, the period is 2π, whereas the period for tangent is ππ:

  • sin(θ+2π)=sin(θ)\sin(θ + 2π) = \sin(θ)
  • cos(θ+2π)=cos(θ)\cos(θ + 2π) = \cos(θ)
  • tan(θ+π)=tan(θ)\tan(θ + π) = \tan(θ)

Symmetry

Trigonometric functions also demonstrate symmetrical properties:

  • Sine is an odd function: sin(θ)=sin(θ)\sin(-θ) = -\sin(θ).
  • Cosine is an even function: cos(θ)=cos(θ)\cos(-θ) = \cos(θ).
  • Tangent is an odd function: tan(θ)=tan(θ)\tan(-θ) = -\tan(θ).

Key Angles and Values

Trigonometric functions exhibit known values at specific angles, often expressed in degrees or radians, such as 00, 30°30°, 45°45°, 60°60°, and 90°90°.

Angle (degrees)Angle (radians)sin(θ)\sin(θ)cos(θ)\cos(θ)tan(θ)\tan(θ)
0010
30°$\frac{π}{6}$$\frac{1}{2}$$\frac{\sqrt{3}}{2}$$\frac{\sqrt{3}}{3}$
45°$\frac{π}{4}$$\frac{\sqrt{2}}{2}$$\frac{\sqrt{2}}{2}$1
60°$\frac{π}{3}$$\frac{\sqrt{3}}{2}$$\frac{1}{2}$$\sqrt{3}$
90°π2\frac{π}{2}10Undefined

Applications of Trigonometric Functions

Trigonometric functions have extensive applications across different areas:

Physics

In physics, trigonometric functions describe oscillations and wave behavior, such as sound waves, light waves, and the motion of pendulums. The functions help solve problems related to forces, angles of inclination, and velocity components.

Engineering

Engineers use trigonometry in fields such as civil, mechanical, and electrical engineering to design structures, analyze forces, and model physical systems. Trigonometry is crucial in signal processing, telecommunications, and control systems.

Computer Graphics

In computer graphics, trigonometric functions manipulate angles, create rotations, and determine lighting and perspective projections. These functions help render 3D objects on 2D displays by calculating angles, distances, and transforming coordinates.

Astronomy

Astronomers use trigonometry to calculate distances between celestial bodies, measure angles in parallax, and predict the orbits of planets and stars.

Conclusion

Trigonometric functions, with their rich set of properties and identities, are a cornerstone of mathematics. They bridge geometric concepts with analytical approaches to offer solutions for various practical and theoretical problems. Mastering these functions is essential for advancing in many scientific and technical domains.


Related reading
Course
Intermediate
27 lessons
15 hours
DSA Fundamentals

Master algorithmic patterns and data structures through hands-on LeetCode-style problems - from arrays and hashing to dynamic programming and advanced graphs.

View the course
Track what you have practised

A free account saves your progress, solutions and study plan across every problem on Codemia.

Data Structures & Algorithms practice on Codemia

Step through 300 algorithm problems with animated visualisers that show the data structure changing as the code runs.

Practice algorithms

All Rights Reserved.