---
title: Adding same-frequency sinusoids with phasors
heading: Add the arrows, and you've added the waves
eyebrow: A3 · Lesson 13 · Adding sinusoids with phasors
xp: 40
---

::: hook
In A2 you found that two sinusoids of the same frequency add up to a third, with a new amplitude and phase. Finding them took a formula with a cosine of the phase difference inside a square root, and it only handled two waves. In a circuit there may be five or six. There's a way to do it that's no harder for six than for two.

::: play
- The two arrows are the phasors of $v_1 = A_1\cos(\omega t + \varphi_1)$ and $v_2 = A_2\cos(\omega t + \varphi_2)$. The second is drawn tip to tail after the first; the sum arrow ends where it ends.
- Everything turns together, and each arrow's shadow on the real axis is its voltage. Watch the sum's shadow: is it always the sum of the other two shadows?
- Pause, then change the phases. When is the sum longest? When does it vanish?
:::
:::

```sim plot
view: complex
range: 6
slider: A1 = 0..3 step 0.1 = 3
slider: p1 = -180..180 step 5 = 0 °
slider: A2 = 0..3 step 0.1 = 2
slider: p2 = -180..180 step 5 = 90 °
spin: 0.2
arrow: A1∠p1 | label: V₁
arrow: A2∠p2 | from: A1∠p1 | color: ch2 | label: V₂
arrow: A1∠p1 + A2∠p2 | color: ch3 | label: V₁ + V₂
shadow: on
readout: |V₁ + V₂| = abs(A1∠p1 + A2∠p2)
readout: angle = arg(A1∠p1 + A2∠p2)*180/pi °
```

::: predict
## $v_1 = 3\cos\omega t$ and $v_2 = 4\cos(\omega t + 90°)$. What is the amplitude of $v_1 + v_2$?

- [ ] 7
- [ ] 1
- [x] 5
- [ ] 12

::: reveal
5. The phasors are $3\angle 0°$, pointing right, and $4\angle 90°$, pointing up. Tip to tail they make a 3-4-5 right triangle, so the sum is $5\angle 53.1°$: $v_1 + v_2 = 5\cos(\omega t + 53.1°)$. The shadows add at every instant because the arrows turn together, so adding the frozen arrows is enough.
:::
:::

::: nameit
## The phasor recipe

A sinusoid $A\cos(\omega t + \varphi)$ is the shadow of the turning arrow $Ae^{j\varphi}e^{j\omega t}$. When all the signals share the same $\omega$, every arrow turns at the same rate, and the factor $e^{j\omega t}$ is common to all of them. So you can drop it and work with the frozen arrows, the **phasors**:

$$A\cos(\omega t + \varphi) \quad\longleftrightarrow\quad \mathbf{V} = A\angle\varphi$$

Adding sinusoids then becomes adding complex numbers:

1. Write each sinusoid as a cosine. A sine is a cosine a quarter turn late: $A\sin(\omega t + \varphi) = A\cos(\omega t + \varphi - 90°)$.
2. Write each one as a phasor, $A\angle\varphi$, and convert to rectangular form.
3. Add the real parts and add the imaginary parts.
4. Convert the total back to polar form, $A\angle\varphi$, and read off the sinusoid $A\cos(\omega t + \varphi)$.

For the example above: $3\angle 0° + 4\angle 90° = 3 + j4 = 5\angle 53.1°$.

Two warnings:

- **Same frequency only.** Phasors at different frequencies turn at different rates, so the frozen picture changes over time and adding them means nothing. Waves of different frequencies have to be added in time, as in A2's beats.
- **Amplitude or RMS, consistently.** Phasors can be written with either, as long as every phasor in a calculation uses the same convention. This course uses amplitudes unless it says otherwise.

In a circuit, Kirchhoff's voltage law says the voltages around a loop add to zero at every instant. With phasors, that becomes: the phasors around a loop add to zero, tip to tail, closing a polygon.
:::

::: example
## Add $5\cos\omega t$ and $5\cos(\omega t + 90°)$.

::: solution
1. **Add the phasors.**
   $$\begin{aligned} 5\angle 0° + 5\angle 90° &= 5 + 5j \\ &= 7.07\angle 45° \end{aligned}$$
2. **Back to a function of time.**
   $$7.07\cos(\omega t + 45°)$$
   It's bigger than either, smaller than 10, and halfway between them in phase.

**Answer:** the sum is $7.07\cos(\omega t + 45°)$.
:::
:::

::: example
## Add $10\angle 0°$ and $10\angle 120°$.

::: solution
1. **Rectangular form of the second.**
   $$10\angle 120° = -5 + 8.660j$$
2. **Add.**
   $$\begin{aligned} &10 + (-5 + 8.660j) \\ &= 5 + 8.660j \\ &= 10\angle 60° \end{aligned}$$
3. **Why it's that long.** Two equal arrows 120° apart make an equilateral triangle, so the sum is as long as each, and points halfway between them.

