1. Linear Differential Equation — Standard Form

A first-order linear DE is of the form:

dydx+P(x)y=Q(x)

Integrating Factor (IF):

IF=eP(x)dx

General Solution:

y(IF)=Q(x)(IF)dx+C

The key insight: multiplying the DE by IF converts the left side into ddx[yIF] exactly.

Linear in x (dx/dy form)

If the equation is linear in x: dxdy+P(y)x=Q(y)

IF = eP(y)dy, and xIF=Q(y)IFdy+C

2. Worked Examples — Building Up to JEE Level

Example 1 — Standard Form (JEE Main)

Solve: dydx+yx=x2

Here, P=1x,Q=x2.

IF=edxx=elnx=x

ddx(xy)=xx2=x3xy=x3dx=x44+C

y=x34+Cx

Example 2 — Gaussian Integrating Factor (JEE Main/Advanced)

Solve: dydx+2xy=x, given y(0)=0.

Here, P=2x,Q=x.

IF=e2xdx=ex2

ex2y=xex2dx=ex22+C

y=12+Cex2

Apply IC y(0)=0: 0=12+CC=12

y=1ex22

Example 3 — Trigonometric Q(x) (JEE Main)

Solve: (1+x2)dydx+2xy=cosx

Divide by (1+x2): dydx+(2x1+x2)y=cosx1+x2

IF=e2x1+x2dx=eln(1+x2)=1+x2

(1+x2)y=cosxdx=sinx+C

y=sinx+C1+x2

Example 4 — Reverse Linear (dx/dy form) (JEE Main)

Solve: (y+1)dxdyx=e3y(y+1)2

Divide by (y+1): dxdyxy+1=e3y(y+1)

Here, P(y)=1y+1.

IF=edyy+1=eln(y+1)=1y+1

xy+1=e3ydy=e3y3+C

x=(y+1)(e3y3+C)

Example 5 — JEE Advanced: Non-trivial IF

Solve: xdydx+(x1)y=x2ex

Divide by x: dydx+(x1x)y=xex

Here, P=x1x=11x.

IF=e(11x)dx=exlnx=exx

(exx)y=(xex)(exx)dx=e2xdx=e2x2+C

y=xex2+Cxex

3. Bernoulli's Differential Equation

The Bernoulli equation is:

dydx+P(x)y=Q(x)yn(n0,1)

Reduction: Divide by yⁿ, then substitute v=y1n:

dvdx+(1n)P(x)v=(1n)Q(x)

This is now a linear DE in v.

Example (JEE Main)

Solve: dydx+yx=x2y3

n = 3. Divide by y³: y3dydx+y2/x=x2

Let v = y^(1−3) = y^(−2): dvdx=2y3dydx

Equation becomes: 12dvdx+vx=x2dvdx2vx=2x2

Linear in v. IF = e^(∫−2/x dx) = x^(−2) = 1/x²

vx2=(2x2)1x2dx=2dx=2x+C

v=2x3+Cx2

Back-sub v = 1/y²:   1y2=Cx22x3

4. Applications of Differential Equations

A. Exponential Growth and Decay

dNdt=kNN=N0ekt

k > 0: growth (population, compound interest).   k < 0 (write k = −λ): decay (radioactivity, drug concentration).

Worked: Population growth problem (JEE Main)

A population doubles in 5 years. After how many years does it triple?

At t=5: 2P₀ = P₀e^(5k) → k = (ln 2)/5

Triple: 3P₀ = P₀e^(kt) → t = (ln 3)/k = 5 ln 3 / ln 2 ≈ 7.93 years

B. Newton's Law of Cooling

dTdt=k(TTs)TTs=(T0Ts)ekt

T = temperature of object, Tₛ = surrounding temperature, T₀ = initial temperature.

C. Mixing Problems (JEE Advanced)

A tank contains V litres of brine. Brine flows in at rate r_in (concentration c_in) and flows out at rate r_out. If S = amount of salt at time t:

dSdt=rincinroutSV(t)

This is a linear DE in S. Solve via the IF method.

Worked Mixing Problem (JEE Advanced type)

A tank initially contains 100L of pure water. Brine with a salt concentration of 2 g/L enters at 3 L/min and drains at 3 L/min. Find S(t) (salt at time t).

Since inflow equals outflow, volume stays constant at 100L.
Rate equation: dSdt=3(2)3(S100)=63S100

Rearrange to standard linear form: dSdt+3S100=6

IF=e3t100.
Solution: Se3t100=6e3t100dt=200e3t100+C

S=200+Ce3t100. With S(0)=0, we get C=200.

S(t)=200(1e3t100) grams

D. Orthogonal Trajectories (JEE Advanced)

Two families of curves are orthogonal trajectories of each other if every curve in one family intersects every curve in the other family at right angles.

Method: Find the DE of family F; replace dydx with dxdy (slope of perpendicular); solve the new DE.

Example: Find orthogonal trajectories of y=Cex.

From y=Cexy=Cex=y.
For orthogonal trajectories: dydx=1yydy=dxy22=x+K

Orthogonal family: x+y22=K (a family of downward-opening parabolas).