OfficialBasicCharging and Discharging of a Capacitor (Time Constant of an RC Circuit)
The path of a battery (6 V) and switch S1, the path of a resistor R (1 kΩ) and capacitor C (100 µF), and the path of switch S2 are connected in parallel between two points on the left and right. Initially, only S2 is closed, and the capacitor is empty. This is a scene from the classroom teaching material "Charging and Discharging of a Capacitor" (/classroom).
[Highlights]
- Opening S2 and closing S1 charges the capacitor. In the waveform at the bottom, the capacitor voltage approaches 6 V, and the current approaches 0 from the initial 6 mA (V/R).
- The time it takes for the voltage to reach 63% of 6 V (approx. 3.8 V) is the time constant τ = RC (1 kΩ × 100 µF = 0.1 s). By placing two cursors using "Zoom" on the waveform, you can read the time difference Δt.
- Clicking on the resistor or capacitor to change R or C changes the time constant in proportion to RC.
- Opening S1 and closing S2 discharges the capacitor through R, and the voltage approaches 0 with the same time constant.
- Clicking ⏮ "From Beginning" resets the capacitor to the empty state.
Modify this scene in the simulator, then open the "Scene" tab and click "Publish Current Scene to Gallery" to share your remix!
·
In short
A capacitor stores electric charge like a tiny rechargeable battery. In this circuit, a battery charges a capacitor through a resistor, and a switch lets it discharge.
Charging up: When connected to a 6 V battery, current immediately jumps to 6 mA and then smoothly fades away as the capacitor fills up to 6 V.
The time constant: The speed of charging depends on the resistor and capacitor. Here, it takes 0.1 s (100 ms) to charge roughly two-thirds of the way (63.2%).
Discharging: Flipping the switches lets the stored charge flow back out through the resistor, dropping the voltage from 6 V back to zero at the exact same pace.
What you are looking at
A classic RC transient circuit demonstrating the exponential charging and discharging behavior of a capacitor through a series resistor:
A DC battery with electromotive force V0=6 V and knife switch S1 in the upper branch.
A resistor R=1 kΩ (1000Ω) and capacitor C=100μF in series in the lower branch.
A bypass knife switch S2 in the middle branch.
The oscilloscope displays real-time voltage and current waveforms across the capacitor:
Capacitor voltage VC(t): approaches 6 V during charging and drops to 0 V during discharging.
Loop current I(t): surges instantaneously to V0/R=6 mA and decays asymptotically toward zero.
Initially, switch S2 is closed and S1 is open, keeping the capacitor completely uncharged (Q=0). Opening S2 and closing S1 charges the capacitor. Opening S1 and closing S2 discharges it through resistor R.
Parametric dependencies
Parameter changed
Effect on time constant τ=RC
Effect on peak current Ipeak=V0/R
Effect on final stored energy UE
Increase resistance R
Increases proportionally
Decreases inversely
Unchanged
Increase capacitance C
Increases proportionally
Unchanged
Increases proportionally
Increase battery voltage V0
Unchanged
Increases proportionally
Increases quadratically (V02)
Theory of RC transient response
1. Capacitor charging transient
Applying Kirchhoff's voltage law around the charging loop:
V0−RI(t)−VC(t)=0
Since the current entering the capacitor is related to its accumulated charge by I(t)=dtdQ=CdtdVC:
RCdtdVC+VC(t)=V0
Solving this first-order ordinary differential equation with the initial condition VC(0)=0:
VC(t)=V0(1−e−t/τ)
I(t)=RV0e−t/τ
where τ is the characteristic time constant of the circuit:
τ=RC=1000Ω×100×10−6 F=0.1 s=100 ms
At time t=τ:
The capacitor voltage reaches 1−e−1≈63.2% of its final value: $$V_C(\tau) = 6\text{ V} \times 0.6321 \approx 3.79\text{ V}$$
The charging current decays to e−1≈36.8% of its peak value: $$I(\tau) = 6\text{ mA} \times 0.3679 \approx 2.21\text{ mA}$$
After five time constants (t=5τ=0.5 s), VC≈0.993V0, and the capacitor is practically fully charged with steady current I≈0.
2. Capacitor discharging transient
Opening S1 and closing S2 isolates the battery and forms a closed loop between the charged capacitor and resistor R. Kirchhoff's voltage law yields:
RI(t)+VC(t)=0⟹RCdtdVC+VC(t)=0
Given the initial fully-charged state VC(0)=V0:
VC(t)=V0e−t/τ
I(t)=−RV0e−t/τ
The discharge process exhibits the identical time constant τ=RC=0.1 s. The negative sign indicates that current flows in the opposite direction through the resistor as stored charge leaves the capacitor plates.
3. Energy balance and Joule heat
The total electrical energy supplied by the DC battery during complete charging is:
Remarkably, exactly 50% of the energy delivered by the battery is stored in the capacitor, while the other 50% is unconditionally dissipated as heat in the resistor, completely independent of the value of resistance R.
Simulation measurements
Time constant verification (R=1 kΩ, C=100μF, τ=0.100 s)
Comments