★ India’s Student Guidance Platform

Differential Equations — Class 12 Maths Notes & Practice

Differential Equations — Class 12 Maths Notes & Practice

Meet Your Tutor

Differential equations become systematic when you classify the equation before solving it. I will help you identify order and degree, choose variable separation or a homogeneous method, apply the initial condition and differentiate the result to verify it.

Take a breath before you start this one. Differential Equations has a reputation for looking frightening, and that reputation comes almost entirely from the notation rather than from the ideas. The moment you see d²y/dx² sitting inside a bracket raised to a power, something in the brain says this is not for me. I want to gently disagree with that voice, because here is the honest shape of this chapter: you already know how to differentiate, you already know how to integrate, and this chapter is mostly about deciding which of your integration skills to reach for. That is it.

Think of it like cooking. You already own the knives and the pans. A differential equation just hands you an unfamiliar-looking ingredient and asks, which technique does this one need? Once you can recognise the ingredient — and there are only three recipes on the CBSE menu for 2026-27 — the actual cooking is ordinary integration you have been doing since Class 11. We are going to build that recognition slowly, from absolute zero, with a decision map you can picture during the exam.

Work through this page with a pen in your hand. Reading maths and doing maths are two different activities, and only one of them earns marks. Take it one section at a time, and please do not move on from a section until it genuinely feels comfortable — there is no prize for finishing fast.

What You’ll Learn

Your Game Plan

Here is the order I would work in if I were sitting next to you. It is deliberately slow at the start, because the first four sections are the ones that make everything afterwards feel easy.

  1. Spend one sitting on vocabulary. Order, degree, general solution, particular solution. These are free marks in the exam and they take about forty minutes to nail down properly.
  2. Learn to recognise before you learn to solve. Go to the decision map, and practise only identifying which of the three methods an equation needs. Do not solve anything yet. Ten equations, identification only.
  3. Master variables separable completely. It is the simplest method and it is hiding inside the other two, so time spent here pays twice.
  4. Then homogeneous, then linear. One method per sitting. Do not mix them on the day you first meet them — mix them the day after.
  5. Finally, mixed practice. Cover the method names, shuffle twenty questions, and force yourself to choose. This is the skill the exam actually tests.
  6. Do the worksheet at the bottom with the answers hidden. Write full solutions on paper first, then check. Checking without writing teaches you almost nothing.

Study Notes

What a Differential Equation Actually Is

Let us start with something you already know. An ordinary equation, like 3x + 5 = 14, asks you to find a number. You solve it and you get x = 3. One number, and you are done.

A differential equation asks a bigger question. It asks you to find a function. And instead of telling you about the function directly, it tells you something about the function’s rate of change, and asks you to work backwards to the function itself.

So an equation like dy/dx = 2x is a differential equation. It is not saying “find a number”. It is saying: I am thinking of a function whose slope at every point equals twice the x-coordinate. Which function am I thinking of? And you, doing the reverse of differentiation, answer: y = x² + C.

Key Idea — what a differential equation is
A differential equation is any equation that contains at least one derivative of an unknown function. Its solution is not a number — it is a function (or a family of functions).

Why does anyone care? Because almost every rule in science is naturally written as a statement about rates of change, not about quantities. A cup of tea cools at a rate proportional to how much hotter it is than the room. A population grows at a rate proportional to its own size. Radioactive material decays at a rate proportional to how much is left. In each case you are handed a sentence about the rate, and you want the actual formula. That translation — from a rule about change to a formula for the thing itself — is exactly what this chapter teaches.

Here is that tea example written down, so the abstraction lands. Let T be the temperature of the tea. “Cools at a rate proportional to the excess over room temperature R” becomes dT/dt = −k(T − R). That is a differential equation, and by the end of this chapter you will be able to solve it in about four lines.

Exam Tip — the notation is not the difficulty
Whenever an equation looks frightening, cover the derivative symbols with your finger and read what is left. “(d²y/dx²)³ + 5(dy/dx)⁴ − y = 0” is really just “A³ + 5B⁴ − y = 0”. Nine times out of ten the algebra is much simpler than the symbols suggest.

↑ Back to top

Order of a Differential Equation

This is the easiest definition in the chapter, and it appears in the exam almost every year, usually as a one-mark question.

Key Rule — order
The order of a differential equation is the order of the highest derivative that appears in it. Nothing else matters — not powers, not coefficients, not how messy the equation looks.

So you scan the equation, you find the highest derivative present, and you read off its order. dy/dx is a first-order derivative. d²y/dx² is second order. d³y/dx³ is third order, and so on.

The single most common mistake here is letting a large power distract you. A power tells you nothing about order. (dy/dx)⁴ is still a first-order derivative; it has just been raised to the fourth power, which is a completely separate piece of information.

Example 1 — reading off the order

Find the order of each equation.

(i) (d³y/dx³)² + 4(dy/dx)⁵ + y = 0

Derivatives present: d³y/dx³ (order 3) and dy/dx (order 1). The highest is third order, so the order is 3. The powers 2 and 5 are irrelevant here.

(ii) d²y/dx² + x dy/dx = sin x

The highest derivative is d²y/dx², so the order is 2.

(iii) dy/dx + 7y = eˣ

Only a first derivative appears, so the order is 1.

Common Mistake — confusing order with degree
Order counts how many times you differentiated. Degree counts what power the top derivative is raised to. In (d²y/dx²)³, the order is 2 and the degree is 3. Students who rush read the little 3 and answer “order 3”. Slow down for two seconds and you will never lose this mark.

↑ Back to top

Degree of a Differential Equation

