---
title: Right-triangle trigonometry
heading: Why 4 Ω and 3 Ω make 5 Ω
eyebrow: A2 · Lesson 16 · Right-triangle trigonometry
xp: 40
---

::: hook
A coil has 4 Ω of resistance, and at 60 Hz it also has 3 Ω of reactance, the opposition its magnetic field puts up to changing current. Measure the total and you get 5 Ω, not 7. Resistance and reactance combine at right angles, like two sides of a right triangle, and the total is the hypotenuse. You'll see why in A3 and C3. This lesson is the triangle arithmetic: the sides, the angles, and the ratios that connect them.

::: play
- The horizontal arrow is the resistance $R$, the vertical one the reactance $X$, and the long arrow their total, $Z$.
- Set $R$ = 4 and $X$ = 3. Read the length of $Z$ and its angle.
- Make $X$ much bigger than $R$. Which way does the angle head?
:::
:::

```sim plot
view: complex
range: 8
axes: R, X
slider: R = 0.5..10 step 0.5 = 4 Ω
slider: X = 0..10 step 0.5 = 3 Ω
arrow: R | label: R
arrow: j*X | from: R | color: ch2 | label: X
arrow: R + j*X | color: ch3 | label: Z
readout: length of Z = sqrt(R^2 + X^2) Ω | digits: 4
readout: angle = atan(X/R)*180/pi ° | digits: 4
```

::: predict
## The two short sides of a right triangle are 6 and 8. How long is the long side?

- [ ] 14
- [x] 10
- [ ] 7
- [ ] 48

::: reveal
10, since $\sqrt{6^2 + 8^2} = \sqrt{100}$. Sides at right angles don't add like numbers in a line. The long side is always shorter than the two short sides together and longer than either one alone.
:::
:::

::: nameit
## Sides and angles

In a right triangle, name the sides from the point of view of one of the two acute angles, $\theta$: the **hypotenuse** (opposite the right angle, the longest side), the **opposite** side and the **adjacent** side. Then

$$\sin\theta = \frac{\text{opposite}}{\text{hypotenuse}} \qquad \cos\theta = \frac{\text{adjacent}}{\text{hypotenuse}} \qquad \tan\theta = \frac{\text{opposite}}{\text{adjacent}}$$

and **Pythagoras' theorem** links the sides:

$$\text{hypotenuse}^2 = \text{opposite}^2 + \text{adjacent}^2$$

Dividing Pythagoras through by the hypotenuse squared gives the most used identity in trigonometry, $\sin^2\theta + \cos^2\theta = 1$.

**Solving a triangle** means finding everything from what you're given:
- **two sides:** the third from Pythagoras, an angle from an inverse function, $\theta = \tan^{-1}(\text{opp}/\text{adj})$;
- **a side and an angle:** the other sides from the ratios, like $\text{adj} = \text{hyp}\cos\theta$.

**Two special triangles** give exact values. Half an equilateral triangle has sides $1, \sqrt{3}, 2$ and angles 30° and 60°: $\sin 30° = \frac{1}{2}$, $\cos 30° = \frac{\sqrt{3}}{2}$, $\tan 60° = \sqrt{3}$. Half a square has sides $1, 1, \sqrt{2}$: $\sin 45° = \cos 45° = \frac{1}{\sqrt{2}} = 0.707$.

The reciprocals have names too, mostly seen in older texts and in calculus: $\sec\theta = 1/\cos\theta$, $\csc\theta = 1/\sin\theta$, $\cot\theta = 1/\tan\theta$.

## Triangles in AC circuits

**Impedance.** Resistance $R$ and reactance $X$ are drawn at right angles, so the size of the total impedance and its angle are

$$|Z| = \sqrt{R^2 + X^2} \qquad \varphi = \tan^{-1}\frac{X}{R}$$

**Power.** An AC load draws apparent power $S$ (volts times amps, in VA), of which only the real power $P$ (in W) does work. The rest, the reactive power $Q$ (in var), sloshes back and forth. They form the **power triangle**:

$$S^2 = P^2 + Q^2 \qquad \text{power factor} = \cos\varphi = \frac{P}{S}$$

Utilities care about the power factor, because the current that carries $Q$ heats their wires without delivering energy.
:::

::: example
## A right triangle has a hypotenuse of 10 and an angle of 25°. Find the other two sides.

::: solution
1. **Opposite side.**
   $$\begin{aligned} 10\sin 25° &= 10 \times 0.4226 \\ &= 4.23 \end{aligned}$$
2. **Adjacent side.**
   $$\begin{aligned} 10\cos 25° &= 10 \times 0.9063 \\ &= 9.06 \end{aligned}$$
3. **Check with Pythagoras.**
   $$\begin{aligned} 4.23^2 + 9.06^2 &= 17.9 + 82.1 \\ &= 100.0 \end{aligned}$$

**Answer:** the side opposite the 25° angle is 4.23, and the side next to it is 9.06.
:::
:::

