The voltage across a capacitor changes with time depending on the circuit configuration and the conditions under which the capacitor is charging or discharging. To understand this process, we can break it down into two main scenarios: charging and discharging.
### Charging a Capacitor
When a capacitor is connected to a voltage source (like a battery), it begins to charge. Here’s how it works:
1. **Initial Condition**: When the capacitor is first connected to the power source, the voltage across it is zero (assuming it's uncharged). The voltage source has a higher potential than the capacitor.
2. **Current Flow**: A current flows from the voltage source into the capacitor. This current causes the capacitor to accumulate charge on its plates. The amount of charge \( Q \) on a capacitor is related to the voltage \( V \) across it and its capacitance \( C \) by the formula:
\[
Q = C \cdot V
\]
3. **Voltage Change Over Time**: As the capacitor charges, the voltage across it increases. The relationship between the current \( I \), the capacitance \( C \), and the rate of change of voltage is given by:
\[
I = C \frac{dV}{dt}
\]
This equation tells us that the current is proportional to the rate of change of voltage across the capacitor.
4. **Exponential Growth**: The voltage across the capacitor as it charges follows an exponential curve. It can be described mathematically as:
\[
V(t) = V_0 \left(1 - e^{-\frac{t}{RC}}\right)
\]
where:
- \( V_0 \) is the final steady-state voltage (the voltage of the power source),
- \( R \) is the resistance in the circuit,
- \( C \) is the capacitance,
- \( t \) is time,
- \( e \) is the base of the natural logarithm.
Here, \( RC \) is known as the time constant (\( \tau \)). The time constant determines how quickly the capacitor charges: after a time of \( \tau \), the voltage will reach about 63% of \( V_0 \).
### Discharging a Capacitor
When the capacitor is disconnected from the voltage source and connected to a resistive load, it begins to discharge. Here’s how that works:
1. **Initial Condition**: At the start of the discharge, the capacitor has a voltage \( V_0 \) across its plates.
2. **Current Flow**: The stored charge begins to flow out through the resistor. The current \( I \) is given by:
\[
I = -\frac{Q}{R}
\]
where \( Q \) is the charge on the capacitor.
3. **Voltage Change Over Time**: The voltage across the capacitor decreases as it discharges. The relationship during discharging is given by:
\[
V(t) = V_0 e^{-\frac{t}{RC}}
\]
Here, \( V_0 \) is the initial voltage across the capacitor, and similar to charging, \( RC \) is the time constant.
After a time of \( \tau \), the voltage will drop to about 37% of its initial value.
### Summary
- **Charging**: The voltage increases exponentially towards the supply voltage, following the equation \( V(t) = V_0 \left(1 - e^{-\frac{t}{RC}}\right) \).
- **Discharging**: The voltage decreases exponentially towards zero, described by \( V(t) = V_0 e^{-\frac{t}{RC}} \).
The time constant \( RC \) plays a crucial role in determining how quickly these processes occur. A larger \( R \) or \( C \) results in a slower charging or discharging process, while a smaller \( R \) or \( C \) leads to a faster process. Understanding these dynamics is essential in circuits involving capacitors, such as timing circuits, filters, and signal processing applications.