Trigonometric Functions

Basis
Last updated: Tags: Elementary Function

Prerequisites

Angles, oscillations, and rotations all involve the same pair of functions — sine and cosine. At the basis level these are most cleanly defined as specific power series, in direct parallel to how exp⁡\exp was defined in Exponential Functions. This approach avoids any appeal to geometry and gives you precise formulas for derivatives, identities, and even the definition of π\pi — all from first principles.

Power series definitions

Recall from Exponential Functions that exp⁡(x)=∑k=0∞xk/k!\exp(x) = \sum_{k=0}^{\infty} x^k/k! converges absolutely for every x∈Rx \in \mathbb{R}. Define two new functions by splitting this series into its even-indexed and odd-indexed terms, each with alternating signs:

cos⁡x  ≔  ∑k=0∞(−1)k x2k(2k)!=1−x22!+x44!−x66!+⋯(1)\cos x \;\coloneqq\; \sum_{k=0}^{\infty} \frac{(-1)^k\,x^{2k}}{(2k)!} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots \tag{1} sin⁡x  ≔  ∑k=0∞(−1)k x2k+1(2k+1)!=x−x33!+x55!−x77!+⋯(2)\sin x \;\coloneqq\; \sum_{k=0}^{\infty} \frac{(-1)^k\,x^{2k+1}}{(2k+1)!} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots \tag{2}

Both series converge absolutely for all x∈Rx \in \mathbb{R}: the ratio test gives a ratio ∣x∣2 ⁣/((2k+1)(2k+2))→0|x|^2\!/\bigl((2k+1)(2k+2)\bigr) \to 0 as k→∞k \to \infty, so convergence is absolute and uniform on every bounded interval. Uniform convergence justifies differentiating the series term-by-term.

At x=0x = 0: the constant term of the cosine series is 11 and all other terms vanish, giving cos⁡(0)=1\cos(0) = 1. The sine series starts with xx, so sin⁡(0)=0\sin(0) = 0.

Motivation: Euler’s formula

Why these particular series? Substitute ixix (where i2=−1i^2 = -1) formally into the exponential series:

exp⁡(ix)=∑k=0∞(ix)kk!.\exp(ix) = \sum_{k=0}^{\infty} \frac{(ix)^k}{k!}.

Separating even and odd powers, and using i2m=(−1)mi^{2m} = (-1)^m and i2m+1=i(−1)mi^{2m+1} = i(-1)^m, the real part is exactly the cosine series (1)(1) and the imaginary part is ii times the sine series (2)(2). This yields Euler’s formula:

exp⁡(ix)=cos⁡x+isin⁡x.(3)\exp(ix) = \cos x + i\sin x. \tag{3}

At the basis level, treat (3)(3) as a motivating insight rather than a fully rigorous statement (a complete treatment requires extending exp⁡\exp to the complex numbers). The formula makes the connection between exponentials and trigonometry vivid and will let you derive the addition formulas below in a single line.

The special case x=πx = \pi gives Euler’s identity exp⁡(iπ)+1=0\exp(i\pi) + 1 = 0, once π\pi is defined — which you will do shortly.

Derivatives

Differentiate the series (1)(1) and (2)(2) term-by-term:

ddxcos⁡x=∑k=1∞(−1)k⋅2k⋅x2k−1(2k)!=−∑j=0∞(−1)j x2j+1(2j+1)!=−sin⁡x,\frac{d}{dx}\cos x = \sum_{k=1}^{\infty} \frac{(-1)^k \cdot 2k \cdot x^{2k-1}}{(2k)!} = -\sum_{j=0}^{\infty} \frac{(-1)^j\,x^{2j+1}}{(2j+1)!} = -\sin x, ddxsin⁡x=∑k=0∞(−1)k(2k+1)x2k(2k+1)!=∑k=0∞(−1)k x2k(2k)!=cos⁡x.\frac{d}{dx}\sin x = \sum_{k=0}^{\infty} \frac{(-1)^k(2k+1)x^{2k}}{(2k+1)!} = \sum_{k=0}^{\infty} \frac{(-1)^k\,x^{2k}}{(2k)!} = \cos x.

