First-Order ODEs

⚡ Key Takeaways

First-order ODEs are differential equations involving only the first derivative of an unknown function: y′=f(x,y)y' = f(x,y). Key result: a vast range of such equations can be solved exactly by recognizing their type (separable, linear, exact, etc.), and the Picard–Lindelöf Theorem guarantees a unique solution near any point where ff is reasonably smooth. Where it applies: population growth, radioactive decay, RC circuits, Newtonian motion with resistance, chemical kinetics, mixing problems. Who/when: Newton, Leibniz, the Bernoullis, Euler, and Clairaut founded the subject between roughly 1670 and 1750.

💡 The Core Insight

A first-order ODE assigns to every point (x,y)(x,y) in the plane a slope f(x,y)f(x,y). Solving the equation means finding curves that are everywhere tangent to this prescribed direction field. Every solution method — separation, integrating factors, substitutions — is a trick for converting this geometric tangency condition into an antiderivative we can actually compute.

Formal Statement

DefinitionFirst-Order ODE in Normal Form

A first-order ordinary differential equation in normal (explicit) form is

1
dydx=f(x,y),\quad \frac{dy}{dx} = f(x,y),

Derivation hint: this is the definition; ff is any given function of two variables, xx the independent variable, y=y(x)y=y(x) the unknown function, dy/dxdy/dx its derivative. A function y=φ(x)y=\varphi(x) defined on an interval II is a solution if it is differentiable on II and φ′(x)=f(x,φ(x))\varphi'(x)=f(x,\varphi(x)) for all x∈Ix\in I. An initial value problem (IVP) pairs equation [1] with a condition

2
y(x0)=y0,\quad y(x_0) = y_0,

Derivation hint: this pins down one curve from the family by requiring the solution to pass through the prescribed point (x0,y0)(x_0,y_0). The general solution is a family y=φ(x,C)y=\varphi(x,C) depending on one arbitrary constant CC; a particular solution fixes CC.

DefinitionThe Four Canonical Solvable Types

Separable: dydx=g(x)h(y)\dfrac{dy}{dx}=g(x)h(y).

Linear: dydx+p(x) y=q(x)\dfrac{dy}{dx}+p(x)\,y = q(x).

Exact: M(x,y) dx+N(x,y) dy=0M(x,y)\,dx + N(x,y)\,dy = 0 with ∂M∂y=∂N∂x\dfrac{\partial M}{\partial y}=\dfrac{\partial N}{\partial x}.

Homogeneous (in the scaling sense): dydx=F ⁣(yx)\dfrac{dy}{dx}=F\!\left(\dfrac{y}{x}\right), solved by the substitution v=y/xv=y/x.

TheoremPicard–Lindelöf Existence and Uniqueness

Let f(x,y)f(x,y) be continuous on a rectangle R={∣x−x0∣≤a, ∣y−y0∣≤b}R=\{|x-x_0|\le a,\ |y-y_0|\le b\} and satisfy a Lipschitz condition in yy:

3
∣f(x,y1)−f(x,y2)∣≤L ∣y1−y2∣for all (x,y1),(x,y2)∈R.\quad |f(x,y_1)-f(x,y_2)| \le L\,|y_1-y_2| \quad \text{for all } (x,y_1),(x,y_2)\in R.

Derivation hint: the Lipschitz constant LL bounds how fast ff changes in the yy-direction; it follows automatically if ∂f/∂y\partial f/\partial y is continuous and bounded on RR. Then the IVP [1]–[2] has a unique solution on the interval ∣x−x0∣≤h|x-x_0|\le h, where h=min⁡(a, b/M)h=\min(a,\,b/M) and M=max⁡R∣f∣M=\max_R|f|.

TheoremLinear Equations: The Integrating Factor Solution

The general linear equation y′+p(x)y=q(x)y'+p(x)y=q(x) has the explicit solution

4
y(x)=1μ(x)[∫μ(x) q(x) dx+C],μ(x)=e∫p(x) dx.\quad y(x) = \frac{1}{\mu(x)}\left[\int \mu(x)\,q(x)\,dx + C\right], \qquad \mu(x) = e^{\int p(x)\,dx}.

Derivation hint: choose μ\mu so the left side becomes the derivative of a product (μy)′(\mu y)'; see the proof below.

Why It Holds / Derivation

ProofIntegrating Factor for Linear Equations

We solve y′+p(x)y=q(x)y'+p(x)y=q(x) by forcing the left side to be a perfect derivative.

Step 1. Multiply the entire equation by an as-yet-unknown positive function μ(x)\mu(x):

5
μy′+μp y=μq.\quad \mu y' + \mu p\, y = \mu q.

