Skip to content

First-Order Differential Equation


Definition

A first-order differential equation is a differential equation in which only the unknown function x(t)x(t) and its first derivative x′(t)=dxdt(t)x'(t)=\dfrac{\mathrm{d}x}{\mathrm{d}t}(t) occur. In explicit form,

x′(t)=f(t,x(t))x'(t)=f\big(t,x(t)\big)

for a given function ff of two variables. Three standard classes:

  • linear: x′(t)+p(t)x(t)=q(t)x'(t)+p(t)x(t)=q(t), with p,qp,q given functions of tt; with constant coefficients this is x′(t)=ax(t)+bx'(t)=ax(t)+b;
  • autonomous: x′(t)=f(x(t))x'(t)=f\big(x(t)\big), where the right-hand side does not depend on tt;
  • separable: x′(t)=g(t) h(x(t))x'(t)=g(t)\,h\big(x(t)\big).

An initial value problem adds one condition x(t0)=x0x(t_0)=x_0.


Interpretation

The equation prescribes the slope of the solution curve at every point (t,x)(t,x). Starting from x0x_0 at time t0t_0, the solution follows these slopes; one initial value is enough because the equation has order 1.

Slope segments of x' = 2tx in the (t,x) plane with solution curves Ce^(t^2), the curve e^(t^2) through x(0) = 1 in blue and the constant solution x = 0 dashed in red.

The figure draws the separable example x′(t)=2t x(t)x'(t)=2t\,x(t). Each grey segment has the slope f(t,x)=2txf(t,x)=2tx prescribed at its point; it depends on both tt and xx, flat on the line t=0t=0 and steeper further out. The blue curve is the solution et2\mathrm{e}^{t^2} fixed by the single initial value x(0)=1x(0)=1. The grey curves are other solutions Cet2C\mathrm{e}^{t^2} (here C=2C=2, 0.50.5, −0.5-0.5). The dashed line is the constant solution x≡0x\equiv0, which division by xx loses.

Move x(0)x(0) to pick one curve from the family x(t)=3+Ce−2tx(t)=3+Ce^{-2t} of x′=−2x+6x'=-2x+6. Then change aa and bb. For a<0a<0 every solution approaches the equilibrium −b/a-b/a; for a>0a>0 solutions move away from it.

The constant-coefficient case x′=axx'=ax is the continuous-time analogue of the first-order linear difference equation xt+1=axtx_{t+1}=ax_t: the factor ata^t there becomes eat\mathrm{e}^{at} here. The sign of aa, not whether ∣a∣<1|a|<1, decides growth or decay.

A frequent error is to drop the constant solutions of a separable equation. Dividing by h(x)h(x) is only allowed where h(x)≠0h(x)\neq0; each zero cc of hh gives the constant solution x(t)≡cx(t)\equiv c.


Key Results

  • x′(t)=ax(t)x'(t)=ax(t) has general solution x(t)=Ceatx(t)=C\mathrm{e}^{at}; the initial value problem with x(t0)=x0x(t_0)=x_0 has the unique solution x(t)=x0ea(t−t0)x(t)=x_0\mathrm{e}^{a(t-t_0)}. This uses the exponential function and ddteat=aeat\frac{\mathrm{d}}{\mathrm{d}t}\mathrm{e}^{at}=a\mathrm{e}^{at}.
  • For a≠0a\neq0, x′(t)=ax(t)+bx'(t)=ax(t)+b has general solution x(t)=−ba+Ceatx(t)=-\dfrac{b}{a}+C\mathrm{e}^{at}; the constant −b/a-b/a is its equilibrium.
  • If p,qp,q are continuous on an interval II, the linear equation x′+px=qx'+px=q has a unique solution on all of II for each x(t0)=x0x(t_0)=x_0; it is found with an integrating factor.
  • Separable equations are solved by ∫dxh(x)=∫g(t) dt\int \frac{\mathrm{d}x}{h(x)}=\int g(t)\,\mathrm{d}t wherever h(x)≠0h(x)\neq0; the chain rule justifies this step.

Examples

Continuous compounding. A balance with interest rate r=0.05r=0.05 per year satisfies B′(t)=0.05 B(t)B'(t)=0.05\,B(t). With B(0)=1000B(0)=1000, B(t)=1000e0.05tB(t)=1000\mathrm{e}^{0.05t}, so B(10)=1000e0.5≈1648.72B(10)=1000\mathrm{e}^{0.5}\approx1648.72.

Constant forcing. For x′(t)=−2x(t)+6x'(t)=-2x(t)+6 with x(0)=1x(0)=1: here a=−2a=-2, b=6b=6, so x(t)=3+Ce−2tx(t)=3+C\mathrm{e}^{-2t} and C=1−3=−2C=1-3=-2. Hence x(t)=3−2e−2tx(t)=3-2\mathrm{e}^{-2t}. Check: x′(t)=4e−2tx'(t)=4\mathrm{e}^{-2t} and −2x(t)+6=−6+4e−2t+6=4e−2t-2x(t)+6=-6+4\mathrm{e}^{-2t}+6=4\mathrm{e}^{-2t}. The solution tends to the equilibrium 33.

Separable. For x′(t)=2t x(t)x'(t)=2t\,x(t) with x(0)=1x(0)=1: for x>0x>0, ∫dxx=∫2t dt\int\frac{\mathrm{d}x}{x}=\int2t\,\mathrm{d}t gives ln⁡x=t2+c\ln x=t^2+c, so x(t)=et2x(t)=\mathrm{e}^{t^2}. Check: x′(t)=2tet2=2t x(t)x'(t)=2t\mathrm{e}^{t^2}=2t\,x(t). The function x≡0x\equiv0 is the constant solution excluded by the division.


Prerequisites



Sources

Aliases: First Order Differential Equation, first-order ODE, first order ODE Keywords: x'(t)=f(t,x(t)), x'=ax+b, linear first-order equation, separable equation, continuous compounding Symbols: integral

Last updated: 14 October 2026 08:21