Foundations to Frontier
Tests
A. Mathematical Foundations › A9 Differential Equations and Dynamical Systems

First-Order ODEs: Separable and Linear Equations

A first-order ordinary differential equation says how fast a quantity changes given its current value: cooling, charging, growth, drag. This topic covers what a solution is, slope fields, existence and uniqueness, the two workhorse solution methods (separation of variables and the integrating factor for linear equations), and the language of time constants, equilibria and transient versus steady-state response. You will verify closed-form solutions numerically, then model a spacecraft battery node through sunlight and eclipse, find its periodic temperature swing analytically, and estimate its thermal time constant from noisy data.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Rules about change

A cup of hot cocoa cools fast at first, then slower and slower as it nears room temperature. Why? Because the rate of cooling depends on how much hotter it is than the room. A differential equation is exactly this kind of rule: “how fast something changes depends on where it is now”. Solving it means finding the whole story, the temperature at every moment, from the rule and the starting point.

Slope fields: the equation tells you which way to go
t →1000
y′ = −k(y − 20): starting at y(0.0) = 80.00, the solution reaches y(10) ≈ 22.987. Click the plot to start somewhere else.
At every point the ODE gives a slope; a solution is a curve tangent to the field everywhere. Cooling curves all flow to the ambient 20 °C (a stable equilibrium). Logistic solutions run away from 0 and settle at the carrying capacity. The forced equation forgets its start and locks onto a periodic response. Solutions never cross, because the initial value determines the solution uniquely when f is smooth.
Why engineers care

Thermal nodes in a spacecraft, the charge of a battery, a motor spinning up, a filter smoothing sensor noise: all are first-order systems. Their single number, the time constant, tells an engineer how fast the system responds, and it’s often the first thing measured in a test campaign.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A differential equation describes…
  2. 2. Hot cocoa cools fastest when it is…
  3. 3. To get a unique solution you also need…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Definitions

A first-order ODE is y′=f(t,y)y' = f(t, y). An initial value problem adds y(t0)=y0y(t_0) = y_0. A solution is a function whose graph is tangent to the slope field everywhere. An equilibrium is a constant solution, where f(t,y∗)=0f(t, y^*) = 0 for all tt.

Separable equations

If y′=g(t)h(y)y' = g(t)h(y), separate and integrate: ∫dyh(y)=∫g(t) dt\int\frac{dy}{h(y)} = \int g(t)\,dt.

  • Exponential decay: y′=−ky⇒y=y0e−kty' = -ky\Rightarrow y = y_0e^{-kt}, with time constant τ=1/k\tau = 1/k and half-life ln⁡2/k\ln2/k.
  • Newton cooling: T′=−k(T−Ta)⇒T=Ta+(T0−Ta)e−ktT' = -k(T - T_a)\Rightarrow T = T_a + (T_0 - T_a)e^{-kt}.
  • Logistic growth: y′=ry(1−y/K)⇒y=K1+(K/y0−1)e−rty' = ry(1 - y/K)\Rightarrow y = \frac K{1 + (K/y_0 - 1)e^{-rt}}.
📝 Quick check (Level 1)
0/3 answered
  1. 1. After one time constant, a decaying quantity has fallen to…
  2. 2. Half-life for k = 0.1 s⁻¹:
  3. 3. Logistic solutions approach…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Linear first-order equations

y′+p(t)y=q(t)y' + p(t)y = q(t). Multiply by the integrating factor μ=e∫p dt\mu = e^{\int p\,dt}. The left side becomes (μy)′(\mu y)', so

y(t)=1μ(t)[∫μ(s)q(s) ds+C]y(t) = \frac1{\mu(t)}\Big[\int\mu(s)q(s)\,ds + C\Big]

For constant aa and sinusoidal input, y′+ay=sin⁡ωty' + ay = \sin\omega t, the solution is a transient Ce−atCe^{-at} plus a steady-state sinusoid with amplitude 1/a2+ω21/\sqrt{a^2 + \omega^2} and phase lag arctan⁡(ω/a)\arctan(\omega/a). This is the frequency response of a first-order low-pass filter.

Existence and uniqueness (Picard–Lindelöf)

If ff is continuous and Lipschitz in yy near (t0,y0)(t_0, y_0), a unique solution exists on some interval. So solutions can’t cross. Without Lipschitz continuity uniqueness can fail: y′=∣y∣y' = \sqrt{\lvert y\rvert}, y(0)=0y(0) = 0 has infinitely many solutions. Solutions may also blow up in finite time: y′=y2y' = y^2 gives y=1/(1/y0−t)y = 1/(1/y_0 - t).

