The First Solving Engine

A first order, first degree differential equation has the shape dydx=F(x,y)\frac{dy}{dx} = F(x, y). When FF factors as a product of a pure-xx function and a pure-yy function,

dydx=g(x)⋅h(y)\frac{dy}{dx} = g(x)\cdot h(y)

the equation is of variables separable type — and it solves in four moves.

Four step pipeline for solving a variables separable differential equation

The method

  1. Recognise the product form g(x)h(y)g(x)h(y).
  2. Separate (for h(y)≠0h(y) \neq 0): dyh(y)=g(x) dx\dfrac{dy}{h(y)} = g(x)\,dx — every yy travels with dydy, every xx with dxdx.
  3. Integrate both sides: ∫dyh(y)=∫g(x) dx\displaystyle\int\frac{dy}{h(y)} = \int g(x)\,dx, giving H(y)=G(x)+CH(y) = G(x) + C — the general solution, usually left implicit.
  4. Apply the condition (if given) to find CC — the particular solution.

Worked template

dydx=x+12−y\dfrac{dy}{dx} = \dfrac{x + 1}{2 - y} (with y≠2y \neq 2): separate to (2−y) dy=(x+1) dx(2 - y)\,dy = (x + 1)\,dx, integrate:

2y−y22=x22+x+C1  ⇒  x2+y2+2x−4y+C=02y - \frac{y^2}{2} = \frac{x^2}{2} + x + C_1 \;\Rightarrow\; x^2 + y^2 + 2x - 4y + C = 0

(where C=2C1C = 2C_1 absorbed the doubling — constants merge freely).

Housekeeping rules

  1. One constant is enough: write +C+C on the xx-side only; two constants merge into one.
  2. Constants can be reshaped: 2C1→C2C_1 \to C, eC1→Ce^{C_1} \to C, ±C→C\pm C \to C — any invertible renaming is legal and keeps answers tidy.
  3. Implicit answers are complete answers: tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C need not be solved for yy unless asked.
  4. Note excluded values: the separation divided by h(y)h(y), so cases like y=2y = 2 above are excluded by hypothesis (the problem states them).

Key Point: Separability is a structural property — spot the product g(x)h(y)g(x)h(y). Sums like dydx=x+y\frac{dy}{dx} = x + y do NOT separate (that one is linear, Section 5); products, quotients and exponentials like ex+y=exeye^{x+y} = e^x e^y do.

[JEE Tip] ex+ye^{x+y} splitting into ex⋅eye^x\cdot e^y is the most-recycled separable disguise in MCQs: dydx=ex+y\frac{dy}{dx} = e^{x+y} separates to e−ydy=exdxe^{-y}dy = e^x dx, giving −e−y=ex−C-e^{-y} = e^x - C, i.e. ex+e−y=Ce^x + e^{-y} = C. Recognise the family.

Curves and Growth — Separable Equations at Work

Curve problems

"The slope of the tangent at (x,y)(x, y) is …" translates directly to dydx=…\frac{dy}{dx} = \ldots — then the routine is: solve generally, substitute the given point, extract CC.

Template: the curve through (−2,3)(-2, 3) with slope 2xy2\frac{2x}{y^2}: separate y2dy=2x dxy^2dy = 2x\,dx, integrate y33=x2+C\frac{y^3}{3} = x^2 + C; the point gives 9=4+C9 = 4 + C, so C=5C = 5 and the curve is y33=x2+5\frac{y^3}{3} = x^2 + 5.

The exponential growth model

"Principal increases continuously at the rate of 5% per year" means the rate of change is proportional to the current amount:

dPdt=5100P=P20\frac{dP}{dt} = \frac{5}{100}P = \frac{P}{20}

Separate and integrate: log⁡P=t20+C1\log P = \frac{t}{20} + C_1, so P=Cet/20P = Ce^{t/20} (with C=eC1C = e^{C_1}). An initial value pins down CC: starting from ₹1000, P=1000et/20P = 1000e^{t/20}, and doubling (P=2000P = 2000) gives et/20=2e^{t/20} = 2, i.e.

t=20log⁡e2 yearst = 20\log_e 2 \text{ years}

The same skeleton handles every "proportional growth" model — bacteria counts, populations, radioactive decay (with a minus sign): dNdt=kN⇒N=N0ekt\frac{dN}{dt} = kN \Rightarrow N = N_0e^{kt}.

Key Point: In growth problems the answer usually stays in exact log/exponential form (20log⁡220\log 2, not a decimal). Two data points determine the two unknowns N0N_0 and kk; a question for "when does NN reach …\ldots" then solves an exponential equation by taking logs.

[JEE Tip] Boards love the bank/bacteria stories; JEE prefers the same mathematics stripped bare ("if y′=kyy' = ky and y(0)=Ay(0) = A…"). Either way, jump straight to y=(initial value) ekty = (\text{initial value})\,e^{kt} — deriving it costs a minute, quoting it costs nothing, and the mark scheme accepts both.

Solved Examples

Example 1: The model separation

Find the general solution of dydx=x+12−y\dfrac{dy}{dx} = \dfrac{x + 1}{2 - y} (where y≠2y \neq 2).

Solution:

  1. Separate: (2−y) dy=(x+1) dx(2 - y)\,dy = (x + 1)\,dx.
  2. Integrate: 2y−y22=x22+x+C12y - \frac{y^2}{2} = \frac{x^2}{2} + x + C_1.
  3. Tidy (multiply by 2, absorb constants): x2+y2+2x−4y+C=0x^2 + y^2 + 2x - 4y + C = 0.

