1. Home
  2. Explore
  3. Mathematics
  4. First-Order Differential Equations

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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

M(x,y) dx+N(x,y) dy=0M(x,y)\,dx+N(x,y)\,dy=0M(x,y)dx+N(x,y)dy=0

is exact when

∂M∂y=∂N∂x.\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}.∂y∂M​=∂x∂N​.

Here, MMM and NNN are functions of both xxx and yyy. The condition means that there is a potential function F(x,y)F(x,y)F(x,y) whose partial derivatives are

∂F∂x=M,∂F∂y=N.\frac{\partial F}{\partial x}=M, \qquad \frac{\partial F}{\partial y}=N.∂x∂F​=M,∂y∂F​=N.

The solution is then the level-curve equation

F(x,y)=C,F(x,y)=C,F(x,y)=C,

where CCC is an arbitrary constant.

A reliable way to solve an exact equation

  1. Identify MMM as the coefficient of dxdxdx and NNN as the coefficient of dydydy.

  2. Check whether My=NxM_y=N_xMy​=Nx​.

  3. Integrate MMM with respect to xxx, treating yyy as constant:

    F(x,y)=∫M(x,y) dx+g(y).F(x,y)=\int M(x,y)\,dx+g(y).F(x,y)=∫M(x,y)dx+g(y).

    The term g(y)g(y)g(y) is needed because integration with respect to xxx can leave an unknown function of yyy.

  4. Differentiate this result with respect to yyy and set it equal to NNN:

    Fy=N.F_y=N.Fy​=N.

    This determines g(y)g(y)g(y).

  5. Write the solution as F(x,y)=CF(x,y)=CF(x,y)=C.

An equivalent method begins by integrating NNN with respect to yyy and then determining the missing function of xxx using Fx=MF_x=MFx​=M.

When integrating with respect to xxx, terms depending only on yyy behave as constants. When integrating with respect to yyy, terms depending only on xxx 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

(ycos⁡x+sin⁡y+y) dx+(sin⁡x+xcos⁡y+x) dy=0.\bigl(y\cos x+\sin y+y\bigr)\,dx + \bigl(\sin x+x\cos y+x\bigr)\,dy=0.(ycosx+siny+y)dx+(sinx+xcosy+x)dy=0.

Thus,

M=ycos⁡x+sin⁡y+y,N=sin⁡x+xcos⁡y+x.M=y\cos x+\sin y+y, \qquad N=\sin x+x\cos y+x.M=ycosx+siny+y,N=sinx+xcosy+x.

The partial derivatives are

My=cos⁡x+cos⁡y+1,Nx=cos⁡x+cos⁡y+1.M_y=\cos x+\cos y+1, \qquad N_x=\cos x+\cos y+1.My​=cosx+cosy+1,Nx​=cosx+cosy+1.

The equation is exact. Integrating MMM with respect to xxx gives

F(x,y)=ysin⁡x+xsin⁡y+xy+g(y).F(x,y)=y\sin x+x\sin y+xy+g(y).F(x,y)=ysinx+xsiny+xy+g(y).

Differentiating with respect to yyy gives

Fy=sin⁡x+xcos⁡y+x+g′(y).F_y=\sin x+x\cos y+x+g'(y).Fy​=sinx+xcosy+x+g′(y).

Since this must equal NNN, g′(y)=0g'(y)=0g′(y)=0, so g(y)g(y)g(y) is absorbed into the arbitrary constant. Therefore,

ysin⁡x+xsin⁡y+xy=C.y\sin x+x\sin y+xy=C.ysinx+xsiny+xy=C.

Example: logarithmic and trigonometric terms

For

[y(1+1x)+cos⁡y]dx+[x+ln⁡∣x∣−xsin⁡y]dy=0,\left[y\left(1+\frac{1}{x}\right)+\cos y\right]dx + \left[x+\ln|x|-x\sin y\right]dy=0,[y(1+x1​)+cosy]dx+[x+ln∣x∣−xsiny]dy=0,

the coefficients are

M=y(1+1x)+cos⁡y,N=x+ln⁡∣x∣−xsin⁡y.M=y\left(1+\frac{1}{x}\right)+\cos y, \qquad N=x+\ln|x|-x\sin y.M=y(1+x1​)+cosy,N=x+ln∣x∣−xsiny.

