---
title: How the lessons work
heading: Play, predict, learn the idea, check yourself
eyebrow: 0.1 · Lesson 4 · How the lessons work
xp: 40
---

::: hook
Every Ohmwork lesson follows the same path, and this one walks you through it while teaching something real: how a capacitor charges. The path is built around one habit that makes ideas stick: you guess what will happen before you're told. Here is the whole path, one step at a time.

::: play
- A 5 V battery charges a capacitor through a resistor. The trace is the capacitor's voltage after the switch closes.
- Move R and C. What happens to how fast the voltage rises?
- Watch the readout called tau. Compare it with the time the curve takes to reach about two thirds of the way up.
:::
:::

```sim plot
x: t = 0..5 s
y: v = 0..6 V
slider: R = 1k..100k = 10k Ω log
slider: C = 10µ..100µ = 100µ F log
plot: 5*(1 - exp(-t/(R*C))) | label: capacitor voltage
readout: tau = R*C s
marker: x = R*C | label: τ
```

::: predict
kind: sketch
x: t = 0..5 s
y: v = 0..6 V
curve: 5*(1 - exp(-t))

## With R = 10 kΩ and C = 100 µF, sketch the capacitor's voltage for the first 5 seconds after the switch closes.

::: reveal
It starts at 0 V and rises fast, then slower and slower as it nears 5 V. It never quite gets there, but after 5 seconds it's within 1%. The steepest part is right at the start, when the capacitor is empty and the whole 5 V pushes current through the resistor.
:::
:::

::: nameit
## The steps of every lesson

1. **Hook:** a question you can't answer yet.
2. **Play:** a simulation of the real physics. Move things and notice what changes.
3. **Predict:** commit to a guess (a choice, a number or a sketch) before the answer appears. Being wrong here is useful: it shows you exactly what to fix.
4. **Name it:** the idea and its math, tied to what you just watched. This is where the formulas live.
5. **Check:** questions with your own numbers. Get one wrong and it tells you which slip you probably made. "New numbers" deals another set.
6. **Explain why:** say the idea in your own words, then compare with a model answer.

Each lesson also has worked examples with folded solutions (try them first), and a **practice page** that deals problems on the topic for as long as you like, bringing back the kinds you miss. Every few lessons a **problem set** mixes them up, and longer courses end with exams. Problem sets and exams count your **first tries**, so they show what you really know.

### Paper, a pencil and your own notes

Keep a notebook beside you. Most questions want a number, and you'll get there faster, with fewer slips, by working it out on paper first: sketch the circuit or the graph, write down what you know, then do the algebra. Only the final answer goes in the box. A calculator helps too, and the one on your phone or computer is fine.

Take notes as you go, in your own words. Copying a formula teaches less than writing down what each symbol means, when you'd use it, and a small example beside it. Those pages become your own reference for the problem sets and exams. Code labs run Python right in the browser with nothing to install, though they're easier on a computer with a keyboard than on a phone.

### What this lesson taught

A capacitor charging through a resistor follows

$$
v(t) = V\left(1 - e^{-t/\tau}\right), \qquad \tau = RC
$$

The **time constant** $\tau$ sets the pace. After one $\tau$ the voltage has covered $1 - e^{-1} = 63\%$ of the way, after three about 95%, and after five more than 99%.

### For AI agents

Every lesson is also plain Markdown: add `.md` to its address. An index of all of them for AI agents is at `/llms.txt`, so you can point your own assistant at the course.
:::

::: example
## A 10 kΩ resistor charges a 100 µF capacitor from 5 V. What is the time constant, and what is the voltage after one second?

::: solution
1. **Time constant.**
   $$\begin{aligned} \tau &= RC \\ &= (10\,000\ \Omega)(100 \times 10^{-6}\ \text{F}) \\ &= 1.0\ \text{s} \end{aligned}$$
2. **Voltage after one second.** One second is one time constant, so put $t = \tau$ in the charging curve:
   $$\begin{aligned} v &= 5\left(1 - e^{-1}\right) \\ &= 5 \times 0.632 \\ &= 3.16\ \text{V} \end{aligned}$$

**Answer:** the time constant is 1.0 s, and the capacitor reaches 3.16 V after one second.
:::
:::

::: example
## How many time constants does the capacitor take to reach 99% of its final voltage?

::: solution
1. **Set the charging curve to 99%.**
   $$1 - e^{-t/\tau} = 0.99 \quad\text{so}\quad e^{-t/\tau} = 0.01$$
2. **Take the natural log of both sides.**
   $$\begin{aligned} t &= \tau \ln 100 \\ &= 4.6\,\tau \end{aligned}$$

**Answer:** about 4.6 time constants. That's why engineers call a capacitor "fully charged" after about five.
:::
:::

