QED
Differential Equations · step 6 of 14

Exact equations & integrating factors

M(x,y)dx + N(x,y)dy = 0 is exact when it is the total differential of some potential F, and the test is ∂M/∂y = ∂N/∂x. The solution is then simply F(x,y) = C. When the test fails, an integrating factor may restore exactness — and if (∂M/∂y − ∂N/∂x)/N depends only on x, that factor is computable directly.

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. Write in the form M dx + N dy = 0Identify M and N clearly before differentiating anything.
  2. Test exactnessCompute ∂M/∂y and ∂N/∂x. Equal means exact; unequal means you need an integrating factor.
  3. Build F by integrating M with respect to xF = ∫M dx + g(y), where g is an unknown function of y alone.
  4. Determine g by matching ∂F/∂y with NDifferentiate your F, set it equal to N, and integrate the leftover to find g(y).

Worked example

Solve (2xy + 3)dx + (x² − 1)dy = 0.

  1. M = 2xy + 3 and N = x² − 1.
  2. ∂M/∂y = 2x and ∂N/∂x = 2x — equal, so the equation is exact.
  3. F = ∫(2xy + 3)dx = x²y + 3x + g(y).
  4. ∂F/∂y = x² + g′(y), and this must equal N = x² − 1, so g′(y) = −1 and g(y) = −y.

Answer. x²y + 3x − y = C, which can be solved for y as y = (C − 3x)/(x² − 1).

Where marks get dropped

These are the specific errors that cost credit on exact equations & integrating factors questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new exact equations & integrating factors 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.

Exact equations & integrating factors — frequently asked questions

Why does the cross-partial test work?

Because if M dx + N dy is dF then M = ∂F/∂x and N = ∂F/∂y, and mixed partials commute for smooth F. Equality is therefore necessary, and on a simply connected domain also sufficient.

How do I find an integrating factor?

If (M_y − N_x)/N depends only on x, then μ = e^(∫that dx). If (N_x − M_y)/M depends only on y, integrate that in y instead.

Is every first-order ODE exact after some factor?

In principle yes, but finding the factor can be as hard as solving the equation. The two tests above cover the standard exam cases.

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 exact equations & integrating factors 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 →