---
title: Quadratics and polynomials
heading: The most power a battery can give
eyebrow: A2 · Lesson 4 · Quadratics and polynomials
xp: 40
---

::: hook
Draw more and more current from a battery and the power it delivers to the load first rises, then falls. At small currents there's little current; at large currents the internal resistance eats the voltage. Somewhere in between is a peak. The power is a quadratic in the current, a parabola, and finding its top is the first optimization problem in electronics: maximum power transfer.

::: play
- The curve is the power the load receives, $P = EI - rI^2$, as the current $I$ changes.
- Raise $E$. How do the peak's height and position move?
- Raise the internal resistance $r$. Where is the peak now, and where does the curve come back down to zero?
:::
:::

```sim plot
view: graph
x: I = 0..30 A
y: P = 0..150 W
slider: E = 3..13 = 12 V
slider: r = 0.2..2 = 0.5 Ω
plot: E*I - r*I^2 | label: power to the load
point: E/(2*r), E^2/(4*r) | label: peak
readout: best current = E/(2*r) A | digits: 3
readout: most power = E^2/(4*r) W | digits: 3
readout: load at the peak = r Ω | digits: 3
```

::: predict
## A 12 V battery with 0.5 Ω of internal resistance would drive 24 A into a short circuit. At what current does the load get the most power?

- [ ] 24 A
- [x] 12 A
- [ ] 6 A
- [ ] 0.5 A

::: reveal
12 A, half the short-circuit current. The parabola $P = 12I - 0.5I^2$ is zero at $I = 0$ and at $I = 24$ A, and a parabola is symmetric, so its peak is exactly halfway. At 12 A the terminal voltage has fallen to half, 6 V, and the load is $6/12 = 0.5$ Ω, equal to the internal resistance. That's maximum power transfer.
:::
:::

::: nameit
## Quadratics

A **quadratic** is $f(x) = ax^2 + bx + c$ with $a \ne 0$. Its graph is a parabola: opening upward when $a > 0$, downward when $a < 0$.

**The vertex** (the top or bottom) sits on the axis of symmetry, at

$$x = -\frac{b}{2a}$$

**Completing the square** rewrites the quadratic around its vertex. For example,

$$x^2 - 6x + 5 = (x - 3)^2 - 9 + 5 = (x - 3)^2 - 4$$

so the vertex is at $(3, -4)$.

**The roots** solve $ax^2 + bx + c = 0$. Completing the square in general gives the quadratic formula:

$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

The **discriminant** $b^2 - 4ac$ decides what kind of roots there are:
- positive: two real roots, where the parabola crosses the axis twice;
- zero: one repeated root, where the vertex just touches the axis;
- negative: no real roots, because the parabola never reaches the axis. The roots are then a complex pair, which A3 explains.

Two shortcuts, from expanding $a(x - x_1)(x - x_2)$: the roots add to $-b/a$ and multiply to $c/a$. And when the roots are whole numbers, factoring is quickest: $x^2 - 5x + 6 = (x - 2)(x - 3)$.

## Polynomials

A **polynomial** of degree $n$ is a sum of powers of $x$ up to $x^n$. It has at most $n$ real roots, and every root $r$ gives a factor:

$$p(r) = 0 \quad \Longleftrightarrow \quad (x - r) \text{ is a factor of } p(x)$$

So once you know one root of a cubic, dividing out $(x - r)$ leaves a quadratic. For large $|x|$, the highest power dominates: $x^3$ heads to $+\infty$ on the right and $-\infty$ on the left.

**Where quadratics turn up in circuits.** Power in a resistor goes as $I^2$. And the circuit with a resistor, an inductor and a capacitor has the characteristic equation $s^2 + \frac{R}{L}s + \frac{1}{LC} = 0$. Its discriminant decides whether the circuit settles smoothly (two real roots) or rings (a complex pair). The boundary, discriminant zero, is called critical damping.
:::

::: example
## Solve $2x^2 - 3x - 2 = 0$.

::: solution
1. **Apply the quadratic formula.** With $a = 2$, $b = -3$, $c = -2$:
   $$\begin{aligned} x &= \frac{3 \pm \sqrt{9 + 16}}{4} \\ &= \frac{3 \pm 5}{4} \end{aligned}$$
   so $x = 2$ or $x = -\frac{1}{2}$.
