JustToThePoint English Website Version
JustToThePoint en español

Basic linear ODE. Electrical Circuits (RC Circuit).

You have enemies? Good. That means you’ve stood up for something, sometime in your life, Winston Churchill

Recall

Definition. A differential equation is an equation that involves one or more dependent variables, their derivatives with respect to one or more independent variables, and the independent variables themselves, e.g., $\frac{dy}{dx} = 3x +5y, y' + y = 4xcos(2x), \frac{dy}{dx} = x^2y+y, etc.$

It involves (e.g., $\frac{dy}{dx} = 3x +5y$):

Basic linear ODE

Basic linear ODE

In mathematics, a linear ordinary differential equation (ODE) is an equation involving an unknown function and its derivatives, characterized by the property that both the function and its derivatives appear linearly. This means that the unknown function and its derivatives are raised only to the first power. They are never multiplied together, nor are they composed within nonlinear functions (such as $\sin(y)$ or $e^y$). The general form for a first-order linear ODE is: a(x)y’ + b(x)y = c(x).

This property of linearity is fundamental. While most physical systems are inherently nonlinear, many can be accurately approximated by linear models over a specific range. This linearity allows mathematicians and engineers to utilize a vast and powerful toolkit of analytical solution methods that are unavailable for nonlinear systems. Consequently, linear ODEs are the bedrock of modeling in numerous fields, including:

In this article, we will explore different forms of linear ODEs, their applications, and their solutions, with a focus on understanding their behavior in real-world contexts.

Mathematical Definition of Linearity

An ODE of order n is linear if it can be expressed in the form: $a_n(t)\frac{d^ny}{dt^n} +a_{n-1}(t)\frac{d^{n-1}y}{dt^{n-1}} + ··· + a_1(t)\frac{dy}{dt} + a_0(t)y = q(t)$ where

The function y and its derivatives appear to the first power and are not multiplied together.

In this second article, we will continue exploring different forms of linear ODEs, their applications, and their solutions, with a focus on understanding their behavior in real-world contexts.

Basic Linear ODE

Electrical Circuit (RC Circuit)

An RC circuit is a fundamental electrical circuit combining a resistor (R) and a capacitor (C) connected in series or parallel with a voltage source. Understanding the behavior of an RC circuit is crucial in fields like electrical engineering and physics because it illustrates how circuits respond over time to changes in voltage. This response is characterized by the charging and discharging of the capacitor, which is governed by a first-order linear ordinary differential equation (ODE).

Components of the RC Circuit

Governing Differential Equation

In an RC circuit, the relationship between the charge q(t) on the capacitor, the current i(t), and the applied voltage ε(t) is governed by the following first-order linear ordinary differential equation (ODE): $R\frac{dq}{dt}+\frac{q(t)}{C}=ε(t)$ where:

Derivation of the Differential Equation

This equation is derived by applying cornerstone circuit laws:

  1. Ohm’s Law: The relationship between voltage (V), current (i), and resistance (R) is defined by Ohm’s Law. The voltage across the resistor is directly proportional to the current: $V_R = i(t)R =[\text{Since current is the rate of change of charge, } i(t) = \frac{dq}{dt}]$, we can write $V_R = R \cdot \frac{dq}{dt}$
  2. Capacitor Voltage: The voltage across the capacitor is proportional to the stored charge: $V_C = \frac{q(t)}{C}$.
  3. Kirchhoff’s Voltage Law (KVL): The sum of the voltage drops around any closed loop must equal the supplied voltage. So, the voltage drop across the resistor ($V_R$) plus the voltage drop across the capacitor ($V_C$) equals the source voltage: $V_R + V_C = ε(t)$

$V_R + V_C = ε(t)$ ↭[Substitute VR (Ohm’s Law) and VC (Voltage Across Capacitor):] $\boxed{R·\frac{dq}{dt} + \frac{q(t)}{C} = ε(t)}$

This is a first-order linear ordinary differential equation, describing the dynamically evolving charge q(t). The time-varying current is implicitly captured by $\frac{dq}{dt}$, meaning the circuit’s overall response is characterized by the charging and discharging of the capacitor.

Electrical Circuit (RC Circuit)

Standard Form of the Differential Equation

To solve the differential equation, we rewrite it in standard linear form: $\frac{dq}{dt}+\frac{1}{RC}q = \frac{ε(t)}{R}$.

Using the notation q’ = $\frac{dq}{dt},\text{ we have } q' +\frac{1}{RC}q = \frac{ε(t)}{R}$

This equation is a first-order linear ordinary differential equation, which can be solved using an integrating factor.