STEP 1 — ORDERFind the highest-orderderivative present.Its order is the answer.STEP 2 — TIDY UPAny √ or fractional powerof a derivative? Clear itfirst, then look again.STEP 3 — THE TRAPIs a derivative sitting insidesin, cos, log or e ? Then theDEGREE IS NOT DEFINED.otherwiseSTEP 4 — DEGREEDegree = the power of thehighest-order derivative,once it is a clean polynomial.Example: (d²y/dx²)³ + 5(dy/dx)⁴ − y = 0Highest-order derivative is d²y/dx² → ORDER 2.It is raised to the power 3 → DEGREE 3.(The power 4 on dy/dx is a decoy — ignore it.)
The four-step routine for order and degree. Steps 2 and 3 are where marks are usually lost — tidy the equation up first, and always check whether a derivative is trapped inside a function.

Degree is slightly fussier than order, but only because of one condition that people skip past. Here it is in full.

Key Rule — degree
First make sure the equation is a polynomial in all the derivatives — no roots, no fractional powers, and no derivative sitting inside sin, cos, tan, log or an exponential. Once it is in that clean polynomial form, the degree is the power to which the highest-order derivative is raised.

Two things in that rule deserve emphasis. First, the tidying-up step comes before you read anything off. Second, when you do read it off, you look at the power of the highest-order derivative only — the powers on the lower derivatives are decoys.

Example 2 — order and degree together

Find the order and degree of (d²y/dx²)² + (dy/dx)³ − 5y = 0.

Order. The highest derivative is d²y/dx², so the order is 2.

Degree. The equation is already a polynomial in the derivatives — no roots, nothing trapped inside a function — so we may read it off. The highest-order derivative d²y/dx² is raised to the power 2, so the degree is 2.

Notice that the cube on dy/dx played no part at all. It is a lower-order derivative, so its power is simply not what “degree” is asking about.

Example 3 — when you must tidy up first

Find the order and degree of (1 + (dy/dx)²)3/2 = d²y/dx².

The order is easy: the highest derivative is d²y/dx², so the order is 2.

Degree, however, cannot be read off yet — the left-hand side has a fractional power of 3/2, so this is not a polynomial in the derivatives. Square both sides to clear it:

(1 + (dy/dx)²)³ = (d²y/dx²)²

Now everything is a whole-number power. The highest-order derivative d²y/dx² appears to the power 2, so the degree is 2.

If you had skipped the squaring step and stared at the original, you would have had nothing sensible to say. That is the whole reason the tidying-up step exists.

Exam Tip — a one-line safety check
Before you write down a degree, ask yourself: are all the derivatives raised to whole-number powers, and is none of them inside a function? If the answer to either part is no, you have more work to do — either rationalise, or declare the degree not defined.

↑ Back to top

When the Degree Is Not Defined

This is a small topic that carries a surprisingly reliable one-mark question, and it is the kind of mark that students hand back simply because nobody warned them. So consider yourself warned.

Sometimes an equation can never be turned into a polynomial in its derivatives, no matter how much algebra you throw at it. That happens when a derivative is trapped inside another function — sin, cos, tan, log, or an exponential. In that situation the degree is not defined. Note carefully: the degree is not zero, and it is not one. It simply does not exist.

Key Rule — degree not defined
If a derivative appears inside sin, cos, tan, log or an exponential, the equation cannot be written as a polynomial in the derivatives, and the degree is not defined. The order, however, is always perfectly well defined — you can still see which derivative is highest.
Example 4 — spotting a degree that does not exist

(i) sin(dy/dx) + y = 0

The only derivative is dy/dx, so the order is 1. But dy/dx is locked inside a sine. No amount of rearranging will free it into a polynomial, so the degree is not defined.

(ii) d²y/dx² + edy/dx = 0

Highest derivative is d²y/dx², so the order is 2. But dy/dx sits in the exponent, so again the degree is not defined.

(iii) d²y/dx² + sin x × dy/dx = 0

Careful — this one is fine! The sine contains x, not a derivative. Both derivatives appear to the first power, so the order is 2 and the degree is 1.

Common Mistake — sin x versus sin(dy/dx)
Part (iii) above is the trap examiners love. A trigonometric or logarithmic function of the independent variable is completely harmless — it is just a coefficient. Only a function of a derivative destroys the degree. Read what is inside the bracket before you panic.

↑ Back to top

General and Particular Solutions

xy12321−1C = 3C = 1C = −1(0, 2)PARTICULAR solution: y = 2e⁻ˣthe one curve of the family that isforced to pass through (0, 2)GENERAL solution: y = Ce⁻ˣone curve for every value of C —the whole family at once
Every member of the purple family satisfies dy/dx + y = 0. The general solution y = Ce⁻ˣ describes all of them at once; adding the condition y = 2 when x = 0 selects exactly one, drawn in bold.

When you solve dy/dx = 2x you write y = x² + C, and you have probably never thought hard about that C. It deserves a moment, because it is the whole reason this chapter has two kinds of answer.

That C is not decoration. Different values of C give genuinely different functions — y = x², y = x² + 7, y = x² − 3 — and every single one of them has slope 2x at every point. So the differential equation on its own does not pin down one curve. It pins down an entire family of curves, all parallel in shape, sliding up and down.

Key Idea — general versus particular
The general solution contains arbitrary constants and describes the whole family of solutions at once. A particular solution is one specific member of that family, obtained by using extra information — usually a given point the curve must pass through.

How many arbitrary constants should the general solution have? Exactly as many as the order of the equation. A first-order equation gives one constant, a second-order equation gives two. That is a useful sanity check: if you solve a first-order equation and end up with two constants, something has gone wrong.

The extra information that selects one member is called an initial condition (or boundary condition). It usually arrives as a sentence like “given that y = 3 when x = 0”, or in shorthand as y(0) = 3.

Example 5 — from a family down to a single curve

Show that y = A cos x + B sin x satisfies d²y/dx² + y = 0, and then find the particular solution for which y = 1 and dy/dx = 2 when x = 0.

Verifying. Differentiating, dy/dx = −A sin x + B cos x, and d²y/dx² = −A cos x − B sin x = −y. So d²y/dx² + y = 0 for every A and B. It is a solution, and since the equation has order 2 and the answer carries two constants, this is the general solution.

