To find the expression of current in an RL circuit (resistor-inductor circuit), we need to analyze how the current behaves when the circuit is either charging (after a switch is closed) or discharging (after a switch is opened) in response to the application or removal of a voltage source.
### Step-by-Step Derivation of Current in an RL Circuit (Charging)
Let’s assume an RL circuit consisting of:
- A resistor \( R \)
- An inductor \( L \)
- A DC voltage source \( V \)
- A switch that closes at \( t = 0 \).
When the switch is closed, current begins to flow through the resistor and the inductor. The key here is that an inductor opposes changes in current, causing the current to rise gradually instead of instantaneously.
#### 1. **Kirchhoff’s Voltage Law (KVL):**
When the switch is closed, we can apply KVL to the loop. According to KVL, the sum of the voltage drops across the resistor and the inductor equals the supply voltage \( V \):
\[
V = V_R + V_L
\]
Where:
- \( V_R \) is the voltage drop across the resistor, and according to Ohm’s law, \( V_R = i(t)R \).
- \( V_L \) is the voltage across the inductor, and the voltage across an inductor is given by \( V_L = L \frac{di(t)}{dt} \), where \( \frac{di(t)}{dt} \) is the rate of change of current.
Substituting these into the KVL equation:
\[
V = i(t)R + L \frac{di(t)}{dt}
\]
#### 2. **Rearranging the Differential Equation:**
We want to solve this equation for \( i(t) \), the current as a function of time.
\[
L \frac{di(t)}{dt} + i(t)R = V
\]
This is a first-order linear differential equation. To solve it, we use standard techniques for solving such equations.
#### 3. **Solving the Differential Equation:**
First, we rearrange the equation:
\[
\frac{di(t)}{dt} + \frac{R}{L}i(t) = \frac{V}{L}
\]
Now, let’s solve this using an integrating factor.
#### 4. **Using the Integrating Factor:**
The general form of a first-order linear differential equation is:
\[
\frac{dy}{dt} + P(t)y = Q(t)
\]
In this case, \( P(t) = \frac{R}{L} \) and \( Q(t) = \frac{V}{L} \).
The integrating factor is given by:
\[
\mu(t) = e^{\int P(t) dt} = e^{\int \frac{R}{L} dt} = e^{\frac{R}{L}t}
\]
We multiply both sides of the differential equation by this integrating factor:
\[
e^{\frac{R}{L}t} \frac{di(t)}{dt} + \frac{R}{L} e^{\frac{R}{L}t} i(t) = \frac{V}{L} e^{\frac{R}{L}t}
\]
The left-hand side is the derivative of \( e^{\frac{R}{L}t} i(t) \), so we can rewrite it as:
\[
\frac{d}{dt} \left( e^{\frac{R}{L}t} i(t) \right) = \frac{V}{L} e^{\frac{R}{L}t}
\]
#### 5. **Integrating Both Sides:**
Integrating both sides with respect to time:
\[
e^{\frac{R}{L}t} i(t) = \int \frac{V}{L} e^{\frac{R}{L}t} dt
\]
The integral of \( e^{\frac{R}{L}t} \) is \( \frac{L}{R} e^{\frac{R}{L}t} \), so we have:
\[
e^{\frac{R}{L}t} i(t) = \frac{V}{R} e^{\frac{R}{L}t} + C
\]
Where \( C \) is the constant of integration. To solve for \( i(t) \), we divide both sides by \( e^{\frac{R}{L}t} \):
\[
i(t) = \frac{V}{R} + Ce^{-\frac{R}{L}t}
\]
#### 6. **Applying Initial Conditions:**
At \( t = 0 \), the initial current in the circuit is typically zero (since the inductor resists any instantaneous change in current). So,
\[
i(0) = 0
\]
Substitute \( t = 0 \) into the equation:
\[
0 = \frac{V}{R} + C e^{0}
\]
\[
0 = \frac{V}{R} + C
\]
\[
C = -\frac{V}{R}
\]
Thus, the expression for the current becomes:
\[
i(t) = \frac{V}{R} \left( 1 - e^{-\frac{R}{L}t} \right)
\]
### Final Expression for Current in an RL Circuit:
The current in the RL circuit as a function of time, for the charging phase, is:
\[
i(t) = \frac{V}{R} \left( 1 - e^{-\frac{R}{L}t} \right)
\]
This shows that the current starts at zero when \( t = 0 \) and asymptotically approaches \( \frac{V}{R} \) as \( t \to \infty \). The time constant \( \tau = \frac{L}{R} \) characterizes how fast the current rises. After a time of approximately \( 5\tau \), the current reaches over 99% of its final value.
### Current in an RL Circuit (Discharging):
If the voltage source is removed (i.e., the switch is opened), the inductor will try to maintain the current, but the current will decay over time.
For the discharging case, the KVL equation becomes:
\[
0 = i(t)R + L \frac{di(t)}{dt}
\]
Following a similar process as before, the solution is:
\[
i(t) = I_0 e^{-\frac{R}{L}t}
\]
Where \( I_0 \) is the initial current at \( t = 0 \) (just before the switch is opened).
### Summary:
- **Charging:** \( i(t) = \frac{V}{R} \left( 1 - e^{-\frac{R}{L}t} \right) \)
- **Discharging:** \( i(t) = I_0 e^{-\frac{R}{L}t} \)
These expressions describe the behavior of the current in an RL circuit over time, depending on whether the circuit is charging or discharging.