Bernoulli Equation Calculator
Type y' + P(x)y = Q(x)y^n, and optionally an initial condition, to solve it.
Write y' and y'' (or dy/dx and d^2y/dx^2): y' + 2y = 4 or y'' - 3y' + 2y = 0. Type powers with ^ and functions with brackets: e^x, sin(x), ln(x).
Optional: one condition such as y(0) = 2. Leave empty for the general solution, with its constant C.
Result
You entered
The constant function y = 0 is also a solution of the equation; it is not in the family above.
Show the work
Type of equation
The equation has the form y' + P(x)y = Q(x)y^n, a Bernoulli equation with n = 2.
Bernoulli equation
The equation has the form with , and .
Substitution v = y^(1-n)
Put . Dividing by and using turns the equation into a linear one in .
Using
Integrating factor
Multiply the equation by : the left side then becomes .
Integrate both sides
Now , so integrate and divide by .
Back-substitute
Solve for and replace by .
Result
The general solution, with arbitrary constants.