2. **Check by factoring.**
   $$\begin{aligned} & (2x + 1)(x - 2) \\ &= 2x^2 - 4x + x - 2 \\ &= 2x^2 - 3x - 2 \end{aligned}$$
3. **Check with the shortcuts.** The roots add to $\frac{3}{2} = -b/a$ and multiply to $-1 = c/a$.

**Answer:** $x = 2$ or $x = -\frac{1}{2}$.
:::
:::

::: example
## For a series RLC circuit with $L$ = 10 mH and $C$ = 1 µF, what resistance gives critical damping?

::: solution
1. **Set the discriminant to zero.** Critical damping means the discriminant of $s^2 + \frac{R}{L}s + \frac{1}{LC} = 0$ is zero:
   $$\left(\frac{R}{L}\right)^2 - \frac{4}{LC} = 0$$
2. **Solve for R.**
   $$R = 2\sqrt{\frac{L}{C}}$$
3. **Put in the values.**
   $$\begin{aligned} R &= 2\sqrt{\frac{0.01}{10^{-6}}} \\ &= 2\sqrt{10^4} \\ &= 200\ \Omega \end{aligned}$$
4. **Either side of it.** Less resistance and the circuit rings; more and it creeps back without overshooting.

**Answer:** 200 Ω gives critical damping.
:::
:::

::: example
## A 9 V battery has 2 Ω of internal resistance. What load resistance gets 8 W into the load? What's the most it can deliver?

::: solution
1. **Set up the equation.** The load power is $P = \frac{E^2 R}{(R + r)^2}$, so
   $$\frac{81 R}{(R + 2)^2} = 8$$
2. **Multiply out.**
   $$\begin{aligned} 81R &= 8R^2 + 32R + 32 \\ 0 &= 8R^2 - 49R + 32 \end{aligned}$$
3. **Quadratic formula.**
   $$\begin{aligned} R &= \frac{49 \pm \sqrt{2401 - 1024}}{16} \\ &= \frac{49 \pm 37.11}{16} \end{aligned}$$
   so 5.38 Ω or 0.743 Ω.
4. **Both work.** One draws less current at a higher voltage, the other more current at a lower voltage.
5. **The most power.** The two answers sit either side of $R = r = 2$ Ω, which gives the most power:
   $$\begin{aligned} P &= \frac{81 \times 2}{16} \\ &= 10.1\ \text{W} \end{aligned}$$

**Answer:** a load of 5.38 Ω or 0.743 Ω gets 8 W. The most the battery can deliver is 10.1 W, into 2 Ω.
:::
:::

::: check
given: r1 = 2..4 int; r2 = 5..9 int; let s = r1 + r2; let p = r1*r2
answer: r2
tolerance: 0.01

## What is the larger root of $x^2 - \given{s}x + \given{p} = 0$?

::: right
Right. It factors as $(x - \given{r1})(x - \given{r2})$, so the roots are {r1} and {r2}.
:::

::: misses
- [r1] That's the smaller root.
- [s] That's the sum of the roots. Find two numbers that add to {s} and multiply to {p}.
- [any] Not yet. Factor it, or use the quadratic formula.
:::
:::

::: check
given: a = 1 | 2 | -1 | -3; b = 4 | -6 | 8 | 10
answer: -b/(2*a)
tolerance: 0.5%

## Where is the vertex of $y = \given{a}x^2 + (\given{b})x + 7$? Give its $x$ value.

::: right
Right. $x = -b/(2a) = -(\given{b})/(2 \times \given{a})$ = {answer}.
:::

::: misses
- [-b/a] Divide by $2a$, not $a$.
- [b/(2*a)] Mind the minus sign: $x = -b/(2a)$.
- [any] Not yet. The vertex is at $x = -b/(2a)$.
:::
:::

::: check
kind: choice

## What kind of roots does $s^2 + 3s + 5 = 0$ have?

- [ ] Two different real roots
- [ ] One repeated real root
- [x] No real roots: a complex pair

::: right
Right. The discriminant is $9 - 20 = -11$, negative, so the parabola never reaches zero.
:::