Applying the conditions. Put x = 0 into y: 1 = A cos 0 + B sin 0 = A, so A = 1.

Put x = 0 into dy/dx: 2 = −A sin 0 + B cos 0 = B, so B = 2.

The particular solution is y = cos x + 2 sin x. Quick check: at x = 0 it gives y = 1, and its derivative −sin x + 2 cos x gives 2 at x = 0. Both conditions hold.

Exam Tip — always substitute back
Once you have found the constant, spend fifteen seconds putting the initial condition back into your final answer. If it does not reproduce the given values, you have made an arithmetic slip and you have just caught it for free.

↑ Back to top

Checking Whether a Given Function Is a Solution

Some questions do not ask you to solve anything. They hand you a function and an equation and say “verify that this function is a solution”. These are among the friendliest marks in the paper, because there is no cleverness required — just careful differentiation.

Key Rule — the verification routine
Differentiate the given function as many times as the equation needs. Substitute those derivatives into the left-hand side of the equation. Simplify. If you arrive at the right-hand side, the function is a solution. Say so explicitly in your final line.

The single best habit here is to work on one side only. Do not manipulate both sides at once and hope they meet in the middle — take the left-hand side, substitute, simplify, and show it turning into the right-hand side. Examiners want to see that one-directional flow.

Example 6 — verifying a solution of a second-order equation

Verify that y = e−3x is a solution of d²y/dx² + 6dy/dx + 9y = 0.

Differentiate once: dy/dx = −3e−3x.

Differentiate again: d²y/dx² = 9e−3x.

Now substitute into the left-hand side:

LHS = 9e−3x + 6(−3e−3x) + 9(e−3x) = (9 − 18 + 9)e−3x = 0 = RHS.

Since the left-hand side reduces to zero, y = e−3x is a solution.

As a bonus, the same equation is also satisfied by y = x e−3x. If you would like the practice, differentiate it twice using the product rule and watch the terms cancel in exactly the same way.

Example 7 — verifying a solution that contains a constant

Show that y = C/x is a solution of xdy/dx + y = 0 for every constant C.

Write y = Cx−1. Then dy/dx = −Cx−2 = −C/x².

LHS = x(−C/x²) + C/x = −C/x + C/x = 0 = RHS.

So y = C/x satisfies the equation whatever value C takes — which is precisely what makes it the general solution of this first-order equation.

Common Mistake — forgetting the product rule
When the given function is something like y = x e2x or y = x sin x, the derivative needs the product rule, and this is where verification questions go wrong. Write the two pieces out separately before you combine them. Rushing this costs more marks than any conceptual gap in the chapter.

↑ Back to top

Choosing Your Method: The Decision Map

Start: write the equation asdy/dx = somethingCan you push every y (with dy)to one side and every x (with dx)to the other side?SEPARABLEIntegrate both sidesYESNODo all terms have the same totaldegree — i.e. does dy/dx dependonly on the ratio y/x ?HOMOGENEOUSPut y = vx (or x = vy)YESNOIs it dy/dx + Py = Q (P, Q in x)or dx/dy + Px = Q (P, Q in y)?LINEARIF = e^(∫P dx), theny × IF = ∫(Q × IF) dxYESNORecheck your algebra — for CBSE 2026-27first-order work it is one of the three.
The three-question decision map. Ask the questions strictly in this order — separable first, because a separable equation is the quickest to finish and is easy to miss once you have convinced yourself the problem is hard.

This section contains no new mathematics. It contains something more valuable: a habit. Before you write a single line of working on a first-order differential equation, ask three questions in a fixed order. That order matters, and here is why.

Ask about separability first, because it is the fastest method and because some equations that look homogeneous or linear are quietly separable. Spotting that saves you five minutes. Ask about homogeneity second. Ask about linearity last — not because it is hardest, but because if the first two fail, linear is almost certainly the answer, so you barely need to check.

MethodHow to spot itWhat to do
Variables separabledy/dx can be written as f(x) × g(y) — every x can be herded to one side and every y to the other.Rewrite as dy/g(y) = f(x) dx, integrate both sides, add a single constant C.
HomogeneousAll terms have the same total degree, so dy/dx depends only on the ratio y/x (for example (x² + y²)/(2xy)).Put y = vx, so dy/dx = v + x dv/dx. The equation becomes separable in v and x. Solve, then replace v by y/x.
LinearFits dy/dx + Py = Q with P, Q in x only (or dx/dy + Px = Q with P, Q in y only). The dependent variable and its derivative both appear to the first power, and never multiplied together.Compute IF = e∫P dx, then use y × IF = ∫(Q × IF) dx + C.
Exam Tip — the thirty-second identification drill
Take any twenty first-order questions from your practice book. Do not solve them. Just write S, H or L beside each one, then check. Twenty questions takes about ten minutes and it improves your exam speed more than solving five questions slowly. Recognition is the bottleneck, not integration.
Common Mistake — jumping straight to the integrating factor
Because the linear method feels the most “official”, students reach for it first and then get stuck computing an integrating factor for an equation that was separable all along. Run the three questions in order. Every single time.

↑ Back to top

Method 1: Variables Separable

This is the foundation method, and it is beautifully simple in principle: get all the y-stuff (including dy) onto one side, all the x-stuff (including dx) onto the other, then integrate each side with respect to its own variable.

Key Rule — variables separable
If the equation can be written as dy/dx = f(x) × g(y), then separate it into
dy / g(y) = f(x) dx
and integrate both sides. You need only one arbitrary constant on the whole equation, conventionally written on the right.

Two practical points before we begin. First, treating dy and dx as though they were ordinary quantities you can multiply and divide is not fully rigorous, but it is exactly what CBSE expects and it always gives the right answer for the equations in this syllabus. Do it without guilt. Second, when you divide by g(y) you are quietly assuming g(y) is not zero — that is standard at this level and you are not expected to comment on it.

Example 8 — a clean separable equation

Solve dy/dx = (1 + y²) / (1 + x²).

