Sub topic 1
Sinusoidal voltage and current: amplitude, frequency, and phase
Prerequisites
This chapter assumes you can do the following:
- Apply Ohm's law and Kirchhoff's laws to simple circuits.
- Use sine, cosine, and their inverse functions, and convert between degrees and radians.
- State how voltage and current relate in a resistor, inductor, and capacitor.
- Convert complex numbers between rectangular and polar form. Complex numbers are not needed in this chapter, but they are used in the next ones.
Everything else is introduced here. Every power quantity in this tutorial is built from the three numbers that describe a sinusoid: its size, its speed, and its timing.
Why a sinusoid
The mains supply is a sinusoid because of how generators work. A coil rotating at constant speed in a magnetic field produces a voltage proportional to the sine of the rotation angle. A sinusoid also keeps its shape when it passes through linear elements. If you apply a sinusoidal voltage to a resistor, inductor, or capacitor, the current is a sinusoid of the same frequency. Only its size and timing change. That property makes AC analysis tractable, and it is the reason "phase" is a single number instead of a complicated waveform comparison.
The general form
A sinusoidal voltage is written as:
v(t) = Vm sin(ωt + θv)
A sinusoidal current has the same form:
i(t) = Im sin(ωt + θi)
Three parameters describe each one:
- Amplitude (Vm or Im) is the peak value, measured from zero to the crest. It has the units of the quantity: volts or amperes.
- Frequency (f) is the number of complete cycles per second, in hertz (Hz).
- Phase angle (θv or θi) is the angle at t = 0. It sets where in its cycle the waveform starts.
| Quantity | Symbol | Unit | Relation |
|---|---|---|---|
| Peak value | Vm, Im | V, A | Zero-to-crest |
| Peak-to-peak value | Vpp | V | 2 Vm |
| Frequency | f | Hz | Cycles per second |
| Period | T | s | 1 / f |
| Angular frequency | ω | rad/s | 2πf = 2π / T |
| Phase angle | θ | rad or degrees | Angle at t = 0 |
Mains frequency is 50 Hz in most of the world and 60 Hz in North America and parts of Asia. At 50 Hz, T = 20 ms and ω = 2π × 50 ≈ 314.16 rad/s. At 60 Hz, T ≈ 16.67 ms and ω ≈ 377 rad/s.
Amplitude: three ways to quote a size
A "230 V" label on a socket does not mean the voltage reaches 230 V. It means 230 V RMS, and the next chapter explains what RMS is. The crest of that waveform is about 230 × √2 ≈ 325 V, and the peak-to-peak swing is about 651 V. Always check which measure a number refers to. Instruments, datasheets, and textbooks differ in what they report, and mixing peak and RMS values is a common error in power calculations.
Frequency, period, and angular frequency
Frequency f and period T are reciprocals. Angular frequency ω converts cycles into radians: one cycle is 2π radians, so ω = 2πf. The factor ω appears constantly in AC analysis. For example, the reactance of an inductor is ωL and the reactance of a capacitor is 1/(ωC). It is also the reason a sinusoid's argument is ωt, which is an angle that grows with time.
A common mistake is to forget the unit of the argument. Computing sin(ωt) with ω in rad/s and t in seconds gives an argument in radians. If you add a phase angle written in degrees, convert it first.
Phase angle and time shift
The phase angle θ fixes where the waveform sits on the time axis. A positive θ shifts the waveform to the left, so it reaches each point earlier. A negative θ shifts it to the right, so it is delayed.
Phase and time delay are related, but the relation depends on frequency:
Δt = (Δθ / 360°) × T
A 45° shift at 50 Hz is one eighth of a 20 ms period, which is 2.5 ms. The same 45° at 60 Hz is about 2.08 ms. For this reason engineers quote phase in degrees or radians and not in milliseconds. The angle keeps the same meaning when the frequency changes.
Phase difference between voltage and current
A single waveform's phase angle depends on where you choose t = 0, so it carries no physical meaning by itself. Only the difference between two waveforms of the same frequency matters. Define:
φ = θv − θi
- If φ > 0, the voltage reaches its crest before the current. The current lags the voltage.
- If φ < 0, the current reaches its crest first. The current leads the voltage.
- If φ = 0, the two are in phase.
In the standard cases:
- A pure resistor gives φ = 0.
- A pure inductor gives φ = +90°, so the current lags.
- A pure capacitor gives φ = −90°, so the current leads.
- A mixed load gives a value between these limits.
This φ is the angle used in the power formulas in later chapters. The sign convention above is used throughout the tutorial.
Sine versus cosine references
Some texts write waveforms with cosine instead of sine. The two differ only by a 90° shift: cos(ωt) = sin(ωt + 90°). Before you compare phases, convert both waveforms to the same function. If one is written as a cosine and the other as a sine, you will otherwise get a 90° error.
Normalising the angle
Phase angles repeat every 360°, so 190° and −170° describe the same waveform. For a load, φ is normally reported between −180° and +180°. If you compute a difference such as 30° − (−170°) = 200°, subtract 360° to get −160°. In practice, loads that draw useful power have φ between −90° and +90°. A result outside that range means the load is delivering power back to the source, or that there is a mistake.
Worked example in code
Take a 50 Hz voltage with an RMS value of 230 V and phase 0°. The current has a peak of 23 A and lags the voltage by 45°. The code computes the period, angular frequency, and time shift, and then samples both waveforms.
import math
f = 50.0 # Hz
Vm = 230.0 * math.sqrt(2) # peak voltage, about 325.27 V
Im = 23.0 # peak current in A
theta_v = 0.0 # voltage phase in radians
theta_i = math.radians(-45.0) # current lags by 45 degrees
T = 1.0 / f
omega = 2.0 * math.pi * f
def v(t):
return Vm * math.sin(omega * t + theta_v)
def i(t):
return Im * math.sin(omega * t + theta_i)
phi = math.degrees(theta_v - theta_i) # positive means current lags
dt = (phi / 360.0) * T # time by which current trails voltage
print(f"T = {T * 1000:.1f} ms, omega = {omega:.2f} rad/s")
print(f"phi = {phi:.1f} degrees ({'lagging' if phi > 0 else 'leading'})")
print(f"time shift = {dt * 1000:.2f} ms")
for t_ms in (0.0, 2.5, 5.0, 7.5, 10.0):
t = t_ms / 1000.0
print(f"t = {t_ms:4.1f} ms v = {v(t):8.2f} V i = {i(t):7.2f} A")The output shows phi = 45.0 degrees (lagging) and a time shift of 2.50 ms. At t = 5 ms the voltage is at its crest of 325.27 V. The current is 23 sin(90° − 45°) ≈ 16.26 A at that moment, and it reaches its own crest 2.5 ms later, at 7.5 ms. These are the values for the load used in the next chapters.
Common errors
- Mixing units. Putting degrees into a function that expects radians. Python's
math.sintakes radians. - Mixing peak and RMS. Using 230 as an amplitude, or 325 as an RMS value.
- Reversing the lead and lag sign. Always compute θv − θi and check the sign against a sketch.
- Comparing different frequencies. Phase difference is constant only when both waveforms share the same frequency. For different frequencies, the difference changes continuously and has no single value.
- Mixing sine and cosine references. Convert both waveforms to one form first.
Summary
A sinusoid is fixed by its amplitude, frequency, and phase. Frequency, period, and angular frequency are three forms of the same speed information. The phase difference between voltage and current is the quantity that carries over into power analysis, with a positive value meaning the current lags.
Exercise
A 60 Hz current is i(t) = 10 sin(ωt + 20°) A and the voltage is v(t) = 170 cos(ωt) V. Find ω in rad/s, the period in ms, the phase difference φ = θv − θi in degrees, and whether the current leads or lags the voltage.
Show answer
ω = 2π × 60 ≈ 376.99 rad/s. T = 1/60 s ≈ 16.67 ms. Convert the cosine to a sine: 170 cos(ωt) = 170 sin(ωt + 90°), so θv = 90°. With θi = 20°, φ = 90° − 20° = +70°. Because φ is positive, the current lags the voltage by 70°. This corresponds to a time delay of (70/360) × 16.67 ms ≈ 3.24 ms.