NDA Maths · Differential Equations

Solving ODEs — Separable, Substitution, Integrating Factor

First-order ODEs are solved by a small toolkit: separate the variables, reduce a tangled one by substitution, or use an integrating factor for the linear case — then fit any initial condition.

Why this matters

29 PYQs, the biggest subtopic and the home of most HARD questions. The whole skill is reading the equation's shape to pick the method: separable if the variables come apart, a substitution v = x ± y if they don't, an integrating factor if it is linear. Applications add growth/decay and particle-motion initial-value problems.

Concept 1 of 4

Separation of variables

Intuition

The first thing to try: get all the y's (with dy) on one side and all the x's (with dx) on the other, then integrate both sides. Most first-order NDA equations either separate directly or do so after a small rewrite (taking logs, or recognising an exponential).

Definition

The separable method:

  • Write the equation as g(y)dy=f(x)dxg(y)\,dy = f(x)\,dx, then integrate both sides — don't forget the single arbitrary constant.
  • Exponentials separate: ln(dydx)=ax+bydydx=eaxebyebydy=eaxdx\ln\big(\tfrac{dy}{dx}\big) = ax+by \Rightarrow \tfrac{dy}{dx}=e^{ax}e^{by} \Rightarrow e^{-by}\,dy=e^{ax}\,dx.
  • A constant derivative integrates trivially: cos(dydx)=pdydx=cos1py=xcos1p+C\cos\big(\tfrac{dy}{dx}\big)=p \Rightarrow \tfrac{dy}{dx}=\cos^{-1}p \Rightarrow y = x\cos^{-1}p + C.

Separation of variables

dyg(y)=f(x)dx+C\int \frac{dy}{g(y)} = \int f(x)\,dx + C

Worked example

Solve dydx=(1+y2)\dfrac{dy}{dx} = (1+y^2) — i.e. dy=(1+y2)dxdy = (1+y^2)\,dx.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1Differential EquationsMODERATE
What is the solution of the following differential equation? ln(dydx)+y=x\ln\left(\frac{dy}{dx}\right)+y=x

[Q99 · Apr · 2021]

Take logs / exponentials to unlock separation

Equations like ln(dy/dx)=ax+by\ln(dy/dx)=ax+by look non-separable until you exponentiate: dy/dx=eaxebydy/dx=e^{ax}e^{by} splits cleanly. Always check whether one rewrite makes the variables come apart before reaching for a heavier method.

One arbitrary constant only — and add it at the integration step

After separating, integrating BOTH sides produces just ONE arbitrary constant for a first-order equation, not one per side. eydy=exdx\int e^{y}\,dy = \int e^{x}\,dx gives ey=ex+ce^{y}=e^{x}+c, never ey+c1=ex+c2e^{y}+c_1=e^{x}+c_2. Dropping the constant entirely — or writing two — is the classic separable-method slip.

Concept 2 of 4

Reducible to separable by substitution

Intuition

When x and y appear glued together as a combination like x+yx+y or yxy-x, substitute a new variable for that combination. The substitution turns a tangled equation into a separable one in the new variable. Also learn to spot exact differentials like d(xy)d(xy) and d(x/y)d(x/y).

Definition

Two reduction tricks:

  • Substitute the combination: if the equation depends on x+yx+y (or yxy-x), set v=x+yv=x+y, so dvdx=1+dydx\tfrac{dv}{dx}=1+\tfrac{dy}{dx}, and the equation becomes separable in vv.
  • Recognise exact differentials: xdy+ydx=d(xy)x\,dy+y\,dx=d(xy); xdyydxy2=d ⁣(xy)\dfrac{x\,dy-y\,dx}{y^2}=d\!\big(\tfrac{x}{y}\big); xdx+ydy=12d(x2+y2)x\,dx+y\,dy=\tfrac12 d(x^2+y^2).

Exact differentials to recognise