🐍 Exercise 1: closed forms vs numerics
Implement the closed-form solutions for Newton cooling, logistic growth and a sinusoidally forced linear equation. Check each against an RK4 integration, and confirm the steady-state amplitude 1/√(a² + ω²).
📝 Quick check (Level 2)
0/3 answered
  1. 1. The integrating factor for y′ + 3y = q is…
  2. 2. Steady-state amplitude of y′ + y = sin t:
  3. 3. y′ = y² with y(0) = 1 blows up at t =

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Deriving the integrating-factor solution

With μ′=pμ\mu' = p\mu: (μy)′=μy′+pμy=μq(\mu y)' = \mu y' + p\mu y = \mu q. Integrate both sides and divide by μ\mu. ∎

Logistic solution

Partial fractions give dyy(1−y/K)=(1y+1/K1−y/K)dy\frac{dy}{y(1 - y/K)} = \big(\frac1y + \frac{1/K}{1 - y/K}\big)dy. Integrating gives ln⁡yK−y=rt+c\ln\frac y{K - y} = rt + c. Solve for yy. ∎ The inflection point, where growth is fastest, is at y=K/2y = K/2.

Uniqueness sketch

Rewrite the IVP as y(t)=y0+∫t0tf(s,y(s))dsy(t) = y_0 + \int_{t_0}^tf(s, y(s))ds. With Lipschitz constant LL, the Picard map is a contraction on a short interval (length <1/L< 1/L), so Banach’s fixed-point theorem gives existence and uniqueness. ∎

Exercise 3.1: solve y′ = −2y + 4, y(0) = 3

The equilibrium is y∗=2y^* = 2, so y=2+(3−2)e−2t=2+e−2ty = 2 + (3 - 2)e^{-2t} = 2 + e^{-2t}.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Uniqueness of IVP solutions needs f to be…
  2. 2. The logistic curve grows fastest at y =
  3. 3. Solution of y′ = −2y + 4 with y(0) = 3:

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

A battery node through sunlight and eclipse

A spacecraft battery is modelled as a single thermal node: CT˙=P(t)−(T−Tsink)/RC\dot T = P(t) - (T - T_{\text{sink}})/R. It’s a linear first-order ODE with time constant τ=RC\tau = RC. In low Earth orbit the heat load switches on for 60 minutes of sunlight and off for 35 minutes of eclipse. Each phase has an exponential solution. Matching them over one period gives the periodic steady state in closed form, so the analytic minimum and maximum temperatures match a 12-orbit simulation. Fitting ln⁡∣T−T∞∣\ln\lvert T - T_\infty\rvert against time recovers τ\tau from a noisy thermal-vacuum test to within a few percent.

🐍 Exercise 2 (research): orbital thermal cycling of a battery node
Simulate a single-node thermal model over 12 sunlight/eclipse cycles. Derive the analytic periodic minimum and maximum temperatures and compare. Estimate τ = RC from a noisy step response by log-linear regression.

First-order ODEs in AI, robotics and aerospace

  • Thermal control: lumped-node thermal networks (ESATAN, Thermal Desktop) are systems of first-order ODEs.
  • Sensors and filters: first-order low-pass filters for IMU smoothing; complementary filters blend gyro and accelerometer data.
  • Actuators: DC motor current and speed responses; battery RC equivalent circuits for state-of-charge estimation.
  • Learning dynamics: gradient flow θ˙=−∇L(θ)\dot\theta = -\nabla L(\theta) is a first-order ODE, and analysing it explains learning-rate effects.

References

  1. W. Boyce, R. DiPrima (2017). Elementary Differential Equations and Boundary Value Problems, 11th ed. Wiley. Ch. 1–2.
  2. M. Tenenbaum, H. Pollard (1985). Ordinary Differential Equations. Dover.
  3. G. Teschl (2012). Ordinary Differential Equations and Dynamical Systems. AMS. Ch. 2 (Picard–Lindelöf).
  4. D. Gilmore (ed.) (2002). Spacecraft Thermal Control Handbook, Vol. 1. Aerospace Press.
  5. P. Verhulst (1838). “Notice sur la loi que la population suit dans son accroissement.” Correspondance mathématique et physique, 10.
  6. G. Plett (2015). Battery Management Systems, Vol. 1: Battery Modeling. Artech House.
  7. K. Åström, R. Murray (2021). Feedback Systems, 2nd ed. Princeton. Ch. 5–6.