Sub topic 10
Superposition with Sinusoidal Sources
What this chapter assumes
You should already know the DC form of superposition from the earlier chapters: deactivate all but one independent source, solve, repeat, and add. You should also be comfortable with phasors (complex numbers that represent the amplitude and phase of a sinusoid), complex impedance (R, jωL, 1/(jωC)), and the voltage and current dividers applied to impedances.
This chapter covers what changes when the sources are sinusoidal. In short, nothing changes in principle, but you now have to track frequency.
Why superposition still holds
Superposition rests on linearity. A circuit made of resistors, capacitors, inductors, and independent and linear dependent sources is linear. Its response to a sum of inputs is the sum of its responses to each input. That statement does not depend on the source waveform, so it holds for sinusoids as well as for DC.
Capacitors and inductors are linear because their defining equations, i = C dv/dt and v = L di/dt, are linear in the signal. Differentiation preserves additivity and homogeneity, so reactive elements do not break superposition.
The new difficulty is that a capacitor or inductor responds differently at different frequencies. A capacitor has impedance 1/(jωC), which depends on ω. A circuit analyzed at 1000 rad/s is effectively a different circuit from the same one analyzed at 2000 rad/s.
Two cases: same frequency and different frequencies
Everything in this chapter follows from whether the sources share one frequency.
| Situation | What you do | How you combine |
|---|---|---|
| All sources have the same ω | Superposition is optional. One phasor analysis with all sources active also works. | Add phasors as complex numbers. |
| Sources have different ω | Superposition is the standard method. Solve once per frequency. | Convert each result to the time domain, then add the waveforms. |
| DC plus AC | Treat the DC source as ω = 0. Capacitors are open and inductors are shorts. | Add the constant to the time-domain AC result. |
Deactivating sources at each frequency
The rules are the same as for DC. Within each single-frequency analysis, every source at a different frequency is turned off.
- A voltage source that is off becomes a short circuit (0 V at every instant).
- A current source that is off becomes an open circuit (0 A at every instant).
- Dependent sources stay active. They are not inputs. They depend on circuit variables, and those variables carry the signal at the frequency you are analyzing.
At each frequency, replace each capacitor with 1/(jωC) and each inductor with jωL, using that frequency's ω.
Worked example: two frequencies
Use the same topology as the DC example. A voltage source v1 feeds node A through a resistor R. A capacitor C connects node A to ground. A current source i1 injects current into node A.
- R = 100 Ω
- C = 10 µF
- v1(t) = 10 cos(1000t) V
- i1(t) = 0.05 cos(2000t) A, directed into node A
Find the voltage va(t) at node A.
Step 1: only v1 active (ω = 1000 rad/s)
Replace i1 with an open circuit. The capacitor impedance is
ZC = 1/(j · 1000 · 10×10⁻⁶) = −j100 Ω
The voltage divider gives
VA1 = 10 · (−j100) / (100 − j100) = 5 − j5 V
This is 7.071 ∠ −45° V, so va1(t) = 7.071 cos(1000t − 45°) V.
Step 2: only i1 active (ω = 2000 rad/s)
Replace v1 with a short circuit. The resistor now sits in parallel with the capacitor, seen from node A to ground. The capacitor impedance is
ZC = 1/(j · 2000 · 10×10⁻⁶) = −j50 Ω
The parallel impedance is
Z = (100)(−j50) / (100 − j50) = 20 − j40 Ω
The voltage is VA2 = 0.05 · (20 − j40) = 1 − j2 V. That is 2.236 ∠ −63.43° V, so va2(t) = 2.236 cos(2000t − 63.43°) V.
Step 3: add in the time domain
va(t) = 7.071 cos(1000t − 45°) + 2.236 cos(2000t − 63.43°) V
The two terms have different frequencies, so the sum is not a single sinusoid. It has no phasor.
Same frequency: phasors add directly
Now suppose the current source is i1(t) = 0.05 sin(1000t) A, at the same ω as v1. Write it as a cosine: 0.05 cos(1000t − 90°), so its phasor is 0.05 ∠ −90° = −j0.05 A.
Because both sources share ω = 1000 rad/s, the capacitor is −j100 Ω for both partial analyses.
- With only v1 active: VA1 = 5 − j5 V, as before.
- With only i1 active: the parallel impedance is 100 ∥ (−j100) = 50 − j50 Ω. Then VA2 = (−j0.05)(50 − j50) = −2.5 − j2.5 V.
- Total: VA = (5 − j5) + (−2.5 − j2.5) = 2.5 − j7.5 V, which is 7.906 ∠ −71.57° V.
So va(t) = 7.906 cos(1000t − 71.57°) V. Here the sum is a single sinusoid at 1000 rad/s, and the phasor addition is valid.
The sin source needed conversion to a cosine reference before it became a phasor. Mixing sine and cosine references is the most common sign and phase error in AC superposition. Pick one reference (cosine is usual) and convert every source to it.
Checking the arithmetic in Python
Python's complex type handles impedances directly. This script reproduces both examples and checks the same-frequency result against a single all-sources-active solve, which is the equivalent of a nodal analysis at that frequency.
import cmath
import math
R = 100.0 # ohms
C = 10e-6 # farads
def zc(w):
"""Capacitor impedance at angular frequency w."""
return 1 / (1j * w * C)
def polar(z):
return round(abs(z), 3), round(math.degrees(cmath.phase(z)), 2)
# Different frequencies: one phasor solve per source
w1, w2 = 1000.0, 2000.0
v1 = 10 + 0j # 10 V at 0 degrees
va1 = v1 * zc(w1) / (R + zc(w1)) # i1 off (open)
z_par = R * zc(w2) / (R + zc(w2)) # v1 off (short): R parallel C
va2 = 0.05 * z_par
print("w1 part:", polar(va1)) # (7.071, -45.0)
print("w2 part:", polar(va2)) # (2.236, -63.43)
# RMS of the sum: the cross term averages to zero at different frequencies
vrms = math.sqrt((abs(va1) ** 2 + abs(va2) ** 2) / 2)
print("rms of va(t):", round(vrms, 3)) # 5.244
# Same frequency: add phasors, then check with one nodal equation
w = 1000.0
i1 = 0.05 * cmath.exp(-1j * math.pi / 2) # sin source as a cosine phasor
va_a = v1 * zc(w) / (R + zc(w))
va_b = i1 * (R * zc(w) / (R + zc(w)))
va_sum = va_a + va_b
# Nodal: (VA - V1)/R + VA/ZC = I1
va_nodal = (v1 / R + i1) / (1 / R + 1 / zc(w))
assert cmath.isclose(va_sum, va_nodal)
print("same-frequency total:", polar(va_sum)) # (7.906, -71.57)Power and RMS values
The DC lesson holds here too: power is quadratic, so you cannot add the partial powers in general. For sinusoids there is a useful exception.
If two sinusoids have different frequencies, their product averages to zero over a long time. The cross term in v² therefore vanishes. For a total voltage v = v₁ + v₂ across a resistor R:
- Average power: P = V1rms²/R + V2rms²/R
- RMS of the sum: Vrms = √(V1rms² + V2rms²)
In the example, the peak amplitudes 7.071 V and 2.236 V give squares of 50 and 5. So Vrms = √((50 + 5)/2) = √27.5 = 5.244 V, as the script prints.
If the two components have the same frequency, the cross term does not average to zero. It depends on the phase difference between them. In that case, add the phasors first, then compute power from the combined phasor.
| Components | Can you add average powers? |
|---|---|
| Different frequencies (including DC plus AC) | Yes, the cross term averages to zero |
| Same frequency | No, the cross term depends on the phase angle |
Dependent sources and nonlinear elements
A dependent source stays in the circuit during every single-frequency analysis. Its controlling variable is solved at that frequency. A source such as 2·Vx becomes 2·Vx as a phasor at each ω, which is still linear.
Superposition fails for nonlinear elements: diodes, transistors outside their small-signal region, saturating inductor cores, and any element whose characteristic is not a straight line. A diode driven by two frequencies produces sum and difference frequencies (intermodulation), and no single-frequency solve can predict those. A common workaround is to linearize around a DC operating point and apply superposition to the small AC signals only. That is the basis of small-signal analysis.
Common errors
- Using the wrong ω for the capacitor or inductor in a given partial solve. Recompute every impedance for each frequency.
- Adding phasors of different frequencies.
- Leaving a source at another frequency active. Short the voltage sources and open the current sources.
- Mixing sine and cosine references without converting.
- Dropping the DC component. A DC source is a valid separate partial solve at ω = 0.
- Adding partial powers at the same frequency.
Checking with a simulator
In a SPICE program, an AC sweep (.ac) with only one source given a nonzero AC magnitude reproduces one partial solve. Setting the other sources' AC magnitude to zero deactivates them the same way as shorting or opening. For sources at different frequencies, a transient run (.tran) gives the full waveform. Compare it with the sum of your time-domain partial results.
Exercises
Exercise
A series circuit has a 20 Ω resistor and a 10 mH inductor. The source is v(t) = 5 + 10 cos(2000t) V, a DC level plus a sinusoid. Find the current i(t).
Show answer
Treat the circuit as two single-source problems. DC part: the inductor is a short, so I = 5/20 = 0.25 A. AC part at ω = 2000: ZL = j2000 · 0.01 = j20 Ω. Total impedance = 20 + j20 = 28.28 ∠ 45° Ω. Current phasor = 10 / (28.28 ∠ 45°) = 0.3536 ∠ −45° A. Convert and add in the time domain: i(t) = 0.25 + 0.3536 cos(2000t − 45°) A.
Exercise
In the worked example with v1 = 10 cos(1000t) V and i1 = 0.05 cos(2000t) A, a student reports the amplitude of va as 9.22 V by adding 5 − j5 and 1 − j2 and taking the magnitude. What is wrong, and what is the correct statement about va?
Show answer
The two phasors belong to different frequencies (1000 and 2000 rad/s), so they cannot be added. The correct result is va(t) = 7.071 cos(1000t − 45°) + 2.236 cos(2000t − 63.43°) V. It is not a single sinusoid and has no single amplitude. Its RMS value is 5.244 V, and its peak value is at most 7.071 + 2.236 = 9.307 V.