First-Order Differential Equations
First-Order, First-Degree Differential Equations
A first-order, first-degree differential equation involves a first derivative, and that derivative appears to the first power. Several common forms can be solved by identifying the equation’s structure and applying the corresponding method:
Exact equations are solved by finding a potential function.
Non-exact equations may become exact after multiplication by an integrating factor.
Linear equations are solved using an integrating factor.
Reducible equations are changed into linear equations by substitution.
Bernoulli equations are nonlinear equations that can be transformed into linear equations.
Exact Differential Equations
Form and exactness condition
An equation in the form
is exact when
Here, M and N are functions of both x and y. The condition means that there is a potential function F(x,y) whose partial derivatives are
The solution is then the level-curve equation
where C is an arbitrary constant.
A reliable way to solve an exact equation
Identify M as the coefficient of dx and N as the coefficient of dy.
Check whether My=Nx.
Integrate M with respect to x, treating y as constant:
F(x,y)=∫M(x,y)dx+g(y).The term g(y) is needed because integration with respect to x can leave an unknown function of y.
Differentiate this result with respect to y and set it equal to N:
Fy=N.This determines g(y).
Write the solution as F(x,y)=C.
An equivalent method begins by integrating N with respect to y and then determining the missing function of x using Fx=M.
When integrating with respect to x, terms depending only on y behave as constants. When integrating with respect to y, terms depending only on x behave as constants. The full potential-function method is safer than simply discarding terms that contain the other variable.
Example: checking exactness and finding the solution
Consider
Thus,
The partial derivatives are
The equation is exact. Integrating M with respect to x gives
Differentiating with respect to y gives
Since this must equal N, g′(y)=0, so g(y) is absorbed into the arbitrary constant. Therefore,
Example: logarithmic and trigonometric terms
For
the coefficients are
Their partial derivatives are
so the equation is exact. Integrating M with respect to x gives
Differentiation with respect to y shows that g′(y)=0. Hence,
Example: exponential terms and the product rule
Consider
Here,
The equation is exact. Integrating M with respect to x gives
because the derivative of xy2 with respect to x is y2. Now,
Matching this with N gives g′(y)=−3y2, so g(y)=−y3. The solution is
Non-Exact Equations and Integrating Factors
General strategy
An equation
is non-exact if
An integrating factor is a nonzero function that, when multiplied through the equation, makes the resulting equation exact.
A typical procedure is:
Calculate My and Nx to check exactness.
If the equation is non-exact, test the standard integrating-factor rules below.
Multiply every term of the equation by the integrating factor.
Solve the resulting exact equation.
Four useful integrating-factor rules
For Mdx+Ndy=0:
If
NMy−Nx=f(x),where the result depends only on x, then an integrating factor is
μ(x)=e∫f(x)dx.If
MNx−My=g(y),where the result depends only on y, then an integrating factor is
μ(y)=e∫g(y)dy.If M has the structure yf(xy) and N has the structure xg(xy), then, where the denominator is nonzero,
μ(x,y)=xM−yN1.If M and N are homogeneous functions of the same degree, then, where the denominator is nonzero,
μ(x,y)=xM+yN1.In practice, this rule is often recognized when dy/dx=−M/N is homogeneous.
The first two rules require the indicated quotient to depend on only one variable. If it still depends on both variables, that rule does not apply.
Example: an integrating factor depending on x
Consider
Here,
The partial derivatives are
so the equation is not exact. The quotient in the first rule is
This depends only on x, so
After multiplication, the equation becomes
which is exact. Integrating the coefficient of dx with respect to x, treating y as constant, gives
Thus, the solution is
The exponential term can be integrated by using the substitution u=x−3, for which du=−3x−4dx.
Example: an integrating factor depending on y
Consider
The partial derivatives are
The quotient
simplifies to −4/y. Since this depends only on y, the second rule gives
After multiplying by y−4, the coefficients become
The equation is now exact. Integrating M with respect to x yields
Therefore,
Example: an integrating factor from the structure of M and N
Consider
The coefficient of dx is y multiplied by a function of xy, and the coefficient of dy is x multiplied by a function of xy. Rule 3 applies:
In this case,
so
After multiplication, the equation becomes
The potential function can be obtained by integrating the dx coefficient with respect to x and including the y-only term from the dy coefficient. The result is
Example: a homogeneous equation
Consider
Both coefficients are homogeneous polynomials of degree 4. Thus,
Since
the integrating factor is
The multiplied equation is
It is exact, and integrating the dx coefficient with respect to x gives
Linear Differential Equations
Linear equation with y as the dependent variable
The standard form is
where y is the dependent variable and x is the independent variable. Its integrating factor is
Multiplying the equation by μ makes its left-hand side a product derivative:
Consequently, the solution is
The dependent variable is multiplied by the integrating factor on the left. The right-hand side is integrated with respect to the independent variable.
Example
For
the coefficient is P(x)=4x/(x2+1). Therefore,
The solution formula gives
Hence,
Linear equation with x as the dependent variable
An equation can instead be linear in x:
Here x is dependent and y is independent. The integrating factor is
and the solution is
It is the role of a variable as dependent or independent—not its name—that determines how the formula is used.
Example
Consider
The identity
reduces the coefficient of x to secy. The integrating factor is
Multiplication by this factor simplifies the right-hand side to 2y, so
Thus,
Equations Reducible to Linear Form
Some equations are not initially linear but become linear after a substitution. The key is to recognize a function and its derivative appearing together.
Substitution involving a function of y
Suppose the equation has the structure
Set
By the chain rule,
The equation becomes
which is linear in t.
Substitution involving a function of x
If the equation has the structure
set
The chain rule gives
so the equation becomes
In both cases, the substitution is differentiated with respect to the independent variable.
Example: setting t=y2
Consider
The expressions y2 and ydy/dx suggest setting
Differentiating with respect to x gives
so ydy/dx=21dt/dx. Substitution and multiplication by 2 give
This is linear in t. Its integrating factor is
Therefore,
Using t=y2, the solution is
Example: setting t=xex
Suppose an equation is written in the form
The expression xex has derivative
This indicates the substitution
Differentiating with respect to y gives
The equation becomes
Its integrating factor is e−y. Thus,
Substituting t=xex gives
Bernoulli Differential Equations
Standard form and substitution
A Bernoulli equation has the form
For n=0 and n=1, divide through by yn:
Set
Then
Multiplying the divided equation by 1−n gives the linear equation
This can be solved using the standard linear-equation method. The cases n=0 and n=1 are already linear (or simplify directly), so they do not require the Bernoulli substitution.
Example: a Bernoulli equation in r
Consider
The dependent variable r appears once with power 1 and once with power 2, so this is a Bernoulli equation with n=2. Rearranging and dividing by r2 gives
Use the substitution
Then
and the equation becomes
The integrating factor is
Therefore,
Substituting t=−1/r gives
Bernoulli equation with x dependent on y
Bernoulli equations can also be linearized when x is the dependent variable. For example, suppose
Here x is dependent, y is independent, and the equation has Bernoulli exponent n=2. Dividing by x2 gives
Set
Since
the equation becomes
Its integrating factor is
Thus,
To evaluate the integral, set u=y2/2, so that ydy=du and y2=2u. Then
The resulting solution is
Choosing a Method
A useful way to organize the solution process is:
Write the equation in a recognizable form. For exactness and many integrating-factor rules, use Mdx+Ndy=0.
Check whether it is exact. Compare My with Nx.
If non-exact, test for an integrating factor. Check whether the relevant quotient depends only on x or only on y, or whether a structural or homogeneous rule applies.
Look for linear form. Identify the dependent variable and arrange the equation as a first-order linear equation in that variable.
Look for a useful substitution. A function and its derivative occurring together often indicate that a substitution can make the equation linear.
For a Bernoulli equation, use the substitution t=y1−n after dividing by yn.
Use the independent variable for differentiation and integration. For example, an equation linear in x as a function of y is integrated with respect to y.
Include the arbitrary constant. A solution without specified initial values is a general solution, represented by a family of curves indexed by C.
A particular solution is obtained when an initial or boundary condition is supplied and used to determine the constant C.

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