**Answer:** the sum is $10\angle 60°$.
:::
:::

::: example
## A $10\angle 0°$ V source drives a resistor and an inductor in series. The resistor's voltage is $6\angle{-53.13°}$ V. What is the inductor's voltage?

::: solution
1. **Apply Kirchhoff's voltage law.** It holds for phasors: the source voltage is the sum of the two, so
   $$V_L = 10 - 6\angle{-53.13°}$$
2. **Rectangular form of the resistor's voltage.**
   $$6\angle{-53.13°} = 3.6 - j4.8$$
3. **Subtract.**
   $$\begin{aligned} V_L &= 10 - (3.6 - j4.8) \\ &= 6.4 + j4.8 \\ &= 8\angle 36.87°\ \text{V} \end{aligned}$$
4. **Check the magnitudes.** The magnitudes, 6 V and 8 V, add to more than 10 V, which is fine: the two voltages peak at different times, and their arrows sit at right angles.

**Answer:** the inductor's voltage is $8\angle 36.87°$ V.
:::
:::

::: check
kind: parts
given: A1 = 2 | 4 | 6; p1 = 0 | 30; A2 = 3 | 5; p2 = 75 | 150 | -100

## $v_1 = \given{A1}\cos(\omega t + \given{p1}°)$ and $v_2 = \given{A2}\cos(\omega t + (\given{p2}°))$.

::: part
answer: abs(A1∠p1 + A2∠p2)
tolerance: 1%

### What is the amplitude of $v_1 + v_2$?

::: misses
- [A1 + A2] Amplitudes only add like that when the waves are in phase. Add the phasors as arrows.
- [sqrt(A1^2 + A2^2)] That would be right if they were exactly 90° apart. Add the phasors in rectangular form.
- [any] Convert both phasors to rectangular form, add, and find the length of the result.
:::
:::

::: part
answer: arg(A1∠p1 + A2∠p2)*180/pi
unit: °
tolerance: 1%

### And its phase?

::: misses
- [(p1 + p2)/2] The phase isn't the average unless the amplitudes are equal. Find the angle of the summed phasor.
- [any] Use atan2 on the summed phasor's parts.
:::
:::

::: right
Right. The sum is a sinusoid at the same frequency, with the amplitude and phase of the summed phasor.
:::
:::

::: check
given: A = 2..9 int; p = 0 | 20 | 45 | 60 | -30
answer: p - 90
unit: °
tolerance: 0.5%

## Write $\given{A}\sin(\omega t + \given{p}°)$ as a phasor $A\angle\varphi$, using the cosine convention. What is $\varphi$?

::: right
Right. A sine is a cosine 90° late, so the phase drops by 90°: $\given{A}\angle(\given{p} - 90)°$.
:::

::: misses
- [p] The phasor convention uses cosines. A sine first has to be rewritten as a cosine.
- [p + 90] A sine is a cosine shifted later by a quarter turn, so subtract 90°.
- [any] Not yet. Use $\sin\theta = \cos(\theta - 90°)$.
:::
:::

::: check
kind: place
given: A1 = 2..3 int; A2 = 1..2 int; p2 = 60 | 90 | 120
points: S = -3 - 3j
answer: S = A1 + A2∠p2
draw: arrows
tolerance: 5%

## The phasors $\mathbf{V}_1 = \given{A1}\angle 0°$ and $\mathbf{V}_2 = \given{A2}\angle\given{p2}°$ are drawn. Drag S to $\mathbf{V}_1 + \mathbf{V}_2$.

```plot
view: complex
range: 5
arrow: A1 | label: V₁
arrow: A2∠p2 | color: ch2 | label: V₂
```

::: misses
- [S = A1 - A2∠p2] That's $\mathbf{V}_1 - \mathbf{V}_2$. Place $\mathbf{V}_2$ at the tip of $\mathbf{V}_1$ instead.
:::

::: right
Right. Tip to tail: the sum ends where $\mathbf{V}_2$ ends once it starts at the tip of $\mathbf{V}_1$.
:::
:::

::: check
kind: choice

## Why can't you add the phasors of a 50 Hz and a 60 Hz sinusoid?

- [ ] Phasors only work at 60 Hz
- [x] The arrows turn at different rates, so their sum keeps changing shape
- [ ] Their amplitudes would have to be equal
- [ ] You can, as long as both are cosines

::: right
Right. A phasor is a frozen snapshot of an arrow, and freezing only works if all the arrows turn together. At different frequencies, the angle between them keeps changing.
:::

::: misses
- [1] Phasors work at any frequency, as long as everything in the calculation shares it.
- [3] Amplitudes can be anything. The trouble is that the arrows turn at different rates.
- [4] Writing both as cosines is necessary, but not enough: they also need the same frequency.
:::
:::

::: check
kind: parts
given: A1 = 3 | 5; p1 = 0 | 20; A2 = 4 | 6; p2 = 90 | 135

