To derive the current in an RL (resistor-inductor) circuit, you start with Kirchhoff's voltage law. In a simple series RL circuit with a voltage source \( V \), a resistor \( R \), and an inductor \( L \), the equation can be set up as follows:
1. **Apply Kirchhoff’s Voltage Law**:
\[
V = V_R + V_L
\]
where \( V_R = iR \) (voltage across the resistor) and \( V_L = L \frac{di}{dt} \) (voltage across the inductor).
Thus, the equation becomes:
\[
V = iR + L \frac{di}{dt}
\]
2. **Rearrange the equation**:
\[
L \frac{di}{dt} + iR = V
\]
3. **Separate variables**:
Rearranging gives:
\[
L \frac{di}{dt} = V - iR
\]
or
\[
\frac{di}{V - iR} = \frac{dt}{L}
\]
4. **Integrate both sides**:
Integrating the left side with respect to \( i \) and the right side with respect to \( t \):
\[
\int \frac{di}{V - iR} = \int \frac{dt}{L}
\]
The left integral yields:
\[
-\frac{1}{R} \ln |V - iR| = \frac{t}{L} + C
\]
where \( C \) is the constant of integration.
5. **Solve for \( i \)**:
Rearranging gives:
\[
|V - iR| = e^{-Rt/L}(e^{-RC}L)
\]
Assuming the initial condition where \( i(0) = 0 \) (the current starts from zero), you can solve for \( C \) and get the specific form of the current.
6. **Final equation**:
The solution for the current \( i(t) \) in an RL circuit is:
\[
i(t) = \frac{V}{R} \left( 1 - e^{-\frac{R}{L}t} \right)
\]
This equation describes how the current builds up over time in an RL circuit, approaching its steady-state value \( \frac{V}{R} \) as \( t \) increases. The time constant \( \tau = \frac{L}{R} \) characterizes the rate of this growth.