What Is a Bernoulli Differential Equation?
A Bernoulli equation is a first-order equation with a specific nonlinear term:
y′ + P(x)y = Q(x)yⁿ
The yⁿ on the right makes it nonlinear for any n other than 0 or 1, so the integrating-factor method for linear equations does not directly apply. But Bernoulli equations have a beautiful escape: the substitution v = y1−n transforms them into a linear equation in v, which can then be solved by the standard integrating-factor technique. Once v is found, undoing the substitution recovers y. This clever change of variable, discovered by Jacob Bernoulli in the 1690s, is one of the earliest and most elegant tricks in the theory of differential equations, showing how a well-chosen substitution can tame nonlinearity. This calculator sets up the substitution, displays the resulting linear equation, solves the initial value problem numerically, verifies the transformation, and plots the solution curve.
How to Use the Bernoulli Equation Calculator
Enter the coefficient functions P(x) and Q(x), the exponent n (any value except 0 and 1, which make the equation already linear), and an initial condition (x₀, y₀). The steps write the substitution v = y1−n, derive the linearized equation for v, state the transformed initial condition, and solve the original equation numerically with a Runge-Kutta method, verifying that the substituted v really satisfies a linear equation. The graph shows the solution through the initial point. For the linear equations this method reduces to, see the linear first-order ODE calculator; for other first-order types, the separable and homogeneous calculators.
Worked Example
Consider y′ + y = y² (so P = 1, Q = 1, n = 2). The substitution v = y1−2 = y−1 = 1/y transforms it. Since v′ = −y−2y′, dividing the original equation by y² and substituting gives
v′ − v = −1, a linear equation in v.
Solving this linear equation (integrating factor e−x) yields v = 1 + Cex, and undoing the substitution gives y = 1/(1 + Cex), a logistic-type curve. This is no accident: the logistic growth equation, the cornerstone model of population dynamics, is a Bernoulli equation with n = 2, and the substitution v = 1/y is exactly how it is solved by hand. The example illustrates the whole method: the forbidding nonlinear y² term dissolves into a routine linear equation the moment the right substitution is applied, and the S-shaped solution emerges from linear machinery.
Why the Substitution Works
The magic of v = y1−n is that it is precisely engineered to cancel the nonlinearity. Start with y′ + Py = Qyⁿ and divide through by yⁿ: this gives y−ny′ + Py1−n = Q. Now the substitution v = y1−n has derivative v′ = (1−n)y−ny′, so y−ny′ = v′/(1−n). Substituting, the equation becomes v′/(1−n) + Pv = Q, or v′ + (1−n)Pv = (1−n)Q, a linear first-order equation in v with coefficient (1−n)P and forcing (1−n)Q. Every nonlinear y power has vanished. The reason this particular power 1−n works is that it makes y1−n the antiderivative-compatible quantity whose derivative involves exactly the y−ny′ combination that appears after dividing by yⁿ. The excluded cases are n = 1 (then the equation is already linear, y′ + (P−Q)y = 0, no substitution needed) and n = 0 (then it is linear with forcing, y′ + Py = Q). For all other n, Bernoulli's substitution converts the problem into the well-understood linear framework, then a single algebraic inversion recovers y. It is a template for the broader strategy of solving nonlinear equations by transforming them into linear ones, a theme that recurs throughout differential equations, from the Riccati equation to integrable systems.
Common Mistakes to Avoid
- Using the wrong substitution power. The substitution is v = y1−n, tied specifically to the exponent n in the equation. Using a different power fails to cancel the nonlinearity.
- Applying it when n = 0 or n = 1. Those cases are already linear and need no substitution; the tool flags them. Bernoulli's method is for genuinely nonlinear n.
- Forgetting to transform the initial condition. If y(x₀) = y₀, then v(x₀) = y₀1−n. Solving the linear v-equation with the original y-condition gives a wrong constant.
- Mishandling negative or fractional bases. When n is fractional, y1−n and yⁿ require y > 0 for real values; a negative initial value can make the substitution undefined. Choose consistent signs.
- Forgetting to undo the substitution. After solving for v, you must convert back with y = v1/(1−n). Reporting v as the answer leaves the problem half-solved.
Real-World Applications
The Bernoulli equation's most famous application is the logistic model of population growth, which is exactly the n = 2 case. The logistic equation dP/dt = rP(1 − P/K) rearranges into Bernoulli form, and Bernoulli's substitution is the classical route to its S-shaped solution, the curve describing how populations grow rapidly when small, then level off as they approach the carrying capacity K. This model underlies ecology, epidemiology (the early spread of an epidemic follows a logistic curve), the diffusion of innovations and technologies through a market, and the growth of tumors and bacterial cultures.
Frequently Asked Questions
What is a Bernoulli differential equation?
A first-order equation of the form y′ + P(x)y = Q(x)yⁿ, nonlinear because of the yⁿ term (for n ≠ 0, 1). It is solved by the substitution v = y1−n, which converts it into a linear equation solvable by the integrating-factor method.
Why does the substitution v = y1−n work?
Dividing the equation by yⁿ produces the combination y−ny′, which is exactly (1/(1−n)) times the derivative of v = y1−n. Substituting turns the nonlinear equation into a linear one in v, with all y powers eliminated. The power 1−n is precisely what makes this cancellation happen.
What values of n does the method require?
Any n except 0 and 1. When n = 0 or 1 the equation is already linear and needs no substitution. For all other n, including negative and fractional values, the Bernoulli substitution linearizes the equation, though fractional n may require y > 0 for real solutions.
How is the logistic equation a Bernoulli equation?
The logistic model dP/dt = rP(1 − P/K) expands to P′ − rP = −(r/K)P², which is Bernoulli with n = 2. The substitution v = 1/P linearizes it, and solving gives the S-shaped logistic curve. This is the classical hand-solution of the most important growth model in biology.
Do I need to transform the initial condition?
Yes. Since v = y1−n, the condition y(x₀) = y₀ becomes v(x₀) = y₀1−n. You solve the linear v-equation with this transformed condition to get the right constant of integration, then convert back to y.
How do I recover y after solving for v?
Invert the substitution: since v = y1−n, you have y = v1/(1−n). For example, with n = 2, v = 1/y so y = 1/v. Forgetting this final step leaves the answer in terms of the auxiliary variable rather than the original unknown.
What if the coefficients P and Q are constants?
Then the linearized v-equation has constant coefficients and is especially easy to solve, often giving closed-form exponential or logistic solutions. The n = 2 constant-coefficient case is the pure logistic equation. Variable coefficients still work; the linear v-equation just requires the general integrating-factor solution.
What happens with fractional exponents like n = 1/2?
The method still applies with v = y1/2, but the powers y1−n and yⁿ require y > 0 to stay real. Fractional-n Bernoulli equations model systems with square-root-type nonlinearities and are handled the same way, keeping the domain restriction in mind.
How does the Bernoulli equation relate to the Riccati equation?
The Riccati equation y′ = q₀ + q₁y + q₂y² is more general and nonlinear. Once a single particular solution is known, a substitution reduces it to a Bernoulli (or linear) equation solvable by these methods. So Bernoulli's technique is a building block for the harder Riccati case in control theory.
Why is this equation important pedagogically?
It teaches the master strategy of differential equations: transform a nonlinear problem into a solvable linear one via a clever substitution. This substitution mindset recurs throughout the subject, so the Bernoulli equation is a formative example of turning an intractable equation into a familiar one.