Linear differential equations
A first-order linear differential equation is one where the dependent variable and its derivative appear only to the first power — no , no , no . That simplicity is deceptive: the left-hand side still cannot be integrated directly as it stands. The fix is one of the neatest tricks in the calculus syllabus — multiply the whole equation by a cleverly chosen function, the integrating factor, and the messy left side collapses into the derivative of a single product. After that, solving is just integration. This article builds the standard form, shows exactly why the integrating factor works, and works through the exam-style calculations — including the case where it pays to solve for in terms of instead of the other way round.
Multiplying by the integrating factor turns the left side into the exact derivative , so the equation can be integrated directly to give .
The core idea
Standard form. A first-order linear differential equation in is written as
where: and are functions of only (or constants) — never of . Getting the coefficient of down to exactly before reading off and is the first and most commonly skipped step.
The integrating factor. Define
Multiplying the standard-form equation through by this factor converts the left side into an exact derivative of a product:
Integrating both sides gives the general solution:
where: is the arbitrary constant of integration; a given initial condition pins it down to a particular solution.
Linear in instead. Sometimes the equation is more naturally linear in as a function of — this shows up when trying to isolate would leave depending on , which the standard form forbids. The mirror-image toolkit is
with now functions of only. Recognising which variable is the natural dependent one — before committing to a form — saves a lot of wasted algebra.
Where this sits in the syllabus. This is the third and final solving technique in the Differential Equations section of the Calculus unit, coming after variable separable and homogeneous equations. ISC Class 12 restricts the method strictly to the first-order, first-degree linear form: you are asked to apply the stated integrating-factor formula, not to derive or prove it, and second-order linear equations lie outside the syllabus entirely.
General versus particular solution. The formula produces the general solution — an entire family of curves, one for every real value of . A single extra piece of information, an initial condition such as , singles out one member of that family: substitute the given point into the general solution, solve for , and the result is the particular solution satisfying that condition. The picture below shows what the general solution actually looks like: a whole family of integral curves, one for each value of , all satisfying the same differential equation but passing through different points.
The goal is to show, using nothing beyond the product rule and the fundamental theorem of calculus, that multiplying by is not an arbitrary trick but the unique choice that turns the left-hand side into the derivative of a single product, which is exactly what makes the equation directly integrable.
Step 1. Multiply the standard-form equation through by a to-be-determined factor : . The hope is that the left side is secretly for the right choice of .
Step 2. Expand that target by the product rule: . Comparing this with the left side of Step 1 term by term, the two match exactly when .
Step 3. Solve that condition for : it is a variable-separable equation, , which integrates to , so . This is precisely the integrating factor — it exists because this one auxiliary equation is always solvable, whatever is.
Step 4. With , the left side of the multiplied equation is now guaranteed to equal , so the whole equation reads . Integrating both sides with respect to removes the derivative on the left and produces the general solution .
Worked example
Solve , for , and find the particular solution given the general one.
Step 1. Identify and . The equation is already in standard form with and .
Step 2. Compute the integrating factor. — the log laws simplify the exponential-of-log form down to a clean power of .
Step 3. Multiply through and recognise the exact derivative. .
Step 4. Integrate both sides. , so the general solution is
Step 5. Check by differentiating: , and . ✓ The general solution is .
Competitive stretch
Solve given . Here (a constant), , so . Multiplying: . Integrating: , so . Applying : . Particular solution: .
Common traps
- Forcing the equation into when it is actually linear in — if isolating would leave depending on , switch to the form instead.
- Leaving the integrating factor as instead of simplifying with log laws to — an unsimplified I.F. makes the next integration much harder to spot.
- Reading off and before the coefficient of is exactly — rearrange fully into standard form first.
- Integrating the original messy left-hand side directly instead of recognising it as after multiplying — that recognition step is the entire point of the method.
Ask the tutor: Stuck on whether your equation is linear in or in , or want another integrating-factor example worked out step by step? Ask the AI tutor to walk through it with you.
How do I know a differential equation is linear before I even start solving it?
Check that and each appear only to the first power, with no products like , no , and no inside a function like or . If you can rearrange the whole equation into with depending only on , it is linear. If a stray shows up inside , try the -as-dependent-variable version instead before giving up.
Why can I drop the modulus sign when the integrating factor involves a logarithm?
When you integrate and get something like , exponentiating gives , since squaring removes the sign anyway. In general, once the exponent is simplified using log laws, any leftover sign ambiguity from the modulus gets absorbed into the arbitrary constant in the final solution, so it is standard practice to drop the modulus at the integrating-factor stage.
What if P is just a constant number instead of a function of x, and why does the integrating factor never need its own constant of integration?
Nothing changes in the method if is constant — a constant is still a function of that happens not to vary. If , then , so , exactly as in the competitive stretch example above. And you never add a "+k" when computing that integral: any extra constant would only multiply the integrating factor by a fixed number , which cancels straight back out once you divide through to isolate at the end. The one arbitrary constant that survives to the end, , is the one that appears after the final integration of .