Linear and Bernoulli equations
Most first-order differential equations resist every elementary trick — separation fails, the equation is not exact — yet a huge and useful class still yields to a single clean idea: multiply by the right function and the left side collapses into the derivative of a product. That function is the integrating factor, and the equations it tames are the linear first-order ODEs. Sitting right beside them is Bernoulli's equation, which looks stubbornly nonlinear because of a term, but a one-line substitution converts it into exactly the linear form already solved. Together these two techniques are the third leg of the MA10001 ODE toolkit, after separable and exact equations, and they are exam-heavy precisely because the method is mechanical once the pattern is recognized. This article rebuilds the integrating factor from first principles, shows why the Bernoulli substitution is not a lucky guess but a forced choice, and works two problems end to end so the machinery is visible at every step.
Multiplying a linear ODE by the integrating factor turns the left side into the exact derivative , so integrating solves it directly, and Bernoulli's equation reduces to this same linear form via the substitution .
The core idea
A first-order linear ODE is any equation that can be written in the standard form
where: and are given functions of only — crucially, appears just to the first power and never multiplied by itself or by . Standard form matters because the method that follows only works once the coefficient of is exactly ; if the original equation has some other coefficient in front, you must divide through first before reading off . The central device is the integrating factor
where: the integral can be any one antiderivative of (the arbitrary constant of integration is deliberately dropped here, since it only rescales the whole IF by a nonzero constant that cancels later). Multiplying the standard-form equation by makes the left side collapse into a single derivative,
after which one integration finishes the job:
Bernoulli's equation looks like a small variation but is genuinely nonlinear:
(When or the right side is already linear in , so no substitution is needed at all — a common exam trap is not noticing this shortcut.) Dividing through by and substituting turns it, after a short chain-rule step, into a linear equation for , which the integrating-factor method above then solves; back-substituting recovers the answer.
The goal is to prove that multiplying the standard-form equation by the chosen function makes the left-hand side collapse exactly into the derivative of the single product , because that collapse is precisely what allows one plain integration to finish solving any first-order linear ODE no matter what and happen to be, and the same chain-rule idea is what later justifies the Bernoulli substitution.
Step 1. Multiply the standard-form equation through by : . Nothing has been assumed about yet beyond it being some positive function of .
Step 2. Differentiate using the chain rule: . This is the one property that makes the choice of special — its own derivative is itself times .
Step 3. Recognize the product rule in reverse. By the product rule, , which is exactly the left side obtained in Step 1. So the equation from Step 1 is identically .
Step 4. Integrate both sides with respect to and divide by : . This is the general solution for every linear first-order ODE, and it shows the same reasoning explains Bernoulli's substitution: the exponent in is chosen precisely so that supplies exactly the term left over after dividing by — nothing about either method is arbitrary.
Worked example
Solve for , given , and then extend the same equation family to a Bernoulli version.
Step 1. Read off and ; the equation is already in standard form.
Step 2. Compute the integrating factor: .
Step 3. Multiply through by and recognize the product-rule collapse: .
Step 4. Integrate both sides: , so .
Step 5. Apply : , giving the particular solution
Competitive stretch
Now solve the related Bernoulli equation , where , , . Dividing by gives . Substituting , so , transforms the equation into the linear form . Its integrating factor is , giving ; integrating the right side by parts yields , so . Back-substituting gives the implicit general solution
This is the general solution of the Bernoulli equation, expressed implicitly in .
Common traps
- Reading off before the equation is in standard form. Always divide through so the coefficient of is exactly first; skipping this gives the wrong and a useless integrating factor.
- Forgetting the integrating factor multiplies every term. It must be applied to as well as the left side — a common arithmetic slip that silently drops a term.
- Mis-forming the Bernoulli substitution. Using instead of , or losing the factor when computing , wrecks the reduction to a linear equation.
- Missing the or shortcut. These special cases are already linear and need no substitution at all — trying to substitute anyway just adds unnecessary work.
- Dropping the final constant . It is fine (and conventional) to omit the constant when computing for the integrating factor itself, but the constant of integration in the general solution must never be dropped.
Ask the tutor: stuck computing an integrating factor with a tricky , or want to double-check a Bernoulli substitution on a new example? Ask the AI tutor to work through it with you step by step.
Why can we ignore the constant of integration when computing the integrating factor, but not in the final answer?
Any antiderivative of works inside because adding a constant there multiplies by the fixed nonzero number , which cancels on both sides of the equation once you divide back through — it changes nothing about the solution. The constant that appears after the final integration is different: it is not a fixed multiplier but a genuine free parameter labelling the whole family of solutions, and dropping it throws away information needed to match an initial condition.
How do I tell quickly whether an ODE is linear, Bernoulli, or neither?
Write it in the form . If the right side is just , with no at all, it is linear. If the right side is for some constant power , it is Bernoulli. If appears any other way — inside a sine, under a square root with other terms, multiplied by , and so on — neither method applies directly, and you should look for separability or exactness instead.
Does the Bernoulli substitution always give a linear equation, no matter what n is?
Yes, as long as is a constant different from and . The algebra in the derivation above never used a specific value of ; it only used that dividing by and setting makes proportional to , which is exactly the term that division produced. This works whether is a positive integer, a fraction, or negative — the resulting equation in is always linear in with coefficients and .