Their partial derivatives are

My=1+1x−sin⁡y,Nx=1+1x−sin⁡y,M_y=1+\frac{1}{x}-\sin y, \qquad N_x=1+\frac{1}{x}-\sin y,My​=1+x1​−siny,Nx​=1+x1​−siny,

so the equation is exact. Integrating MMM with respect to xxx gives

F(x,y)=yx+yln⁡∣x∣+xcos⁡y+g(y).F(x,y)=yx+y\ln|x|+x\cos y+g(y).F(x,y)=yx+yln∣x∣+xcosy+g(y).

Differentiation with respect to yyy shows that g′(y)=0g'(y)=0g′(y)=0. Hence,

yx+yln⁡∣x∣+xcos⁡y=C.yx+y\ln|x|+x\cos y=C.yx+yln∣x∣+xcosy=C.

Example: exponential terms and the product rule

Consider

(y2exy2+4x3)dx+(2xy exy2−3y2)dy=0.\left(y^2e^{xy^2}+4x^3\right)dx + \left(2xy\,e^{xy^2}-3y^2\right)dy=0.(y2exy2+4x3)dx+(2xyexy2−3y2)dy=0.

Here,

My=2y exy2+2xy3exy2,Nx=2y exy2+2xy3exy2.M_y=2y\,e^{xy^2}+2xy^3e^{xy^2}, \qquad N_x=2y\,e^{xy^2}+2xy^3e^{xy^2}.My​=2yexy2+2xy3exy2,Nx​=2yexy2+2xy3exy2.

The equation is exact. Integrating MMM with respect to xxx gives

F(x,y)=exy2+x4+g(y),F(x,y)=e^{xy^2}+x^4+g(y),F(x,y)=exy2+x4+g(y),

because the derivative of xy2xy^2xy2 with respect to xxx is y2y^2y2. Now,

Fy=2xy exy2+g′(y).F_y=2xy\,e^{xy^2}+g'(y).Fy​=2xyexy2+g′(y).

Matching this with NNN gives g′(y)=−3y2g'(y)=-3y^2g′(y)=−3y2, so g(y)=−y3g(y)=-y^3g(y)=−y3. The solution is

exy2+x4−y3=C.e^{xy^2}+x^4-y^3=C.exy2+x4−y3=C.

Non-Exact Equations and Integrating Factors

General strategy

An equation

M(x,y) dx+N(x,y) dy=0M(x,y)\,dx+N(x,y)\,dy=0M(x,y)dx+N(x,y)dy=0

is non-exact if

My≠Nx.M_y\ne N_x.My​=Nx​.

An integrating factor is a nonzero function that, when multiplied through the equation, makes the resulting equation exact.

A typical procedure is:

  1. Calculate MyM_yMy​ and NxN_xNx​ to check exactness.

  2. If the equation is non-exact, test the standard integrating-factor rules below.

  3. Multiply every term of the equation by the integrating factor.

  4. Solve the resulting exact equation.

Four useful integrating-factor rules

For M dx+N dy=0M\,dx+N\,dy=0Mdx+Ndy=0:

  1. If

    My−NxN=f(x),\frac{M_y-N_x}{N}=f(x),NMy​−Nx​​=f(x),

    where the result depends only on xxx, then an integrating factor is

    μ(x)=e∫f(x) dx.\mu(x)=e^{\int f(x)\,dx}.μ(x)=e∫f(x)dx.
  2. If

    Nx−MyM=g(y),\frac{N_x-M_y}{M}=g(y),MNx​−My​​=g(y),

    where the result depends only on yyy, then an integrating factor is

    μ(y)=e∫g(y) dy.\mu(y)=e^{\int g(y)\,dy}.μ(y)=e∫g(y)dy.
  3. If MMM has the structure yf(xy)y f(xy)yf(xy) and NNN has the structure xg(xy)x g(xy)xg(xy), then, where the denominator is nonzero,

    μ(x,y)=1xM−yN.\mu(x,y)=\frac{1}{xM-yN}.μ(x,y)=xM−yN1​.
  4. If MMM and NNN are homogeneous functions of the same degree, then, where the denominator is nonzero,

    μ(x,y)=1xM+yN.\mu(x,y)=\frac{1}{xM+yN}.μ(x,y)=xM+yN1​.

    In practice, this rule is often recognized when dy/dx=−M/Ndy/dx=-M/Ndy/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 xxx