xdy+ydx=d(xy)xdyydxy2=d ⁣(xy)xdx+ydy=12d(x2+y2)x\,dy + y\,dx = d(xy) \qquad \frac{x\,dy - y\,dx}{y^2} = d\!\left(\frac{x}{y}\right) \qquad x\,dx + y\,dy = \tfrac12\,d(x^2+y^2)

Worked example

Solve dydx=cos(yx)+1\dfrac{dy}{dx} = \cos(y-x) + 1.
Practice this conceptself-check · 3 quick reps

From the bank · past-year question

Example 2Differential EquationsHARD
What is the solution of the differential equation dxdy=x+y+1x+y1\frac{dx}{dy}=\frac{x+y+1}{x+y-1}?

[Q99 · Sep · 2018]

Spot the glued combination first

If you cannot separate directly, look for x+yx+y or yxy-x appearing as a unit — that is the signal to substitute vv for it. Trying to force separation without the substitution leads nowhere.

Memorise the exact differentials with the right sign

xdy+ydx=d(xy)x\,dy+y\,dx=d(xy) (a PLUS), but xdyydxy2=d ⁣(xy)\dfrac{x\,dy-y\,dx}{y^2}=d\!\left(\tfrac{x}{y}\right) (a MINUS, over y2y^2). Swapping the sign or the denominator — e.g. writing ydxxdyy2=d(x/y)\tfrac{y\,dx-x\,dy}{y^2}=d(x/y) — gives d(x/y)-d(x/y) and the wrong answer.

Concept 3 of 4

Linear equations and the integrating factor

Intuition

A first-order LINEAR equation — y appears only to the first power, multiplied by functions of x — is solved by multiplying through by an integrating factor that turns the left side into the derivative of a product. Sometimes the equation is linear in x instead of y, so flip it to dx/dy first.

Definition

The integrating-factor method:

  • Standard form: dydx+P(x)y=Q(x)\dfrac{dy}{dx} + P(x)\,y = Q(x).
  • Integrating factor μ=ePdx\mu = e^{\int P\,dx}; then ddx(μy)=μQ\dfrac{d}{dx}(\mu y) = \mu Q, so μy=μQdx+c\mu y = \int \mu Q\,dx + c.
  • If the equation is linear in xx, use dxdy+P(y)x=Q(y)\dfrac{dx}{dy} + P(y)\,x = Q(y) with μ=ePdy\mu = e^{\int P\,dy}.
  • Bernoulli dydx+Py=Qyn\dfrac{dy}{dx}+Py = Qy^{n}: substitute v=y1nv=y^{1-n} to make it linear.

Integrating factor

μ=eP(x)dx,ddx(μy)=μQ,yμ=Qμdx+c,dxdy+P(y)x=Q(y): μ=eP(y)dy,dydx+Py=Qyn: v=y1n\mu = e^{\int P(x)\,dx},\qquad \frac{d}{dx}(\mu y) = \mu Q,\qquad y\,\mu = \int Q\,\mu\,dx + c,\qquad \frac{dx}{dy}+P(y)\,x=Q(y):\ \mu=e^{\int P(y)\,dy},\qquad \frac{dy}{dx}+Py=Qy^{n}:\ v=y^{1-n}

Worked example

Solve dydx+yx=x\dfrac{dy}{dx} + \dfrac{y}{x} = x.
Practice this conceptself-check · 3 quick reps

From the bank · past-year question

Example 3Differential EquationsMODERATE
What is the general solution of the differential equation ydx(x+2y2)dy=0y\,dx-(x+2y^2)\,dy=0?

[Q88 · Apr · 2017]

Put the equation in STANDARD form before reading off P

The integrating factor is ePdxe^{\int P\,dx} only when the equation is written as dydx+Py=Q\dfrac{dy}{dx}+Py=Q with coefficient +1+1 on dydx\tfrac{dy}{dx}. For xdydxy=x2x\dfrac{dy}{dx}-y=x^2 you must first divide by xx to get P=1xP=-\tfrac1x (so μ=1x\mu=\tfrac1x); using P=1P=-1 or forgetting the sign gives the wrong factor.