In summary:

(cos⁡x)′=−sin⁡x,(sin⁡x)′=cos⁡x.(4)(\cos x)' = -\sin x, \qquad (\sin x)' = \cos x. \tag{4}

Applying (4)(4) twice: (cos⁡x)′′=−cos⁡x(\cos x)'' = -\cos x and (sin⁡x)′′=−sin⁡x(\sin x)'' = -\sin x. Both functions therefore satisfy the simple harmonic oscillator equation y′′+y=0y'' + y = 0.

The Pythagorean identity

Theorem. For all x∈Rx \in \mathbb{R}:

cos⁡2x+sin⁡2x=1.(5)\cos^2 x + \sin^2 x = 1. \tag{5}

Proof. Let f(x)≔cos⁡2x+sin⁡2xf(x) \coloneqq \cos^2 x + \sin^2 x. Differentiate using (4)(4):

f′(x)=2cos⁡x⋅(−sin⁡x)+2sin⁡x⋅cos⁡x=0.f'(x) = 2\cos x \cdot (-\sin x) + 2\sin x \cdot \cos x = 0.

So ff is constant on R\mathbb{R}. Evaluating at x=0x = 0:

f(0)=cos⁡2(0)+sin⁡2(0)=12+02=1.f(0) = \cos^2(0) + \sin^2(0) = 1^2 + 0^2 = 1.

Therefore f(x)=1f(x) = 1 for all xx. □\square

The Pythagorean identity (5)(5) is the source of almost every trigonometric manipulation you will encounter. One immediate consequence: ∣cos⁡x∣≤1|\cos x| \leq 1 and ∣sin⁡x∣≤1|\sin x| \leq 1 for all xx.

Addition formulas

Theorem. For all x,y∈Rx, y \in \mathbb{R}:

cos⁡(x+y)=cos⁡xcos⁡y−sin⁡xsin⁡y,(6)\cos(x + y) = \cos x \cos y - \sin x \sin y, \tag{6} sin⁡(x+y)=sin⁡xcos⁡y+cos⁡xsin⁡y.(7)\sin(x + y) = \sin x \cos y + \cos x \sin y. \tag{7}

Proof using Euler’s formula. Multiply the two complex exponentials:

exp⁡(i(x+y))=exp⁡(ix)exp⁡(iy)=(cos⁡x+isin⁡x)(cos⁡y+isin⁡y).\exp(i(x + y)) = \exp(ix)\exp(iy) = (\cos x + i\sin x)(\cos y + i\sin y).

Expanding the right side:

=(cos⁡xcos⁡y−sin⁡xsin⁡y)+i(sin⁡xcos⁡y+cos⁡xsin⁡y).= (\cos x\cos y - \sin x\sin y) + i(\sin x\cos y + \cos x\sin y).

The left side equals cos⁡(x+y)+isin⁡(x+y)\cos(x+y) + i\sin(x+y) by (3)(3). Equating real and imaginary parts gives (6)(6) and (7)(7). □\square

Setting y=xy = x in (6)(6) gives the double-angle formula cos⁡(2x)=cos⁡2x−sin⁡2x\cos(2x) = \cos^2 x - \sin^2 x. Combined with the Pythagorean identity (5)(5), this also gives cos⁡(2x)=2cos⁡2x−1=1−2sin⁡2x\cos(2x) = 2\cos^2 x - 1 = 1 - 2\sin^2 x.

Defining π\pi

The cosine series (1)(1) gives cos⁡(0)=1>0\cos(0) = 1 > 0. You can show that cos⁡(2)<0\cos(2) < 0 by examining the alternating partial sums: grouping consecutive pairs shows every partial sum from the second term onward is negative when x=2x = 2, and a careful estimate gives cos⁡(2)<−13\cos(2) < -\tfrac{1}{3}.

