First-Order Differential Equations
First-Order Differential Equations: Separation and Integrating Factors
A first-order differential equation contains a function and its first derivative. Two useful solution methods are separation of variables, which rearranges an equation so that each variable appears on a different side, and the integrating-factor method, which solves first-order linear equations.
An initial value problem (IVP) includes a condition specifying the value of the unknown function at a particular input. That condition determines the constant of integration in the general solution.
1. Separable Differential Equations
A differential equation is separable when it can be rearranged into the form
The variables are separated by placing all expressions involving y with dy on one side, and all expressions involving x with dx on the other. Integrating both sides then gives a relationship between x and y.
Worked example
Solve the initial value problem
Step 1: Separate the variables
Multiply both sides by y+1 and divide by x2:
Multiplying by dx gives
The y-expression and the x-expression are now on separate sides.
Step 2: Decompose the rational function
The denominator contains a linear factor, x+1, and a repeated linear factor, x2. Therefore, use the partial-fraction form
Multiplying through by x2(x+1) gives
Equating coefficients of like powers of x gives
Thus,
so the decomposition is
Step 3: Integrate both sides
Integrating the separated equation gives
Therefore,
The term x2 results from integrating −x22.
Step 4: Apply the initial condition
Substitute x=1 and y=1:
Since ln1=0,
and hence
The solution is therefore
This is an implicit solution: it gives a relationship between x and y without isolating y. Near the initial point x=1, the logarithms can be written without absolute-value signs because x and x+1 are positive there.
The original equation is undefined at x=0, x=−1, and y=−1. Any solution must remain in a region where the original equation is defined.
2. First-Order Linear Differential Equations
A first-order linear differential equation has the standard form
Its integrating factor is
Multiplying the equation by μ(x) makes its left side the derivative of a product:
Consequently, the equation becomes
Integrating both sides yields
so the general solution is
Worked example
Solve the initial value problem
Because lnx appears, the problem is considered for x>0.
Step 1: Put the equation in standard form
Divide every term by x2:
Thus,
Step 2: Find the integrating factor
for x>0.
Multiplying the standard-form equation by x3 gives
The left side is the derivative of x3y:
Step 3: Integrate
Integrating both sides gives
The first integral requires integration by parts. Let
so that
Using ∫udv=uv−∫vdu,
Also,
Therefore,
Dividing by x3 gives the general solution
Step 4: Apply the initial condition
Substitute x=1 and y=0:
Since ln1=0,
so
The solution to the IVP is
3. Choosing and Applying the Methods
Separation of variables
Use separation when the equation can be rearranged so that all y-dependent terms multiply dy and all x-dependent terms multiply dx. The first example separates directly after multiplying by y+1 and dividing by x2.
Integrating factors
Use an integrating factor when the equation can be written in the linear form
The equation must first be divided as needed to make the coefficient of dxdy equal to 1. The integrating factor then converts the left side into the derivative of a product.
Using an initial condition
Both methods first produce a family of solutions containing an arbitrary constant C. Substituting the given pair (x,y) into the general solution determines C and identifies the specific solution to the initial value problem.
Integration techniques
The algebraic form of an integral determines the integration technique:
Partial fractions simplify rational expressions whose denominators factor into linear or repeated factors.
Integration by parts is useful for products such as x5lnx.
Term-by-term integration applies to sums, so each term can be integrated separately.
In either method, the final solution must satisfy both the differential equation and the initial condition, while remaining in a domain where the original equation is defined.

Ask anything
We've read this whole study set, so questions about it get the best answers.