Le funzioni seno e coseno en

From "Physics, Waves, Music": a website about the physics of waves and sound, acoustics of musical instruments, musical scales, harmony and music.

AI-translated from Italian. Original page: Le_funzioni_seno_e_coseno

Imagine a circle of unit radius, and draw a radius forming a certain angle α with the positive direction of the X axis (the angle is conventionally measured anticlockwise). The point P where this radius meets the circle has, by definition, Cartesian coordinates

x=cos⁡α (read: cosine of α)
y=sin⁡α (read: sine of α)

If H is the foot of the perpendicular from P to the X axis (see the figure below), the cosine is therefore the length of the segment OH and the sine that of the segment PH, taken with the sign of the corresponding coordinate.

Some obvious consequences follow from this definition:

  • the sine and cosine of an angle take values between -1 and +1;
  • applying Pythagoras' theorem to the triangle OPH we obtain
sin2α+cos2α=1∀α∈ℝ (1)
  • the sine and cosine functions repeat for every increase of the angle by 360° (or 2π radians). The measure of an angle in radians is the ratio between the length of the arc of circle it subtends and the radius: a full turn, that is 360°, therefore measures 2π radians (see why do we measure the angles in radians?). More formally, mathematicians write:
cos⁡α=cos⁡(α+2kπ)∀k∈ℤ (2)
sin⁡α=sin⁡(α+2kπ)∀k∈ℤ (2')
  • the cosine has the same shape as the sine, shifted by a quarter of a turn: cos⁡α=sin⁡(α+π/2). For this reason both functions describe the same kind of oscillation, started at a different instant;
  • if we consider a right-angled triangle O'P'H' similar to the triangle OPH, we can give (at least for acute angles) another geometric interpretation of the sine and cosine of an angle. From the proportions:
OP‾:PH‾=O′P′‾:P′H′‾,

and

OP‾:OH‾=O′P′‾:O′H′‾

we immediately obtain

sin⁡α=opposite sidehypotenuse, cos⁡α=adjacent sidehypotenuse (3)


If we plot the functions f(x)=sin⁡(x) and f(x)=cos⁡(x), we immediately see that they could be suitable for representing the position (the displacement from equilibrium) of an oscillating body as a function of time, as soon as the abscissa x is replaced by the time t or some quantity proportional to it.

Think, for example, of the "pen" of a seismograph which, moving back and forth, records the local oscillations of an earthquake, or of the "pen" of an electrocardiograph which, oscillating, records our heartbeat: if this pen writes on a roll of paper unwinding at constant speed, simulating the passage of time, we obtain a graph of the displacement of the pen as a function of time. Of course there is no reason why the oscillations obtained in this way should be sinusoidal (indeed, we would be amazed if they were!). But the "great book of nature" often surprises us: we will see that sinusoidal oscillations (which from now on we will call harmonic) are present in many concrete situations and indeed, as explained in the section Fourier's theorem, they are a sort of fundamental oscillation with which every kind of periodic oscillation can be described.

Check your understanding

Problem. A right-angled triangle has legs 3 cm and 4 cm long. Calculate the sine and cosine of the angle opposite the 3 cm leg and check that they satisfy (1). Solution. The hypotenuse is 32+42 cm = 5 cm. By (3) the sine is opposite side / hypotenuse = 3/5 = 0.6 and the cosine is adjacent side / hypotenuse = 4/5 = 0.8. Indeed 0.6² + 0.8² = 0.36 + 0.64 = 1.

Problem. Express the angles of 90°, 45° and 30° in radians. How many degrees does an angle of 1 radian measure? Solution. Since 360° corresponds to 2π radians, just multiply by π/180: 90° = π/2 ≈ 1.571 rad, 45° = π/4 ≈ 0.785 rad, 30° = π/6 ≈ 0.524 rad. One radian measures 180°/π ≈ 57.3°.

Problem. The position of an oscillating mass is x(t)=Acos⁡(2πt/T), with A = 5 cm and T = 2 s. Where is the mass at the instants t = 0, 0.5 s and 1 s? Solution. At t = 0 the argument is 0 and x = 5 cm · cos 0 = 5 cm. At t = 0.5 s the argument is π/2 and x = 0: the mass passes through equilibrium. At t = 1 s the argument is π and x = −5 cm: the mass is at the opposite end. After one more second, that is after one period, it is back at 5 cm.


"Physics, Waves, Music": a website about the physics of waves, acoustics of musical instruments, musical scales, harmony and music.