MathematicsTrigonometryMedium

Cosine Function

Also known as:coscosine ratiotrigonometric cosine

The cosine function is a fundamental trigonometric function defined as the ratio of the adjacent side to the hypotenuse in a right triangle, and extended to all real numbers as the x-coordinate of a point on the unit circle at angle θ from the positive x-axis. Like sine, it is periodic with period 2π and range [−1, 1], but is phase-shifted by π/2 relative to sine (cos θ = sin(θ + π/2)). Cosine is widely used in Fourier analysis, wave optics, mechanical vibrations, and calculating dot products of vectors.

Key Formula

cos(θ) = adjacent / hypotenuse

LaTeX: \cos(\theta) = \frac{\text{adjacent}}{\text{hypotenuse}}

SymbolMeaningUnit
θangle measured from the positive x-axisradians or degrees
adjacentside of right triangle adjacent to angle θ (not the hypotenuse)length units
hypotenuselongest side of right trianglelength units

Worked Example

Problem

A ramp makes an angle of 25° with the horizontal. If the ramp is 8 m long, what is the horizontal distance it covers?

Solution

Step 1: Identify the relevant ratio: horizontal distance = adjacent side, ramp length = hypotenuse. Step 2: cos(25°) = adjacent / 8 → adjacent = 8 × cos(25°). Step 3: cos(25°) ≈ 0.9063. Step 4: adjacent = 8 × 0.9063 = 7.250 m.

Answer

The ramp covers a horizontal distance of approximately 7.25 m.

Cosine Values at Key Angles

Angle (degrees)Angle (radians)cos(θ)Exact Value
01.00001
30°π/60.8660√3/2
45°π/40.7071√2/2
60°π/30.50001/2
90°π/200
180°π−1.0000−1

Interactive Tools

Desmos Graphing Calculator

Visualise the cosine curve and compare it to sine to see the phase relationship.

Open Tool

Khan Academy — Trigonometry

Comprehensive tutorials on cosine, the unit circle, and inverse cosine.

Open Tool

Wolfram Alpha

Evaluate cosine for any angle, compute identities, and plot the function symbolically.

Open Tool
Graph of cosine function showing one complete period from 0 to 2π

Wikimedia Commons, CC BY-SA

Related Terms

Mathematics

Sine Function

The sine function is a fundamental trigonometric function defined for an angle θ in a right triangle as the ratio of the length of the side opposite the angle to the length of the hypotenuse, extended to all real numbers via the unit circle. It is a periodic function with period 2π, amplitude 1, and range [−1, 1], producing a smooth oscillating wave. Sine is essential in modelling wave phenomena including sound, light, alternating current, and simple harmonic motion.

Mathematics

Tangent Function

The tangent function is defined as the ratio of the sine to the cosine of an angle (tan θ = sin θ / cos θ), or equivalently as the ratio of the opposite side to the adjacent side in a right triangle. Unlike sine and cosine, the tangent function has a period of π and is undefined at θ = π/2 + nπ (where n is any integer) because cosine equals zero at those points, producing vertical asymptotes. Tangent is fundamental in calculating slopes of lines, angles of elevation and depression, and in integral calculus substitutions.

Mathematics

Law of Cosines

The Law of Cosines generalises the Pythagorean theorem to any triangle, relating the square of one side to the sum of the squares of the other two sides minus twice their product times the cosine of the included angle. When the included angle is 90°, cos(90°) = 0 and the formula reduces to the Pythagorean theorem a² = b² + c². It is used to solve triangles when three sides (SSS) or two sides and the included angle (SAS) are known, and is fundamental in physics (vector addition), engineering, and 3D geometry.

A contraction of the Latin complementi sinus ("sine of the complement"), because cos(θ) = sin(90° − θ). The abbreviation was popularised by English mathematician Edmund Gunter in his 1620 work Canon triangulorum, where he introduced the notation "co.sinus" alongside other complementary trig functions.

cosinetrigonometryperiodic-functionunit-circlewaveright-triangle