logo

Solution to the Bernoulli Differential Equation 📂Odinary Differential Equations

Solution to the Bernoulli Differential Equation

Definition

The following first-order nonlinear differential equation is called the Bernoulli equation.

y+p(x)y=q(x)yn y^\prime + p(x)y = q(x)y^n

Here, nn is an integer greater than or equal to 22, and when n=0, 1n=0,\ 1, it is a linear equation.

Description

It’s worth noting that the Bernoulli of the Bernoulli differential equation and the Bernoulli of the widely known Bernoulli’s principle in fluid dynamics are different people. The Bernoulli family had many outstanding figures in mathematics and science, resulting in numerous formulas and theorems named after Bernoulli. For more information, click here.

The Bernoulli differential equation is a nonlinear differential equation. Solving nonlinear equations is very difficult and requires a bit of a trick. The trick to solving the Bernoulli differential equation involves transforming the nonlinear equation into a linear one through substitution.

Solution

  • Step 1.

    Since the solution we are looking for, yy, is equal to y0y \ne 0 dividing both sides of the differential equation by yny^n gives us

    yny+py1n=q y^{-n}y^\prime + py^{1-n}=q

  • Step 2.

    Let’s make the substitution uy1nu \equiv y^{1-n}. Then,

    dudx=(1n)yndydx    11ndudx=yndydx \dfrac{du}{dx}=(1-n)y^{-n}\dfrac{dy}{dx} \\ \implies \dfrac{1}{1-n}\dfrac{du}{dx}=y^{-n}\dfrac{dy}{dx}

    Substituting into the given differential equation we get:

    11ndudx+pu=q    u+(1n)pu=(1n)q \begin{align*} && \dfrac{1}{1-n}\dfrac{du}{dx} + pu=q \\ \implies && u^\prime + (1-n)pu=(1-n)q \end{align*}

  • Step 3.

    Since the given differential equation has become a first-order linear differential equation, we find the general solution for uu. After that, substituting u=y1nu=y^{1-n} allows us to finally find the general solution for yy.

Example

Solve the differential equation y=PyQy2y^\prime = Py-Qy^2.

The given differential equation is a case of the Bernoulli differential equation where n=2n=2. Multiplying both sides by y2-y^{-2} and rearranging gives

y2y+Py1=Q -y^{-2} y^\prime +Py^{-1} = Q

To solve the differential equation, substitute u=y1n=y1u=y^{1-n}=y^{-1} to get

dudx=y2dydx \dfrac{du}{dx}=-y^{-2}\dfrac{dy}{dx}

Substituting into the differential equation gives us the following equation.

dudx+Pu=Q \dfrac{du}{dx}+Pu=Q

Using the method for solving first-order differential equations to find uu gives

u=ePdx[ePdxQdx+C]=ePx[ePxQdx+C]=ePxQPePx+CePx=QP+CePx \begin{align*} u&=e^{-\int Pdx} \left[ \displaystyle \int e^{\int P dx}Q dx+ C \right] \\ &= e^{-Px} \left[ \int e^{Px}Qdx +C\right] \\ &= e^{-Px}\dfrac{Q}{P}e^{Px} + Ce^{-Px} \\ &=\dfrac{Q}{P}+Ce^{-Px} \end{align*}

Since u=y1u=y^{-1}, ultimately finding yy gives

y=u1=1QP+CePx y=u^{-1}=\dfrac{1}{\frac{Q}{P}+Ce^{-Px}}