Derivation hint: multiply both sides of y′+py=qy'+py=q by μ\mu.

Step 2. We want the left side to equal ddx(μy)=μy′+μ′y\dfrac{d}{dx}(\mu y) = \mu y' + \mu' y. Comparing with [5], this requires

6
μ′(x)=p(x) μ(x).\quad \mu'(x) = p(x)\,\mu(x).

Derivation hint: match the coefficient of yy in μp y\mu p\,y with the coefficient in μ′y\mu' y.

Step 3. Equation [6] is itself separable: dμ/μ=p dxd\mu/\mu = p\,dx, so integrating gives

7
μ(x)=e∫p(x) dx.\quad \mu(x) = e^{\int p(x)\,dx}.

Derivation hint: integrate ln⁡μ=∫p dx\ln\mu = \int p\,dx and exponentiate; the constant of integration may be set to 1 since any nonzero multiple of μ\mu works.

Step 4. With this μ\mu, equation [5] becomes (μy)′=μq(\mu y)' = \mu q. Integrate both sides:

8
μ(x) y(x)=∫μ(x) q(x) dx+C.\quad \mu(x)\,y(x) = \int \mu(x)\,q(x)\,dx + C.

Derivation hint: antidifferentiate (μy)′=μq(\mu y)' = \mu q with respect to xx, adding the constant CC.

Step 5. Divide by μ\mu to obtain [4]. Uniqueness of the constant CC follows because two antiderivatives differ by a constant. ■\blacksquare

∎
ProofSeparable Equations

Given dy/dx=g(x)h(y)dy/dx = g(x)h(y) with h(y)≠0h(y)\ne 0, divide and integrate:

9
∫dyh(y)=∫g(x) dx+C.\quad \int \frac{dy}{h(y)} = \int g(x)\,dx + C.

Derivation hint: rewrite as 1h(y) dy=g(x) dx\frac{1}{h(y)}\,dy = g(x)\,dx and integrate each side independently; the single constant CC absorbs both integration constants. Each root of h(y)=0h(y)=0 gives an additional equilibrium (constant) solution that this division may have discarded. ■\blacksquare

∎
ProofExact Equations

Suppose M dx+N dy=0M\,dx + N\,dy = 0 with My=NxM_y = N_x on a simply connected region. Then there exists a potential function Ψ(x,y)\Psi(x,y) with Ψx=M\Psi_x = M and Ψy=N\Psi_y = N. Along a solution curve dΨ=M dx+N dy=0d\Psi = M\,dx + N\,dy = 0, so the solution is the implicit relation

10
Ψ(x,y)=C,Ψ(x,y)=∫M dx+∫ ⁣(N−∂∂y ⁣∫M dx)dy.\quad \Psi(x,y) = C, \qquad \Psi(x,y) = \int M\,dx + \int\!\left(N - \frac{\partial}{\partial y}\!\int M\,dx\right)dy.

Derivation hint: integrate Ψx=M\Psi_x=M in xx (treating yy constant, picking up an unknown function g(y)g(y)), then differentiate the result in yy and match against Ψy=N\Psi_y=N to determine g′(y)g'(y). The condition My=NxM_y=N_x is exactly the Clairaut equality of mixed partials Ψxy=Ψyx\Psi_{xy}=\Psi_{yx}, and is what makes Ψ\Psi exist. ■\blacksquare

∎
mathematician · Leonhard Euler | 1707–1783

Euler systematized the entire subject. He introduced the integrating factor as a general device (around 1734–1740), classified exact equations and derived the exactness criterion My=NxM_y=N_x, invented the numerical Euler method that still bears his name, and treated the substitution methods for homogeneous and Bernoulli-type equations. His Institutionum calculi integralis (1768–1770) collected these results into the first coherent textbook treatment, turning a bag of clever tricks into a recognizable theory.

Building Intuition

🧠 Intuition

Picture the right side f(x,y)f(x,y) as a recipe that, at every point of the plane, hands you a little arrow telling you which way to head. A solution is a road that always points along the local arrows — it can never cross them transversally. This is why uniqueness fails exactly where arrows pile up ambiguously: if two roads could leave the same point, the arrow there would be undefined. For the linear equation, the integrating factor μ=e∫p\mu=e^{\int p} is best understood as a change of unknown variable. Setting w=μyw=\mu y, the cluttered equation collapses to w′=μqw'=\mu q, which is just "integrate once." The factor μ\mu measures the cumulative exponential drift the system would undergo if undriven (q=0q=0), and dividing by it "undoes" that drift so the remaining driving term integrates cleanly. For separable equations, the insight is that xx and yy have been completely decoupled: each lives on its own side of the equation, so the problem splits into two independent one-variable integrals.

