Skip to content
Oakfield Operator Calculus Function Reference Site

Cosine Function

For xRx \in \mathbb{R} (extended to xCx \in \mathbb{C} by analytic continuation), the cosine function is defined by

cosx=eix+eix2\cos x = \frac{e^{ix} + e^{-ix}}{2}

It represents the real part of the complex exponential and forms a fundamental even sinusoid.

The cosine function is entire on C\mathbb{C}. For real xx, its range satisfies 1cosx1-1 \le \cos x \le 1; for complex xx, values lie in C\mathbb{C}.


cos(x+2πk)=cosx,cos(x)=cosx,kZ\cos(x + 2\pi k) = \cos x, \qquad \cos(-x) = \cos x, \qquad k \in \mathbb{Z}

Cosine repeats every 2π2\pi and is even about the origin.


ddxcosx=sinx,cosxdx=sinx+C\frac{d}{dx}\cos x = -\sin x, \qquad \int \cos x\, dx = \sin x + C

Cosine and sine rotate into each other under differentiation and integration.


cos(x+y)=cosxcosysinxsiny\cos(x + y) = \cos x \cos y - \sin x \sin y

This governs phase shifts, wave superposition, and rotational composition.


cosx=sin ⁣(x+π2)\cos x = \sin\!\left(x + \tfrac{\pi}{2}\right)

Cosine represents a quarter-cycle shift of the sine function.


cos2x+sin2x=1\cos^2 x + \sin^2 x = 1

Cosine and sine coordinate points on the unit circle and encode orthogonal modes.


cosx=n=0(1)nx2n(2n)!\cos x = \sum_{n=0}^{\infty} (-1)^n \frac{x^{2n}}{(2n)!}

The series converges for all complex xx and yields accurate local approximations.


xxcosx\cos xNotes
0011local approximation cosx1x22\cos x \approx 1 - \tfrac{x^2}{2} near 00
π3\tfrac{\pi}{3}12\tfrac{1}{2}
π2\tfrac{\pi}{2}00quarter-cycle zero
π\pi1-1minimum on the real line
x=π2+nπx = \tfrac{\pi}{2} + n\pi00 for all nZn \in \mathbb{Z}zeros at odd quarter-cycles

Cosine pairs with sine to form orthogonal periodic bases and can be recovered from the complex exponential eixe^{ix} via

cosx= ⁣(eix)\cos x = \Re\!\left(e^{ix}\right)

Oakfield uses cosine alongside sine for efficient oscillatory synthesis:

  • Stimulus kernels use sincos/cos to build carriers and standing-wave components (e.g. sinusoidal family, spectral lines, random Fourier features).
  • Complex rotation factors often use (cos θ) + i (sin θ) when applying phase rotations to complex stimuli.
  • Shader phase view ultimately relies on trig functions when mapping phase angles into color space.

Cosine is historically intertwined with sine through complementary angles (cosine as the sine of a complement), arising from tabulated trigonometric values used in astronomy.

Through medieval Islamic mathematics and subsequent European adoption, cosine became a standard tool for geometric computation, navigation, and harmonic analysis.

In modern analysis, cosx\cos x is treated as an entire function defined by its power series or via the complex exponential, and it appears ubiquitously in Fourier methods, oscillation theory, and solutions of linear differential equations.


  • NIST Digital Library of Mathematical Functions (DLMF), §4
  • Abramowitz & Stegun, Handbook of Mathematical Functions