Skip to main content
Logo image

Section 6.5 Modeling with Integrating Factors

The integrating factor method extends our ability to solve first-order linear differential equations beyond what separation of variables can handle. This technique is particularly useful when modeling systems where the rate of change depends linearly on the quantity itself plus an external forcing function.
In this section, we’ll model a classic electrical circuit problem that naturally leads to a first-order linear differential equation.

Subsection The Problem: RC Circuit Charging

Consider a simple electrical circuit consisting of a resistor (R) and a capacitor (C) connected to a voltage source \(V_s(t)\text{.}\) When the circuit is connected, current flows and the capacitor charges.
How does the voltage across the capacitor change over time?

Subsection Assumptions

  • The resistor has constant resistance \(R\) (ohms, \(\Omega\)).
  • The capacitor has constant capacitance \(C\) (farads, F).
  • The voltage source \(V_s(t)\) can vary with time.
  • The circuit operates at low frequencies where ideal component behavior holds.
  • There are no other circuit elements (e.g., inductors).

Subsection Building the Model

Let \(V_C(t)\) be the voltage across the capacitor at time \(t\text{.}\) By Kirchhoff’s voltage law, the sum of voltage drops around the circuit equals the source voltage:
\begin{equation*} V_s(t) = V_R + V_C \end{equation*}
The voltage across the resistor is \(V_R = IR\) where \(I\) is the current. For a capacitor, \(I = C\frac{dV_C}{dt}\text{.}\) Substituting:
\begin{equation*} V_s(t) = RC\frac{dV_C}{dt} + V_C \end{equation*}
Rearranging to standard form:
\begin{equation*} \frac{dV_C}{dt} + \frac{1}{RC}V_C = \frac{1}{RC}V_s(t) \end{equation*}
This is a first-order linear differential equation with \(p(t) = \frac{1}{RC}\) and \(q(t) = \frac{1}{RC}V_s(t)\text{.}\)
Parameters:
  • \(R\text{:}\) resistance (typically 1-1000 \(k\Omega\))
  • \(C\text{:}\) capacitance (typically 1-1000 \(\mu F\))
  • \(\tau = RC\text{:}\) time constant (seconds), characterizes how quickly the capacitor charges
  • \(V_s(t)\text{:}\) source voltage (volts)
Solution for Constant Voltage Source:
For \(V_s(t) = V_0\) (constant), using integrating factor \(\mu(t) = e^{t/(RC)}\text{:}\)
\begin{equation*} V_C(t) = V_0\left(1 - e^{-t/(RC)}\right) + V_C(0)e^{-t/(RC)} \end{equation*}
If \(V_C(0) = 0\) (capacitor initially uncharged):
\begin{equation*} V_C(t) = V_0\left(1 - e^{-t/\tau}\right) \end{equation*}

Subsection Lab Activity: RC Circuit Experiment

Objective: Build an RC circuit, measure the charging behavior, and estimate the time constant.
Materials:
  • Breadboard and wires
  • Resistors (e.g., 1 \(k\Omega\text{,}\) 10 \(k\Omega\))
  • Capacitors (e.g., 100 \(\mu F\text{,}\) 470 \(\mu F\))
  • DC power supply or battery (5-9V)
  • Multimeter or oscilloscope
  • Switch
Procedure:
  1. Build the circuit: Connect resistor and capacitor in series with the voltage source and switch.
  2. Set the voltage source to a known value (e.g., \(V_0 = 5V\)).
  3. Discharge the capacitor completely by shorting it briefly (carefully!).
  4. Close the switch and immediately start timing.
  5. Measure and record \(V_C\) every 5-10 seconds for 1-2 minutes (or until \(V_C\) approaches \(V_0\)).
  6. Repeat with different combinations of \(R\) and \(C\text{.}\)
Safety Note: Use low voltages (5-12V). Discharge capacitors before handling.
Data Analysis:
  1. Plot \(V_C\) versus time for each \(R\)-\(C\) combination.
  2. For each trial, find the time when \(V_C = 0.632 V_0\) (this equals \(\tau\)). Compare to \(\tau = RC\text{.}\)
  3. Transform the data: plot \(\ln(V_0 - V_C)\) versus \(t\text{.}\) This should be linear with slope \(-1/\tau\text{.}\)
  4. Use the slope to estimate \(\tau\) and compare with the theoretical value.
  5. How does changing \(R\) affect the charging time? How about changing \(C\text{?}\)

Subsection Analytical Questions

  1. Verify that the solution \(V_C(t) = V_0(1 - e^{-t/\tau})\) satisfies the differential equation and initial condition \(V_C(0) = 0\text{.}\)
  2. What percentage of the final voltage is reached after one time constant (\(t = \tau\))? After \(2\tau\text{?}\) After \(5\tau\text{?}\)
  3. If the voltage source suddenly switches off at time \(t_1\text{,}\) what differential equation governs the discharge? Solve it.
  4. For a sinusoidal voltage source \(V_s(t) = V_0\sin(\omega t)\text{,}\) the differential equation becomes nonhomogeneous. What would you expect the steady-state solution to look like?
  5. In what real-world applications would you want a large time constant? A small one?

Subsection Extensions: Applications

RC circuits appear in many applications:
  • Timing circuits: Used in electronics to create delays (e.g., camera flashes, LED blinkers).
  • Filters: Block or pass certain frequency components of signals.
  • Smoothing: Convert pulsed DC to steady DC (power supplies).
  • Neural modeling: The charging/discharging of neurons is often modeled with RC circuit equations.
Choose one application and research how the RC circuit model is used in practice.

Subsection Final Report

Prepare a detailed report (3-4 pages) including:
  1. Derivation of the RC circuit differential equation from Kirchhoff’s laws.
  2. Complete solution using the integrating factor method (show all steps).
  3. Circuit diagrams and photos of your experimental setup.
  4. Data tables and graphs for each \(R\)-\(C\) combination tested.
  5. Analysis comparing experimental time constants with theoretical predictions.
  6. Discussion of sources of error and model limitations.
  7. Answers to all analytical questions.
  8. A brief exploration of one real-world application of RC circuits with explanation of how the time constant affects performance.
The integrating factor method is essential for solving first-order linear differential equations with variable coefficients or forcing functions. The RC circuit model demonstrates how this mathematical technique applies to real electrical systems. Understanding this model is crucial in electronics, signal processing, and even biological systems where similar charge-discharge dynamics occur. The time constant \(\tau = RC\) provides immediate insight into system behavior without fully solving the equationβ€”a valuable engineering concept.
You have attempted of activities on this page.