Since cos⁡\cos is continuous (its series converges uniformly), the Intermediate Value Theorem guarantees at least one zero of cos⁡\cos in the interval (0,2)(0, 2).

Definition. π\boldsymbol{\pi} is defined as twice the smallest positive zero of cos⁡\cos:

π  ≔  2⋅min⁡{ x>0∣cos⁡x=0 }.(8)\pi \;\coloneqq\; 2\cdot\min\{\,x > 0 \mid \cos x = 0\,\}. \tag{8}

From this definition, cos⁡(π/2)=0\cos(\pi/2) = 0. Applying the Pythagorean identity (5)(5) at x=π/2x = \pi/2 forces sin⁡2(π/2)=1\sin^2(\pi/2) = 1. Because sin⁡\sin is positive on (0, π/2)(0,\,\pi/2) — its derivative there equals cos⁡>0\cos > 0, and sin⁡(0)=0\sin(0) = 0 — you get sin⁡(π/2)=1\sin(\pi/2) = 1.

Using the addition formulas (6)(6) and (7)(7) with y=π/2y = \pi/2:

cos⁡ ⁣(x+π2)=−sin⁡x,sin⁡ ⁣(x+π2)=cos⁡x.\cos\!\left(x + \frac{\pi}{2}\right) = -\sin x, \qquad \sin\!\left(x + \frac{\pi}{2}\right) = \cos x.

Applying this shift twice gives cos⁡(x+π)=−cos⁡x\cos(x + \pi) = -\cos x and sin⁡(x+π)=−sin⁡x\sin(x + \pi) = -\sin x, and one more application gives periodicity.

Periodicity

Theorem. For all x∈Rx \in \mathbb{R}:

cos⁡(x+2π)=cos⁡x,sin⁡(x+2π)=sin⁡x.(9)\cos(x + 2\pi) = \cos x, \qquad \sin(x + 2\pi) = \sin x. \tag{9}

Proof. Apply cos⁡(x+π)=−cos⁡x\cos(x + \pi) = -\cos x twice:

cos⁡(x+2π)=cos⁡((x+π)+π)=−cos⁡(x+π)=−(−cos⁡x)=cos⁡x,\cos(x + 2\pi) = \cos\bigl((x+\pi)+\pi\bigr) = -\cos(x+\pi) = -(-\cos x) = \cos x,

and similarly for sin⁡\sin. □\square

In fact 2π2\pi is the minimal period of both functions, though proving this requires confirming that cos⁡\cos has no positive zeros smaller than π/2\pi/2.

Values at special angles

The definitions and identities you have developed so far pin down the values at the standard angles:

xxcos⁡x\cos xsin⁡x\sin x
001100
π/6\pi/63/2\sqrt{3}/21/21/2
π/4\pi/41/21/\sqrt{2}1/21/\sqrt{2}
π/3\pi/31/21/23/2\sqrt{3}/2
π/2\pi/20011
π\pi−1-100

For π/4\pi/4: the addition formula with x=y=π/4x = y = \pi/4 and cos⁡(π/2)=0\cos(\pi/2) = 0 gives cos⁡2(π/4)=sin⁡2(π/4)\cos^2(\pi/4) = \sin^2(\pi/4); combined with (5)(5), both equal 1/21/\sqrt{2}.

For π/3\pi/3: the double-angle formula gives cos⁡(2π/3)=2cos⁡2(π/3)−1\cos(2\pi/3) = 2\cos^2(\pi/3) - 1. Because cos⁡(2π/3)=cos⁡(π−π/3)=−cos⁡(π/3)\cos(2\pi/3) = \cos(\pi - \pi/3) = -\cos(\pi/3) (a consequence of cos⁡(x+π)=−cos⁡x\cos(x+\pi) = -\cos x), solving −cos⁡(π/3)=2cos⁡2(π/3)−1-\cos(\pi/3) = 2\cos^2(\pi/3) - 1 yields cos⁡(π/3)=1/2\cos(\pi/3) = 1/2 and then sin⁡(π/3)=3/2\sin(\pi/3) = \sqrt{3}/2 from (5)(5).

