# Bernoulli differential equation

In mathematics, an ordinary differential equation is called a Bernoulli differential equation if it is of the form

${\displaystyle y'+P(x)y=Q(x)y^{n},}$

where ${\displaystyle n}$ is a real number. Some authors allow any real ${\displaystyle n}$,[1][2] whereas others require that ${\displaystyle n}$ not be 0 or 1.[3][4] The equation was first discussed in a work of 1695 by Jacob Bernoulli, after whom it is named. The earliest solution, however, was offered by Gottfried Leibniz, who published his result in the same year and whose method is the one still used today.[5]

Bernoulli equations are special because they are nonlinear differential equations with known exact solutions. A notable special case of the Bernoulli equation is the logistic differential equation.

## Transformation to a linear differential equation

When ${\displaystyle n=0}$, the differential equation is linear. When ${\displaystyle n=1}$, it is separable. In these cases, standard techniques for solving equations of those forms can be applied. For ${\displaystyle n\neq 0}$ and ${\displaystyle n\neq 1}$, the substitution ${\displaystyle u=y^{1-n}}$ reduces any Bernoulli equation to a linear differential equation

${\displaystyle {\frac {du}{dx}}-(n-1)P(x)u=-(n-1)Q(x).}$

For example, in the case ${\displaystyle n=2}$, making the substitution ${\displaystyle u=y^{-1}}$ in the differential equation ${\displaystyle {\frac {dy}{dx}}+{\frac {1}{x}}y=xy^{2}}$ produces the equation ${\displaystyle {\frac {du}{dx}}-{\frac {1}{x}}u=-x}$, which is a linear differential equation.

## Solution

Let ${\displaystyle x_{0}\in (a,b)}$ and

${\displaystyle \left\{{\begin{array}{ll}z:(a,b)\rightarrow (0,\infty )\ ,&{\textrm {if}}\ \alpha \in \mathbb {R} \setminus \{1,2\},\\z:(a,b)\rightarrow \mathbb {R} \setminus \{0\}\ ,&{\textrm {if}}\ \alpha =2,\\\end{array}}\right.}$

be a solution of the linear differential equation

${\displaystyle z'(x)=(1-\alpha )P(x)z(x)+(1-\alpha )Q(x).}$

Then we have that ${\displaystyle y(x):=[z(x)]^{\frac {1}{1-\alpha }}}$ is a solution of

${\displaystyle y'(x)=P(x)y(x)+Q(x)y^{\alpha }(x)\ ,\ y(x_{0})=y_{0}:=[z(x_{0})]^{\frac {1}{1-\alpha }}.}$

And for every such differential equation, for all ${\displaystyle \alpha >0}$ we have ${\displaystyle y\equiv 0}$ as solution for ${\displaystyle y_{0}=0}$.

## Example

Consider the Bernoulli equation

${\displaystyle y'-{\frac {2y}{x}}=-x^{2}y^{2}}$

(in this case, more specifically Riccati's equation). The constant function ${\displaystyle y=0}$ is a solution. Division by ${\displaystyle y^{2}}$ yields

${\displaystyle y'y^{-2}-{\frac {2}{x}}y^{-1}=-x^{2}}$

Changing variables gives the equations

{\displaystyle {\begin{aligned}u={\frac {1}{y}}\;&,~u'={\frac {-y'}{y^{2}}}\\-u'-{\frac {2}{x}}u&=-x^{2}\\u'+{\frac {2}{x}}u&=x^{2}\end{aligned}}}

which can be solved using the integrating factor

${\displaystyle M(x)=e^{2\int {\frac {1}{x}}\,dx}=e^{2\ln x}=x^{2}.}$

Multiplying by ${\displaystyle M(x)}$,

${\displaystyle u'x^{2}+2xu=x^{4}.}$

The left side can be represented as the derivative of ${\displaystyle ux^{2}}$ by reversing the product rule. Applying the chain rule and integrating both sides with respect to ${\displaystyle x}$ results in the equations

{\displaystyle {\begin{aligned}\int \left(ux^{2}\right)'dx&=\int x^{4}\,dx\\ux^{2}&={\frac {1}{5}}x^{5}+C\\{\frac {1}{y}}x^{2}&={\frac {1}{5}}x^{5}+C\end{aligned}}}

The solution for ${\displaystyle y}$ is

${\displaystyle y={\frac {x^{2}}{{\frac {1}{5}}x^{5}+C}}.}$

## Notes

1. ^ Zill, Dennis G. (2013). A First Course in Differential Equations with Modeling Applications (10th ed.). Boston, Massachusetts: Cengage Learning. p. 73. ISBN 9780357088364.
2. ^ Stewart, James (2015). Calculus: Early Transcendentals (8th ed.). Boston, Massachusetts: Cengage Learning. p. 625. ISBN 9781305482463.
3. ^ Rozov, N. Kh. (2001) [1994], "Bernoulli equation", Encyclopedia of Mathematics, EMS Press
4. ^
5. ^ Parker, Adam E. (2013). "Who Solved the Bernoulli Differential Equation and How Did They Do It?" (PDF). The College Mathematics Journal. 44 (2): 89–97. ISSN 2159-8118 – via Mathematical Association of America.

## References

• Bernoulli, Jacob (1695), "Explicationes, Annotationes & Additiones ad ea, quae in Actis sup. de Curva Elastica, Isochrona Paracentrica, & Velaria, hinc inde memorata, & paratim controversa legundur; ubi de Linea mediarum directionum, alliisque novis", Acta Eruditorum. Cited in Hairer, Nørsett & Wanner (1993).
• Hairer, Ernst; Nørsett, Syvert Paul; Wanner, Gerhard (1993), Solving ordinary differential equations I: Nonstiff problems, Berlin, New York: Springer-Verlag, ISBN 978-3-540-56670-0.