::: example
## A motor on 120 V draws 10 A, and a power meter shows it uses 1000 W. Find its power factor, its angle and its reactive power.

::: solution
1. **Apparent power.**
   $$\begin{aligned} S &= 120 \times 10 \\ &= 1200\ \text{VA} \end{aligned}$$
2. **Power factor.**
   $$\begin{aligned} \frac{P}{S} &= \frac{1000}{1200} \\ &= 0.833 \end{aligned}$$
3. **Angle.**
   $$\begin{aligned} \varphi &= \cos^{-1} 0.833 \\ &= 33.6° \end{aligned}$$
4. **Reactive power.**
   $$\begin{aligned} Q &= \sqrt{S^2 - P^2} \\ &= \sqrt{1\,440\,000 - 1\,000\,000} \\ &= 663\ \text{var} \end{aligned}$$

**Answer:** the power factor is 0.833, the angle is 33.6°, and the reactive power is 663 var.
:::
:::

::: example
## An antenna mast 12 m tall is held by a guy wire anchored 5 m from its base. How long is the wire, and at what angle does it meet the ground?

::: solution
1. **Set up the triangle.** The mast, the ground and the wire make a right triangle with legs 12 m and 5 m, and the wire is the hypotenuse.
2. **Wire length.**
   $$\begin{aligned} L &= \sqrt{12^2 + 5^2} \\ &= \sqrt{169} \\ &= 13\ \text{m} \end{aligned}$$
3. **Angle at the ground.** It has the mast opposite and the 5 m of ground adjacent, so
   $$\tan\theta = \frac{12}{5}$$
   and $\theta = 67.4°$.

**Answer:** the wire is 13 m long and meets the ground at 67.4°.
:::
:::

::: check
given: R = 3 | 5 | 8 | 12; X = 4 | 6 | 9 | 15
answer: sqrt(R^2 + X^2)
unit: Ω

## A coil has {R} Ω of resistance and {X} Ω of reactance, at right angles. How big is its total impedance?

::: right
Right. $\sqrt{\given{R}^2 + \given{X}^2}$ = {answer}.
:::

::: misses
- [R + X] At right angles, the sides don't add like numbers. Use Pythagoras.
- [R^2 + X^2] Take the square root.
- [any] Not yet. The total is the hypotenuse: $\sqrt{R^2 + X^2}$.
:::
:::

::: check
given: R = 2 | 5 | 10; X = 4 | 7 | 20
answer: atan(X/R)*180/pi
unit: °
tolerance: 0.5%

## What is the angle of an impedance with $R$ = {R} Ω and $X$ = {X} Ω, measured from the resistance axis?

::: right
Right. $\tan^{-1}(\given{X}/\given{R})$ = {answer}.
:::

::: misses
- [atan(R/X)*180/pi] That's the other acute angle. From the $R$ axis, the opposite side is $X$.
- [atan(X/R)] That's in radians. Convert to degrees.
- [X/R*180/pi] Take the inverse tangent of the ratio first.
- [any] Not yet. Opposite over adjacent is $X/R$, and the angle is its inverse tangent.
:::
:::

::: check
given: S = 500 | 1200 | 3000; phi = 20 | 30 | 37 | 60
answer: S*cos(phi°)
unit: W

## A load draws {S} VA of apparent power at an angle of {phi}°. How much real power does it use?

::: right
Right. $P = S\cos\varphi$ = {answer}.
:::

::: misses
- [S*sin(phi°)] That's the reactive power, the side opposite the angle. Real power is adjacent.
- [S] Only part of the apparent power is real: multiply by the power factor, $\cos\varphi$.
- [any] Not yet. Real power is the adjacent side: $S\cos\varphi$.
:::
:::

::: check
given: t = 30 | 60 | 120 | 150 | 210 | 240 | 300 | 330
answer: tan(t°)
tolerance: 0.5%

## Using the special triangles, what is $\tan \given{t}°$?

::: right
Right. {answer}, from the triangle with angles 30°, 60° and 90°, or the half-square for 45°.
:::

::: misses
- [1/tan(t°)] That's adjacent over opposite. Tangent is opposite over adjacent.
- [sin(t°)] That's the sine. Tangent is sine over cosine.
- [any] Not yet. Draw the special triangle and take opposite over adjacent.
:::
:::

::: check
given: P = 600 | 800 | 1500; S = 1000 | 2000
answer: P/S
tolerance: 0.5%

## A load uses {P} W of real power out of {S} VA of apparent power. What is its power factor?

::: right
Right. $\cos\varphi = P/S$ = {answer}.
:::

::: misses
- [S/P] Power factor is real over apparent, a number no bigger than 1.
- [any] Not yet. Divide the real power by the apparent power.
:::
:::

::: check
kind: expression
answer: sqrt(1 - s^2)
vars: s = 0..0.99

## For an angle between 0° and 90°, write $\cos\theta$ in terms of $s = \sin\theta$.