Separate. Everything with y goes left, everything with x goes right:

dy / (1 + y²) = dx / (1 + x²)

Integrate both sides. Both are standard forms you know:

tan−1y = tan−1x + C

That is the general solution. You could rearrange it as y = tan(tan−1x + C), but there is no need — an implicit answer is perfectly acceptable, and often tidier.

Example 9 — separating a trigonometric equation

Solve sec²x tan y dx + sec²y tan x dy = 0.

It does not look separable at a glance, but look again: the first term has only x-things multiplied by only y-things, and so does the second. Move one term across and divide by tan x tan y:

(sec²y / tan y) dy = − (sec²x / tan x) dx

Each side is now of the form (derivative of the bottom) / (the bottom), which integrates to a logarithm:

log|tan y| = − log|tan x| + log|C|

Writing the constant as log|C| lets us combine the logs immediately:

log|tan y| + log|tan x| = log|C|, so tan x tan y = C.

Example 10 — when the answer stays implicit

Solve dy/dx = (x + 1) / (2 − y), where y ≠ 2.

Separate: (2 − y) dy = (x + 1) dx.

Integrate both sides: 2y − y²/2 = x²/2 + x + C′.

Multiplying through by 2 to clear the fractions, and renaming the constant:

4y − y² = x² + 2x + C

You cannot make y the subject here without a square root and a sign ambiguity, so leave it exactly like this. An implicit general solution is a complete answer.

Exam Tip — choose the friendliest form of the constant
When both sides integrate to logarithms, write the constant as log|C| rather than plain C. It collapses the whole answer into one clean product or quotient in a single line, and it looks far better in a script than a trailing stray constant you have to exponentiate later.

↑ Back to top

Separable Equations With an Initial Condition

Everything you just learned, plus one final step: use the given point to find C. The important discipline is when to do it — find the general solution first, all the way, and only then substitute. Substituting too early is a reliable way to lose marks.

Example 11 — separable with a given point

Solve dy/dx = ex − y given that y = 1 when x = 0.

First rewrite the right-hand side so the separation is obvious: ex − y = ex × e−y. Now it is visibly f(x) × g(y).

Separate: ey dy = ex dx.

Integrate: ey = ex + C. That is the general solution.

Now, and only now, apply the condition. Put x = 0, y = 1: e1 = e0 + C, so e = 1 + C, giving C = e − 1.

The particular solution is ey = ex + e − 1, or explicitly y = log(ex + e − 1).

Check: at x = 0 this gives y = log(1 + e − 1) = log e = 1. The condition is satisfied.

Example 12 — a decay-type equation

Solve dy/dx + 2xy = 0 given y(0) = 3.

It is tempting to call this linear — it does fit dy/dx + Py = Q with Q = 0 — but run the decision map properly and you will notice it separates in one step, which is far quicker.

Rearrange: dy/dx = −2xy, so dy/y = −2x dx.

Integrate: log|y| = −x² + C′.

Exponentiate both sides: y = Ae−x², where A = eC′ is just a new constant.

Apply y(0) = 3: 3 = Ae0 = A. So the particular solution is y = 3e−x².

This is exactly the shape of a decay curve — and notice how much less work it was than computing an integrating factor would have been.

Common Mistake — substituting the initial condition too early
If you put x = 0 and y = 1 into the equation before integrating, you destroy the very function you were trying to find. The order is always: separate, integrate, get the general solution with C, then substitute. Never before.

↑ Back to top

Method 2: Homogeneous Equations and the y = vx Substitution

Now for the method that students find most mysterious at first meeting, and most mechanical once it clicks. Let us build it slowly.

A first-order equation is called homogeneous when every term has the same total degree — where “degree” here means adding the powers of x and y together. In (x² + y²) every term is degree 2. In 2xy every term is degree 2. So (x² + y²)/(2xy) is a ratio of two degree-2 expressions, and the practical consequence is lovely: the x’s cancel and the whole thing depends only on the ratio y/x.

That observation is the entire method. If the right-hand side only cares about y/x, then give that ratio a name — call it v — and the equation should simplify dramatically.

Key Rule — the homogeneous substitution
For a homogeneous equation, put y = vx. Differentiating with the product rule gives dy/dx = v + x dv/dx. Substituting turns the equation into a separable equation in v and x. Solve it, then put v = y/x back at the very end.

That derivative line is the one people forget. y = vx is a product of two things that both depend on x (v is a function of x, and so is x itself), so dy/dx is not just v. It is v + x dv/dx. Write it out every single time.

Example 13 — a standard homogeneous equation

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

Rearrange into derivative form: dy/dx = (x² + y²) / (2xy). Every term is degree 2 above and below, so it is homogeneous.

Put y = vx, so dy/dx = v + x dv/dx. The right-hand side becomes (x² + v²x²)/(2x · vx) = (1 + v²)/(2v).

So v + x dv/dx = (1 + v²)/(2v).

Isolate the derivative term: x dv/dx = (1 + v²)/(2v) − v = (1 + v² − 2v²)/(2v) = (1 − v²)/(2v).

Now it is separable: 2v dv/(1 − v²) = dx/x.

The left side is −(derivative of the bottom)/(the bottom), so it integrates to −log|1 − v²|:

−log|1 − v²| = log|x| − log|C|

Rearranging, log|x(1 − v²)| = log|C|, so x(1 − v²) = C.

Finally put v = y/x: x(1 − y²/x²) = C, which tidies to x² − y² = Cx.

Example 14 — a homogeneous equation with an inverse-tangent answer

Solve dy/dx = (x + y)/(x − y).

Top and bottom are both degree 1, so it is homogeneous. Put y = vx:

v + x dv/dx = (x + vx)/(x − vx) = (1 + v)/(1 − v)

x dv/dx = (1 + v)/(1 − v) − v = (1 + v − v + v²)/(1 − v) = (1 + v²)/(1 − v)

Separate: (1 − v)/(1 + v²) dv = dx/x.