Figure
Direction field of y′=x−yy'=x-y with one solution curve (gold) threading the arrows

```svg

x y solution arrows have slope f(x,y)=x−y; the gold curve stays tangent to them

```

Worked Examples

ExampleLinear: an RC circuit driven by a battery

Given: A capacitor charges through a resistor. Kirchhoff's law gives Rdqdt+qC=V0R\dfrac{dq}{dt}+\dfrac{q}{C}=V_0, with R=2 ΩR=2\ \Omega, C=0.5 FC=0.5\ \text{F}, V0=10 VV_0=10\ \text{V}, and initial charge q(0)=0 Cq(0)=0\ \text{C}.

Step 1. Put in standard linear form. Divide by R=2R=2:

11
dqdt+1RC q=V0R=11 q-coeff =1⋅q,i.e. dqdt+1⋅q=5.\quad \frac{dq}{dt} + \frac{1}{RC}\,q = \frac{V_0}{R} = \frac{1}{1}\,q\text{-coeff }= 1\cdot q,\quad \text{i.e. } \frac{dq}{dt}+1\cdot q = 5.

Derivation hint: 1/(RC)=1/(2⋅0.5)=11/(RC) = 1/(2\cdot 0.5)=1 and V0/R=10/2=5V_0/R = 10/2 = 5.

Step 2. Integrating factor: p(t)=1p(t)=1, so μ=e∫1 dt=et\mu = e^{\int 1\,dt}=e^{t}.

Step 3. Apply [4]:

12
q(t)=e−t[∫5 et dt+C]=e−t[5et+C]=5+Ce−t.\quad q(t) = e^{-t}\left[\int 5\,e^{t}\,dt + C\right] = e^{-t}\big[5e^{t}+C\big] = 5 + Ce^{-t}.

Derivation hint: ∫5et dt=5et\int 5e^{t}\,dt = 5e^{t}; then multiply through by e−te^{-t}.

Step 4. Apply q(0)=0q(0)=0: 0=5+C⇒C=−50 = 5 + C \Rightarrow C=-5.

 q(t)=5(1−e−t) C \boxed{\,q(t) = 5\big(1-e^{-t}\big)\ \text{C}\,}

The charge rises to a steady-state 5 C5\ \text{C} (i.e. CV0CV_0) with time constant τ=RC=1 s\tau = RC = 1\ \text{s}.

ExampleSeparable: Newton's law of cooling

Given: A cup of coffee at 90∘90^\circC cools in a 20∘20^\circC room. Newton's law: dTdt=−k(T−20)\dfrac{dT}{dt}=-k(T-20) with measured k=0.1 min−1k=0.1\ \text{min}^{-1}. Find T(t)T(t) and the time to reach 50∘50^\circC.

Step 1. Separate variables:

13
dTT−20=−k dt.\quad \frac{dT}{T-20} = -k\,dt.

Derivation hint: divide both sides by (T−20)(T-20) and multiply by dtdt.

Step 2. Integrate [9]: ln⁡∣T−20∣=−kt+C1\ln|T-20| = -kt + C_1, so T−20=Ce−ktT-20 = Ce^{-kt}. Derivation hint: exponentiate; C=±eC1C=\pm e^{C_1} absorbs the constant and sign.

Step 3. Initial condition T(0)=90T(0)=90: 90−20=C⇒C=7090-20 = C \Rightarrow C=70. Thus

14
T(t)=20+70 e−0.1 t  (∘C).\quad T(t) = 20 + 70\,e^{-0.1\,t}\ \ (^\circ\text{C}).

Derivation hint: substitute C=70C=70, k=0.1k=0.1 into T=20+Ce−ktT=20+Ce^{-kt}.

Step 4. Solve T=50T=50: 30=70e−0.1t⇒e−0.1t=3/7⇒t=−10ln⁡(3/7)30 = 70e^{-0.1t}\Rightarrow e^{-0.1t}=3/7 \Rightarrow t = -10\ln(3/7).

 t=10ln⁡(7/3)≈8.47 min \boxed{\,t = 10\ln(7/3) \approx 8.47\ \text{min}\,}

Common Misconceptions

⚠️ Common mistake

"The general solution captures every solution." It usually does not. When dividing by h(y)h(y) in a separable equation you may lose equilibrium solutions where h(y)=0h(y)=0. For y′=yy'=y the general solution y=Cexy=Ce^{x} does include y≡0y\equiv0 (set C=0C=0), but for y′=y2y'=y^2 the constant y≡0y\equiv0 is a genuine solution not obtained from y=−1/(x+C)y=-1/(x+C) for any finite CC. Always check the roots of hh separately.

