PRACTICE →↑ BACK TO TOP

Let's talk

contact@adriamics.com

First Order ODEs

GitHub Changelog -

  • 1

First-Order ODEs

First-order ordinary differential equations (ODEs) involve an unknown function and its first derivative . They are the first serious class of differential equations because many modeling problems reduce to them, and because most core solution techniques appear here in their simplest form.

Initial value problems and geometric meaning

A first-order ODE usually becomes a specific problem once an initial condition is given:

This is an initial value problem (IVP).

General solution vs. particular solution

  • The general solution contains one arbitrary constant.

  • A particular solution is obtained after using the initial condition.

Example:

Integrating gives

If , then

so the particular solution is

Direction fields

For

the value of gives the slope of the solution curve through the point . A slope field or direction field gives qualitative information even when a closed-form solution is difficult.

What to look for:

  • Where slopes are zero

  • Where slopes are positive or negative

  • Where slopes become large in magnitude

  • Whether solutions move toward or away from equilibrium values


Separable equations

A first-order ODE is separable if it can be written as

so that variables can be separated:

Then integrate both sides:

Standard workflow

  1. Rewrite the equation so all terms are with and all terms are with .

  2. Integrate both sides.

  3. Solve explicitly for if possible.

  4. Use the initial condition.

  5. Check for constant solutions that may have been lost when dividing by .

Example

Solve

Separate:

Integrate:

Exponentiate:

where the constant has been renamed.

Logistic equation

One of the most important separable models is

where:

  • is population

  • is intrinsic growth rate

  • is carrying capacity

Key behavior:

  • If , then grows.

  • If , then decreases.

  • Equilibria occur at and .

Its explicit solution is

for a constant determined by the initial condition.


Linear first-order equations

A first-order linear ODE has the standard form

The main tool is an integrating factor.

Integrating factor

Define

Multiplying the ODE by gives

and the left side becomes

So

and therefore

Example

Solve

Here

The integrating factor is

Multiply through:

So

Integrate:

Hence

Common source of mistakes

  • The integrating factor depends only on , not on .

  • The equation must first be put into the exact linear form .

  • Do not forget to divide by at the end.


Exact equations

An equation of the form

is exact if there exists a potential function such that

Then the solution is

Test for exactness

If and have continuous first partial derivatives, test whether

If this holds on a region, the equation is exact there.

Solution procedure

  1. Verify exactness.

  2. Integrate with respect to :

  1. Differentiate that expression with respect to .

  2. Match it to to determine .

  3. Write .

Example

Solve

Here

Check:

so the equation is exact.

Integrate with respect to :

Differentiate with respect to :

Match with :

Thus

So the implicit solution is


Homogeneous first-order equations

A first-order ODE of the form

is called homogeneous in the first-order sense.

The substitution

or equivalently turns it into a separable equation.

Since

the equation becomes

which can be rearranged into a separable form.

Example pattern

If

set . Then

so

and therefore

Returning to :


Bernoulli equations

A Bernoulli equation has the form

with .

It is nonlinear, but becomes linear after the substitution

Derivation

Differentiate:

After multiplying the original equation by , the equation becomes linear in .

Why it matters

Bernoulli equations are one of the cleanest examples of a nonlinear ODE that reduces to a linear one by a well-chosen substitution.


Autonomous equations and equilibria

An autonomous first-order ODE has the form

The independent variable does not appear explicitly.

Equilibrium solutions

An equilibrium occurs when

If satisfies this, then the constant function is a solution.

Stability

For autonomous equations, equilibrium points can often be classified from the sign of :

  • If nearby arrows point toward the equilibrium, it is stable.

  • If nearby arrows point away, it is unstable.

  • If attraction occurs on one side only, it is semistable.

Phase line analysis

To analyze

  1. Find equilibrium values by solving .

  2. Mark them on a number line.

  3. Determine the sign of on each interval.

  4. Use the sign to infer whether increases or decreases.

This gives the long-term behavior without solving explicitly.


Existence and uniqueness

For an IVP

two separate questions matter:

  • Does a solution exist?

  • Is it unique?

Practical theorem

If and are continuous in a rectangle containing , then there exists a unique local solution through that point.

Interpretation

  • Continuity of supports existence.

  • Reasonable smoothness in supports uniqueness.

Example of non-uniqueness

Consider

The constant solution works, but nonzero solutions can also be patched through the same initial point. So uniqueness fails.

This is a warning that a differential equation can look harmless and still fail to determine a single trajectory.


Modeling patterns

First-order ODEs appear naturally in rate laws where the rate of change depends on the current state.

Exponential growth and decay

If a quantity changes proportionally to itself:

then

Interpretation:

  • : growth

  • : decay

Applications:

  • Population growth

  • Radioactive decay

  • Compound interest in continuous form

Newton's law of cooling

If an object's temperature moves toward ambient temperature :

Then

Mixing problems

If a tank has inflow and outflow, a common model is

where is the amount of substance in the tank.

These often reduce to linear first-order equations after expressing concentration as amount divided by volume.


Problem-solving workflow

When facing a first-order ODE, classification is the main step.

Fast recognition checklist

Ask these questions in order:

  1. Can the variables be separated?

  2. Can it be written as ?

  3. Can it be written as , and is it exact?

  4. Does it depend only on ?

  5. Is it Bernoulli?

  6. Is it autonomous, so a phase-line analysis helps even if explicit solving is hard?

Practical workflow

  1. Rewrite the equation into a recognizable form.

  2. Classify the type before doing algebra.

  3. Apply the matching method cleanly.

  4. Use the initial condition only after obtaining the general solution.

  5. Check the domain and any excluded values.

  6. Verify by differentiating and substituting back if the algebra was heavy.

Strategy note

Many errors happen because a student starts manipulating symbols before identifying the equation type. Classification usually matters more than raw integration skill.


Common pitfalls

  • Treating a nonlinear equation as if the superposition principle applies. It does not.

  • Forgetting equilibrium solutions when separating variables and dividing by an expression involving .

  • Using the integrating factor method before first putting the equation in standard linear form.

  • Confusing first-order homogeneous equations with higher-level linear algebra notions of homogeneous systems.

  • Losing absolute values when integrating expressions like .

  • Solving implicitly and then making invalid algebraic moves to force an explicit formula.

  • Ignoring interval restrictions caused by denominators, logarithms, or square roots.

  • Assuming existence implies uniqueness.


Formula sheet

Core forms

Separable:

Linear:

Exact:

Homogeneous:

Bernoulli:

Autonomous:

Key tools

Integrating factor for linear equations:

Exactness test:

Homogeneous substitution:

Bernoulli substitution:

High-yield reminders

  • First classify, then solve.

  • Check for constant solutions.

  • Use the initial condition after the general solution is found.

  • Verify important answers by substitution.

Sources