Split the left side into two standard integrals: 1/(1 + v²) gives tan−1v, and −v/(1 + v²) gives −½ log(1 + v²).

tan−1v − ½ log(1 + v²) = log|x| + C

Put v = y/x. Since ½ log(1 + y²/x²) + log|x| = ½ log(x² + y²), the answer collapses neatly to

tan−1(y/x) − ½ log(x² + y²) = C

Example 15 — homogeneous with an exponential

Solve xdy/dx = y + x ey/x.

Divide through by x: dy/dx = y/x + ey/x. The right-hand side depends only on y/x, which is the clearest possible signal to substitute.

Put y = vx: v + x dv/dx = v + ev, so x dv/dx = ev.

The v cancels completely — that is the reward for spotting the structure. Separate: e−v dv = dx/x.

Integrate: −e−v = log|x| + C′.

Putting v = y/x and renaming the constant, e−y/x + log|x| = C.

Common Mistake — writing dy/dx = v
If you write dy/dx = v instead of v + x dv/dx, everything after that line is wrong, and it is wrong invisibly — the working still looks tidy. Build the muscle memory now: the moment you write y = vx, write dy/dx = v + x dv/dx directly underneath it, before you substitute anything.
Exam Tip — the fastest homogeneity check
Replace every x by λx and every y by λy. If all the λs cancel out completely, the equation is homogeneous. It takes about ten seconds and it is far more reliable than eyeballing the degrees.

↑ Back to top

When x = vy Is the Easier Substitution

The substitution y = vx is the default, but it is not compulsory. Sometimes an equation is built around the ratio x/y instead, and forcing y = vx onto it produces a horrible mess. In those cases, put x = vy and everything falls out cleanly.

Key Rule — choosing the substitution
If the equation is naturally expressed in terms of x/y — for instance if you can see ex/y, or sin(x/y), or if it is easier to write dx/dy than dy/dx — then substitute x = vy, with dx/dy = v + y dv/dy. The logic is identical; only the roles of x and y are swapped.

Practical rule of thumb: look at where the ratio appears. If you see y/x, use y = vx. If you see x/y, use x = vy. If neither ratio is written explicitly, use y = vx by default.

Example 16 — an equation built around x/y

Solve (1 + ex/y) dx + ex/y(1 − x/y) dy = 0.

The ratio x/y is written all over this equation, so put x = vy, which gives dx = v dy + y dv.

Substituting, and writing ev for ex/y:

(1 + ev)(v dy + y dv) + ev(1 − v) dy = 0

Collect the dy terms: v + v ev + ev − v ev = v + ev. So:

(v + ev) dy + y(1 + ev) dv = 0

Separate: (1 + ev)/(v + ev) dv = − dy/y.

The numerator on the left is precisely the derivative of the denominator, so the integral is a logarithm:

log|v + ev| = − log|y| + log|C|

So y(v + ev) = C. Putting v = x/y gives y(x/y + ex/y) = C, that is

x + y ex/y = C

Example 17 — when x = vy saves you the work

Solve y² dx + (x² − xy) dy = 0.

Every term is degree 2, so it is homogeneous and either substitution is legal. Because the dy coefficient factorises as x(x − y), the substitution x = vy is the tidier route.

Put x = vy, dx = v dy + y dv, and note x² − xy = v²y² − vy² = y²(v² − v):

y²(v dy + y dv) + y²(v² − v) dy = 0

Divide throughout by y² and collect the dy terms: (v + v² − v) dy + y dv = 0, that is v² dy + y dv = 0.

Separate: dv/v² = − dy/y.

Integrate: −1/v = −log|y| + C′, so 1/v = log|y| + C.

Putting v = x/y: y/x = log|y| + C.

Exam Tip — you are allowed to change your mind
If you start with y = vx and after three lines the algebra is getting uglier rather than simpler, stop and restart with x = vy. Both substitutions are valid for a homogeneous equation, and switching costs you two minutes while grinding on costs you the question.

↑ Back to top

Method 3: Linear Equations of the Type dy/dx + Py = Q

The third and final method, and the one with the most reliable procedure. Once you can spot the form, the rest is a recipe you can follow half asleep.

Key Rule — linear first-order equations
An equation of the form dy/dx + Py = Q, where P and Q are functions of x alone (or constants), is called linear. Its solution is
IF = e∫P dx   and   y × IF = ∫(Q × IF) dx + C.

What makes an equation linear? Two conditions, both about the dependent variable y. First, y and dy/dx each appear only to the first power. Second, they are never multiplied by each other, and y never appears inside a function like sin y or ey. Note that x can be as wild as it likes — x³, sin x, log x are all fine as coefficients.

Why does the integrating factor work? Briefly, and it is worth reading once: multiplying through by IF makes the left-hand side become exactly the derivative of the product y × IF. So the equation turns into d/dx(y × IF) = Q × IF, and then you just integrate both sides. Understanding this means you will never misremember which side gets multiplied.

Before computing the integrating factor, the equation must be in standard form — the coefficient of dy/dx has to be exactly 1. If your equation starts as xdy/dx + 2y = x³, divide through by x first. Skipping this step is the most common way this method goes wrong.

Example 18 — a linear equation with constant coefficients

Solve dy/dx + 2y = e3x.

It is already in standard form, with P = 2 and Q = e3x.

IF = e∫2 dx = e2x.

Apply the formula: y × e2x = ∫ e3x × e2x dx = ∫ e5x dx = e5x/5 + C.

Divide through by e2x:

y = e3x/5 + Ce−2x

Example 19 — when you must divide into standard form first

Solve xdy/dx − y = x².

The coefficient of dy/dx is x, not 1, so divide everything by x:

dy/dx − y/x = x, so P = −1/x and Q = x.

IF = e∫(−1/x) dx = e−log x = 1/x.

Apply the formula: y × (1/x) = ∫ x × (1/x) dx = ∫ 1 dx = x + C.

Multiply through by x: y = x² + Cx.