Consider

(xy2−e1/x3)dx−x2y dy=0.\left(xy^2-e^{1/x^3}\right)dx-x^2y\,dy=0.(xy2−e1/x3)dx−x2ydy=0.

Here,

M=xy2−e1/x3,N=−x2y.M=xy^2-e^{1/x^3}, \qquad N=-x^2y.M=xy2−e1/x3,N=−x2y.

The partial derivatives are

My=2xy,Nx=−2xy,M_y=2xy, \qquad N_x=-2xy,My​=2xy,Nx​=−2xy,

so the equation is not exact. The quotient in the first rule is

My−NxN=4xy−x2y=−4x.\frac{M_y-N_x}{N} = \frac{4xy}{-x^2y} = -\frac{4}{x}.NMy​−Nx​​=−x2y4xy​=−x4​.

This depends only on xxx, so

μ(x)=e∫−4/x dx=x−4.\mu(x)=e^{\int -4/x\,dx}=x^{-4}.μ(x)=e∫−4/xdx=x−4.

After multiplication, the equation becomes

(y2x3−e1/x3x4)dx−yx2 dy=0,\left(\frac{y^2}{x^3}-\frac{e^{1/x^3}}{x^4}\right)dx -\frac{y}{x^2}\,dy=0,(x3y2​−x4e1/x3​)dx−x2y​dy=0,

which is exact. Integrating the coefficient of dxdxdx with respect to xxx, treating yyy as constant, gives

−y22x2+13e1/x3.-\frac{y^2}{2x^2}+\frac{1}{3}e^{1/x^3}.−2x2y2​+31​e1/x3.

Thus, the solution is

−y22x2+13e1/x3=C.-\frac{y^2}{2x^2}+\frac{1}{3}e^{1/x^3}=C.−2x2y2​+31​e1/x3=C.

The exponential term can be integrated by using the substitution u=x−3u=x^{-3}u=x−3, for which du=−3x−4dxdu=-3x^{-4}dxdu=−3x−4dx.

Example: an integrating factor depending on yyy

Consider

(2xy4ey+2xy3+y)dx+(x2y4ey−x2y2−3x)dy=0.\left(2xy^4e^y+2xy^3+y\right)dx + \left(x^2y^4e^y-x^2y^2-3x\right)dy=0.(2xy4ey+2xy3+y)dx+(x2y4ey−x2y2−3x)dy=0.

The partial derivatives are

My=2xy4ey+8xy3ey+6xy2+1,M_y=2xy^4e^y+8xy^3e^y+6xy^2+1,My​=2xy4ey+8xy3ey+6xy2+1,
Nx=2xy4ey−2xy2−3.N_x=2xy^4e^y-2xy^2-3.Nx​=2xy4ey−2xy2−3.

The quotient

Nx−MyM\frac{N_x-M_y}{M}MNx​−My​​

simplifies to −4/y-4/y−4/y. Since this depends only on yyy, the second rule gives

μ(y)=e∫−4/y dy=y−4.\mu(y)=e^{\int -4/y\,dy}=y^{-4}.μ(y)=e∫−4/ydy=y−4.

After multiplying by y−4y^{-4}y−4, the coefficients become

M~=2xey+2xy+1y3,\widetilde M=2xe^y+\frac{2x}{y}+\frac{1}{y^3},M=2xey+y2x​+y31​,
N~=x2ey−x2y2−3xy4.\widetilde N=x^2e^y-\frac{x^2}{y^2}-\frac{3x}{y^4}.N=x2ey−y2x2​−y43x​.

The equation is now exact. Integrating M~\widetilde MM with respect to xxx yields

x2ey+x2y+xy3.x^2e^y+\frac{x^2}{y}+\frac{x}{y^3}.x2ey+yx2​+y3x​.

Therefore,

x2ey+x2y+xy3=C.x^2e^y+\frac{x^2}{y}+\frac{x}{y^3}=C.x2ey+yx2​+y3x​=C.

Example: an integrating factor from the structure of MMM and NNN

