← SciSim / Physics

AC Circuits

SciSimElectromagnetism #28
Section 01
Interactive Simulation
AC Circuits — SciSim
Ready
V₀
V
I_rms
A
f₀ (Hz)
Hz
Z (Ω)
Ω
φ (°)
°
P_avg (W)
W
Controls
Parameters
Voltage V₀120V
Frequency f50Hz
Resistance R100Ω
Inductance L0.10H
Capacitance C100μF
Section 02
The Idea, Step by Step

A battery pushes electricity one steady way — that's DC. The socket in your wall does something different: it shoves the charge back and forth, about 50 to 60 times every second. That's alternating current (AC). Think of pushing a child on a swing: you don't push once and walk away, you push, let it come back, and push again, over and over.

Now put three parts in the path of that back-and-forth current. A resistor just rubs against the flow and turns energy into heat. A coil (inductor) and a capacitor are sneakier: they push back harder or softer depending on how fast you wiggle the current. That frequency-dependent push-back is called reactance. The coil's reactance $X_L=\omega L$ grows when you raise the frequency; the capacitor's $X_C=1/(\omega C)$ shrinks when you raise it. Here $\omega=2\pi f$ is just the frequency counted in radians per second.

The clever part is how the three combine. They do not simply add. Because the coil's and capacitor's voltages are a quarter-cycle out of step with the resistor's, they stack like the sides of a right triangle into the impedance $Z=\sqrt{R^2+(X_L-X_C)^2}$. Suppose $R=30\,\Omega$ and a coil contributes $X_L=40\,\Omega$. Then $Z=\sqrt{30^2+40^2}=50\,\Omega$ — not $70\,\Omega$. Ohm's law still works, you just use $Z$ instead of $R$: a $120\text{ V}$ (rms) supply drives $I_\text{rms}=120/50=2.4\text{ A}$. The current also runs out of step with the voltage by the phase angle $\tan\varphi=(X_L-X_C)/R$, here $\arctan(40/30)\approx53^\circ$.

The magic moment is resonance. As you tune the frequency, there is one special value $f_0=1/(2\pi\sqrt{LC})$ where $X_L$ and $X_C$ become equal and cancel. The impedance drops to its smallest value, $Z=R$, and the current peaks — exactly how a radio picks one station out of the air. Only the resistor actually burns power: $P_\text{avg}=V_\text{rms}I_\text{rms}\cos\varphi$, where $\cos\varphi=R/Z$ is the "power factor."

The sliders map straight onto these symbols: V₀ sets the push, f sets $\omega$, and R, L, C set the impedance. Try this in the sim above: (1) leave the defaults and nudge f until the readout Z bottoms out and I_rms peaks — that's resonance, near 50 Hz. (2) Crank f far above resonance and watch $X_L$ take over: the circuit turns inductive and the current lags. (3) Drop f well below resonance and watch $X_C$ dominate: $Z$ climbs and the current shrinks.

Section 03
Equations & Derivation
AC Fundamentals
$$V(t)=V_0\cos\omega t,\quad I(t)=I_0\cos(\omega t-\varphi),\quad V_\text{rms}=\frac{V_0}{\sqrt{2}}$$
Reactances & Impedance
$$X_L=\omega L,\quad X_C=\frac{1}{\omega C},\quad Z=\sqrt{R^2+(X_L-X_C)^2}$$
Phase & Resonance
$$\tan\varphi=\frac{X_L-X_C}{R},\quad f_0=\frac{1}{2\pi\sqrt{LC}},\quad Q=\frac{\omega_0 L}{R}$$
Average Power
$$P_\text{avg}=I_\text{rms}^2 R=\frac{V_\text{rms}^2 R}{Z^2}=V_\text{rms}I_\text{rms}\cos\varphi$$

Symbol Definitions