Worth a quick check: differentiating gives dy/dx = 2x + C, and then x(2x + C) − (x² + Cx) = 2x² + Cx − x² − Cx = x². Correct.

Example 20 — a board-level linear equation

Solve (1 + x²)dy/dx + 2xy = 1/(1 + x²).

Divide by (1 + x²) to reach standard form:

dy/dx + [2x/(1 + x²)] y = 1/(1 + x²)²

Here P = 2x/(1 + x²). Notice that the numerator is the derivative of the denominator, so ∫P dx = log(1 + x²).

IF = elog(1 + x²) = 1 + x².

Apply the formula: y(1 + x²) = ∫ [1/(1 + x²)²] × (1 + x²) dx = ∫ dx/(1 + x²) = tan−1x + C.

y(1 + x²) = tan−1x + C

A pleasant shortcut worth noticing: the original left-hand side (1 + x²)dy/dx + 2xy was already the derivative of y(1 + x²) by the product rule. When you spot that, you can skip the integrating factor entirely.

Common Mistake — forgetting to multiply Q by the integrating factor
The formula is y × IF = ∫(Q × IF) dx, not ∫Q dx. Writing the IF on the left and then integrating a bare Q on the right is the single most frequent error in this topic. Write the IF twice, on both sides, before you integrate anything.
Exam Tip — simplifying the integrating factor
You will constantly meet IF = elog f(x), which is simply f(x); and IF = e−log f(x), which is 1/f(x). Two more worth memorising: ∫cot x dx = log(sin x), so IF = sin x; and ∫tan x dx = −log(cos x), so IF = sec x. These four cover most of what CBSE asks.

↑ Back to top

Linear Equations of the Type dx/dy + Px = Q

Here is a situation that catches people out. You look at an equation, y appears squared or inside a logarithm, and you conclude it cannot possibly be linear. But sometimes if you flip your point of view — treat x as the dependent variable and y as the independent one — the very same equation becomes beautifully linear.

This is explicitly part of the CBSE 2026-27 syllabus, so it is worth being comfortable with rather than hoping it does not appear.

Key Rule — the flipped linear form
An equation of the form dx/dy + Px = Q, where P and Q are functions of y alone (or constants), is also linear. Everything works the same way with the roles swapped:
IF = e∫P dy   and   x × IF = ∫(Q × IF) dy + C.

The signal to look for: the equation is awkward in y but tame in x. If x and dx/dy would appear only to the first power, you are in business.

Example 21 — flipping the roles of x and y

Solve y dx − (x + 2y²) dy = 0.

Try it as dy/dx first and you get dy/dx = y/(x + 2y²), which is neither separable nor linear in y. So flip it.

Rearranged for dx/dy: y dx/dy = x + 2y², so dx/dy − x/y = 2y.

That is dx/dy + Px = Q with P = −1/y and Q = 2y — both functions of y alone. Linear.

IF = e∫(−1/y) dy = e−log y = 1/y.

Apply the formula: x × (1/y) = ∫ 2y × (1/y) dy = ∫ 2 dy = 2y + C.

Multiply by y: x = 2y² + Cy.

Example 22 — a flipped linear equation with an inverse trigonometric term

Solve (1 + y²) dx = (tan−1y − x) dy.

Write it as dx/dy: (1 + y²) dx/dy = tan−1y − x. Divide by (1 + y²) and bring x across:

dx/dy + x/(1 + y²) = tan−1y / (1 + y²)

So P = 1/(1 + y²), and ∫P dy = tan−1y. Therefore IF = etan−1y.

x × etan−1y = ∫ [tan−1y / (1 + y²)] etan−1y dy

For that integral, substitute t = tan−1y, so dt = dy/(1 + y²). The whole thing becomes ∫ t et dt, which by parts is (t − 1)et + C.

Putting t back: x etan−1y = (tan−1y − 1) etan−1y + C, so

x = tan−1y − 1 + C e−tan−1y

Exam Tip — when to suspect the flip
If y appears to a power higher than one, or inside a log or an exponential, but every x in the equation is lonely and first-power, stop and try dx/dy. Two minutes spent testing the flip beats fifteen minutes fighting an equation in the wrong orientation.

↑ Back to top

Pinning Down the Constant: Particular Solutions

You have now met all three methods. This short section is about the final step that appears in almost every long-answer question: turning a general solution into a particular one. The method never changes, but doing it under exam pressure is where the arithmetic slips happen, so let us make the routine automatic.

Key Rule — the four-step routine
1. Identify the method and solve completely, keeping C. 2. Substitute the given values of x and y into the general solution. 3. Solve for C. 4. Write the answer out in full with that value of C substituted in — and then check it against the original condition.
Example 23 — a particular solution from a separable equation

Solve dy/dx = y tan x given that y = 1 when x = 0.

Separate: dy/y = tan x dx.

Integrate: log|y| = log|sec x| + log|A|, using log|A| for the constant so the logs combine.

So y = A sec x.

Apply the condition x = 0, y = 1: 1 = A sec 0 = A × 1, so A = 1.

The particular solution is y = sec x.

Check: differentiating sec x gives sec x tan x, and y tan x = sec x tan x. They agree, and y(0) = sec 0 = 1. Both boxes ticked.

Example 24 — a particular solution from a linear equation

Solve dy/dx + y cot x = 2x + x² cot x, given that y = 0 when x = π/2.

This is linear with P = cot x, so IF = e∫cot x dx = elog sin x = sin x.

Apply the formula: y sin x = ∫ (2x + x² cot x) sin x dx = ∫ (2x sin x + x² cos x) dx.

Look carefully at that integrand — it is exactly the product-rule derivative of x² sin x. So the integral is x² sin x + C, with no integration by parts needed at all.

y sin x = x² sin x + C

Apply x = π/2, y = 0: 0 × 1 = (π/2)² × 1 + C, so C = − π²/4.

y sin x = x² sin x − π²/4, that is y = x² − π²/(4 sin x).

