§ CALCULUS · 16 MIN READ · Updated 2026-05-13

Differential Equations: First-Order Methods

The mathematics of how things change over time — and the techniques that solve almost every first-order equation.

"The whole of nature is governed by differential equations."
Augustin-Louis Cauchy, paraphrased from his 1840s lectures
Differential Equations: First-Order Methods
DIFFERENTIAL EQUATIONS: FIRST-ORDER METHODS

A differential equation is an equation involving an unknown function and its derivatives. They are the natural language of physics, engineering, biology, and economics — anywhere a system evolves over time according to local rules.

A first-order differential equation is one in which only the first derivative appears. They are the simplest case but appear constantly in applications. This article covers what an ODE is and is not, separable equations, linear first-order equations and the integrating factor method, exact equations, substitution methods, and applications in physics, biology, and economics.

What an ODE is (and isn't)

An ordinary differential equation (ODE) is an equation involving a function of one variable and its derivatives. Notation: is the unknown function, are its derivatives.

Example: , which we'd write as . The solution is for any constant .

A partial differential equation (PDE) involves a function of multiple variables and partial derivatives. These are harder and beyond the scope of this article. Examples: heat equation, wave equation, Maxwell's equations.

Order of an ODE: the highest derivative that appears. First-order: only . Second-order: includes . Etc.

Linear vs nonlinear: An ODE is linear if it can be written in the form . Otherwise nonlinear. Linear equations are usually much easier than nonlinear ones.

Initial value problem (IVP): an ODE together with a condition . Most physical problems are IVPs — you know the state at some time and want to know it at later times.

Separable equations

The simplest case. An ODE is separable if it can be written as

Solve by separating variables and integrating:

Example 1: Solve .

Separate: . Integrate: . Exponentiate: (where ).

Example 2: A radioactive substance decays at a rate proportional to its amount. If is the amount at time , then for some .

Separate and integrate: , where .

This is the famous exponential decay formula. Half-life: solve for : .

Linear first-order equations: the integrating factor

A linear first-order ODE has the form

The technique: multiply both sides by an integrating factor to make the left side a derivative of a product.

The integrating factor is

Why this works: . So .

Example 3: Solve .

Integrating factor: . Multiply both sides:

The left side is . Integrate both sides:

So .

Example 4 (with initial condition): Solve , .

Integrating factor: . Multiply: . So . Integrate: . So .

Apply initial condition: , so . Solution: .

Exact equations

An ODE in the form is exact if there exists a function such that and .

Test for exactness: .

If exact, find by integrating with respect to (treating as constant) and using the second condition to determine the constant. The solution is .

Example 5: Solve .

Check: and . Exact.

Integrate with respect to : . Differentiate with respect to : . Set equal to : , so .

Solution: .

Substitution methods

For some equations, a clever substitution converts the problem to a solvable form.

Bernoulli equation: . Substitute . The equation becomes linear in .

Homogeneous equation (in the ODE sense, not the linear-algebra sense): . Substitute . The equation becomes separable in .

Example 6: Solve .

This is Bernoulli with . Substitute , so and .

Original: . Multiply by : . Linear in , integrating factor : , so , so .

Substitute back: .

Applications

Population dynamics

The simplest model: population grows at a rate proportional to its size. , where is the growth rate. Solution: . Exponential growth.

A better model: the logistic equation , where is the carrying capacity. The growth rate slows as approaches . Solution: for some constant determined by initial conditions.

Newton's law of cooling

The rate of cooling of an object is proportional to the difference between its temperature and the surroundings:

This is linear first-order. Solution: .

The temperature approaches the environment temperature exponentially, with time constant .

Compound interest

Continuously compounded interest at rate gives , with solution . This is why "continuously compounded" gives slightly higher returns than discrete compounding: the equation is solved exactly by the exponential.

Chemical reactions

First-order reactions follow , where is the concentration of the reactant. Solution: . The half-life is constant — a defining feature of first-order kinetics.

Second-order reactions follow , which is separable. Solution: . The half-life for second-order reactions depends on initial concentration.

A note on numerical methods

Most real-world ODEs cannot be solved in closed form. When the analytical methods above fail, numerical methods compute approximate solutions.

The simplest is Euler's method: , where is the step size. This is first-order accurate.

Better methods include Runge-Kutta (the standard 4th-order RK4 is the workhorse) and adaptive step-size methods. Modern numerical packages (scipy.integrate.solve_ivp in Python, ode45 in MATLAB) implement these efficiently.

Common pitfalls

Pitfall 1 — Forgetting the constant of integration. Every indefinite integral introduces a constant. For an IVP, the constant is determined by the initial condition.

Pitfall 2 — Missing solutions. When you separate , you implicitly assume . The solutions where (called equilibrium solutions) must be checked separately. Example: in , the solutions and are equilibria you'd miss by separation alone.

Pitfall 3 — Confusing order and degree. Order is the highest derivative; degree is the highest power of the highest derivative. is order 2, degree 1 (in ).

Pitfall 4 — Applying the integrating factor to nonlinear equations. The integrating factor method only works for linear equations. For nonlinear, use other techniques.


Frequently asked

What's the difference between an ODE and a PDE?
ODE: function of one variable, ordinary derivatives. PDE: function of multiple variables, partial derivatives. ODEs are generally easier. Most physical problems involving time alone are ODEs; problems involving space *and* time are PDEs.
Why are exponentials so common in solutions?
Because the simplest linear ODE $y' = ky$ has the exponential as its solution, and the exponential reappears in many other linear ODEs (through the integrating factor or characteristic equations for higher orders).
Can every ODE be solved analytically?
No. Most nonlinear ODEs cannot be solved in closed form. Many practical problems require numerical methods (Euler, RK4, adaptive solvers). Knowing analytical techniques for the cases that yield to them is valuable; knowing numerical methods for the cases that don't is essential.
What is a stable equilibrium?
For an ODE $y' = f(y)$, an equilibrium $y^*$ (where $f(y^*) = 0$) is stable if small perturbations decay back to $y^*$. Mathematically: $f'(y^*) < 0$. Unstable if $f'(y^*) > 0$. Logistic equation: $K$ is stable, $0$ is unstable.
How do I know which method to use?
Order of preference: (1) Try separation. If the equation factors as $g(x) h(y)$, separate. (2) Check linearity. If linear, use integrating factor. (3) Check exactness. (4) Try substitution (Bernoulli, homogeneous). (5) If none work analytically, use numerical methods.
Why is the integrating factor named that way?
Because multiplying by it makes the equation *integrable* in the sense that the left side becomes a derivative of a product. The terminology dates to Euler's 18th-century work.

— ACT —


Cited works & further reading

  • ·Boyce, W. and DiPrima, R. (2017). Elementary Differential Equations and Boundary Value Problems, 11th edition. Wiley.
  • ·Strogatz, S. (2014). Nonlinear Dynamics and Chaos, 2nd edition. Westview.
  • ·Tenenbaum, M. and Pollard, H. (1985). Ordinary Differential Equations. Dover.

More from this cluster


About the author

Tim Sheludyakov writes the Stoa library.

By Tim Sheludyakov · Edited 2026-05-13

A letter from the portico

Once a week — a long-read, a quote, a practice. No promotions. Unsubscribe in one click.

By subscribing you agree to receive letters from Stoa.