Other trigonometric functions

Four more functions are defined as ratios and reciprocals of sine and cosine.

Tangent:

tan⁡x  ≔  sin⁡xcos⁡x,cos⁡x≠0.\tan x \;\coloneqq\; \frac{\sin x}{\cos x}, \qquad \cos x \neq 0.

The domain of tan⁡\tan is R∖{π/2+kπ∣k∈Z}\mathbb{R} \setminus \{\pi/2 + k\pi \mid k \in \mathbb{Z}\} and its minimal period is π\pi.

Cotangent:

cot⁡x  ≔  cos⁡xsin⁡x,sin⁡x≠0.\cot x \;\coloneqq\; \frac{\cos x}{\sin x}, \qquad \sin x \neq 0.

Secant and cosecant are the reciprocals:

sec⁡x  ≔  1cos⁡x,csc⁡x  ≔  1sin⁡x.\sec x \;\coloneqq\; \frac{1}{\cos x}, \qquad \csc x \;\coloneqq\; \frac{1}{\sin x}.

Derivatives of tan⁡\tan and cot⁡\cot

Apply the quotient rule, then use the Pythagorean identity (5)(5):

(tan⁡x)′=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x.(10)(\tan x)' = \frac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x. \tag{10} (cot⁡x)′=−sin⁡x⋅sin⁡x−cos⁡x⋅cos⁡xsin⁡2x=−cos⁡2x+sin⁡2xsin⁡2x=−1sin⁡2x=−csc⁡2x.(11)(\cot x)' = \frac{-\sin x \cdot \sin x - \cos x \cdot \cos x}{\sin^2 x} = -\frac{\cos^2 x + \sin^2 x}{\sin^2 x} = -\frac{1}{\sin^2 x} = -\csc^2 x. \tag{11}

The inverse trigonometric functions — arcsin⁡\arcsin, arccos⁡\arccos, arctan⁡\arctan — are defined and studied in Inverse Trigonometric Functions.

Summary

  • Cosine and sine are defined by the absolutely convergent power series (1)(1) and (2)(2); at x=0x = 0, cos⁡(0)=1\cos(0) = 1 and sin⁡(0)=0\sin(0) = 0.
  • Euler’s formula exp⁡(ix)=cos⁡x+isin⁡x\exp(ix) = \cos x + i\sin x arises by separating real and imaginary parts of the exponential series after substituting ixix.
  • Derivatives: (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x and (sin⁡x)′=cos⁡x(\sin x)' = \cos x; both functions satisfy y′′+y=0y'' + y = 0.
  • Pythagorean identity: cos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1, proved by showing the derivative of the left side is 00 and evaluating at x=0x = 0.
  • Addition formulas (6)(6) and (7)(7) are derived by expanding exp⁡(ix)exp⁡(iy)=exp⁡(i(x+y))\exp(ix)\exp(iy) = \exp(i(x+y)).
  • π\pi is defined as twice the smallest positive zero of cos⁡\cos; its existence follows from the Intermediate Value Theorem applied to the continuous function cos⁡\cos.
  • Periodicity: cos⁡\cos and sin⁡\sin each have period 2π2\pi.
  • Key values: cos⁡(π/2)=0\cos(\pi/2) = 0, sin⁡(π/2)=1\sin(\pi/2) = 1, cos⁡(π)=−1\cos(\pi) = -1, sin⁡(π)=0\sin(\pi) = 0, cos⁡(π/4)=sin⁡(π/4)=1/2\cos(\pi/4) = \sin(\pi/4) = 1/\sqrt{2}, cos⁡(π/3)=1/2\cos(\pi/3) = 1/2, sin⁡(π/3)=3/2\sin(\pi/3) = \sqrt{3}/2.
  • tan⁡x=sin⁡x/cos⁡x\tan x = \sin x/\cos x with (tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x; cot⁡x=cos⁡x/sin⁡x\cot x = \cos x/\sin x with (cot⁡x)′=−csc⁡2x(\cot x)' = -\csc^2 x.