ENع
→Trig and the unit circle
الدرس 24 · Maths for circuits and signals

Trigonometry and the unit circle

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

14 دقيقة10 خطوات5 أسئلةIntermediate
عن هذا الدرس

Sine and cosine are just coordinates of a point turning around a circle of radius 1. Turn an arm by an angle θ, read off where its tip lands, and watch that height trace out a sine wave as the arm keeps turning. Then use the same picture to read an AC voltage, v(t) = 10 sin(2π·50·t), at one instant.

ستتعلّم

حدّد ما تشعر بأنك أتقنته. هذا التقييم الذاتي لا يؤثر في درجة الدرس.

شكل 24 · تفاعلي
01 / 10

Angles in radians

An angle measures how far you turn. A full turn is 360°, or 2π radians. One radian is the turn whose arc is as long as the radius, about 57.3°. So 180° is π, 90° is π/2 and 45° is π/4.

>>> from math import *
>>> radians(45), pi / 4
(0.7853981633974483, 0.7853981633974483)
>>> degrees(1)              # one radian in degrees
57.29577951308232
>>> degrees(2 * pi)
360.0
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. Angles in radians

    An angle measures how far you turn. A full turn is 360°, or 2π radians. One radian is the turn whose arc is as long as the radius, about 57.3°. So 180° is π, 90° is π/2 and 45° is π/4.

    >>> from math import *
    >>> radians(45), pi / 4
    (0.7853981633974483, 0.7853981633974483)
    >>> degrees(1)              # one radian in degrees
    57.29577951308232
    >>> degrees(2 * pi)
    360.0
  2. The unit circle

    The unit circle has radius 1 and its centre at the origin (0, 0). Start at the point (1, 0) and turn counterclockwise by θ. Every angle lands on exactly one point P of the circle, and a full turn, 2π, brings you back.

    >>> from math import *
    >>> x, y = cos(pi / 4), sin(pi / 4)
    >>> hypot(x, y)             # distance from the origin
    1.0
    >>> cos(2 * pi), sin(2 * pi)  # a full turn: back to (1, 0)
    (1.0, -2.4492935982947064e-16)
  3. cos and sin are coordinates

    Drop a line from P straight down to the x-axis. The flat leg is cos θ, the x coordinate of P. The upright leg is sin θ, its y coordinate. At θ = π/4 the legs are equal: both are √2/2 ≈ 0.707.

    >>> from math import *
    >>> cos(pi / 4)
    0.7071067811865476
    >>> sin(pi / 4)
    0.7071067811865475
    >>> sqrt(2) / 2
    0.7071067811865476
  4. The Pythagorean identity

    The two legs and the radius make a right triangle whose long side is 1. Pythagoras says cos²θ + sin²θ = 1² = 1, for every angle θ. At π/4: 0.5 + 0.5 = 1. That is why P always stays on the circle.

    >>> from math import *
    >>> cos(pi / 4)**2 + sin(pi / 4)**2
    1.0
    >>> cos(2)**2 + sin(2)**2       # any angle works
    1.0
  5. Signs around the circle

    Keep turning. At 3π/4 (135°) P is left of the y-axis, so cos θ ≈ −0.707 while sin θ stays +0.707. At 5π/4 both are negative; at 7π/4 only sin is. The signs tell you which quarter P is in.

    >>> from math import *
    >>> round(cos(3 * pi / 4), 4), round(sin(3 * pi / 4), 4)
    (-0.7071, 0.7071)
    >>> round(cos(5 * pi / 4), 4), round(sin(5 * pi / 4), 4)
    (-0.7071, -0.7071)
    >>> round(cos(7 * pi / 4), 4), round(sin(7 * pi / 4), 4)
    (0.7071, -0.7071)
  6. From a point to θ

    Going back, you know P's coordinates and want θ. The ratio y/x = tan θ cannot tell (−1, 1) from (1, −1): both give −1. atan2(y, x) checks both signs: atan2(1, −1) = 3π/4 ≈ 2.356 rad, which is 135°.

    >>> from math import *
    >>> atan2(1, -1)
    2.356194490192345
    >>> degrees(atan2(1, -1))
    135.0
    >>> atan(1 / -1)              # atan undoes tan, but loses the quarter
    -0.7853981633974483
  7. Unroll it: the sine wave

    Now let θ grow steadily and plot P's height, sin θ, against θ. One full turn, 0 to 2π, draws one cycle: up to 1 at π/2, back to 0 at π, down to −1 at 3π/2, and back to 0 at 2π.

    >>> from math import *
    >>> [round(sin(k * pi / 2), 3) for k in range(5)]
    [0.0, 1.0, 0.0, -1.0, -0.0]
    >>> sin(pi)                    # tiny, not 0: pi is rounded
    1.2246467991473532e-16
  8. Cosine: a shifted sine

    cos θ draws the same wave, a quarter turn earlier. It starts at its peak, 1, where sine starts at 0, so cos θ = sin(θ + π/2). Engineers say cosine leads sine by 90°, or π/2 radians.

    >>> from math import *
    >>> cos(1.0), sin(1.0 + pi / 2)
    (0.5403023058681398, 0.5403023058681398)
    >>> cos(0), sin(pi / 2)
    (1.0, 1.0)
  9. AC voltage is a sine

    An AC source makes v(t) = Vm sin(ωt), with peak Vm = 10 V and frequency f = 50 Hz. The angle ωt grows 2π per cycle, so ω = 2π × 50 ≈ 314.16 rad/s. One cycle takes 1/50 s = 20 ms.

    >>> from math import *
    >>> w = 2 * pi * 50             # omega, rad/s
    >>> w
    314.1592653589793
    >>> 1 / 50                       # period, s
    0.02
  10. Reading one instant

    At t = 2.5 ms the angle is ωt = 314.16 × 0.0025 ≈ π/4. So v = 10 × sin(π/4) ≈ 7.07 V: the 0.707 from the unit circle, scaled by 10. An arm of length Vm turning at ω is a rotating phasor.

    >>> from math import *
    >>> w = 2 * pi * 50
    >>> w * 0.0025, pi / 4
    (0.7853981633974483, 0.7853981633974483)
    >>> 10 * sin(w * 0.0025)
    7.071067811865475

اختبار يتاح بعد الخطوة الأخيرة.