Consider

y(x2y2+2)dx+x(2−2x2y2)dy=0.y\left(x^2y^2+2\right)dx + x\left(2-2x^2y^2\right)dy=0.y(x2y2+2)dx+x(2−2x2y2)dy=0.

The coefficient of dxdxdx is yyy multiplied by a function of xyxyxy, and the coefficient of dydydy is xxx multiplied by a function of xyxyxy. Rule 3 applies:

μ=1xM−yN.\mu=\frac{1}{xM-yN}.μ=xM−yN1​.

In this case,

xM−yN=3x3y3,xM-yN=3x^3y^3,xM−yN=3x3y3,

so

μ=13x3y3.\mu=\frac{1}{3x^3y^3}.μ=3x3y31​.

After multiplication, the equation becomes

(13x+23x3y2)dx+(23x2y3−23y)dy=0.\left(\frac{1}{3x}+\frac{2}{3x^3y^2}\right)dx + \left(\frac{2}{3x^2y^3}-\frac{2}{3y}\right)dy=0.(3x1​+3x3y22​)dx+(3x2y32​−3y2​)dy=0.

The potential function can be obtained by integrating the dxdxdx coefficient with respect to xxx and including the yyy-only term from the dydydy coefficient. The result is

13ln⁡∣x∣−13x2y2−23ln⁡∣y∣=C.\frac{1}{3}\ln|x|-\frac{1}{3x^2y^2}-\frac{2}{3}\ln|y|=C.31​ln∣x∣−3x2y21​−32​ln∣y∣=C.

Example: a homogeneous equation

Consider

(x4+y4) dx−xy3 dy=0.(x^4+y^4)\,dx-xy^3\,dy=0.(x4+y4)dx−xy3dy=0.

Both coefficients are homogeneous polynomials of degree 444. Thus,

μ=1xM+yN.\mu=\frac{1}{xM+yN}.μ=xM+yN1​.

Since

xM+yN=x(x4+y4)+y(−xy3)=x5,xM+yN=x(x^4+y^4)+y(-xy^3)=x^5,xM+yN=x(x4+y4)+y(−xy3)=x5,

the integrating factor is

μ=1x5.\mu=\frac{1}{x^5}.μ=x51​.

The multiplied equation is

(1x+y4x5)dx−y3x4 dy=0.\left(\frac{1}{x}+\frac{y^4}{x^5}\right)dx-\frac{y^3}{x^4}\,dy=0.(x1​+x5y4​)dx−x4y3​dy=0.

It is exact, and integrating the dxdxdx coefficient with respect to xxx gives

ln⁡∣x∣−y44x4=C.\ln|x|-\frac{y^4}{4x^4}=C.ln∣x∣−4x4y4​=C.

Linear Differential Equations

Linear equation with yyy as the dependent variable

The standard form is

dydx+P(x)y=Q(x),\frac{dy}{dx}+P(x)y=Q(x),dxdy​+P(x)y=Q(x),

where yyy is the dependent variable and xxx is the independent variable. Its integrating factor is

μ(x)=e∫P(x) dx.\mu(x)=e^{\int P(x)\,dx}.μ(x)=e∫P(x)dx.

Multiplying the equation by μ\muμ makes its left-hand side a product derivative:

ddx(yμ)=Qμ.\frac{d}{dx}\bigl(y\mu\bigr)=Q\mu.dxd​(yμ)=Qμ.

Consequently, the solution is

yμ=∫Qμ dx+C.y\mu=\int Q\mu\,dx+C.yμ=∫Qμdx+C.

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

dydx+4xx2+1y=1x2+1,\frac{dy}{dx}+\frac{4x}{x^2+1}y=\frac{1}{x^2+1},dxdy​+x2+14x​y=x2+11​,

the coefficient is P(x)=4x/(x2+1)P(x)=4x/(x^2+1)P(x)=4x/(x2+1). Therefore,

μ=e∫4xx2+1 dx=(x2+1)2.\mu=e^{\int \frac{4x}{x^2+1}\,dx} =(x^2+1)^2.μ=e∫x2+14x​dx=(x2+1)2.

The solution formula gives