::: misses
- [any] Work out the discriminant, $b^2 - 4ac$, and check its sign.
:::
:::

::: check
given: E = 6 | 9 | 12; r = 0.5 | 1 | 2
answer: E^2/(4*r)
unit: W

## A source of {E} V with {r} Ω of internal resistance delivers $P = \given{E}I - \given{r}I^2$ to its load. What is the most power the load can get?

::: right
Right. The peak is at $I = E/(2r)$, and there $P = E^2/(4r)$ = {answer}.
:::

::: misses
- [E^2/r] That's $E$ times the short-circuit current. At that current the load voltage is zero. The peak is at half the current.
- [E^2/(2*r)] Put the vertex current, $E/(2r)$, back into the formula: $E \cdot \frac{E}{2r} - r\left(\frac{E}{2r}\right)^2$.
- [any] Not yet. Find the vertex at $I = -b/(2a)$, then evaluate $P$ there.
:::
:::

::: check
kind: expression
given: r1 = 1 | 2 | 3; r2 = -4 | 5 | 6
answer: (x - r1)*(x - r2)
vars: x = -6..6

## Write a quadratic with leading coefficient 1 whose roots are {r1} and {r2}.

::: right
Right. Each root $r$ gives a factor $x - r$.
:::

::: misses
- [(x + r1)*(x + r2)] Check the signs: a root at $r$ needs the factor $x - r$, which is zero when $x = r$.
- [any] Not yet. Multiply the factors $x - r$ for each root.
:::
:::

::: check
given: a = 2 | 3; b = 4..7 int; let s = 1 + a + b; let q = a + b + a*b; let r = a*b
answer: b
tolerance: 0.01

## $p(x) = x^3 - \given{s}x^2 + \given{q}x - \given{r}$ has a root at $x = 1$. What is its largest root?

::: right
Right. $p(x) = (x - 1)(x - \given{a})(x - \given{b})$, so the roots are 1, {a} and {b}.
:::

::: misses
- [a] That's a root, but not the largest.
- [any] Not yet. Divide out the factor $(x - 1)$, then solve the quadratic that's left.
:::
:::

::: check
given: L = 1 | 10 | 47; C = 0.1 | 1 | 10
answer: 2*sqrt(L*1e-3/(C*1e-6))
unit: Ω

## A series RLC circuit has $L$ = {L} mH and $C$ = {C} µF. What resistance makes it critically damped, with the discriminant of $s^2 + \frac{R}{L}s + \frac{1}{LC}$ zero?

::: right
Right. $R^2/L^2 = 4/(LC)$ gives $R = 2\sqrt{L/C}$ = {answer}.
:::

::: misses
- [sqrt(L*1e-3/(C*1e-6))] Close: the 4 in $b^2 - 4ac$ becomes a factor of 2 in $R$.
- [2*sqrt(L/C)] Put $L$ in henries and $C$ in farads.
- [2*sqrt(L*1e-3*C*1e-6)] Solve for $R$ carefully: it comes out as $\sqrt{L/C}$, not $\sqrt{LC}$.
- [any] Not yet. Set $(R/L)^2 - 4/(LC) = 0$ and solve for $R$.
:::
:::

::: check
kind: parts
given: E = 6 | 9 | 12; r = 0.5 | 1 | 2; I = 1 | 1.5

## A battery with EMF {E} V and internal resistance {r} Ω delivers current $I$ to a load. The load gets $P = EI - rI^2$.

::: part
answer: E*I - r*I^2
unit: W
tolerance: 0.5%

### How much power does the load get at {I} A?

::: misses
- [E*I] Subtract what the internal resistance burns, $rI^2$.
- [any] Put {I} A into $P = EI - rI^2$.
:::
:::

::: part
answer: E/(2*r)
unit: A
tolerance: 0.5%

### What current gives the load the most power?

::: misses
- [E/r] That's the short-circuit current, where the load gets nothing. The peak is halfway.
- [any] The vertex of the parabola is at $I = E/(2r)$.
:::
:::

::: part
answer: E*(1 + 1/sqrt(2))/(2*r)
unit: A
tolerance: 0.5%

