§ ИСЧИСЛЕНИЕ · 16 МИН ЧТЕНИЯ · Обновлено 2026-05-13

Дифференциальные уравнения: методы первого порядка

Математика того, как вещи меняются во времени — и методы, решающие почти любое уравнение первого порядка.

"Вся природа подчиняется дифференциальным уравнениям."
Огюстен-Луи Коши, перефразировано по его лекциям 1840-х годов
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.


Часто задаваемые

В чем разница между ОДУ и ЧДУ?
ОДУ: функция одной переменной, обычные производные. ЧДУ: функция нескольких переменных, частные производные. ОДУ, как правило, проще. Большинство физических задач, зависящих только от времени, описывается ОДУ; задачи, зависящие от пространства *и* времени, описываются ЧДУ.
Почему экспоненты так часто появляются в решениях?
Потому что простейшее линейное ОДУ $y' = ky$ имеет своим решением экспоненту, и экспонента снова появляется во многих других линейных ОДУ (через интегрирующий множитель или характеристические уравнения для уравнений более высокого порядка).
Можно ли каждое ОДУ решить аналитически?
Нет. Большинство нелинейных ОДУ нельзя решить в замкнутой форме. Во многих практических задачах требуются численные методы (Эйлер, RK4, адаптивные решатели). Знание аналитических методов для случаев, поддающихся им, ценно; знание численных методов для остальных случаев — необходимо.
Что такое устойчивое равновесие?
Для ОДУ $y' = f(y)$ равновесие $y^*$ (где $f(y^*) = 0$) устойчиво, если малые возмущения затухают обратно к $y^*$. Математически: $f'(y^*) < 0$. Неустойчиво, если $f'(y^*) > 0$. Для логистического уравнения: $K$ устойчиво, $0$ неустойчиво.
Как понять, какой метод использовать?
Порядок предпочтения: (1) Попробуйте разделение переменных. Если уравнение раскладывается в произведение $g(x) h(y)$, разделяйте. (2) Проверьте линейность. Если уравнение линейное, используйте интегрирующий множитель. (3) Проверьте точность (на точное уравнение). (4) Попробуйте подстановку (Бернулли, однородные). (5) Если ни один метод не работает аналитически, используйте численные методы.
Почему интегрирующий множитель так называется?
Потому что умножение на него делает уравнение *интегрируемым* в том смысле, что левая часть становится производной произведения. Термин восходит к работам Эйлера XVIII века.

— ДЕЙСТВИЕ —


Цитированное и далее

  • ·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.

Из этого кластера


Об авторе

Tim Sheludyakov пишет библиотеку Stoa.

Автор Tim Sheludyakov · Отредактировано 2026-05-13

Письмо из портика

Раз в неделю — лонгрид, цитата, практика. Без промо. Отписка в один клик.

Нажимая «Подписаться», вы соглашаетесь получать письма Stoa.