The Standard Form and the Integrating Factor

A first order linear differential equation has the shape

dydx+Py=Q\frac{dy}{dx} + P y = Q

where PP and QQ are constants or functions of xx only. Examples: dydx+y=sin⁡x\frac{dy}{dx} + y = \sin x; dydx+1xy=ex\frac{dy}{dx} + \frac1x y = e^x; dydx+yxlog⁡x=1x\frac{dy}{dx} + \frac{y}{x\log x} = \frac1x. Note what linearity requires: yy and y′y' appear to the first power, never multiplied together, never inside another function.

Where the integrating factor comes from

Multiply the equation by an unknown function g(x)g(x) and demand that the left side become the derivative of the product y g(x)y\,g(x):

g(x)dydx+P g(x) y=ddx[y g(x)]=g(x)dydx+y g′(x)g(x)\frac{dy}{dx} + P\,g(x)\,y = \frac{d}{dx}\left[y\,g(x)\right] = g(x)\frac{dy}{dx} + y\,g'(x)

Comparing forces P g(x)=g′(x)P\,g(x) = g'(x), i.e. g′g=P\frac{g'}{g} = P. Integrating: log⁡g=∫P dx\log g = \int P\,dx, so

g(x)=e∫P dx=the Integrating Factor (I.F.)g(x) = e^{\int P\,dx} = \text{the Integrating Factor (I.F.)}

With it, the equation collapses to ddx(y⋅I.F.)=Q⋅I.F.\frac{d}{dx}\left(y\cdot\text{I.F.}\right) = Q\cdot\text{I.F.}, and one integration finishes:

y⋅(I.F.)=∫Q⋅(I.F.) dx+Cy\cdot(\text{I.F.}) = \int Q\cdot(\text{I.F.})\,dx + C

Pipeline of the integrating factor method for linear differential equations

The three exam steps

  1. Standardise: rewrite as dydx+Py=Q\frac{dy}{dx} + Py = Q — divide through by any coefficient of dydx\frac{dy}{dx} first, then read off PP and QQ.
  2. Compute I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx} (no constant needed in this integral).
  3. Write the solution y (I.F.)=∫Q (I.F.) dx+Cy\,(\text{I.F.}) = \int Q\,(\text{I.F.})\,dx + C and evaluate the right-side integral.

Key Point: The simplification elog⁡f(x)=f(x)e^{\log f(x)} = f(x) is the daily workhorse: P=2xP = \frac2x gives I.F.=e2log⁡x=x2\text{I.F.} = e^{2\log x} = x^2; P=cot⁡xP = \cot x gives I.F.=elog⁡sin⁡x=sin⁡x\text{I.F.} = e^{\log\sin x} = \sin x; P=−1xP = -\frac1x gives 1x\frac1x. Most integrating factors are one log⁡\log-collapse away.

[JEE Tip] An I.F. speed-table worth memorising: P=ax⇒I.F.=xaP = \frac ax \Rightarrow \text{I.F.} = x^a; P=tan⁡x⇒sec⁡xP = \tan x \Rightarrow \sec x; P=cot⁡x⇒sin⁡xP = \cot x \Rightarrow \sin x; P=−xP = -x-type ⇒e−x2/2\Rightarrow e^{-x^2/2}. JEE asks for the I.F. alone often enough that these four pay for themselves.

The Mirror Form — Linear in xx

Some equations are hopeless as dydx=…\frac{dy}{dx} = \ldots but perfectly linear the other way round:

dxdy+P1x=Q1\frac{dx}{dy} + P_1 x = Q_1

with P1,Q1P_1, Q_1 functions of yy only. Then I.F.=e∫P1 dy\text{I.F.} = e^{\int P_1\,dy} and

x⋅(I.F.)=∫Q1⋅(I.F.) dy+Cx\cdot(\text{I.F.}) = \int Q_1\cdot(\text{I.F.})\,dy + C

Recognition cue: terms like x+2y2x + 2y^2 or x−y2x - y^2 multiplying dydy, with a lone y dxy\,dx — solve for dxdy\frac{dx}{dy} and watch the equation become linear in xx. Example: y dx−(x+2y2)dy=0y\,dx - \left(x + 2y^2\right)dy = 0 rearranges to dxdy−xy=2y\frac{dx}{dy} - \frac xy = 2y, with I.F.=e−log⁡y=1y\text{I.F.} = e^{-\log y} = \frac1y, giving xy=2y+C\frac xy = 2y + C, i.e. x=2y2+Cyx = 2y^2 + Cy.