::: right
Right. $\sin^2\theta + \cos^2\theta = 1$, and cosine is positive between 0° and 90°.
:::

::: misses
- [1 - s] Squares: $\cos^2\theta = 1 - \sin^2\theta$.
- [1 - s^2] That's $\cos^2\theta$. Take the square root.
- [any] Not yet. Start from $\sin^2\theta + \cos^2\theta = 1$.
:::
:::

::: check
kind: parts
given: L = 1.6 | 2; t = 25 | 35; e = 20 | 30

## A solar panel {L} m long is tilted up at {t}° from the ground, with its lower edge on the ground.

::: part
answer: L*sin(t°)
unit: m
tolerance: 0.5%

### How high is its top edge?

::: misses
- [L*cos(t°)] That's the horizontal depth. The height is opposite the angle.
- [any] Height is $L\sin\theta$.
:::
:::

::: part
answer: L*cos(t°)
unit: m
tolerance: 0.5%

### How far back from the lower edge is the top edge, measured along the ground?

::: misses
- [L*sin(t°)] That's the height.
- [any] The adjacent side, $L\cos\theta$.
:::
:::

::: part
answer: L*sin(t°)/tan(e°)
unit: m
tolerance: 0.5%

### With the sun {e}° above the horizon, how far beyond the top edge does its shadow reach along the ground?

::: misses
- [L*sin(t°)*tan(e°)] Upside down: a low sun casts a long shadow.
- [any] The shadow is the side adjacent to the sun's angle, with the panel's height opposite.
:::
:::
:::

::: check
kind: derivation
vars: R = 1..100, X = 1..100, V = 50..250

## A load has resistance $R$ and reactance $X$ at right angles, on a voltage $V$. Derive its power factor and its real power.

::: step
answer: sqrt(R^2 + X^2)

### What is the size of its impedance, $|Z|$?
:::

::: step
answer: R/sqrt(R^2 + X^2)

### The power factor is $\cos\varphi$, with $\varphi$ the impedance angle. Write it.

::: misses
- [X/sqrt(R^2 + X^2)] That's $\sin\varphi$.
:::
:::

::: step
answer: V^2*R/(R^2 + X^2)

### Real power is $VI\cos\varphi$ with $I = V/|Z|$. Simplify it.
:::

::: right
Right. $P = V^2R/(R^2 + X^2)$, which is $I^2R$: only the resistance takes real power.
:::
:::

::: explain
## Why does a coil with 4 Ω of resistance and 3 Ω of reactance have an impedance of 5 Ω and not 7 Ω?

::: model
Resistance and reactance act at right angles to each other: drawn as arrows, one is horizontal and the other vertical. Their total is the arrow from the start of one to the end of the other, the hypotenuse of a right triangle with sides 4 and 3. By Pythagoras that's $\sqrt{16 + 9} = 5$ Ω. They would only add to 7 if they pointed the same way.
:::
:::

::: practice

::: check
given: a = 5 | 7 | 9 | 20; b = 12 | 24 | 40
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

## A right triangle's short sides are {a} and {b}. How long is the hypotenuse?

::: misses
- [a + b] Use Pythagoras.
- [any] $\sqrt{a^2 + b^2}$.
:::
:::

::: check
given: h = 5 | 10 | 25; t = 15 | 35 | 50 | 70
answer: h*sin(t°)
tolerance: 0.5%

## A right triangle has a hypotenuse of {h} and an angle of {t}°. How long is the side opposite that angle?

::: misses
- [h*cos(t°)] That's the adjacent side.
- [h*tan(t°)] Opposite is hypotenuse times sine.
- [any] Opposite = hypotenuse × $\sin\theta$.
:::
:::

::: check
given: o = 2 | 3 | 7; a = 5 | 8 | 11
answer: atan(o/a)*180/pi
unit: °
tolerance: 0.5%

## The side opposite an angle is {o} and the adjacent side is {a}. What is the angle?

::: misses
- [atan(a/o)*180/pi] That's the other angle.
- [any] $\tan^{-1}(\text{opp}/\text{adj})$.
:::
:::

::: check
given: S = 1000 | 2500; f = 0.6 | 0.8 | 0.9; let P = f*S
answer: sqrt(S^2 - P^2)
unit: var

## A load draws {S} VA, of which {P} W is real. How much reactive power is there?

::: misses
- [S - P] The triangle has a right angle: $Q^2 = S^2 - P^2$.
- [sqrt(S^2 + P^2)] $S$ is the hypotenuse, so subtract the squares.
- [any] Pythagoras with $S$ as the hypotenuse.
:::
:::

::: check
given: Z = 10 | 50 | 220; phi = 25 | 40 | 60
answer: Z*sin(phi°)
unit: Ω

## An impedance of {Z} Ω sits at {phi}°. How much of it is reactance?

::: misses
- [Z*cos(phi°)] That's the resistance, the adjacent side.
- [any] $X = |Z|\sin\varphi$.
:::
:::
:::