SymbolQuantitySI Unit
$Z$ImpedanceΩ
$X_L=\omega L$Inductive reactanceΩ
$X_C=1/(\omega C)$Capacitive reactanceΩ
$\varphi$Phase anglerad
$Q=\omega_0 L/R$Quality factor (resonance sharpness)dimensionless
1
Phasors. AC currents and voltages represented as rotating complex vectors. $R$: $V_R$ in phase with $I$. $L$: $V_L$ leads $I$ by 90°. $C$: $V_C$ lags $I$ by 90°. The phasor sum $\vec{V}=V_R\hat{R}+(V_L-V_C)\hat{X}$ has magnitude $V_0=IZ$ and angle $\varphi$.
2
Resonance. At $f_0=1/(2\pi\sqrt{LC})$: $X_L=X_C$, $Z=R$ (minimum), $I$ maximum. Below resonance: capacitive ($X_C>X_L$, current leads). Above: inductive ($X_L>X_C$, current lags). Quality factor $Q=f_0/\Delta f$ — sharper resonance has higher $Q$.
3
Power factor. $\cos\varphi=R/Z$. Pure resistor: $\cos\varphi=1$, all power converted to heat. Inductor/capacitor: $\cos\varphi=0$, reactive power — energy oscillates, not consumed. Power companies penalise industrial users with low power factor because reactive current wastes transmission capacity.
Ref: Halliday, Resnick & Walker 10th Ed., Ch. 31; Serway & Jewett 8th Ed., Ch. 21; Horowitz & Hill — The Art of Electronics (3rd Ed.).
Section 04
Frequently Asked Questions
For DC ($f=0$): $X_C=1/(0)\to\infty$ — no current. For AC: $X_C=1/(2\pi fC)$ decreases as $f$ increases. Capacitor charges/discharges with each half-cycle. At high frequency: $X_C\to0$ (short circuit). This makes capacitors ideal high-pass filters and AC coupling elements.
Key takeaway: $X_C=1/\omega C$: blocks DC (infinite), conducts high-frequency AC (near-zero reactance).
Radio/TV tuning (resonant circuit selects one frequency), audio crossovers (separate bass/treble), power factor correction capacitors (industry), switching power supplies (high-frequency transformers are smaller), wireless power transfer (resonant coupling), MRI gradient amplifiers, and all analog signal processing.
Key takeaway: RLC resonance enables radio tuning, audio engineering, wireless power, and signal processing.
Root-mean-square (RMS) voltage is what's stated. RMS matches the power of equivalent DC: $P=V_\text{rms}^2/R$. Peak voltage is $V_0=V_\text{rms}\sqrt{2}$. For 230V RMS: $V_0=325$ V. For 120V RMS: $V_0=170$ V. Device insulation must withstand the peak, which is why 230V systems need more robust insulation than 120V.
Key takeaway: RMS voltage: equivalent heating power to DC. Peak = RMS×√2. 230V RMS → 325V peak.
$f_0=1/(2\pi\sqrt{LC})=1/(2\pi\sqrt{0.1\times10^{-4}})=1/(2\pi\times0.00316)=50.3$ Hz — mains frequency! This explains why 50 Hz AC circuits with such $L$ and $C$ values can exhibit dangerous resonant voltage build-up. Quality factor $Q=\omega_0 L/R=2\pi\times50\times0.1/R$.
Key takeaway: $f_0=1/(2\pi\sqrt{LC})$: for L=0.1H, C=100μF → 50 Hz resonance!
Resources: Khan Academy; HyperPhysics (hyperphysics.phy-astr.gsu.edu); MIT OCW.
Section 05
Common Misconceptions
❌ In an AC circuit, voltage and current always have the same phase.
✅ Only in purely resistive circuits are $V$ and $I$ in phase. Capacitors cause $I$ to lead $V$ by up to 90°; inductors cause $V$ to lead $I$ by up to 90°. Phase difference $\varphi=\arctan((X_L-X_C)/R)$. Only at resonance ($X_L=X_C$) is $\varphi=0$.
📖 HRW 10th Ed., §31-4.
❌ Impedance is just another name for resistance in AC circuits.
✅ Impedance $Z=\sqrt{R^2+(X_L-X_C)^2}$ includes reactances that depend on frequency and cause energy storage (not dissipation). Resistance dissipates energy as heat; reactances store and return energy. In phasor notation, impedance is complex: $\tilde{Z}=R+j(X_L-X_C)$.
📖 HRW 10th Ed., §31-3.
Misconception research: McDermott — Tutorials in Introductory Physics.