Final Answer: x2+y2+2x−4y+C=0x^2 + y^2 + 2x - 4y + C = 0.

Example 2: Symmetric inverse-tangent pair

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

Solution:

  1. Separate (safe: 1+y2≠01 + y^2 \neq 0 always): dy1+y2=dx1+x2\frac{dy}{1 + y^2} = \frac{dx}{1 + x^2}.
  2. Integrate: tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C.

Final Answer: tan⁡−1y=tan⁡−1x+C\tan^{-1}y = \tan^{-1}x + C — a perfectly complete implicit answer.

Example 3: A particular solution

Find the particular solution of dydx=−4xy2\dfrac{dy}{dx} = -4xy^2 given y=1y = 1 when x=0x = 0.

Solution:

  1. Separate (for y≠0y \neq 0): dyy2=−4x dx\frac{dy}{y^2} = -4x\,dx.
  2. Integrate: −1y=−2x2+C-\frac1y = -2x^2 + C, so y=12x2−Cy = \frac{1}{2x^2 - C}.
  3. Apply the condition: 1=1−C1 = \frac{1}{-C} gives C=−1C = -1.

Final Answer: y=12x2+1y = \dfrac{1}{2x^2 + 1}.

Example 4: Curve through a point

Find the equation of the curve through (1,1)(1, 1) whose differential equation is x dy=(2x2+1)dxx\,dy = \left(2x^2 + 1\right)dx (with x≠0x \neq 0).

Solution:

  1. Separate: dy=(2x+1x)dxdy = \left(2x + \frac1x\right)dx.
  2. Integrate: y=x2+log⁡∣x∣+Cy = x^2 + \log|x| + C.
  3. Apply the point (1,1)(1,1): 1=1+0+C1 = 1 + 0 + C, so C=0C = 0.

Final Answer: y=x2+log⁡∣x∣y = x^2 + \log|x|.

Example 5: Slope condition through a point

Find the equation of the curve through (−2,3)(-2, 3), given that the slope of the tangent at any point (x,y)(x, y) is 2xy2\dfrac{2x}{y^2}.

Solution:

  1. Translate: dydx=2xy2\frac{dy}{dx} = \frac{2x}{y^2}; separate: y2dy=2x dxy^2dy = 2x\,dx.
  2. Integrate: y33=x2+C\frac{y^3}{3} = x^2 + C.
  3. Apply (−2,3)(-2, 3): 9=4+C9 = 4 + C, so C=5C = 5.

Final Answer: y33=x2+5\dfrac{y^3}{3} = x^2 + 5, i.e. y=(3x2+15)1/3y = \left(3x^2 + 15\right)^{1/3}.

Example 6: Continuous compounding

In a bank, principal increases continuously at the rate of 5% per year. In how many years will ₹1000 double itself?

Solution:

  1. Model: dPdt=5100P=P20\frac{dP}{dt} = \frac{5}{100}P = \frac{P}{20}.
  2. Separate and integrate: log⁡P=t20+C1\log P = \frac{t}{20} + C_1, so P=Cet/20P = Ce^{t/20}.
  3. Initial value: P=1000P = 1000 at t=0t = 0 gives C=1000C = 1000; so P=1000et/20P = 1000e^{t/20}.
  4. Doubling: 2000=1000et/202000 = 1000e^{t/20} gives et/20=2e^{t/20} = 2, so t=20log⁡e2t = 20\log_e 2.

Final Answer: t=20log⁡e2t = 20\log_e 2 years (about 13.8613.86 years).

Example 7: Trig products

Solve sec⁡2xtan⁡y dx+sec⁡2ytan⁡x dy=0\sec^2x\tan y\,dx + \sec^2y\tan x\,dy = 0.

Solution:

  1. Separate (divide by tan⁡xtan⁡y\tan x\tan y): sec⁡2xtan⁡xdx=−sec⁡2ytan⁡ydy\frac{\sec^2x}{\tan x}dx = -\frac{\sec^2y}{\tan y}dy.
  2. Integrate (each side is f′f\frac{f'}{f}): log⁡∣tan⁡x∣=−log⁡∣tan⁡y∣+C1\log|\tan x| = -\log|\tan y| + C_1.
  3. Combine the logs: log⁡∣tan⁡xtan⁡y∣=C1\log|\tan x\tan y| = C_1.

Final Answer: tan⁡xtan⁡y=C\tan x\tan y = C — the exponentiated constant eC1e^{C_1} renamed CC.

Example 8: A trig-integrating condition

Find the particular solution of dydx=ytan⁡x\dfrac{dy}{dx} = y\tan x, given y=1y = 1 when x=0x = 0.

Solution:

  1. Separate: dyy=tan⁡x dx\frac{dy}{y} = \tan x\,dx.
  2. Integrate: log⁡∣y∣=log⁡∣sec⁡x∣+C1\log|y| = \log|\sec x| + C_1, so y=Csec⁡xy = C\sec x.
  3. Apply the condition: 1=Csec⁡0=C1 = C\sec 0 = C.

Final Answer: y=sec⁡xy = \sec x.

Takeaway: When both integrals produce logs, exponentiate and merge: log⁡y=log⁡(sec⁡x)+C1\log y = \log(\sec x) + C_1 becomes y=Csec⁡xy = C\sec x in one step — cleaner than carrying the log form to the end.