y(x2+1)2=∫1x2+1(x2+1)2 dx+C.y(x^2+1)^2 = \int \frac{1}{x^2+1}(x^2+1)^2\,dx+C.y(x2+1)2=∫x2+11​(x2+1)2dx+C.

Hence,

y(x2+1)2=tan⁡−1x+C.y(x^2+1)^2=\tan^{-1}x+C.y(x2+1)2=tan−1x+C.

Linear equation with xxx as the dependent variable

An equation can instead be linear in xxx:

dxdy+P(y)x=Q(y).\frac{dx}{dy}+P(y)x=Q(y).dydx​+P(y)x=Q(y).

Here xxx is dependent and yyy is independent. The integrating factor is

μ(y)=e∫P(y) dy,\mu(y)=e^{\int P(y)\,dy},μ(y)=e∫P(y)dy,

and the solution is

xμ=∫Qμ dy+C.x\mu=\int Q\mu\,dy+C.xμ=∫Qμdy+C.

It is the role of a variable as dependent or independent—not its name—that determines how the formula is used.

Example

Consider

dxdy+xsec⁡y+tan⁡y1+sin⁡y=2ycos⁡y1+sin⁡y.\frac{dx}{dy} +x\frac{\sec y+\tan y}{1+\sin y} = \frac{2y\cos y}{1+\sin y}.dydx​+x1+sinysecy+tany​=1+siny2ycosy​.

The identity

sec⁡y+tan⁡y1+sin⁡y=sec⁡y\frac{\sec y+\tan y}{1+\sin y}=\sec y1+sinysecy+tany​=secy

reduces the coefficient of xxx to sec⁡y\sec ysecy. The integrating factor is

μ=e∫sec⁡y dy=sec⁡y+tan⁡y.\mu=e^{\int \sec y\,dy}=\sec y+\tan y.μ=e∫secydy=secy+tany.

Multiplication by this factor simplifies the right-hand side to 2y2y2y, so

x(sec⁡y+tan⁡y)=∫2y dy+C.x(\sec y+\tan y)=\int 2y\,dy+C.x(secy+tany)=∫2ydy+C.

Thus,

x(sec⁡y+tan⁡y)=y2+C.x(\sec y+\tan y)=y^2+C.x(secy+tany)=y2+C.

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 yyy

Suppose the equation has the structure

F′(y)dydx+P(x)F(y)=Q(x).F'(y)\frac{dy}{dx}+P(x)F(y)=Q(x).F′(y)dxdy​+P(x)F(y)=Q(x).

Set

t=F(y).t=F(y).t=F(y).

By the chain rule,

dtdx=F′(y)dydx.\frac{dt}{dx}=F'(y)\frac{dy}{dx}.dxdt​=F′(y)dxdy​.

The equation becomes

dtdx+P(x)t=Q(x),\frac{dt}{dx}+P(x)t=Q(x),dxdt​+P(x)t=Q(x),

which is linear in ttt.

Substitution involving a function of xxx

If the equation has the structure

F′(x)dxdy+P(y)F(x)=Q(y),F'(x)\frac{dx}{dy}+P(y)F(x)=Q(y),F′(x)dydx​+P(y)F(x)=Q(y),

set

t=F(x).t=F(x).t=F(x).

The chain rule gives

dtdy=F′(x)dxdy,\frac{dt}{dy}=F'(x)\frac{dx}{dy},dydt​=F′(x)dydx​,

so the equation becomes

dtdy+P(y)t=Q(y).\frac{dt}{dy}+P(y)t=Q(y).dydt​+P(y)t=Q(y).

In both cases, the substitution is differentiated with respect to the independent variable.

Example: setting t=y2t=y^2t=y2

Consider

ydydx−y23x=−4x3.y\frac{dy}{dx}-\frac{y^2}{3x}=-\frac{4x}{3}.ydxdy​−3xy2​=−34x​.

The expressions y2y^2y2 and y dy/dxy\,dy/dxydy/dx suggest setting

t=y2.t=y^2.t=y2.

Differentiating with respect to xxx gives

dtdx=2ydydx,\frac{dt}{dx}=2y\frac{dy}{dx},dxdt​=2ydxdy​,

so y dy/dx=12 dt/dxy\,dy/dx=\frac{1}{2}\,dt/dxydy/dx=21​dt/dx. Substitution and multiplication by 222 give