Example 25 — a particular solution from a homogeneous equation

Solve (x² + xy) dy = (x² + y²) dx given that y = 0 when x = 1.

Every term is degree 2, so it is homogeneous. Put y = vx, dy/dx = v + x dv/dx:

v + x dv/dx = (x² + v²x²)/(x² + vx²) = (1 + v²)/(1 + v)

x dv/dx = (1 + v² − v − v²)/(1 + v) = (1 − v)/(1 + v)

Separate: (1 + v)/(1 − v) dv = dx/x. Write the numerator as 2 − (1 − v) to split the fraction:

∫ [2/(1 − v) − 1] dv = −2 log|1 − v| − v

So −2 log|1 − v| − v = log|x| + C. Putting v = y/x and using 1 − y/x = (x − y)/x, this rearranges to

(x − y)² = A x e−y/x , for a constant A.

Apply x = 1, y = 0: (1 − 0)² = A × 1 × e0, so A = 1.

(x − y)² = x e−y/x

Common Mistake — losing the modulus and the constant together
When you exponentiate log|y| = something + C, remember that eC is a brand new positive constant, usually written A. Students often drop C entirely at this step, which quietly turns a general solution into one specific member and makes the initial condition impossible to satisfy. If your C vanishes before you use it, retrace your steps.

↑ Back to top

Good to Know: Forming a Differential Equation From a Family of Curves

Good to Know — please confirm against your current syllabus
The topic below — forming a differential equation whose general solution is given, or finding the differential equation of a given family of curves — does not appear in the wording of the CBSE Class 12 Mathematics curriculum for the 2026-27 session, which lists only: definition, order and degree, general and particular solutions, variables separable, homogeneous equations of first order and first degree, and the two linear types. It has featured in earlier syllabuses and it remains genuinely useful for understanding what an arbitrary constant is, so it is included here as background rather than as core exam preparation. Please confirm the current wording with your teacher or the official curriculum document before you spend heavy revision time on it. Do not let it displace the three solution methods, which are certain to be examined.

With that caveat clearly stated, here is the idea in brief, because it genuinely deepens your understanding of everything above.

Solving a differential equation takes you from an equation about slopes to a family of curves. Forming one runs the film backwards: you start with a family of curves containing arbitrary constants, and you produce the differential equation that every member of the family satisfies.

The procedure is short. Count the arbitrary constants — say there are n. Differentiate the given equation n times. You now have n + 1 equations in total, and you use them to eliminate all n constants. Whatever equation survives is the answer, and it will have order n.

For a quick feel: take the family y = Ce−x, the one drawn in the figure earlier on this page. There is one constant, so differentiate once: dy/dx = −Ce−x. But Ce−x is just y, so dy/dx = −y, that is dy/dx + y = 0. Order 1, as expected, and the constant has vanished. That is why every curve in that purple family had the same slope rule.

Notice how this closes the loop. In the general-solutions section we started with dy/dx + y = 0 and produced y = Ce−x. Here we started with y = Ce−x and recovered dy/dx + y = 0. Solving and forming are the same doorway walked through in opposite directions — and understanding that is useful whether or not it is on your paper.

↑ Back to top

Common Traps and How to Dodge Them

Let us finish the notes with the errors that cost the most marks. None of these are conceptual gaps — they are all slips of habit, which means they are all fixable in an afternoon.

Trap 1 — the missing constant of integration
Every time you integrate, a constant appears. In a differential equation the constant is not a formality — it is the entire difference between a general and a particular solution. If you drop it, you cannot apply the initial condition, and the question collapses. Make it a rule: the instant you write an integral sign, write “+ C” on the same line.
Trap 2 — not putting the equation in standard form
Before computing an integrating factor, the coefficient of dy/dx must be exactly 1. If the equation begins xdy/dx + 3y = x², you must divide by x first, so P = 3/x and not 3. Computing IF from the undivided equation is a guaranteed zero on the rest of the question.
Trap 3 — substituting back in the wrong variable
After solving a homogeneous equation you have an answer in v and x. It is not finished until every v has become y/x (or x/y, if you used x = vy). Leaving a v in the final line loses marks even when all the calculus above it was flawless.
Trap 4 — reading degree off an untidied equation
If a derivative sits under a root sign or carries a fractional power, rationalise before you say anything about degree. And if a derivative is inside sin, cos, log or an exponential, the correct answer is “degree not defined” — not zero, and not one.
A gentler habit that fixes most of these
Before writing your final answer, spend thirty seconds asking three questions. Is there a constant in it? Are all my substitution variables gone? Does it satisfy the initial condition I was given? Three questions, half a minute, and it will rescue at least one question in every paper you sit.

If a section on this page still feels shaky, go back to it now rather than pushing on. Differential Equations is unusually cumulative — the linear method assumes you are fluent with separation, and every method assumes you can integrate calmly. There is genuinely no rush.

↑ Back to top

Practice Worksheet

Ten questions, arranged roughly from gentlest to most demanding. Work each one on paper in full before you open the answer — reading a solution feels like learning, but writing one is learning. If a question defeats you, go back to the relevant section above rather than straight to the answer.

Question 1.

Find the order and the degree of (d³y/dx³)⁴ + sin x × d²y/dx² = 0.

Show Answer

The highest-order derivative present is d³y/dx³, so the order is 3.

The equation is already a polynomial in the derivatives — note that sin x contains the independent variable, not a derivative, so it is only a coefficient and causes no trouble.

The highest-order derivative d³y/dx³ is raised to the power 4, so the degree is 4. (The first power on d²y/dx² is irrelevant — it is not the highest-order derivative.)

Question 2.

Find the order and the degree of d²y/dx² + cos(dy/dx) = 0.

Show Answer

The highest-order derivative is d²y/dx², so the order is 2.

However, dy/dx is trapped inside a cosine. The equation can therefore never be written as a polynomial in its derivatives, so the degree is not defined.

