First-order methods
Separable, linear, exact and transformable first-order ODE methods.
This page solves first-order equations by recognising a structure that can be integrated directly: separable, linear or exact. Substitutions handle equations that reduce to one of these three.
The three tests are independent rather than mutually exclusive, so one equation can pass more than one. The method-selection workflow gives the order in which to try them and the equations produced in modelling with first-order equations need the same check.
Separable equations
Separable equation
A first-order ODE is separable when it can be written as
On an interval where , the variables can be placed on opposite sides. Zeros of must be checked before division because they may give constant solutions that the separated calculation does not contain.
Separation of variables
To solve on a branch where :
- Write .
- Integrate both sides:
- Apply initial or boundary data and state the interval or branch on which the result is valid.
- Check separately any constant solutions arising from .
The result is often implicit. Taking logarithms can hide a sign choice and the initial data select the branch, subject to the hypotheses in existence, uniqueness and linear operators.
Exponential growth with an initial value
For
the initial value is nonzero, so separate on the branch :
Therefore
Since , the positive branch is selected and the constant is zero:
[routine]
A lost equilibrium and a real-domain restriction
For
the nonconstant solutions on a real branch satisfy
Integration gives
The square root requires . Because takes values in , the implicit relation describes a branch only while stays in that range.
The constant solutions and were lost on division. At a point where a nonconstant branch reaches either level, it can also join a constant branch: the right side is zero there and uniqueness is not guaranteed at .
[exam]
A family of circles
For
multiply by and integrate:
After absorbing the factor of into the constant,
The solution curves are circles, but the original differential equation is undefined when . Thus a circle is represented by an upper or lower graph branch on an interval that does not cross its points on the -axis. The initial points , and select respectively
[routine]
First-order linear equations
When the variables cannot be separated, test next whether the equation is linear in . Mixing and cooling laws in modelling with first-order equations lead to this case.
First-order linear equation
A first-order linear ODE in normal form is
The term couples to , so direct integration of and separately does not solve the equation. An integrating factor makes the left side a product-rule derivative.
Integrating factor
For on an interval where and are continuous:
- Choose
- Since , multiply the equation by :
- Integrate:
- Divide by :
The integrating factor is not a new solution of the ODE; it is chosen to produce the product rule. If the coefficient of is not , first divide by it on an interval where it is nonzero.
[routine]
A standard first-order linear equation
For
the integrating factor is . Multiplication gives
Therefore
so
[routine]
A singular normal form with a smooth continuation
For
divide by only on or :
On either interval, an integrating factor is
Multiplying by a nonzero constant does not change an integrating factor, so we may take on each chosen interval. Then
Thus
The normalised equation is valid only for , but the original equation at still imposes . Choosing gives
by continuous extension. Other values of do not extend continuously through , so the interval restriction created by division must still be reported.
[exam]
Exact equations
When the equation is neither separable nor linear, test whether is a total differential. If the test fails, try a substitution or a numerical method.
Exact differential equation
An equation in differential form
is exact on a domain when there is a potential function such that
Here means differentiate with respect to while holding fixed, and means differentiate with respect to while holding fixed. The later multivariable-calculus chapter develops this notation and the level-curve geometry in more detail.
Along a curve , the differential equation becomes
A potential turns this into the statement that is constant along the curve, as shown after the theorem below.
The exactness test and potential
Suppose and have continuous first partial derivatives on an open simply connected domain . If
throughout , then the equation has a potential on and its solution curves satisfy
Matching partial derivatives guarantees a single-valued potential on a simply connected domain, while holes in the domain can obstruct a global potential.
One direction is short. If a potential exists and have continuous first partial derivatives, then equality of mixed partials gives
so is necessary. The converse is the substantive part of the theorem: the simply connected hypothesis rules out holes that can prevent locally compatible derivatives from coming from one global potential. The course uses the theorem as a test rather than developing the line-integral theory behind that global step.
In practice, the construction below produces a candidate directly and checking and verifies it without that further theory. Once a potential is known, along a solution curve the chain rule gives
Therefore is constant along each solution curve, so the curves are level curves . This explains why a potential solves the ODE, not why one exists.
Level curves connect exact equations to gradients. In two variables, the gradient is the vector of partial derivatives, . At a regular point of a level curve (where this vector is nonzero), it is normal to the curve. Since , the equation says that the graph's tangent direction is perpendicular to the gradient. An exact equation is therefore a level-curve problem whose slope field is orthogonal to the gradient. Points where need separate attention. The multivariable-calculus chapter develops this geometry further.
Constructing the potential
To solve an exact equation:
- Check that on the domain.
- Integrate with respect to , treating as constant:
- Differentiate this expression with respect to .
- Match with to determine .
- Write the implicit solution as .
The arbitrary function is needed because integration with respect to leaves every function of unchanged. Omitting it can make the final expression fail to reproduce .
A polynomial potential
For
we have
so the equation is exact. Integrate with respect to :
Then
which gives and hence . The implicit general solution is
[routine]
A potential involving hyperbolic functions
Rewrite
as
Here
Integrating with respect to gives
Matching
gives . Therefore
[exam]
If the partial derivatives do not match, the equation is not exact in its current form. It may still be solvable by separation, a substitution or an integrating factor, but the exact method needs the equation to be changed first.
Homogeneous substitutions
When none of these structures is visible, a change of variables may reveal one. A degree-zero ratio calls for and a power calls for the Bernoulli substitution below. Either way, the substitution turns the equation into an earlier case rather than starting a new family.
Homogeneous function
A function is homogeneous of degree when
for nonzero scalars wherever both sides are defined.
When the right side of is homogeneous of degree , scaling leaves it unchanged. On a suitable domain, it can therefore be expressed as a function of , which suggests the substitution .
- [1]:The substitution
The substitution
For an equation of the form
set . Then
so
The resulting equation is separable on an interval where and the required denominators are nonzero.
The substitution works because becomes . The point is excluded from the interval used for the substitution unless the original equation is analysed separately there.
A degree-zero right side
For
solve for the derivative:
The right side is homogeneous of degree . Work on an interval where and , so the displayed normal form and the substitution are valid. Put , so . Substitution gives
and, after division by ,
Separate and integrate:
Exponentiating gives . The sign of is fixed on the chosen interval, so that sign can be absorbed into the constant. Substituting gives the equivalent implicit solution
on a chosen interval with and . Differentiating this relation gives
which is equivalent to the original equation.
[exam]
- [1]:The substitution
Bernoulli equations
The substitution uses scaling in both variables. A Bernoulli substitution instead changes the dependent variable so that a nonlinear power becomes a first-order linear equation.
Bernoulli equation
A Bernoulli equation has the form
The cases and are already first-order linear equations. For , the nonlinear power can be converted into a new dependent variable on a real branch where the required powers of are defined.
The Bernoulli substitution
For a Bernoulli equation, on a nonzero real branch where is defined, set
Since
multiplying the equation by gives the linear equation
Solve this equation with an integrating factor, then substitute back. Check separately because the substitution divides by a power of ; it is an admissible solution only when the original equation is defined there and both sides agree.
A Bernoulli equation with a zero solution
For
use on a nonzero branch. Since , multiplying by and rearranging gives
The integrating factor is , so
Thus
or, on intervals where the right side gives a real nonzero solution,
These real branches require and . The solution is also present in the original equation but is not represented by .
[exam]