Sine

| Main Article
| Discussion
| Related Articles  [?]
| Bibliography  [?]
| External Links  [?]
| Citable Version  [?]

|
|
|
|
|
|
|
|

This editable Main Article is under development and subject to a disclaimer.

[edit intro]

In trigonometry, the function sine and its complementary function cosine, abbreviated sin and cos, are central. They are used to express relations between angles and sides of triangles. The functions are very common and important in all branches of science and technology. It is possible to define sine and cosine in different ways. Two ways, one based on plane geometry and one based on differential equations, will be discussed below.

## Contents

* 1 Geometric approach
* 1.1 Definition of sine and cosine in plane geometry
* 1.2 Cartesian definition
* 1.3 Sum formulas
* 2 Definition by differential equations
* 2.1 Definition
* 3 Sum of squares
* 4 Bracketing
* 5 Mathematical induction
* 6 Is cos always larger than sin?
* 7 Symmetry and sense of number P
* 8 Notes

## Geometric approach[edit]

In most countries, schoolchildren begin to study mathematics with arithmetics, elementary algebra and 2-dimensional Euclidean geometry (plane geometry). [1]. When they learn about sin and cos, the students already have some idea about addition and measurement of angles, segments and areas; they already have accepted the axioms of Euclid, in particular his famous fifth parallel axiom, and they know the Pythagorean theorem. Therefore, the trigonometric functions are defined as ratios of the lengths of sides of right-angled triangles, for example, the ratio of the length of a leg to that of the hypothenuse. We will outline this approach, but point out that an alternative approach is possible which does not rely on Euclid's axioms. This approach, which is more advanced in that it needs some knowledge of differential calculus, will be given in the next section.

### Definition of sine and cosine in plane geometry[edit]

CC Image

The most elementary definition of the functions sine and cosine follows from Fig. 1. We see a right-angled triangle ABC (black) with an acute angle α. By definition sinα is equal to the the length a of the side opposite angle α divided by the hypotenuse, which has length b. The cosine of α is the length c of the side adjacent to α divided by the length of the hypotenuse b:

sin⁡α=defab,cos⁡α=defcb.

Applying the same definitions to the complementary angle ∠DAC (= 90°−α) we find from the dashed blue triangle in Fig. 1,

sin⁡(90∘−α)=cos⁡α=cb,cos⁡(90∘−α)=sin⁡α=ab.

We see that for complementary angles the functions sine and cosine are interchanged, hence the name "cosine" (short for "complementary sine").

The Pythagorean theorem states that b2 = a2+c2, so that we get the following important relation between the sine and the cosine functions

(sin⁡α)2+(cos⁡α)2=a2b2+c2b2=a2+c2b2=b2b2=1.

Since this elementary definition of sine and cosine is in terms of ratios of lengths, which are positive, the definition needs to be generalized in order to account for negative function values.

### Cartesian definition[edit]

We recall that a vector r in a 2-dimensional plane can be represented by two Cartesian coordinates, which are real numbers: r = (x, y). These numbers are the projections of r on the x\- and the y-axis, respectively. The length of r is denoted by |r| and is defined by

|𝐫|=defx2+y2.

Assuming that the length of r is non-zero we can divide the components of the vector by it and obtain a unit vector er, which by definition has length unity. Unit vectors in the plane have their endpoints on a unit circle (circle with unit radius).

Consider Fig. 1 again. Assume now that the length b equals 1, then the vector eAC pointing from point A to point C is a unit vector. Assume a Cartesian system of axes with the origin in A and let the x-axis be along A-B and the y-axis be along A-D. Clearly cosα = c is the projection of eAC on the x-axis, i.e., cosα = c is the x-coordinate of this unit vector. Similarly sinα = a is the y coordinate of the unit vector. This observation leads to the following definition, which is a generalization of the earlier one.

Write ex for a unit vector on the x-axis and ey for a unit vector on the y-axis.