Be precise in your wording here: “not defined” earns the mark; “zero” or “one” does not.

Question 3.

Verify that y = e2x(A + Bx) is a solution of d²y/dx² − 4dy/dx + 4y = 0, where A and B are arbitrary constants.

Show Answer

Differentiate using the product rule:

dy/dx = 2e2x(A + Bx) + e2x(B) = e2x(2A + 2Bx + B)

Differentiate again:

d²y/dx² = 2e2x(2A + 2Bx + B) + e2x(2B) = e2x(4A + 4Bx + 4B)

Substitute into the left-hand side and take out the common factor e2x:

LHS = e2x[(4A + 4Bx + 4B) − 4(2A + 2Bx + B) + 4(A + Bx)]

Collect the A terms: 4A − 8A + 4A = 0. The Bx terms: 4Bx − 8Bx + 4Bx = 0. The B terms: 4B − 4B = 0.

So LHS = 0 = RHS, and y = e2x(A + Bx) is a solution. Since the equation has order 2 and the answer carries two arbitrary constants, it is in fact the general solution.

Question 4.

Solve dy/dx = (1 + x)(1 + y²).

Show Answer

The right-hand side is already a product of a function of x and a function of y, so the equation is separable.

Separate: dy/(1 + y²) = (1 + x) dx.

Integrate both sides:

tan−1y = x + x²/2 + C

Check by differentiating: the left gives (1/(1 + y²))dy/dx, the right gives 1 + x. Rearranging returns the original equation.

Question 5.

Solve x√(1 + y²) dx + y√(1 + x²) dy = 0.

Show Answer

Divide throughout by √(1 + x²) √(1 + y²) to separate the variables:

[x / √(1 + x²)] dx + [y / √(1 + y²)] dy = 0

Each integral is of the form ∫ f′(u)/(2√f(u)) du. Taking the first, substitute t = 1 + x², so dt = 2x dx:

∫ x dx/√(1 + x²) = √(1 + x²)

and identically for the y integral. So the general solution is

√(1 + x²) + √(1 + y²) = C

Question 6.

Solve dy/dx = (x − y)/(x + y).

Show Answer

Top and bottom are both degree 1, so the equation is homogeneous. Put y = vx, giving dy/dx = v + x dv/dx:

v + x dv/dx = (x − vx)/(x + vx) = (1 − v)/(1 + v)

x dv/dx = (1 − v)/(1 + v) − v = (1 − v − v − v²)/(1 + v) = (1 − 2v − v²)/(1 + v)

Separate: (1 + v) dv/(1 − 2v − v²) = dx/x.

The derivative of the denominator 1 − 2v − v² is −2 − 2v = −2(1 + v), which is −2 times the numerator. So the left integral is −½ log|1 − 2v − v²|:

−½ log|1 − 2v − v²| = log|x| − ½ log|C|

Multiply by −2 and combine: log|1 − 2v − v²| + log|x²| = log|C|, so x²(1 − 2v − v²) = C.

Put v = y/x: x²(1 − 2y/x − y²/x²) = C, that is

x² − 2xy − y² = C

Question 7.

Solve (x² + y²) dx = 2xy dy given that y = 0 when x = 1.

Show Answer

This is the homogeneous equation from the study notes, so the general solution is x² − y² = Cx. (If you need the working: put y = vx, reduce to 2v dv/(1 − v²) = dx/x, integrate to −log|1 − v²| = log|x| − log|C|, then substitute v = y/x.)

Apply the condition x = 1, y = 0:

1² − 0² = C × 1, so C = 1.

The particular solution is x² − y² = x.

Check: at (1, 0) the left side is 1 and the right side is 1. Correct.

Question 8.

Solve dy/dx + y tan x = sec x given that y = 1 when x = 0.

Show Answer

This is linear with P = tan x and Q = sec x.

∫tan x dx = −log|cos x| = log|sec x|, so IF = elog|sec x| = sec x.

Apply the formula: y sec x = ∫ sec x × sec x dx = ∫ sec²x dx = tan x + C.

Multiply through by cos x: y = sin x + C cos x. That is the general solution.

Apply x = 0, y = 1: 1 = sin 0 + C cos 0 = C, so C = 1.

The particular solution is y = sin x + cos x.

Check: dy/dx = cos x − sin x, and dy/dx + y tan x = cos x − sin x + (sin x + cos x)tan x = cos x + sin²x/cos x = (cos²x + sin²x)/cos x = sec x. Correct.

Question 9.

Solve (x log x) dy/dx + y = 2 log x, for x > 1.

Show Answer

Divide by x log x to reach standard form:

dy/dx + y/(x log x) = 2/x

So P = 1/(x log x). For the integral, substitute u = log x, du = dx/x:

∫ dx/(x log x) = ∫ du/u = log|u| = log|log x|

IF = elog|log x| = log x.

Apply the formula: y log x = ∫ (2/x) log x dx. Substituting u = log x again gives ∫ 2u du = u².

y log x = (log x)² + C

Question 10.

Solve y dx/dy − x = 2y³.

Show Answer

Here y appears to the third power, so this will not behave as a linear equation in y. But x and dx/dy are both first-power and unmultiplied, so treat x as the dependent variable.

Divide by y to reach standard form:

dx/dy − x/y = 2y²

So P = −1/y and Q = 2y², both functions of y alone.

IF = e∫(−1/y) dy = e−log y = 1/y.

Apply the formula: x × (1/y) = ∫ 2y² × (1/y) dy = ∫ 2y dy = y² + C.

Multiply through by y: x = y³ + Cy.

Check: dx/dy = 3y² + C, so y(3y² + C) − (y³ + Cy) = 3y³ + Cy − y³ − Cy = 2y³. Correct.

Kaizen for today: do not try to master the whole chapter this evening. Aim for one more correct question than yesterday — just one. Ten days of that quietly turns into a chapter you own, and it is far kinder to your nerves than a single heroic all-nighter.

Written & reviewed by Team Principal Saab — Meet the team →