Skip to content
Oakfield Operator Calculus Function Reference Site

Sine Function

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

sinx=eixeix2i\sin x = \frac{e^{ix} - e^{-ix}}{2i}

It represents the imaginary part of the complex exponential and forms a fundamental odd sinusoid.

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


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

The sine function repeats every 2π2\pi and is odd with respect to the origin.


ddxsinx=cosx,sinxdx=cosx+C\frac{d}{dx}\sin x = \cos x, \qquad \int \sin x\, dx = -\cos x + C

Sine and cosine form a phase-shifted pair under differentiation and integration.


sin(x+y)=sinxcosy+cosxsiny\sin(x + y) = \sin x \cos y + \cos x \sin y

This identity governs phase shifts, Fourier synthesis, and rotational composition.


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

Sine and cosine coordinate points on the unit circle and encode orthogonal modes.


sinx=n=0(1)nx2n+1(2n+1)!\sin x = \sum_{n=0}^{\infty} (-1)^n \frac{x^{2n+1}}{(2n+1)!}

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


xxsinx\sin xNotes
0000limx0sinxx=1\lim_{x \to 0} \frac{\sin x}{x} = 1
π6\tfrac{\pi}{6}12\tfrac{1}{2}
π2\tfrac{\pi}{2}11maximum on the real line
π\pi00zero crossing
x=nπx = n\pi00 for all nZn \in \mathbb{Z}infinite zero lattice

The sine function pairs with cosine to span real-valued periodic bases and can be recovered from the complex exponential eixe^{ix} via

sinx= ⁣(eix)\sin x = \Im\!\left(e^{ix}\right)

Oakfield uses sine heavily in its stimulus operators and visualization:

  • Sinusoidal stimulus family (stimulus_sine, stimulus_standing, stimulus_chirp) uses sin/sincos to generate oscillatory forcing with configurable phase, frequency, and wavenumber.
  • Carrier modulation: Gabor and spectral-line stimuli use sinusoidal carriers under Gaussian envelopes or harmonic sums.
  • GPU visuals use sine/cosine for phase-to-color mappings and oscillatory effects in shaders.

The sine function emerged from earlier chord-based methods in Greek astronomy and was developed in a half-chord form in Indian mathematical astronomy, where tabulated values supported astronomical computation.

Sine tables and identities were refined in medieval Islamic mathematics and transmitted to Europe through translation, where the function became standard in navigation, astronomy, and analysis.

In modern analysis, sinx\sin x is treated as an entire function defined by its power series or via the complex exponential, and it serves as a foundational building block in Fourier analysis and wave modeling.


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