"A solution exists for all xx." False in general. Even with perfectly smooth ff, solutions can blow up in finite time (see the counterexample). Picard–Lindelöf only guarantees a local interval.

"+C+C is decorative." The constant is the solution's identity card — it selects which member of the one-parameter family you mean. Dropping it loses all but one solution.

CounterexampleFinite-time blow-up and non-uniqueness

Blow-up: The IVP y′=y2y'=y^2, y(0)=1y(0)=1 has f=y2f=y^2 smooth everywhere, yet its solution is

15
y(x)=11−x,\quad y(x)=\frac{1}{1-x},

Derivation hint: separable; ∫y−2dy=∫dx\int y^{-2}dy = \int dx gives −1/y=x−1-1/y = x - 1. which escapes to +∞+\infty as x→1−x\to 1^-. No solution exists for x≥1x\ge 1 — global existence fails despite smoothness.

Non-uniqueness: The IVP y′=y1/3y'=y^{1/3}, y(0)=0y(0)=0 violates the Lipschitz condition at y=0y=0 (the derivative 13y−2/3\tfrac13 y^{-2/3} blows up there). It admits infinitely many solutions, including y≡0y\equiv 0 and y=(23x)3/2y=\big(\tfrac{2}{3}x\big)^{3/2}, plus glued combinations. Continuity of ff alone (Peano's theorem) buys existence but not uniqueness.

Connections

connection

First-order ODEs are the foundation on which the rest of differential equations is built. Any nn-th order equation y(n)=g(x,y,…,y(n−1))y^{(n)}=g(x,y,\dots,y^{(n-1)}) reduces to a first-order system by setting u1=y, u2=y′,…u_1=y,\,u_2=y',\dots, so the theory here is the atom of the whole subject — see Higher-Order Linear ODEs and Systems of First-Order ODEs. The integrating-factor idea reappears as the variation of parameters technique. The exactness criterion My=NxM_y=N_x is the two-dimensional shadow of the curl-free / conservative-field condition in Vector Calculus and of closed-versus-exact differential forms. The direction-field viewpoint and equilibrium analysis lead directly into Autonomous Equations and Phase Lines and Dynamical Systems. When no closed form exists, one turns to Numerical Methods for ODEs (Euler, Runge–Kutta), whose simplest member Euler invented for exactly this class.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1671–1676 — Newton: In Method of Fluxions, Newton solves "fluxional equations" by power series, the first systematic attack on first-order ODEs.
- 1684–1693 — Leibniz: Develops the dy/dxdy/dx notation, names the "differential equation," and discovers separation of variables and the method for homogeneous equations.
- 1694 — Leibniz & Johann Bernoulli: The integrating factor technique for linear equations is recognized.
- 1696 — The Bernoullis: Johann poses the brachistochrone; Jakob's earlier work leads to the Bernoulli equation y′+p(x)y=q(x)yny'+p(x)y=q(x)y^n, linearized by substitution.
- 1724 — Riccati: Jacopo Riccati studies y′=q0+q1y+q2y2y'=q_0+q_1y+q_2y^2, the simplest equation not generally solvable in elementary terms.
- 1734 — Clairaut: Introduces the exactness criterion and singular solutions (the Clairaut equation y=xy′+f(y′)y=xy'+f(y')).
- 1768–1770 — Euler: Institutionum calculi integralis unifies integrating factors, exact equations, substitutions, and the Euler numerical method.
- 1820s–1830s — Cauchy: Founds the rigorous existence theory via the method of successive approximation.
- 1890–1894 — Picard & Lindelöf: Sharpen Cauchy's result into the modern existence–uniqueness theorem using the Lipschitz condition and the contraction principle.

Subtleties & Limits

open-problem

The classification into solvable types is deceptively incomplete. Most first-order ODEs have no closed-form solution in elementary functions — this is not a gap in our cleverness but a structural fact, made precise by differential Galois theory (Liouville, Risch). The Riccati equation y′=q0+q1y+q2y2y'=q_0+q_1y+q_2y^2 is the boundary case: it is solvable in closed form only when one particular solution is already known, and otherwise links to second-order linear equations and special functions. Singular solutions — envelopes of the general family, as in the Clairaut equation — are not captured by the constant CC at all, and a complete catalog of when they arise remains subtle. Finally, the gap between continuity (Peano: existence) and Lipschitz (Picard: uniqueness) hides a rich landscape; characterizing the exact regularity needed for uniqueness, and understanding the set of solutions when it fails, connects to active research in PDE theory and the analysis of ill-posed problems.

See Also

Picard–Lindelöf Theorem · Separable Equations · Linear Differential Equations · Exact Differential Equations · Bernoulli Equation · Riccati Equation · Direction Fields · Logistic Growth · Newton's Law of Cooling