::: check
given: R = 1k..100k E12 Ω; C = 1µ..100µ E6 F
answer: R*C
unit: s
tolerance: 1%

## A {R} resistor charges a {C} capacitor. What is the time constant?

This is a **number** card. Type the value with its unit, like 2.2 s or 47 ms.

::: right
Right. $\tau = RC$ = {answer}.
:::

::: misses
- [R/C] That divides. The time constant is the product $RC$.
- [any] Not yet. Multiply the resistance in ohms by the capacitance in farads.
:::
:::

::: check
given: n = 1 | 2 | 3 | 4 | 5
answer: 100*(1 - exp(-n))
tolerance: 0.5

## What percentage of its final voltage has a charging capacitor reached after {n} time constants?

::: right
Right. $100(1 - e^{-\given{n}})$ = {answer}%.
:::

::: misses
- [100*exp(-n)] That's the part still to go. Subtract it from 100%.
- [any] Not yet. Work out $1 - e^{-n}$ and turn it into a percentage.
:::
:::

::: check
kind: expression
answer: V^2/R
vars: V = 1..10, R = 1..100

## From the last lessons: write the power a resistor $R$ takes with a voltage $V$ across it, using only $V$ and $R$.

This is a **formula** card. Type it the way you'd write it, like `V^2/R`. The preview below the box shows how it was read.

::: right
Right. $P = VI$ and $I = V/R$, so $P = V^2/R$.
:::

::: misses
- [V*R] That multiplies. Put $I = V/R$ into $P = VI$.
- [V/R] That's the current. Power is the current times the voltage.
- [any] Not yet. Start from $P = VI$ and replace $I$ with $V/R$.
:::
:::

::: check
kind: choice

## After one time constant, about how far has a charging capacitor got toward its final voltage?

- [ ] Halfway
- [x] About two thirds of the way
- [ ] All the way
- [ ] About a tenth of the way

::: right
Right. $1 - e^{-1} = 0.632$: about 63%.
:::

::: misses
- [1] Halfway comes a little sooner, at $t = 0.69\,\tau$.
- [3] It never quite gets all the way. After one time constant it's at 63%.
- [4] The start is the fastest part, so it covers much more than a tenth.
:::
:::

::: check
kind: order

## Put the steps of a lesson in order.

1. Hook
2. Play
3. Predict
4. Name it
5. Check
6. Explain why

::: right
Right. The question first, then the simulation and your guess, then the idea, then practice with your own numbers.
:::
:::

::: check
kind: match

## Match each part of a lesson with what it's for.

- Play :: notice how the system behaves before any math
- Predict :: commit to a guess so the answer means something
- Name it :: learn the idea and its formulas
- Practice page :: drill a topic with fresh numbers
- [extra] skip the parts you already know

::: right
Right. Each part has one job, and together they take you from a hunch to a skill.
:::
:::

::: check
kind: sketch
x: t = 0..5 s
y: v = 0..6 V
curve: 5*exp(-t)

## Now the capacitor starts at 5 V and discharges through the same resistor, with $\tau$ = 1 s. Sketch its voltage.

This is a **sketch** card: draw with your finger or mouse.

::: right
Right. It falls fastest at the start, then levels off toward zero: a mirror image of the charging curve.
:::
:::

::: explain
## Why do the lessons ask you to predict before they show you the answer?

::: model
A guess makes you decide what you think will happen. When the answer arrives, you notice whether you were right, and if you weren't, you see exactly which part of your picture was off. That surprise is what makes the correct idea stick. Reading the answer without guessing first skips that step, and it's easy to nod along and forget.
:::
:::

::: practice

::: check
given: R = 100..1M E12 Ω; C = 1n..1m E6 F
answer: R*C
unit: s
tolerance: 1%

## What is the time constant of {R} and {C}?

::: misses
- [any] $\tau = RC$.
:::
:::

::: check
given: V = 3 | 5 | 9 | 12 V; n = 1 | 2 | 3
answer: V*(1 - exp(-n))
unit: V
tolerance: 1%

## A capacitor charges toward {V}. What is its voltage after {n} time constants?

::: misses
- [V*exp(-n)] That's how far it still has to go.
- [any] $v = V(1 - e^{-n})$.
:::
:::

::: check
given: V = 3 | 5 | 9 | 12 V; n = 1 | 2 | 3
answer: V*exp(-n)
unit: V
tolerance: 1%

## A capacitor starts at {V} and discharges through a resistor. What is its voltage after {n} time constants?

::: misses
- [V*(1 - exp(-n))] That's how much it has lost. It has $Ve^{-n}$ left.
- [any] $v = Ve^{-n}$.
:::
:::
:::