## Two voltages of the same frequency are $\given{A1}\angle\given{p1}°$ V and $\given{A2}\angle\given{p2}°$ V.

::: part
answer: A1*cos(p1°) + A2*cos(p2°)
unit: V
tolerance: 0.5%

### What is the real part of their sum?

::: misses
- [A1 + A2] Only the parts along the real axis add here.
- [any] Add the real parts, $A\cos\varphi$.
:::
:::

::: part
answer: abs(A1*exp(j*p1*pi/180) + A2*exp(j*p2*pi/180))
unit: V
tolerance: 0.5%

### What is the amplitude of the sum?

::: misses
- [A1 + A2] The two peak at different times, so the amplitudes don't simply add.
- [any] The length of the sum of the arrows.
:::
:::

::: part
answer: abs(A1*exp(j*p1*pi/180) + A2*exp(j*p2*pi/180))*cos(60*pi/180 + arg(A1*exp(j*p1*pi/180) + A2*exp(j*p2*pi/180)))
unit: V
tolerance: 0.5%

### What is the summed voltage at the instant when $\omega t$ = 60°?

::: misses
- [any] The sum is $|S|\cos(\omega t + \angle S)$; put in $\omega t = 60°$. (Or add the two waves at that instant.)
:::
:::
:::

::: check
kind: derivation
vars: A = 1..5, B = 1..5, p = -3..3

## Derive the amplitude of $A\cos\omega t + B\cos(\omega t + p)$.

::: step
answer: A + B*cos(p)

### Write the real part of the phasor sum $A + Be^{jp}$.
:::

::: step
answer: B*sin(p)

### Write its imaginary part.
:::

::: step
answer: A^2 + B^2 + 2*A*B*cos(p)
form: simplified

### Square and add them, and simplify.
:::

::: right
Right. The amplitude is $\sqrt{A^2 + B^2 + 2AB\cos p}$: from $|A - B|$ when they oppose to $A + B$ when they line up.
:::
:::

::: explain
## Why is it enough to add the phasors, frozen at $t = 0$, to know how the two sinusoids add at every moment?

::: model
Each sinusoid is the shadow of an arrow turning at the same rate ω. Arrows that turn together keep the same angle between them, so their tip-to-tail sum is a single arrow of fixed length turning at that same rate. Its shadow is the sum of their shadows at every instant. The snapshot at $t = 0$ fixes that summed arrow's length and starting angle, which is everything the sum needs.
:::
:::

::: practice

::: check
given: A1 = 1..9 int; A2 = 1..9 int
answer: abs(A1 + A2*j)
tolerance: 1%

## $\given{A1}\cos\omega t + \given{A2}\cos(\omega t + 90°)$ has what amplitude?

::: misses
- [A1 + A2] They're 90° apart, so they don't add directly.
- [any] The phasors are {A1} and $j${A2}: find the length of their sum.
:::
:::

::: check
given: A1 = 1..9 int; A2 = 1..9 int
answer: arg(A1 + A2*j)*180/pi
unit: °
tolerance: 1%

## $\given{A1}\cos\omega t + \given{A2}\cos(\omega t + 90°)$ has what phase?

::: misses
- [90] That's the phase of the second wave alone.
- [any] Find the angle of the phasor {A1} + $j${A2}.
:::
:::

::: check
given: A = 1..9 int; p = -60..60 step 10
answer: p - 90
unit: °
tolerance: 0.001

## What is the phase of the phasor for $\given{A}\sin(\omega t + (\given{p}°))$, in the cosine convention?

::: misses
- [p + 90] A sine lags the cosine, so subtract 90°.
- [any] Use $\sin\theta = \cos(\theta - 90°)$.
:::
:::

::: check
kind: parts
given: A1 = 2..6 int; A2 = 2..6 int; p = 60 | 90 | 120 | 150

## Around a loop, $v_1 = \given{A1}\cos\omega t$, $v_2 = \given{A2}\cos(\omega t + \given{p}°)$ and $v_3$ add to zero. Find $v_3$.

::: part
answer: abs(A1 + A2∠p)
tolerance: 1%

### What is its amplitude?

::: misses
- [any] $\mathbf{V}_3 = -(\mathbf{V}_1 + \mathbf{V}_2)$, which has the same length as $\mathbf{V}_1 + \mathbf{V}_2$.
:::
:::

::: part
answer: arg(-(A1 + A2∠p))*180/pi
unit: °
tolerance: 1%

### And its phase, between −180° and 180°?

::: misses
- [arg(A1 + A2∠p)*180/pi] That's the phase of $v_1 + v_2$. $v_3$ points the opposite way, 180° around.
- [any] Find the angle of $-(\mathbf{V}_1 + \mathbf{V}_2)$.
:::
:::

::: right
Right. The three phasors close a triangle, as Kirchhoff's voltage law requires.
:::
:::
:::
