Alternating current: phasors, impedance and power
The power grid does not deliver direct current but alternating current: the voltage at an outlet oscillates 50 or 60 times per second. With inductors and capacitors the current is no longer simply : it leads or lags the voltage, and a power appears that goes back and forth without being consumed. Phasors turn all of that into algebra with complex numbers, and with impedance Ohm's law, Kirchhoff's laws and the series and parallel rules hold again. That is what the AC circuits tool does, step by step.
The sinusoid and the RMS value
A sinusoidal alternating voltage is written , and four numbers describe it: the amplitude (the peak, in V); the frequency (cycles per second, Hz), with period ; the angular frequency (rad/s: is the angle the wave advances), and the phase (in degrees), which says where the wave starts at . A positive phase moves the wave ahead: it reaches its peak seconds earlier.
What DC voltage heats a resistor just like this wave? The instantaneous power is ; its average over a period, using (the double cosine averages zero), is . Setting it equal to gives the RMS value (root mean square):
It is what voltmeters read and what is announced: a 230 V outlet has 325 V peaks, a 120 V one, 170 V. The same for current, . The simulator always works with rms values (the field is called «Voltage (rms)»), so the powers come out without ½ factors: .
Complex numbers and phasors
The key idea: in a linear circuit fed by a single sinusoid, once the transients are over, every voltage and current is a sinusoid of the same frequency; only its amplitude and phase change. Two numbers per signal (rms value and phase) fit in one complex number: its phasor.
Complex numbers in two forms
With (in electricity , because is the current), is the rectangular form: a point of the plane with real part and imaginary part . The polar form gives its distance to the origin and its angle: with and (adding if ). Euler's formula, , links the two: .
| Operation | Rectangular | Polar |
|---|---|---|
| Addition and subtraction | convert to rectangular first | |
| Product | ||
| Quotient | ||
| Conjugate | ||
| Times | ; |
Rule of thumb: add in rectangular, multiply and divide in polar.
The phasor: a rotating vector
With Euler, the sinusoid is the real part of a rotating complex number:
The factor spins a vector of length at rad/s counterclockwise, and its projection on the real axis is . Since all the vectors in the circuit spin together at the same , the angles between them do not change: you can «stop the clock» at and keep , the phasor.
Why it works: since , differentiating a sinusoid is multiplying its phasor by (turning it and scaling it by ), and integrating is dividing by . The circuit's differential equations become algebraic equations with complex numbers.
Impedance of R, L and C
The impedance is the ratio of phasors , in ohms. It is complex, : the real part is the resistance and the imaginary part the reactance . It follows from each element's relation between and , with :
- Resistor: , so and . Voltage and current in phase.
- Inductor: , that is : with . The voltage leads by : it peaks when the current changes fastest (as it crosses zero).
- Capacitor: gives, likewise, : with . Now it is the current that leads by : it peaks when the voltage changes fastest.
| Element | Reactance | V relative to I | (DC) | ||
|---|---|---|---|---|---|
| Resistor | in phase | ||||
| Inductor | leads by | 0: a wire | ∞: open | ||
| Capacitor | lags by | ∞: open | 0: a wire |
Positive reactance is inductive and negative, capacitive. The inverse of impedance is the admittance (in siemens), handy in parallel. In the simulator, a Z (Ω) element is any load given by its impedance at the source frequency (a motor, a transformer): is its resistance and its reactance.
Series, parallel and the connection expression
Since has the form of Ohm's law and Kirchhoff's laws hold for phasors (next section), all the DC rules still hold, now with complex numbers:
The difference is that complex numbers can cancel. In series, an inductive and a capacitive reactance subtract: an element can have more voltage than the source (in example 2, 252.5 V on the capacitor with a 120 V source). In parallel, the branch currents can exceed the total and can be larger than each branch's (example 3). With resistors, never.
How the connection is typed in the simulator
Instead of drawing the circuit, you type it with the element names: «+» in series, «||» in parallel («//» and «∥» also work) and parentheses. «||» groups before «+», like a product before a sum. The source is connected across the two ends of the whole expression.
| Connection | Which circuit it is |
|---|---|
R1 + L1 + C1 | R, L and C in series |
R1 || L1 || C1 | R, L and C in parallel |
R1 + (L1 || C1) | R1 in series with a parallel of L1 and C1 |
R1 + L1 || C1 | the same as above: «||» goes first |
(R1 + L1) || C1 | a real coil (R1 + L1) in parallel with C1 (example 6) |
R1 + (L1 || (R2 + C1)) | parentheses inside parentheses, with no practical limit (example 3) |
R1 + (L1 || C1) is . Each element appears only once. A bridge (with a diagonal) is neither series nor parallel and cannot be typed this way: first transform it with Δ–Y, which holds just the same with complex impedances (see Direct-current circuits).Ohm and Kirchhoff with phasors: the phasor diagram
Ohm's law is . The voltage law ( around a loop) and the current law ( at a node) hold at every instant; since the sum of sinusoids of the same frequency is the sinusoid of the sum of their phasors, they also hold with phasors. Not with the bare rms values: those do not add.
The phasor diagram draws the phasors as arrows. In series all the elements share the current, so it is convenient to take it as the reference: points along it, ahead and behind, and placed head to tail they reach :
Power: real, reactive and apparent
With and (the current lagging by ), and using , the instantaneous power is:
It oscillates at twice the frequency around a mean value , and if it goes negative: during part of each cycle the load returns to the source the energy it stored in the inductor's magnetic field or the capacitor's electric field.
- Real power (W): the average, what becomes heat or work. Only resistances consume it.
- Reactive power (var): it measures the back-and-forth of energy in L and C, which averages zero. inductive, capacitive.
- Apparent power (VA): what the cables and transformers must carry, which is why they are rated in kVA.
The three come together in the complex power:
The conjugate is there so that the difference of the angles appears, , which is the angle of ; without it you would get the sum, which means nothing. From : a resistor consumes with no ; an inductor, with no ; a capacitor, . In any circuit the P and Q of the elements add up to the source's (the «Total» row of the simulator's table checks it). The , however, do not add: .
Power factor and its correction
The power factor is , between 0 and 1: which part of the current does useful work. Since the cosine does not tell the sign of , a word is added: lagging (inductive, the current lags: motors, transformers) or leading (capacitive, the current leads).
Why it matters: to deliver the same at a voltage , the current is . A load with pf 0.6 draws 1/0.6 = 1.67 times the current of a resistive load of the same power, so the line's losses are 2.8 times larger and cables and transformers must be bigger. That is why industries are required to keep a minimum power factor.
Correcting it with a parallel capacitor
A capacitor in parallel with the load supplies locally the reactive power it needs. The load's voltage does not change, so neither do its and : the source only has to deliver . To go from to with the same , and since a capacitor with voltage supplies :
Resonance
Reactances depend on frequency in opposite ways: grows and shrinks. At some frequency they balance, the impedance becomes real, voltage and current are in phase and the power factor is 1: that is resonance.
Series RLC
gives the well-known formula, and at the impedance is a minimum, , and the current a maximum, :
The quality factor (not to be confused with reactive power) says how many times the source voltage the inductor, and also the capacitor, has at resonance: . The bandwidth spans the half-power frequencies, where , and the current falls to ; solving :
In parallel, and the real coil
With R, L and C directly in parallel, gives the same , but now is a maximum (): the source supplies little current while L and C pass large currents to each other. A real coil, however, has resistance in series with its inductance, (R1 + L1) || C1, and then:
It is lower than , and if there is no resonance at all. Besides, the maximum of no longer coincides with power factor 1:
Conclusion: is only exact with R, L and C directly in series (or all three directly in parallel). In any other combination the resonance is the frequency at which the source sees a real impedance, and it has to be computed. That is what the simulator does: it computes at 600 frequencies on a log scale between and , finds the sign changes, refines each one by bisection (discarding poles, where ) and lists them in the «Resonance» card; the graph marks them in red. In example 3 the resonance is at 85.81 Hz, while the formula with L1 and C1 would give 64.97 Hz.
| Circuit | Condition | At resonance | |
|---|---|---|---|
| R + L + C in series | minimum; | ||
| R ∥ L ∥ C | maximum; minimum current | ||
| (R + L) ∥ C, real coil | ; none if | ||
| Any other | numerical (simulator) | Z real; there may be several |
Using the simulator
It is in Engineering → AC circuits. The data go in the left panel and everything is recomputed with each keystroke.
The data panel
- Source: «Voltage (rms)» in V, «Phase» in degrees and «Frequency» in Hz.
- Elements: one row per element with «Name», «Type» (R (Ω), L (mH), C (µF) or Z (Ω)) and «Value». A Z has two boxes: the real part and the imaginary part (+ inductive, − capacitive). The «+ R», «+ L», «+ C» and «+ Z» buttons add one (R2, L2…) and put it in series at the end of the connection; × removes it, also from the connection. When an element is renamed, the connection follows.
- Connection: the expression with «+», «||» and parentheses. If it has an error, the field turns red and a message says what is wrong (««+» or «||» is missing between…», «Extra «)»…»).
- Power factor correction: «Target power factor» (0.95 to start with; empty, no capacitor is computed).
- Examples: «Load an example» with six ready circuits (series and parallel RLC, motor, series-parallel, resonance and two loads given by their impedance).
The results
- Cards: Equivalent impedance (magnitude, rectangular form and angle), Current (rms, with its angle), Real power P, Reactive power Q («absorbed (inductive)» or «supplied (capacitive)»), Apparent power |S| (with S = P + jQ), Power factor («inductive (I lags)», «capacitive (I leads)» or «resistive»), Capacitor for pf = 0.95 (with and the new current) and Resonance. Below, in gray, the notes: elements that are not in the connection, «The load already has pf = … ≥ 0.95», «The load is capacitive…».
- Phasors, power and waveforms: the phasor diagram (V in black and I in red from the origin, on different scales; in series, the voltages of each part head to tail; in parallel, the branch currents), the power triangle (P, Q, |S| and, dashed green, the corrected one), and over two periods (the current scaled by the factor the axis states) and from to on log axes, with the source frequency in gray and the resonances in red.
- Each element: a table with Z, V and I (in polar form), P and Q of each one, and the Total row, which must match the source.
- Step by step: ω, each element's impedance, «Combine from the inside out» (each parenthesis), Z in polar form and I, S = V·I*, the correction and the resonance. Its Detailed solution (PDF) button opens a document to study from: statement with the circuit drawn, why phasors work, each block with its voltage and current dividers, power, correction, resonance, Kirchhoff checks and summary.
Rules for typing the data
- Everything in rms values. The voltage must be positive: to reverse the polarity add 180° to the phase (empty, it is 0°). The frequency must be above 0: with 0 Hz the simulator explains that that is direct current.
- R, L and C positive, in Ω, mH and µF (between and ). A 0 Ω resistance is a wire: type it as Z = 0 + j0. A 0 µF capacitor is an open circuit: remove it. The real part of a Z cannot be negative.
- Names of letters and digits starting with a letter, not repeated, and each one only once in the connection; those in the table that are not in the connection are not used (a note says so).
- A Z element is the same at any frequency (it is the impedance at the source's): in and in the resonance search it is taken as fixed, so those curves do not describe a real motor away from its frequency.
Common mistakes
- Adding rms values around a loop or at a node: phasors are what add.
- Using instead of , or mH and µF without converting to H and F.
- Forgetting the conjugate in : the sign of Q comes out wrong.
- Taking the current's angle as when V is not at 0°: (in example 3, I is at −6.736° but ).
- Adding the apparent powers of two loads (50 + 20 ≠ 67.08 kVA): P and Q are what add.
- Putting the correction capacitor in series, or using the peak voltage in .
- Applying to a circuit that is not purely series or parallel.
Worked examples
Example 1A motor as an R + L load and its power factor
Solution
- rad/s and Ω: Ω.
- In polar form: Ω and .
- With the voltage as the reference, A: it lags by 52.62°, the load is inductive.
- V (at −52.62°, with I) and V at . They add up to 322.4 V, not 230: as perpendicular phasors, V ✓.
- W, var, VA and pf lagging.
Solve it in Simuveliq
- In Engineering → AC circuits, Examples panel, «Load an example» → Motor (R + L) at 230 V, 50 Hz: correct the power factor to 0.95.
- The cards give Equivalent impedance 9.884 Ω (6 + j7.854 Ω · ∠ 52.62°), Current 23.27 A ∠ −52.62°, Real power P 3249 W, Reactive power Q 4253 var, Apparent power |S| 5352 VA and Power factor 0.6071 «inductive (I lags)».
- The Each element table has R1 with 139.6 V ∠ −52.62° and L1 with 182.8 V ∠ 37.38°, and the phasor diagram puts them head to tail up to V. The Capacitor for pf = 0.95 card (191.7 µF) is the correction, worked out in example 4.
Example 2Series RLC and its phasor diagram
Solution
- rad/s: Ω and Ω.
- Ω Ω: the capacitor dominates.
- A: the current leads.
- With the same current: V at 37.51°, V at 127.5° and V at −52.49°. The capacitor has more voltage than the source.
- Diagram (figure in the Kirchhoff section): and are opposite and leave V, perpendicular to : V ✓.
- W, var (supplied by the capacitor), VA and pf leading.
Solve it in Simuveliq
- «Load an example» → Series RLC: 10 Ω, 50 mH, 100 µF at 120 V, 60 Hz (it is also the circuit the tool opens with).
- Cards: 12.61 Ω (10 − j7.676 Ω · ∠ −37.51°), 9.519 A ∠ 37.51°, P = 906.1 W, Q = −695.5 var «supplied (capacitive)» and pf 0.7932 «capacitive (I leads)»; the note warns that a capacitor would make the power factor worse.
- The first graph in Phasors, power and waveforms is this diagram with V at 0°; in the waveforms, i(t) peaks before v(t). The Resonance card gives 71.18 Hz: type it in «Frequency» and the current rises to 12 A with pf 1.
Example 3Mixed circuit with a parallel block
R1 + (L1 || (R2 + C1)). Find the source current, the current of each branch and the power factor.Solution
- Ω and Ω. Right branch: Ω Ω.
- Parallel, product over sum: Ω, with Ω: more than each branch (11.31 and 15.49 Ω).
- Ω Ω and A.
- Voltage of the parallel: V at 38.08°. Branches: A at −51.92° and A at 96.98°.
- Both branches carry more current than what enters the block (3.989 A): they are 149° apart and nearly cancel, but their phasor sum gives (current law). It is a parallel close to its resonance.
- W (79.57 W in and 240.1 W in ), var and pf lagging.
Solve it in Simuveliq
- «Load an example» → Series-parallel: R1 + (L1 || (R2 + C1)). Note the source «Phase»: 30°.
- In Step by step, «Combine from the inside out» does (R2 + C1) first, then the parallel with L1 and finally the series with R1, as here.
- Each element gives L1 with 7.503 A ∠ −51.92° and R2 and C1 with 5.479 A ∠ 96.98°; the Total row, P = 319.7 W and Q = 238.6 var. The Resonance card says 85.81 Hz, not the 64.97 Hz of (see the resonance section).
Example 4Power factor correction of a plant
Solution
- Each load: the motor has kVA and kvar; the heaters, 20 kW and 0 kvar.
- For the simulator each load is an impedance: from comes . Motor: Ω; heaters: Ω, in parallel:
Z1 || R1. - Plant: P and Q add, the |S| do not: kW, kvar, kVA (not 70) and pf lagging; A.
- Target 0.95: and , so var (10280 to four figures).
- µF, in parallel with the plant.
- Afterwards: VA and A, 5.85 % less; the line's losses drop by %.
Solve it in Simuveliq
- Open in the simulator loads the plant: in Elements, Z1 of type Z (Ω) with 3.6864 and 2.7648, and R1 = 11.52 Ω; in Connection,
Z1 || R1; «Target power factor», 0.95. - Cards: P = 60000 W, Q = 30000 var, |S| = 67080 VA, pf 0.8944 and Capacitor for pf = 0.95 118.3 µF with «QC = 10280 var · I = 131.6 A». The power triangle draws the corrected one dashed green, and the last item of Step by step repeats steps 4 and 5.
- Check it: press «+ C», type 118.3 as its value and change the connection to
Z1 || R1 || C1. The power factor becomes 0.95, Q 19720 var and the current 131.6 A, with P = 60000 W (the capacitor consumes nothing). The capacitor card now asks for 0.04102 µF, the rounding of 118.34 to 118.3, and the Resonance one (175.2 Hz) comes from taking Z1 as fixed at every frequency.
Example 5Series resonance: quality factor and bandwidth
Solution
- Hz. There Ω and they cancel: Ω.
- A, in phase with V (pf = 1), and W.
- V, 7.54 times the source voltage: that is the quality factor, .
- Bandwidth: Hz .
- Half power: Hz and , that is 56.15 Hz and 64.11 Hz. There Ω, A, W (half) and .
Solve it in Simuveliq
- «Load an example» → Series resonance: L = 0.1 H, C = 70.36 µF (f₀ = 60 Hz).
- Cards: 5 Ω, 2 A, P = 20 W, pf 1 and Resonance 60 Hz. In Each element, L1 and C1 have 75.4 V each, at 90.01° and −89.99° (the extra hundredth is because 70.36 µF is rounded). In the curve has its minimum at the red line.
- Type 56.154 in «Frequency»: 7.071 Ω, 1.414 A, P = 10 W and φ = −45° (capacitive); with 64.111 Hz, the same with +45° (inductive).
Example 6A real coil in parallel with a capacitor: where the resonance is
(R1 + L1) || C1. Is its resonance frequency? Find the true one, and the impedance and currents there.Solution
- The textbook formula gives Hz, where Ω. There Ω: it is not real. Ω, and pf = 0.9535: it is not the resonance.
- Resonance means the source sees a real impedance, : , and rad/s, Hz.
- There : Ω and A, in phase.
- Branches: coil A; capacitor A. Each carries about 3 times the source current: they pass the energy to each other ( var).
- The formula fails because of the coil's resistance, and the more so the larger it is: with Ω there is no resonance. And the maximum of , 104.9 Ω, falls at a third frequency, 502.1 Hz (figure in the resonance section).
Solve it in Simuveliq
- Open in the simulator loads it with the source at 503.29 Hz, the formula's frequency: Equivalent impedance 104.9 Ω (100 − j31.62 Ω · ∠ −17.55°), Power factor 0.9535 «capacitive (I leads)» and Resonance 477.5 Hz; in the red resonance line is to the left of the gray source line.
- Type 477.46 in «Frequency»: 100 Ω, 0.1 A and pf 1. In Each element, R1 and L1 carry 0.3162 A and C1, 0.3 A; Q = 3 var in L1 and −3 var in C1.
- Raise R1 to 40 Ω, more than : the Resonance card disappears, because Im Z no longer vanishes at any frequency.
Example 7Two out-of-phase sources: nodal analysis with phasors (Circuits editor)
Solution
- Impedances at rad/s: Ω and the lower branch Ω.
- A single unknown, (ground at the bottom). Current law at , as in DC but with phasors: , that is .
- Admittances: S, S and S; they add up to S. Right side: A.
- V V (divide by multiplying top and bottom by the conjugate of the denominator).
- Currents: through the inductor A (the one gives); through , A; through , A, which enters at its +: gives A. Check at : ✓.
- Power of each source, : VA (pf 0.5593 lagging) and VA (pf 0.5491 leading: delivers P but absorbs reactive power).
- Balance: they deliver W, used by (714.4 W) and (209.9 W); the net reactive power, var, is var of the inductor minus var of the capacitor.
Solve it in Simuveliq
- This circuit cannot be written as a series–parallel expression: it is drawn in Electric circuits, which with Analysis type → Alternating current solves any circuit with phasors. Open in the simulator loads it drawn, with Frequency f = 60 Hz and the phase of (30°) in its properties.
- Cards: V1 = 120 V∠0° with 6.04 A∠−56° (delivers P = 405.4 W, Q = 600.9 var, pf 0.5593 lag) and V2 = 100 V∠30° with 9.45 A∠86.7° (P = 518.9 W, Q = −789.8 var, pf 0.5491 lead). In Phasors of each element, every V and I of step 5 and the balance with ✓.
- The editor's step by step does the same as here: impedances, nodes, equations, the complex matrix, the solution and the powers. It also works the other way: in this tool, Open in the Circuits editor draws any series–parallel circuit so you can keep working on it.