Solving the Differential Equation

  1. Identify P(t) and Q(t). The standard form of a first-order linear ODE is: y′+P(t)y = Q(t). For our equation: y = q, P(t) = 1⁄RC (a constant), Q(t) = ε(t)⁄R.
  2. Calculate the Integrating Factor μ(t): $μ(t) = e^{\int P(t)dt} = e^{\int \frac{1}{RC}dt} = e^{\frac{t}{RC}}$
  3. Multiply Both Sides by μ(t): $e^{\frac{t}{RC}}q' +e^{\frac{t}{RC}}(\frac{1}{RC}q) = e^{\frac{t}{RC}}·\frac{ε(t)}{R}$. Simplify the left side using the product rule: $\frac{d}{dt}(e^{\frac{t}{RC}}·q) = e^{\frac{t}{RC}}·\frac{ε(t)}{R}$
  4. Integrate Both Sides: $e^{\frac{t}{RC}}·q = \int e^{\frac{t}{RC}}·\frac{ε(t)}{R}dt + C'$ where C’ is the constant of integration.
  5. Solve for $\boxed{q(t) = e^{\frac{-t}{RC}}(\int e^{\frac{t}{RC}}·\frac{ε(t)}{R}dt + C')}$

Analyzing the Solution

The general solution q(t) consists of two components:

  1. Homogeneous Solution (Natural Response): $q_h(t) = C'e^{\frac{-t}{RC}}$.
    This term represents the natural response or transient behavior, dictating how any initial charge decays exponentially to zero if the external source is removed.
  2. Particular Solution (Forced Response): $q_p(t) = e^{\frac{-t}{RC}}\int e^{\frac{t}{RC}}·\frac{ε(t)}{R}dt$. Depends on the specific form of the forcing voltage ε(t) and signifies the steady-state response, illustrating how the circuit responds over time to the voltage source.

Example: Constant Voltage Source ε(t) = E

For a constant voltage source, the specific solution, incorporating the natural and forced responses, is explicitly derived:

  1. Integrate the right side: $\int e^{\frac{t}{RC}}\cdot \frac{ε(t)}{R}dt = \int e^{\frac{t}{RC}}\cdot \frac{E}{R}dt = \frac{E}{R}\int e^{\frac{t}{RC}} dt = \frac{E}{R}·RC·e^{\frac{t}{RC}} = EC·e^{\frac{t}{RC}}$.
  2. Plug back into the solution: $q(t) = e^{\frac{-t}{RC}}(EC·e^{\frac{t}{RC}} + C') = EC + C'e^{\frac{-t}{RC}}$
  3. Determine the Constant C’ Using Initial Conditions q(0) = q0. q0 = EC + C’ ⇒ C’ = q0 - EC.
    The specific solution, incorporating the natural and forced responses, is: $\boxed{q(t) = EC + (q_0 -EC)e^{\frac{-t}{RC}}}$ where $q_0$ is the initial charge on the capacitor at time t = 0, determined by the initial condition.

The resulting dynamic current i(t) is simply the derivative: i(t) = $\frac{dq}{dt} = \frac{d}{dt}(EC) + \frac{d}{dt}((q_0 -EC)e^{\frac{-t}{RC}}) = 0 +(q_0 -EC)\frac{-1}{RC}e^{\frac{-t}{RC}} = -\frac{q_0 -EC}{RC}e^{\frac{-t}{RC}}$.

Interpretation

The larger the resistance or capacitance, the longer it takes for charge to build or decay. After one time constant (t = τ), the transient term decays to approximately $e^{\frac{-t}{RC}} = e^{-1} ≈0.3679$, meaning the process is roughly 1 - 0.37 = 63% complete.

In other words, the capacitor has completed 63% of the journey toward steady state.

The Hydraulic Metaphor Breakdown

The most powerful way to visualize this is as a filling tank broken down into chronological steps.

The cartoon infographic helps you map these specific behaviors to the components:

Step 1: The Initial Blast: The water main is opened. The storage tank is empty, so there is zero back pressure. Water blasts through the pinched pipe (the resistor) at maximum speed. This is the high-flow point on the Current graph.

Filling Chronology (The curves): As water flows in, the water level in the tank rises (Charge curves up). But as it rises, that water creates its own pressure, pushing back against the pump. Since the net pressure in the system is dropping, the current flow must slow down (Current curves down).

Step 2: Full Capacity: Eventually, the tank’s back pressure exactly matches the pump’s forward pressure. The net pressure is zero. The water flow stops entirely (Current is zero), and the tank is sitting at its maximum capacity (Charge is flat/constant).

Electrical Circuit (RC Circuit)

Bibliography

This content is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License and is based on MIT OpenCourseWare [18.01 Single Variable Calculus, Fall 2007].
  1. NPTEL-NOC IITM, Introduction to Galois Theory.
  2. Algebra, Second Edition, by Michael Artin.
  3. LibreTexts, Calculus and Calculus 3e (Apex). Abstract and Geometric Algebra, Abstract Algebra: Theory and Applications (Judson).
  4. Field and Galois Theory, by Patrick Morandi. Springer.
  5. Michael Penn, and MathMajor.
  6. Contemporary Abstract Algebra, Joseph, A. Gallian.
  7. YouTube’s Andrew Misseldine: Calculus. College Algebra and Abstract Algebra.
  8. MIT OpenCourseWare [18.03 Differential Equations, Spring 2006], YouTube by MIT OpenCourseWare.
  9. Calculus Early Transcendentals: Differential & Multi-Variable Calculus for Social Sciences.
Bitcoin donation

JustToThePoint Copyright © 2011 - 2026 Anawim. ALL RIGHTS RESERVED. Bilingual e-books, articles, and videos to help your child and your entire family succeed, develop a healthy lifestyle, and have a lot of fun. Social Issues, Join us.

This website uses cookies to improve your navigation experience.
By continuing, you are consenting to our use of cookies, in accordance with our Cookies Policy and Website Terms and Conditions of use.