Habits that save marks

  1. Standard form before reading PP: in xdydx−y=2x2x\frac{dy}{dx} - y = 2x^2, dividing by xx gives P=−1xP = -\frac1x (not −1-1) — the I.F. is 1x\frac1x, and skipping the division is the top error on I.F. questions.
  2. The right-side integral is Chapter 7: ∫Q⋅I.F. dx\int Q\cdot\text{I.F.}\,dx routinely needs by parts (∫e−xcos⁡x dx\int e^{-x}\cos x\,dx loop-back), log integrals, or a lucky product-rule cancellation (as in ∫(2xsin⁡x+x2cos⁡x)dx=x2sin⁡x\int\left(2x\sin x + x^2\cos x\right)dx = x^2\sin x).
  3. Apply conditions at the very end, in the y⋅I.F.=…+Cy\cdot\text{I.F.} = \ldots + C form or after isolating yy — either is accepted.
  4. Check linearity honestly: y2y^2 terms, yy′yy', or sin⁡y\sin y mean not linear — reconsider separable or homogeneous.

Key Point: The decision tree of the chapter is now complete: product structure → separable; degree-zero ratio → homogeneous (y=vxy = vx); yy and y′y' appearing linearly → linear (I.F.). One of the three fits every equation in the syllabus — classify first, compute second.

[JEE Tip] When both orientations look plausible, count where the nonlinearity lives: (x+3y2)dydx=y\left(x + 3y^2\right)\frac{dy}{dx} = y has y2y^2 — fatal for yy-linearity but harmless for xx: rewrite as dxdy=xy+3y\frac{dx}{dy} = \frac xy + 3y, linear in xx. The variable that appears only to the first power is the one to solve for.

Solved Examples

Example 1: A loop-back right side

Find the general solution of dydx−y=cos⁡x\dfrac{dy}{dx} - y = \cos x.

Solution:

  1. Read off: P=−1P = -1, Q=cos⁡xQ = \cos x; I.F.=e−x\text{I.F.} = e^{-x}.
  2. Solution form: ye−x=∫e−xcos⁡x dx+Cye^{-x} = \int e^{-x}\cos x\,dx + C.
  3. The by-parts loop: ∫e−xcos⁡x dx=(sin⁡x−cos⁡x)e−x2\int e^{-x}\cos x\,dx = \frac{(\sin x - \cos x)e^{-x}}{2}.
  4. Isolate yy:

Final Answer: y=sin⁡x−cos⁡x2+Cexy = \dfrac{\sin x - \cos x}{2} + Ce^{x}.

Example 2: Divide through first

Find the general solution of xdydx+2y=x2x\dfrac{dy}{dx} + 2y = x^2 (with x≠0x \neq 0).

Solution:

  1. Standardise: dydx+2xy=x\frac{dy}{dx} + \frac2x y = x, so P=2xP = \frac2x, Q=xQ = x.
  2. I.F.: e∫2xdx=e2log⁡x=x2e^{\int\frac2x dx} = e^{2\log x} = x^2.
  3. Solve: y x2=∫x⋅x2 dx+C=x44+Cy\,x^2 = \int x\cdot x^2\,dx + C = \frac{x^4}{4} + C.

Final Answer: y=x24+Cx−2y = \dfrac{x^2}{4} + Cx^{-2}.

Example 3: Linear in xx

Find the general solution of y dx−(x+2y2)dy=0y\,dx - \left(x + 2y^2\right)dy = 0.

Solution:

  1. Rearrange for dxdy\frac{dx}{dy}: dxdy−xy=2y\frac{dx}{dy} - \frac xy = 2y — linear in xx with P1=−1yP_1 = -\frac1y, Q1=2yQ_1 = 2y.
  2. I.F.: e−∫dyy=e−log⁡y=1ye^{-\int\frac{dy}{y}} = e^{-\log y} = \frac1y.
  3. Solve: x⋅1y=∫2y⋅1y dy+C=2y+Cx\cdot\frac1y = \int 2y\cdot\frac1y\,dy + C = 2y + C.

Final Answer: x=2y2+Cyx = 2y^2 + Cy.

Example 4: A cotangent coefficient with a condition

Find the particular solution of dydx+ycot⁡x=2x+x2cot⁡x\dfrac{dy}{dx} + y\cot x = 2x + x^2\cot x (with x≠0x \neq 0), given y=0y = 0 when x=π2x = \frac{\pi}{2}.