### The load gets half that maximum power at two currents. What is the larger one?

::: misses
- [E*(1 - 1/sqrt(2))/(2*r)] That's the smaller one.
- [any] Solve $EI - rI^2 = E^2/(8r)$ with the quadratic formula.
:::
:::
:::

::: check
kind: derivation
vars: E = 1..24, r = 0.1..5

## A battery delivers $P(I) = EI - rI^2$ to its load. Derive the maximum.

::: step
answer: E/(2*r)

### At what current is $P$ largest? (The vertex of $aI^2 + bI + c$ is at $-b/2a$.)

::: misses
- [E/r] That's where $P$ falls back to zero, the short circuit.
:::
:::

::: step
answer: E^2/(4*r)

### What is that largest power?
:::

::: step
answer: r

### The load's resistance is $V/I$, with $V = E - rI$. What load resistance gives that maximum?
:::

::: right
Right. The most power goes to a load equal to the source's own resistance: $R = r$, getting $E^2/4r$.
:::
:::

::: explain
## Using the graph of a parabola, explain why $x^2 + 4 = 0$ has no real solutions, and what the discriminant has to do with it.

::: model
The graph of $x^2 + 4$ is a parabola opening upward with its lowest point at $(0, 4)$, so it never comes down to the horizontal axis, and no real $x$ makes it zero. The discriminant measures this: it's $b^2 - 4ac = 0 - 16 = -16$, and a negative discriminant means the vertex is on the wrong side of the axis for the parabola to cross it. The square root in the quadratic formula then has a negative number under it, which is where complex roots come from.
:::
:::

::: practice

::: check
given: r1 = 1..3 int; r2 = 6..10 int; let s = r1 + r2; let p = r1*r2
answer: r1
tolerance: 0.01

## What is the smaller root of $x^2 - \given{s}x + \given{p} = 0$?

::: misses
- [r2] That's the larger root.
- [any] Two numbers that add to {s} and multiply to {p}.
:::
:::

::: check
given: a = 2 | 3 | 5; b = -7 | 4 | 9; c = -4 | 3 | 8
answer: b^2 - 4*a*c
tolerance: 0.01

## What is the discriminant of $\given{a}x^2 + (\given{b})x + (\given{c})$?

::: misses
- [b^2 + 4*a*c] It's $b^2$ minus $4ac$.
- [b - 4*a*c] Square $b$ first.
- [any] $b^2 - 4ac$.
:::
:::

::: check
given: a = 2 | 4 | 5; b = -8 | 6 | 12; c = -5 | 3 | 9
answer: c/a
tolerance: 0.5%

## What do the two roots of $\given{a}x^2 + (\given{b})x + (\given{c}) = 0$ multiply to?

::: misses
- [-b/a] That's their sum.
- [c] Divide by the leading coefficient.
- [any] The product of the roots is $c/a$.
:::
:::

::: check
given: E = 3.7 | 5 | 24; r = 0.1 | 0.25 | 4
answer: E/(2*r)
unit: A

## A {E} V source with {r} Ω inside delivers the most power to its load at what current?

::: misses
- [E/r] That's the short-circuit current. The peak is halfway to it.
- [any] The vertex of $P = EI - rI^2$ is at $I = E/(2r)$.
:::
:::

::: check
given: a = 1 | -2 | 3; b = 6 | -8 | 12; c = 1 | 5
answer: c - b^2/(4*a)
tolerance: 0.5%

## What is the $y$ value at the vertex of $y = \given{a}x^2 + (\given{b})x + \given{c}$?

::: misses
- [c] That's the value at $x = 0$. The vertex is at $x = -b/(2a)$.
- [any] Put $x = -b/(2a)$ into the quadratic.
:::
:::

::: check
given: L = 2.2 | 22 | 100; C = 0.47 | 4.7 | 22
answer: 2*sqrt(L*1e-3/(C*1e-6))
unit: Ω

## What resistance critically damps a series RLC with {L} mH and {C} µF?

::: misses
- [sqrt(L*1e-3/(C*1e-6))] Include the factor of 2.
- [2*sqrt(L/C)] Use henries and farads.
- [any] $R = 2\sqrt{L/C}$.
:::
:::
:::
