First-Order ODEs
First-order ordinary differential equations (ODEs) involve an unknown function $y(x)$ and its first derivative $y'$. 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.
1. What a first-order ODE is
A first-order ODE is any equation of the form
or, when solved for the derivative,
where $y$ is an unknown function of $x$.
Ordinary vs. partial
An ordinary differential equation involves derivatives with respect to one independent variable.
A partial differential equation involves partial derivatives with respect to multiple variables.
Order
The order of a differential equation is the highest derivative that appears. For a first-order ODE, the highest derivative is $y'$.
Linear vs. nonlinear
A first-order ODE is linear if it can be written as
and nonlinear otherwise.
Examples:
Linear: $y' + 3y = e^x$
Nonlinear: $y' = y^2 - x$
Nonlinear: $xy' + y = \sin(y)$
2. 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 $y(1)=5$, then
so the particular solution is
Direction fields
For
the value of $f(x,y)$ gives the slope of the solution curve through the point $(x,y)$. 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
Interactive visual
Slope field and solution
Move the initial value to see how the solution curve follows the same slope field.
3. 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
Rewrite the equation so all $y$ terms are with $dy$ and all $x$ terms are with $dx$.
Integrate both sides.
Solve explicitly for $y$ if possible.
Use the initial condition.
Check for constant solutions that may have been lost when dividing by $h(y)$.
Example
Solve
Separate:
Integrate:
Exponentiate:
where the constant has been renamed.
Logistic equation
One of the most important separable models is
where:
$P(t)$ is population
$r$ is intrinsic growth rate
$K$ is carrying capacity
Key behavior:
If $0 < P < K$, then $P$ grows.
If $P > K$, then $P$ decreases.
Equilibria occur at $P=0$ and $P=K$.
Its explicit solution is
for a constant $A$ determined by the initial condition.
4. 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 $\mu(x)$ 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 $p(x)$, not on $q(x)$.
The equation must first be put into the exact linear form $y' + p(x)y = q(x)$.
Do not forget to divide by $\mu(x)$ at the end.
5. Exact equations
An equation of the form
is exact if there exists a potential function $\Psi(x,y)$ such that
Then the solution is
Test for exactness
If $M$ and $N$ have continuous first partial derivatives, test whether
If this holds on a region, the equation is exact there.
Solution procedure
Verify exactness.
Integrate $M(x,y)$ with respect to $x$:
Differentiate that expression with respect to $y$.
Match it to $N(x,y)$ to determine $g(y)$.
Write $\Psi(x,y)=C$.
Example
Solve
Here
Check:
so the equation is exact.
Integrate $M$ with respect to $x$:
Differentiate with respect to $y$:
Match with $N$:
Thus
So the implicit solution is
6. Homogeneous first-order equations
A first-order ODE of the form
is called homogeneous in the first-order sense.
The substitution
or equivalently $v = y/x$ turns it into a separable equation.
Since
the equation becomes
which can be rearranged into a separable form.
Example pattern
If
set $y=vx$. Then
so
and therefore
Returning to $y$:
7. Bernoulli equations
A Bernoulli equation has the form
with $n \neq 0,1$.
It is nonlinear, but becomes linear after the substitution
Derivation
Differentiate:
After multiplying the original equation by $y^{-n}$, the equation becomes linear in $u$.
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.
8. 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 $y=y^$ satisfies this, then the constant function $y(t)=y^$ is a solution.
Stability
For autonomous equations, equilibrium points can often be classified from the sign of $f(y)$:
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
Find equilibrium values by solving $f(y)=0$.
Mark them on a number line.
Determine the sign of $f(y)$ on each interval.
Use the sign to infer whether $y$ increases or decreases.
This gives the long-term behavior without solving explicitly.
9. Existence and uniqueness
For an IVP
two separate questions matter:
Does a solution exist?
Is it unique?
Practical theorem
If $f(x,y)$ and $\partial f/\partial y$ are continuous in a rectangle containing $(x_0,y_0)$, then there exists a unique local solution through that point.
Interpretation
Continuity of $f$ supports existence.
Reasonable smoothness in $y$ supports uniqueness.
Example of non-uniqueness
Consider
The constant solution $y=0$ 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.
10. 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:
$k>0$: growth
$k<0$: decay
Applications:
Population growth
Radioactive decay
Compound interest in continuous form
Newton's law of cooling
If an object's temperature $T$ moves toward ambient temperature $T_a$:
Then
Mixing problems
If a tank has inflow and outflow, a common model is
where $Q(t)$ is the amount of substance in the tank.
These often reduce to linear first-order equations after expressing concentration as amount divided by volume.
11. Problem-solving workflow
When facing a first-order ODE, classification is the main step.
Fast recognition checklist
Ask these questions in order:
Can the variables be separated?
Can it be written as $y' + p(x)y = q(x)$?
Can it be written as $M\,dx + N\,dy = 0$, and is it exact?
Does it depend only on $y/x$?
Is it Bernoulli?
Is it autonomous, so a phase-line analysis helps even if explicit solving is hard?
Practical workflow
Rewrite the equation into a recognizable form.
Classify the type before doing algebra.
Apply the matching method cleanly.
Use the initial condition only after obtaining the general solution.
Check the domain and any excluded values.
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.
12. 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 $y$.
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 $\int \frac{1}{y}\,dy$.
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.
13. 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
Stewart, Calculus: Early Transcendentals
Lay, Linear Algebra and Its Applications
Rosen, Discrete Mathematics and Its Applications
Boyce and DiPrima, Elementary Differential Equations and Boundary Value Problems
Blitzstein and Hwang, Introduction to Probability