Solution:

  1. I.F.: e∫cot⁡x dx=elog⁡sin⁡x=sin⁡xe^{\int\cot x\,dx} = e^{\log\sin x} = \sin x.
  2. Solve: ysin⁡x=∫(2xsin⁡x+x2cos⁡x)dx+Cy\sin x = \int\left(2x\sin x + x^2\cos x\right)dx + C — the integrand is exactly ddx(x2sin⁡x)\frac{d}{dx}\left(x^2\sin x\right), so ysin⁡x=x2sin⁡x+Cy\sin x = x^2\sin x + C.
  3. Apply the condition: 0=π24⋅1+C0 = \frac{\pi^2}{4}\cdot1 + C, so C=−π24C = -\frac{\pi^2}{4}.

Final Answer: ysin⁡x=x2sin⁡x−π24y\sin x = x^2\sin x - \dfrac{\pi^2}{4}, i.e. y=x2−π24sin⁡xy = x^2 - \dfrac{\pi^2}{4\sin x} (for sin⁡x≠0\sin x \neq 0).

Takeaway: Before grinding ∫Q⋅I.F. dx\int Q\cdot\text{I.F.}\,dx by parts, check whether the integrand is a ready-made product-rule derivative — exam setters plant these gifts deliberately.

Example 5: A curve through a point

Find the equation of the curve through (0,1)(0, 1) whose tangent slope at (x,y)(x, y) equals the sum of the abscissa and the product of abscissa and ordinate.

Solution:

  1. Translate: dydx=x+xy\frac{dy}{dx} = x + xy, i.e. dydx−xy=x\frac{dy}{dx} - xy = x — linear with P=−xP = -x, Q=xQ = x.
  2. I.F.: e∫(−x)dx=e−x2/2e^{\int(-x)dx} = e^{-x^2/2}.
  3. Solve: ye−x2/2=∫xe−x2/2dx+C=−e−x2/2+Cye^{-x^2/2} = \int xe^{-x^2/2}dx + C = -e^{-x^2/2} + C (substitute t=−x22t = -\frac{x^2}{2}).
  4. Isolate and apply (0,1)(0, 1): y=−1+Cex2/2y = -1 + Ce^{x^2/2}; 1=−1+C1 = -1 + C gives C=2C = 2.

Final Answer: y=2ex2/2−1y = 2e^{x^2/2} - 1.

Example 6: The cleanest I.F. exercise

Find the general solution of dydx+yx=x2\dfrac{dy}{dx} + \dfrac{y}{x} = x^2.

Solution:

  1. Read off: P=1xP = \frac1x; I.F.=elog⁡x=x\text{I.F.} = e^{\log x} = x.
  2. Solve: yx=∫x⋅x2 dx+C=x44+Cyx = \int x\cdot x^2\,dx + C = \frac{x^4}{4} + C.

Final Answer: xy=x44+Cxy = \dfrac{x^4}{4} + C.

Example 7: Tangent coefficient with a condition

Find the particular solution of dydx+2ytan⁡x=sin⁡x\dfrac{dy}{dx} + 2y\tan x = \sin x, given y=0y = 0 when x=π3x = \frac{\pi}{3}.

Solution:

  1. I.F.: e2∫tan⁡x dx=e2log⁡sec⁡x=sec⁡2xe^{2\int\tan x\,dx} = e^{2\log\sec x} = \sec^2x.
  2. Solve: ysec⁡2x=∫sin⁡xsec⁡2x dx+C=∫sec⁡xtan⁡x dx+C=sec⁡x+Cy\sec^2x = \int\sin x\sec^2x\,dx + C = \int\sec x\tan x\,dx + C = \sec x + C.
  3. Apply the condition: at x=π3x = \frac{\pi}{3}: 0=sec⁡π3+C=2+C0 = \sec\frac{\pi}{3} + C = 2 + C, so C=−2C = -2.
  4. Isolate: y=cos⁡x−2cos⁡2xy = \cos x - 2\cos^2x.

Final Answer: y=cos⁡x−2cos⁡2xy = \cos x - 2\cos^2 x.

Takeaway: e2log⁡sec⁡x=sec⁡2xe^{2\log\sec x} = \sec^2x — the log-collapse works with any coefficient: ealog⁡f=fae^{a\log f} = f^a. Squares and reciprocals of the speed-table entries appear constantly.