Sub topic 1
Sinusoids: amplitude, frequency and phase
Prerequisites
This chapter assumes you already know the following from earlier study:
- DC circuit analysis: Ohm's law, KVL, KCL, and series and parallel combinations.
- The voltage-current laws of resistors, inductors and capacitors.
- Basic trigonometry: sine, cosine, and angles in degrees and radians.
- The idea of a derivative and an integral of a function of time.
You do not need complex numbers yet. They arrive in the next chapter. Here we pin down the one signal shape that the rest of the tutorial depends on.
Why sinusoids come first
Phasor analysis only works on sinusoidal signals. A sinusoid is a signal that varies with time as a sine or cosine. Three facts make it the natural signal for circuit analysis:
- Power-system voltages are generated as sinusoids, because a coil rotating in a magnetic field produces one.
- Any periodic signal can be written as a sum of sinusoids (Fourier series). If you can solve a circuit for one sinusoid, you can solve it for any of them and add the results, since linear circuits obey superposition.
- Differentiating or integrating a sinusoid gives another sinusoid of the same frequency. A linear circuit built from R, L and C therefore changes only the amplitude and phase of a sinusoid, never its frequency or its shape.
The third fact is what makes phasors possible. If every voltage and current in the circuit has the same frequency, only two numbers per signal still need tracking: the amplitude and the phase.
The general form
A sinusoidal voltage is written as
v(t) = V_m cos(ωt + φ)
The symbols mean:
- V_m is the amplitude (also called peak value). It is the largest value the signal reaches, in volts.
- ω is the angular frequency, in radians per second.
- t is time, in seconds.
- φ is the phase angle (or phase), the value of the argument at t = 0 apart from ωt.
The whole quantity ωt + φ is the instantaneous phase. A sinusoid repeats each time this quantity grows by 2π radians.
Frequency, angular frequency and period
Three related quantities describe how fast a sinusoid repeats.
- The period T is the time for one full cycle, in seconds.
- The frequency f is the number of cycles per second, in hertz (Hz). f = 1/T.
- The angular frequency ω is the phase advance per second, in radians per second. One cycle is 2π radians, so ω = 2πf = 2π/T.
| Quantity | Symbol | Unit | Relation |
|---|---|---|---|
| Period | T | s | T = 1/f |
| Frequency | f | Hz | f = 1/T = ω/2π |
| Angular frequency | ω | rad/s | ω = 2πf |
Mains power in much of the world is 50 Hz, and in North America it is 60 Hz. For 60 Hz, ω = 2π · 60 ≈ 377 rad/s and T ≈ 16.67 ms. For 50 Hz, ω ≈ 314 rad/s and T = 20 ms.
Phase and time shift
The phase angle φ shifts the waveform along the time axis. The signal cos(ωt + φ) reaches its peak when ωt + φ = 0, so the first peak at positive time is not at t = 0. It occurs at
t_peak = −φ/ω
for φ between −2π and 0, and at t_peak = (2π − φ)/ω for φ > 0 in the first cycle.
The sign convention matters:
- A positive φ means the waveform is shifted to the left (earlier). Its peak occurs before the peak of cos(ωt). We say it leads cos(ωt).
- A negative φ means the waveform is shifted to the right (later). It lags cos(ωt).
A phase angle and a time shift are linked by Δt = φ/ω. A 30° lead at 60 Hz is 30/360 of a period, which is 16.67 ms / 12 ≈ 1.39 ms earlier.
Degrees or radians
Phase is commonly quoted in degrees, such as 30°, but the term ωt is in radians. When you write v(t) = 10 cos(377t + 30°), the two terms of the argument have different units. This is a long-standing habit in circuit work and is fine on paper. When you compute a value by hand or in code, convert first so both terms are in the same unit:
- radians = degrees × π/180
- degrees = radians × 180/π
A calculator or library set to the wrong angle mode is the most common source of wrong numbers in this topic.
Sine versus cosine
A sine is a cosine shifted by 90°:
- sin(ωt) = cos(ωt − 90°)
- cos(ωt) = sin(ωt + 90°)
Phasor analysis uses a single convention for the reference function. This tutorial uses cosine. To use the methods that follow, convert any sine to a cosine first.
Other useful identities:
- −cos(ωt) = cos(ωt ± 180°)
- −sin(ωt) = sin(ωt ± 180°)
- A negative amplitude can be turned into a positive one by adding 180° to the phase.
Worked example: write v(t) = −5 sin(ωt + 20°) in the standard form Vm cos(ωt + φ) with Vm > 0.
- Convert the sine to a cosine: sin(ωt + 20°) = cos(ωt + 20° − 90°) = cos(ωt − 70°).
- Absorb the minus sign by adding 180°: −cos(ωt − 70°) = cos(ωt − 70° + 180°) = cos(ωt + 110°).
- The result is v(t) = 5 cos(ωt + 110°).
Check at t = 0: the original gives −5 sin 20° = −1.710, and the result gives 5 cos 110° = −1.710. They match.
Peak, peak-to-peak and RMS values
The amplitude V_m is not the only way to quote the size of a sinusoid.
- The peak value is V_m.
- The peak-to-peak value is 2V_m.
- The RMS (root mean square) value is the DC voltage that would deliver the same average power to a resistor. For a sinusoid, Vrms = Vm/√2 ≈ 0.707 V_m.
RMS comes from the definition
V_rms = sqrt( (1/T) ∫₀ᵀ v(t)² dt )
For v(t) = Vm cos(ωt + φ), the average of cos² over a full period is 1/2, so Vrms = V_m/√2.
Household voltage is quoted as RMS. A "120 V" outlet has a peak of 120 · √2 ≈ 170 V. A "230 V" outlet peaks near 325 V. Instruments and power calculations often use RMS, while the derivation of phasors most naturally uses peak amplitude. You must know which convention a given problem uses. This tutorial states each time which one is in use.
Computing with a sinusoid in code
The script below evaluates a 60 Hz, 120 V RMS sinusoid with a 30° phase. It converts the RMS value to a peak value, finds the period, and checks the time shift of the phase.
import math
V_rms = 120.0
f = 60.0
phi_deg = 30.0
V_m = V_rms * math.sqrt(2) # peak value
w = 2 * math.pi * f # rad/s
T = 1 / f # s
phi = math.radians(phi_deg) # convert to radians
def v(t):
return V_m * math.cos(w * t + phi)
dt_lead = phi / w # how much earlier the waveform peaks
print(f"Vm = {V_m:.2f} V")
print(f"w = {w:.2f} rad/s")
print(f"T = {T * 1000:.3f} ms")
print(f"v(0) = {v(0):.2f} V")
print(f"time lead = {dt_lead * 1000:.3f} ms")
print(f"v(-dt_lead) = {v(-dt_lead):.2f} V (should equal Vm)")Running it prints Vm ≈ 169.71 V, w ≈ 376.99 rad/s, T ≈ 16.667 ms, v(0) ≈ 146.97 V, a lead of about 1.389 ms, and v at t = −1.389 ms equal to the peak, 169.71 V. That last line confirms that a positive phase moves the peak to an earlier time.
Same frequency is the key condition
Two sinusoids can be compared in phase only if they have the same ω. If the frequencies differ, the phase difference changes continuously with time and there is no fixed lead or lag.
In a linear circuit driven by one source frequency, every steady-state voltage and current has that same frequency. That is why, from the next chapters on, ω can be set aside and only amplitude and phase need tracking. If a circuit has sources at two different frequencies, you solve it once per frequency and add the time-domain results by superposition. You never add phasors of different frequencies.
Adding two sinusoids of the same frequency
Adding two sinusoids with the same ω gives a third sinusoid with that ω. For example,
3 cos(ωt) + 4 cos(ωt + 90°) = 5 cos(ωt + 53.13°)
You can prove this with trigonometric identities, expanding cos(ωt + 90°) = −sin(ωt) and combining a cos(ωt) + b sin(ωt) into a single cosine. That works, but it becomes tedious with several terms. The phasor method in a later chapter turns the same job into one addition of complex numbers. Keep this example in mind. It is the same one the phasor chapter reproduces.
The trigonometric route for a general sum a cos(ωt) + b sin(ωt) gives:
- amplitude R = √(a² + b²)
- phase φ = −arctan2(b, a), so that the sum equals R cos(ωt + φ)
Check with a = 3 and b = −4 (since −4 sin(ωt) is the sine part of 4 cos(ωt + 90°)): R = 5 and φ = −arctan2(−4, 3) = 53.13°. This matches.
Common errors
- Using f where ω is required, or the reverse.
- Evaluating cos(ωt + 30) with the 30 treated as radians.
- Treating a sine and a cosine of the same phase number as in phase. They are 90° apart.
- Forgetting that a negative amplitude is a 180° phase shift.
- Mixing peak and RMS values in one calculation.
- Comparing the phase of signals with different frequencies.
- Reading lead and lag backwards. A positive φ in cos(ωt + φ) is a lead.
Exercise
A current is i(t) = −8 sin(1000t − 40°) A. (a) Rewrite it as Im cos(ωt + φ) with Im > 0 and φ between −180° and 180°. (b) State the frequency in hertz and the period in milliseconds. (c) Is this current leading or lagging cos(1000t)?
Show answer
(a) Convert the sine: sin(1000t − 40°) = cos(1000t − 130°). The leading minus sign adds 180°: −8 cos(1000t − 130°) = 8 cos(1000t + 50°). So I_m = 8 A and φ = 50°. Check at t = 0: −8 sin(−40°) = 5.142 and 8 cos 50° = 5.142. (b) ω = 1000 rad/s, so f = 1000/(2π) ≈ 159.2 Hz and T = 1/f = 2π/1000 ≈ 6.283 ms. (c) φ = +50°, so the current leads cos(1000t) by 50°. That is a time lead of 50° in radians divided by ω, which is 0.8727/1000 ≈ 0.873 ms.
Exercise
A 230 V RMS, 50 Hz source is v(t) = Vm cos(ωt + φ) with a phase of −60°. Find Vm, ω, and the value of v at t = 0. By how many milliseconds does the first positive peak come after t = 0?
Show answer
V_m = 230·√2 ≈ 325.3 V. ω = 2π·50 ≈ 314.16 rad/s. v(0) = 325.3·cos(−60°) = 162.6 V. The waveform is delayed by Δt = |φ|/ω = (π/3)/314.16 ≈ 3.333 ms, so the first positive peak occurs at about 3.33 ms. As a check, 60° is one sixth of the 20 ms period, which is 3.333 ms.