What is Cosine?

Brecht Corbeel
4 min readJun 30, 2023

--

Cosine is a fundamental concept in mathematics, particularly in trigonometry. It’s one of the basic functions used to describe relationships in a right triangle, along with sine and tangent. The cosine of an angle in a right triangle is defined as the ratio of the length of the adjacent side to the length of the hypotenuse.

The Unit Circle and Cosine

To better understand cosine, it’s helpful to look at the unit circle, which is a circle with a radius of 1 centered at the origin of a coordinate plane. The x-coordinate of a point on the unit circle corresponds to the cosine of the angle formed by the line segment from the origin to that point and the positive x-axis.

In the unit circle, the cosine of an angle θ is the x-coordinate of the point where the line through the origin making an angle θ with the positive x-axis intersects the unit circle.

Cosine Function

The cosine function, often denoted as cos(θ), is a function that takes an angle θ and returns the cosine of that angle. The output of the cosine function oscillates between -1 and 1 as the input angle θ changes. The cosine function is periodic, meaning it repeats its values in regular intervals. The period of the cosine function is 2π, which means cos(θ) = cos(θ + 2πn) for any integer n.

The graph of the cosine function looks like this:

Properties of Cosine

Here are some important properties of the cosine function:

  1. Even Function: Cosine is an even function, which means that cos(θ) = cos(-θ) for any angle θ. This property reflects the symmetry of the cosine function about the y-axis.
  2. Cosine of Complementary Angles: The cosine of an angle is equal to the sine of its complementary angle. In other words, cos(θ) = sin(90° — θ) or cos(θ) = sin(π/2 — θ) in radians.
  3. Cosine of 0 and π/2: The cosine of 0 is 1 (cos(0) = 1) and the cosine of π/2 is 0 (cos(π/2) = 0). This is because at 0 degrees, the point on the unit circle is at (1,0), and at π/2 radians (or 90 degrees), the point is at (0,1).
  4. Addition and Subtraction Formulas: There are formulas to calculate the cosine of the sum or difference of two angles:cos(a + b) = cos(a)cos(b) — sin(a)sin(b)cos(a — b) = cos(a)cos(b) + sin(a)sin(b)

Applications of Cosine

The cosine function has many practical applications, including in physics, engineering, computer science, and more. Here are a few examples:

  1. Physics: In physics, the cosine function is used to describe harmonic motion, such as the motion of a pendulum or a spring.
  2. Engineering: In signal processing, a field of engineering, the cosinefunction is used to transform signals between the time domain and the frequency domain (Fourier Transform).
  3. Computer Graphics: In computer graphics, the cosine function is used to calculate the angle between vectors, which is essential for rendering 3D models and lighting calculations.
  4. Geography: In geography, the cosine function is used in the Haversine formula to calculate the great-circle distance between two points on the Earth’s surface, given their longitudes and latitudes.

Cosine in Complex Numbers and Euler’s Formula

Cosine also plays a crucial role in the realm of complex numbers. Euler’s formula, a beautiful and profound equation in mathematics, connects the cosine function with complex exponential functions. The formula is:

e^(ix) = cos(x) + i*sin(x)

where e is the base of the natural logarithm, i is the imaginary unit, and x is a real number. This formula shows that the cosine function is part of the real component of a complex exponential function.

The cosine function is a fundamental concept in mathematics with wide-ranging applications in various fields. Understanding cosine is not only essential for studying more advanced mathematics, but it also provides a foundation for understanding the natural and technological world around us. From the swinging of a pendulum to the rendering of a 3D model in a video game, the cosine function plays a crucial role.

Remember, the journey of understanding cosine and trigonometry is a step-by-step process. Don’t worry if you don’t grasp everything at once. Keep practicing, and over time, these concepts will become second nature.

--

--