QED
Differential Equations · step 3 of 14

First-order linear equations & the integrating factor

Any first-order linear ODE can be written y′ + P(x)y = Q(x). Multiplying by μ = e^(∫P dx) makes the left side an exact derivative (μy)′, so integrating once solves the equation. The essential prerequisite is getting the equation into standard form with a coefficient of 1 on y′ — skipping that gives the wrong P and everything after it fails.

Unlimited questions · marked criterion by criterion · no card needed

Method: how to approach it

The order below is what examiners expect to see, and each step carries its own marks.

  1. Put it in standard formDivide through so that y′ has coefficient 1. Then read off P(x) and Q(x).
  2. Compute μ = e^(∫P dx)No constant of integration is needed here — any one integrating factor works.
  3. Multiply through and recognise the product ruleThe left side becomes (μy)′ = μQ.
  4. Integrate and divide by μμy = ∫μQ dx + C, so y = (1/μ)(∫μQ dx + C). The constant must be inside the bracket.

Worked example

Solve y′ + 2y = e^x.

  1. Already in standard form with P = 2 and Q = e^x.
  2. μ = e^(∫2dx) = e^(2x).
  3. Multiply: e^(2x)y′ + 2e^(2x)y = e^(3x), and the left side is (e^(2x)y)′.
  4. Integrate: e^(2x)y = e^(3x)/3 + C.

Answer. y = e^x/3 + Ce^(−2x). Check: y′ + 2y = (e^x/3 − 2Ce^(−2x)) + (2e^x/3 + 2Ce^(−2x)) = e^x ✓.

Where marks get dropped

These are the specific errors that cost credit on first-order linear equations & the integrating factor questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new first-order linear equations & the integrating factor problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.

Marked like an examiner

Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.

Answer in real notation

A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.

Saved to your library

Every question you generate is kept and re-takeable as a timed exam, and your Differential Equations mastery is tracked so you know when this is exam-ready.

First-order linear equations & the integrating factor — frequently asked questions

Why does the integrating factor work?

Because (μy)′ = μy′ + μ′y, and choosing μ′ = Pμ makes this exactly μ(y′ + Py). That condition is a separable equation whose solution is e^(∫P dx).

Can I use this on a separable equation?

Yes, if it is also linear — dy/dx = xy is both, and either method works. Separation is usually quicker there.

What if Q(x) = 0?

The equation is homogeneous and also separable, with solution y = Ce^(−∫P dx). That is the complementary function of the general case.

The rest of Differential Equations

Solving and modelling with ODEs, from separable to systems. Each subtopic below has its own method, worked example and mark-losing traps.

Ready to make first-order linear equations & the integrating factor exam-proof?

Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.

Start practising free →