Definition: If e is a unit vector obtained from ex by a positive (counter-clockwise) rotation over the angle α, then cosα is the x coordinate of e and sinα is the y coordinate of e:

𝐞=defcos⁡α𝐞x+sin⁡α𝐞y,|𝐞|≡1=(cos⁡α)2+(sin⁡(α)2.

The unit vector e is depicted (as a red vector with endpoint on the unit circle) in the four different quadrants in Fig. 2.

CC Image
Fig. 2. Unit vector e (shown in red) in different quadrants. Projection on x-axis is cos α, projection on y-axis is sin α.

* * *

Signs of sine and cosine

* * *

Quadrant  | Range α | cos | sin

* * *

I |  00< α < 900 | +| +
II |  900< α < 1800 | −| +
III | 1800< α < 2700 | −| −
IV | 2700< α < 3600 | +| −

Clearly, if α=0° then e = ex. If α=90° then e = ey. If α=180° then e = −ex. Thus,

cos⁡0∘=1,sin⁡0∘=0cos⁡90∘=0,sin⁡90∘=1cos⁡180∘=−1,sin⁡180∘=0

It is also clear from the definition that, when α is rotated over more than 360°, the unit vector is back at an angle between 0° and 360°. Therefore, for positive integer k,

cos⁡(α+360∘⋅k)=cos⁡(α),sin⁡(α+360∘⋅k)=sin⁡(α).

Negative angles are defined by rotating the unit vector clockwise. By definition reflection in the x-axis changes the components of the unit vector thus,

x↦x,y↦−y

Further one sees easily that α is mapped to −α under this reflection. That is, upon reflection α and the y-coordinate change sign and the x-coordinate is invariant (stays the same), hence

sin⁡(−α)=−sin⁡(α),cos⁡(−α)=cos⁡(α).

When one rotates the unit vector clockwise over more than 360° one arrives again at a position between 0° and 360°, so that for positive integer k,

cos⁡(α−360∘⋅k)=cos⁡(α),sin⁡(α−360∘⋅k)=sin⁡(α).

By standard arguments of plane Euclidean geometry one can compute the numerical values of sine and cosine for a few specific angles. The application of differential calculus (see later in this article) allows the computation of the function values for all angles. Thus, one obtains the graphs shown in Fig. 3.

CC Image
Fig. 3. The functions sin(x) and cos(x) for x running from −360° to 360°

### Sum formulas[edit]

The following equations hold:

cos⁡(α+β)=cos⁡αcos⁡β−sin⁡αsin⁡βsin⁡(α+β)=sin⁡αcos⁡β+cos⁡αsin⁡β

Proof

CC Image

The proof is easiest in matrix notation. Because we do not expect readers to know this notation we give the proof in long-hand notation and only indicate briefly the equivalent matrix form. The unit vectors and angles that play a role in the proof are depicted in Fig. 4.

As shown in Fig. 4A, the singly primed (green) unit vectors are given in terms of the unprimed (black) unit vectors by

𝐞x′=cos⁡α𝐞x+sin⁡α𝐞y𝐞y′=−sin⁡α𝐞x+cos⁡α𝐞y⟺(𝐞x′𝐞y′)=(cos⁡αsin⁡α−sin⁡αcos⁡α)(𝐞x𝐞y)

In Fig. 4B the doubly primed (red) unit vector ex " is given in terms of the singly primed (green) unit vectors by

𝐞x″=cos⁡β𝐞x′+sin⁡β𝐞y′⟺𝐞x″=(cos⁡β,sin⁡β)(𝐞x′𝐞y′)

In Fig. 4C the doubly primed (red) vector ex " is given in terms of the unprimed (black) vectors:

𝐞x″=cos⁡(α+β)𝐞x+sin⁡(α+β)𝐞y(1)

Substitution of the expression for the singly primed unit vectors (green) in terms of the unprimed vectors (black) into the expression for ex " gives :

𝐞x″=cos⁡β(cos⁡α𝐞x+sin⁡α𝐞y)+sin⁡β(−sin⁡α𝐞x+cos⁡α𝐞y)

Upon rearranging,

𝐞x″=(cos⁡αcos⁡β−sin⁡αsin⁡β)𝐞x+(sin⁡αcos⁡β+cos⁡αsin⁡β)𝐞y(2)

(In matrix notation the last two expression are equivalent to the multiplication of a row vector with a square matrix). Putting Eqs. (1) and (2) for ex " in terms of the unprimed unit vectors side by side, we find the equations to be proved. This conclusion is allowed because ex and ey are linearly independent.

## Definition by differential equations[edit]

One could say that the geometrical approach assumes the properties of sin and cos rather than deduce them. These assumptions are masked as the geometric axioms. However, as we will now show, the deduction of properties of trigonometric functions does not require axioms of geometry. Properties of sin and cos do not depend, for example, on the acceptance or rejection of the Euclid's parallel axiom. The functions sin and cos can be defined algebraically, and their properties can be deduced, not postulated. The basic elements of such a deduction are outlined below.

The definitions of derivative and integral do not depend on trigonometric functions, and the basic properties of integrals and derivatives (in particular the Cauchy-Kowalevski theorem of existence and uniqueness of the solution of the Cauchy problem) can be deduced without reference to sin, cos, or any axioms of Euclidean geometry. Therefore, a natural and consistent way of defining the functions sin and cos is via differential equations.

We will indicate the first derivative of a function with respect to its variable by a prime:

f′(t)≡df(t)dt.

### Definition[edit]

The functions sin and cos are solutions of the following system of equations

(1) sin′⁡(t)=cos⁡(t)
(2) cos′⁡(t)=−sin⁡(t)

with conditions

(3) sin⁡(0)=0
(4) cos⁡(0)=1

Usually, it is assumed that the independent variable t is real; in that case, the values of the functions sin and cos are also real numbers. However, the definition above can be used for complex numbers too.

The present definition does not imply additional concepts about angles and sums of angles; and does not require the Pythagorean theorem or even the parallel axiom of Euclidean geometry. Furthermore the definition does not refer to the concept of the number Pi (π) and therefore can be used for the definition of π. But, one pays for this by having to deduce the properties of sin and cos from the system (1)-(4).

## Sum of squares[edit]

Consider the function z(t)=sin⁡(t)2+cos⁡(t)2. From equations (1) and (2) it follows that z′(t)=0, i.e., z(t)=z(0)=constant . Evaluation of this constant from equations (2) and (3) gives z(t)=1 for all t, i.e.,

(5) sin⁡(t)2+cos⁡(t)2=1

In this article, the superscript as indicator of exponentiation is always written last to specify the argument, avoiding the confusions. [2]

For the equation (5) it follows, that for all real values of t the functions sin(t) and cos(t) are bounded:

(6) −1≤sin⁡(t)≤1
(7) −1≤cos⁡(t)≤1

These properties allow efficient bracketing of functions sin and cos.

## Bracketing[edit]

Consider sin(x) and cos(x) in the case x > 0\. From equation (1) it follows that sin'(x) ≤ 1 . Integration of the last inequality with respect to x from 0 to t gives: sin⁡(t)−sin⁡(0)<t. Using equation (3) we write

(8) sin⁡(t)<t .

Rewrite (8) as −t<−sin⁡(t) and apply equation(2):

−t<cos′⁡(t)

Integrating this inequality with respect to t from 0 to x gives:

−x2/2<cos⁡(x)−cos⁡(0)

Using equation(4) gives

(9) 1−x2/2<cos⁡(x)<1

The last "<" just follows from equation (7). Using equation (1) gives

(10) 1−x2/2<sin′⁡(x)<1

Integrating equation (12) with respect to x from 0 to t gives

(11) t−t3/6<sin⁡(t)<t

Rewrite it as

−t<−sin⁡(t)<−t+t3/6

and apply equation (2):

−t<cos′⁡(t)<−t+t3/6

Integrating this equation with respect to t from 0 to x gives

−x2/2<cos⁡(x)−cos⁡(0)<−x2/2+x3/6
(12) 1−x2/2<cos⁡(x)<1−x2/2+x4/24

Continuing this exercise, one can obtain more and more narrow bounds for values of sin and cos.

However, even equations (9,12) are sufficient to see that both both sin and cos remain positive while, the argument is within (0,1) range. This property is used below to reveal periodicity of these functions.

## Mathematical induction[edit]

Applying the mathematical induction, it is possible to show that for positive integer N

(13) ∑n=02N+1x(−x2)n(2n+1)!≤sin⁡(x)≤∑n=02Nx(−x2)n(2n+1)!
(14) ∑n=02N+1(−x2)n(2n)!≤cos⁡(x)≤∑n=02N(−x2)n(2n)!

and equality takes place only at x=0.

## Is cos always larger than sin?[edit]

Consider the range 0<t<P such that both sin⁡(t) and cos⁡(t) are positive; let P be exact upper bound of such interval. Within this interval, sin is monotonously increasing, and cos is monotonously decreasing. Therefore, there exist one and only one solution p of the equation

(13) sin⁡(p)=cos⁡(p)

Let us estimate value of this solution.

Consider the special case, substitute x=1 into equation(13) and t=1 into equation(11). This gives

cos⁡(1)<1−1/2+1/24=13/24
sin⁡(1)>1−1/6=5/6=20/24

In such a way,

(14) sin⁡(1)>cos⁡(1)

hence,

(15) p<1.

Substitute x=3/4 into equation (11); this gives

(16) cos⁡(3/4)>1−(3/4)2/2=23/32
(17) cos⁡(3/4)2>529/1024>1/2

From equation (5) it follows that

(18) sin⁡(3/4)2=1−cos⁡(3/4)2<1−529/1024<1/2
(19) sin⁡(3/4)2<cos⁡(3/4)2

Both sin and cos are positive in the range (0,1); and, therefore,

(20) sin⁡(3/4)<cos⁡(3/4)

Therefore,

(21) 3/4<p<1.

## Symmetry and sense of number P[edit]

Change of variables t to −t and replacement sin to −sin keeps the system (1)-(4) invariant. This means that

(22) sin⁡(−t)=−sin⁡(t)
(23) cos⁡(−t)=cos⁡(t)

Consider replacement t to p−t, cos to sin, and sin to cos. Due to equation (13), such a replacement preserves the equations (1-4); therefore,

(24) sin⁡(p−t)=cos⁡(t)
(25) cos⁡(t−p)=sin⁡(t)

Then, P=2p, and

(26) sin⁡(t+P)=cos⁡(P)
(27) cos⁡(t+P)=−sin⁡(P)

It follows, that functions sin and cos are periodic; and

(30) 2π=4P=8p

is period. The deduction above can be used as definition of number π. In such a way, π appears as half of period of functions which are solutions of equations (1,2).

For definition of π, equations (1,2) are sufficient: due to the linearity of equations and the translational invariance, conditions (3,4) do not affect the period; all the solutions with different conditions at zero have the same period.

From estimate (21) it follows that

(31)3<π<4

The improvement of this estimate using the expansions (13), (14) is possible but computationally non-efficient. The efficient algorithms for evaluation of π are mentioned in the spacial article about Pi. Usually, the efficient algorithms require more efforts for the deduction.

## Notes[edit]

1. ↑ A. P. Kiselev (1892 (first edition in Russian)). {{{title}}}. ISBN 0-9779852-0-2.
2. ↑ Some authors implicitly define also functions with superscript, sinn(x)=sin⁡(x)n and cosn(x)=cos⁡(x)n. However, such a notation leads to confusions as soon as one needs to consider the inverse function (for a function f, it is common to use notation f−1 for inverse function, such that f(f−1(z))=z) or multiple combination of functions, for example: sin−1(x)=arcsin(x); sin⁡(sin⁡(sin⁡(x)))=sin⁡3(x).