dtdx−23xt=−8x3.\frac{dt}{dx}-\frac{2}{3x}t=-\frac{8x}{3}.dxdt​−3x2​t=−38x​.

This is linear in ttt. Its integrating factor is

μ=e∫−2/(3x) dx=x−2/3.\mu=e^{\int -2/(3x)\,dx}=x^{-2/3}.μ=e∫−2/(3x)dx=x−2/3.

Therefore,

tx−2/3=∫−8x3x−2/3 dx+C=−2x4/3+C.t x^{-2/3}=\int -\frac{8x}{3}x^{-2/3}\,dx+C =-2x^{4/3}+C.tx−2/3=∫−38x​x−2/3dx+C=−2x4/3+C.

Using t=y2t=y^2t=y2, the solution is

y2x−2/3=−2x4/3+C.y^2x^{-2/3}=-2x^{4/3}+C.y2x−2/3=−2x4/3+C.

Example: setting t=xext=xe^xt=xex

Suppose an equation is written in the form

ex(x+1)dxdy−xex=−yey.e^x(x+1)\frac{dx}{dy}-xe^x=-ye^y.ex(x+1)dydx​−xex=−yey.

The expression xexxe^xxex has derivative

ddx(xex)=ex(x+1).\frac{d}{dx}(xe^x)=e^x(x+1).dxd​(xex)=ex(x+1).

This indicates the substitution

t=xex.t=xe^x.t=xex.

Differentiating with respect to yyy gives

dtdy=ex(x+1)dxdy.\frac{dt}{dy}=e^x(x+1)\frac{dx}{dy}.dydt​=ex(x+1)dydx​.

The equation becomes

dtdy−t=−yey.\frac{dt}{dy}-t=-ye^y.dydt​−t=−yey.

Its integrating factor is e−ye^{-y}e−y. Thus,

te−y=∫−y dy+C=−y22+C.te^{-y}=\int -y\,dy+C=-\frac{y^2}{2}+C.te−y=∫−ydy+C=−2y2​+C.

Substituting t=xext=xe^xt=xex gives

xex−y=−y22+C.xe^{x-y}=-\frac{y^2}{2}+C.xex−y=−2y2​+C.

Bernoulli Differential Equations

Standard form and substitution

A Bernoulli equation has the form

dydx+P(x)y=Q(x)yn.\frac{dy}{dx}+P(x)y=Q(x)y^n.dxdy​+P(x)y=Q(x)yn.

For n≠0n\ne 0n=0 and n≠1n\ne 1n=1, divide through by yny^nyn:

y−ndydx+P(x)y1−n=Q(x).y^{-n}\frac{dy}{dx}+P(x)y^{1-n}=Q(x).y−ndxdy​+P(x)y1−n=Q(x).

Set

t=y1−n.t=y^{1-n}.t=y1−n.

Then

dtdx=(1−n)y−ndydx.\frac{dt}{dx}=(1-n)y^{-n}\frac{dy}{dx}.dxdt​=(1−n)y−ndxdy​.

Multiplying the divided equation by 1−n1-n1−n gives the linear equation

dtdx+(1−n)P(x)t=(1−n)Q(x).\frac{dt}{dx}+(1-n)P(x)t=(1-n)Q(x).dxdt​+(1−n)P(x)t=(1−n)Q(x).

This can be solved using the standard linear-equation method. The cases n=0n=0n=0 and n=1n=1n=1 are already linear (or simplify directly), so they do not require the Bernoulli substitution.

Example: a Bernoulli equation in rrr

Consider

drdθ=rtan⁡θ−r2sec⁡θ.\frac{dr}{d\theta}=r\tan\theta-r^2\sec\theta.dθdr​=rtanθ−r2secθ.

The dependent variable rrr appears once with power 111 and once with power 222, so this is a Bernoulli equation with n=2n=2n=2. Rearranging and dividing by r2r^2r2 gives

1r2drdθ−1rtan⁡θ=−sec⁡θ.\frac{1}{r^2}\frac{dr}{d\theta} -\frac{1}{r}\tan\theta=-\sec\theta.r21​dθdr​−r1​tanθ=−secθ.

Use the substitution

t=−1r.t=-\frac{1}{r}.t=−r1​.