Bernoulli substitution is v=y1nv=y^{1-n}, not yn1y^{n-1}

To linearise dydx+Py=Qyn\dfrac{dy}{dx}+Py=Qy^{n}, substitute v=y1nv=y^{1-n} (exponent 1n1-n). For n=2n=2 that is v=y1v=y^{-1}, NOT v=y1v=y^{1}. Getting the exponent backwards (yn1y^{n-1}) flips the sign of the resulting linear equation.

Concept 4 of 4

Initial-value problems and growth/decay

Intuition

An initial value pins down the arbitrary constant: solve the ODE generally, then plug in the given point. The classic application is exponential growth and decay — anything whose rate of change is proportional to its current amount. Verifying a proposed solution just means substituting it back.

Definition

Applications and verification:

  • Growth/decay: dydt=ky\dfrac{dy}{dt} = ky has solution y=y0ekty = y_0 e^{kt} (k>0k>0 growth, k<0k<0 decay — radioactivity, cooling).
  • IVP: find the general solution, then use the condition (e.g. y(0)=y0y(0)=y_0) to fix the constant.
  • Verify a candidate by substituting it into the ODE; a factored equation like (y)2xy=0(y')^2 - x\,y' = 0 splits into y=0y'=0 and y=xy'=x, giving two solution families.

Growth/decay and order

dNdt=kN    N=N0ektnumber of arbitrary constants=order\frac{dN}{dt} = kN \;\Rightarrow\; N = N_0 e^{kt} \qquad \text{number of arbitrary constants} = \text{order}
y₀growth (k > 0)decay (k < 0)t →dy/dt = k y → y = y₀ e^{kt}

Worked example

A particle starts at the origin with dxdt=x+1\dfrac{dx}{dt} = x + 1. How long to travel 24 m?
Practice this conceptself-check · 3 quick reps

From the bank · past-year question

Example 4Differential EquationsMODERATE
A particle starts from origin with a velocity (in m/s) given by the equation dxdt=x+1\frac{dx}{dt}=x+1. The time (in second) taken by the particle to traverse a distance of 24 m is

[Q77 · Apr · 2021]

Apply the initial condition to the GENERAL solution

Solve fully (keeping the arbitrary constant) BEFORE substituting the initial value. Plugging the condition in too early — before integrating — loses the constant you are trying to determine.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

  • Separation of variables

    Separation of variables

    dyg(y)=f(x)dx+C\int \frac{dy}{g(y)} = \int f(x)\,dx + C
  • Reducible to separable by substitution

    Exact differentials to recognise

    xdy+ydx=d(xy)xdyydxy2=d ⁣(xy)xdx+ydy=12d(x2+y2)x\,dy + y\,dx = d(xy) \qquad \frac{x\,dy - y\,dx}{y^2} = d\!\left(\frac{x}{y}\right) \qquad x\,dx + y\,dy = \tfrac12\,d(x^2+y^2)
  • Linear equations and the integrating factor

    Integrating factor

    μ=eP(x)dx,ddx(μy)=μQ,yμ=Qμdx+c,dxdy+P(y)x=Q(y): μ=eP(y)dy,dydx+Py=Qyn: v=y1n\mu = e^{\int P(x)\,dx},\qquad \frac{d}{dx}(\mu y) = \mu Q,\qquad y\,\mu = \int Q\,\mu\,dx + c,\qquad \frac{dx}{dy}+P(y)\,x=Q(y):\ \mu=e^{\int P(y)\,dy},\qquad \frac{dy}{dx}+Py=Qy^{n}:\ v=y^{1-n}
  • Initial-value problems and growth/decay

    Growth/decay and order

    dNdt=kN    N=N0ektnumber of arbitrary constants=order\frac{dN}{dt} = kN \;\Rightarrow\; N = N_0 e^{kt} \qquad \text{number of arbitrary constants} = \text{order}

Watch out for (7)

Drill every past-year question on this subtopic

29 questions from the bank — paginated, with cart and Word-export support.