Then

dtdθ=1r2drdθ,\frac{dt}{d\theta}=\frac{1}{r^2}\frac{dr}{d\theta},dθdt​=r21​dθdr​,

and the equation becomes

dtdθ+ttan⁡θ=−sec⁡θ.\frac{dt}{d\theta}+t\tan\theta=-\sec\theta.dθdt​+ttanθ=−secθ.

The integrating factor is

μ=e∫tan⁡θ dθ=sec⁡θ.\mu=e^{\int \tan\theta\,d\theta}=\sec\theta.μ=e∫tanθdθ=secθ.

Therefore,

tsec⁡θ=∫−sec⁡2θ dθ+C=−tan⁡θ+C.t\sec\theta=\int -\sec^2\theta\,d\theta+C =-\tan\theta+C.tsecθ=∫−sec2θdθ+C=−tanθ+C.

Substituting t=−1/rt=-1/rt=−1/r gives

−sec⁡θr=−tan⁡θ+C.-\frac{\sec\theta}{r}=-\tan\theta+C.−rsecθ​=−tanθ+C.

Bernoulli equation with xxx dependent on yyy

Bernoulli equations can also be linearized when xxx is the dependent variable. For example, suppose

dxdy−yx=y3x2.\frac{dx}{dy}-yx=y^3x^2.dydx​−yx=y3x2.

Here xxx is dependent, yyy is independent, and the equation has Bernoulli exponent n=2n=2n=2. Dividing by x2x^2x2 gives

1x2dxdy−yx=y3.\frac{1}{x^2}\frac{dx}{dy}-\frac{y}{x}=y^3.x21​dydx​−xy​=y3.

Set

t=−1x.t=-\frac{1}{x}.t=−x1​.

Since

dtdy=1x2dxdy,\frac{dt}{dy}=\frac{1}{x^2}\frac{dx}{dy},dydt​=x21​dydx​,

the equation becomes

dtdy+yt=y3.\frac{dt}{dy}+yt=y^3.dydt​+yt=y3.

Its integrating factor is

μ=e∫y dy=ey2/2.\mu=e^{\int y\,dy}=e^{y^2/2}.μ=e∫ydy=ey2/2.

Thus,

tey2/2=∫y3ey2/2 dy+C.te^{y^2/2}=\int y^3e^{y^2/2}\,dy+C.tey2/2=∫y3ey2/2dy+C.

To evaluate the integral, set u=y2/2u=y^2/2u=y2/2, so that y dy=duy\,dy=duydy=du and y2=2uy^2=2uy2=2u. Then

∫y3ey2/2 dy=∫2ueu du=(y2−2)ey2/2.\int y^3e^{y^2/2}\,dy = \int 2u e^u\,du = (y^2-2)e^{y^2/2}.∫y3ey2/2dy=∫2ueudu=(y2−2)ey2/2.

The resulting solution is

−1xey2/2=(y2−2)ey2/2+C.-\frac{1}{x}e^{y^2/2} = (y^2-2)e^{y^2/2}+C.−x1​ey2/2=(y2−2)ey2/2+C.

Choosing a Method

A useful way to organize the solution process is:

  1. Write the equation in a recognizable form. For exactness and many integrating-factor rules, use M dx+N dy=0M\,dx+N\,dy=0Mdx+Ndy=0.

  2. Check whether it is exact. Compare MyM_yMy​ with NxN_xNx​.

  3. If non-exact, test for an integrating factor. Check whether the relevant quotient depends only on xxx or only on yyy, or whether a structural or homogeneous rule applies.

  4. Look for linear form. Identify the dependent variable and arrange the equation as a first-order linear equation in that variable.

  5. Look for a useful substitution. A function and its derivative occurring together often indicate that a substitution can make the equation linear.

  6. For a Bernoulli equation, use the substitution t=y1−nt=y^{1-n}t=y1−n after dividing by yny^nyn.

  7. Use the independent variable for differentiation and integration. For example, an equation linear in xxx as a function of yyy is integrated with respect to yyy.

  8. Include the arbitrary constant. A solution without specified initial values is a general solution, represented by a family of curves indexed by CCC.

A particular solution is obtained when an initial or boundary condition is supplied and used to determine the constant CCC.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent